body {
    margin:0;
    font-family:'Poppins',sans-serif;
    background:#f6f8f7;
}

/* TOPBAR */
.topbar {
    position:fixed;
    top:0;
    width:100%;
    background:linear-gradient(90deg,#1db954,#17a74a);
    display:flex;
    justify-content:center;
    gap:40px;
    padding:12px;
    z-index:2000;
}
.topbar a { color:white; text-decoration:none; }

/* CATÁLOGO */
.catalog {
    padding: 40px 10% 80px; /* antes 150px */
     text-align: center;
}
.catalog h1 {
    color: #1db954;
    margin-bottom: 50px;
    text-align: center;
}
.products {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}
.product-card {
    background:white;
    padding:25px;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
    cursor:pointer;
    transition:.3s;
}
.product-card:hover {
    transform:translateY(-10px);
}
.product-card img {
    width:100%;
    height:250px;
    object-fit:contain;
}

/* MODAL */
.product-modal {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:3000;
}
.product-modal.active { display:flex; }

.modal-content {
    background:white;
    padding:40px;
    border-radius:20px;
    width:90%;
    max-width:500px;
    text-align:center;
    position:relative;
}
.modal-content img {
    width:250px;
    margin-bottom:20px;
}
.close-modal {
    position:absolute;
    right:20px;
    top:15px;
    cursor:pointer;
}

select, button {
    padding:12px;
    border-radius:10px;
    margin-top:15px;
    width:100%;
}
button {
    background:#1db954;
    color:white;
    border:none;
    cursor:pointer;
}
button:hover {
    background:#159a45;
}

/* ================= CESTA ================= */

.cart-toggle{
    position:fixed;
    top:80px; 
    right:20px;
    background:white;
    padding:10px 18px;
    border-radius:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
    cursor:pointer;
    z-index:4000;
}

.cart-overlay{
    position:fixed;
    top:60px; /* NO TAPA LA TOPBAR */
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.4);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:2998;
}

.cart-overlay.active{
    opacity:1;
    visibility:visible;
}

.cart-panel{
    position:fixed;
    top:60px; /* BAJA LA CESTA */
    right:-400px;
    width:350px;
    height:calc(100% - 60px); /* AJUSTA ALTURA */
    background:white;
    padding:25px;
    box-shadow:-10px 0 40px rgba(0,0,0,0.2);
    transition:right 0.4s ease;
    z-index:2999;
    display:flex;
    flex-direction:column;
}

.cart-panel.active{
    right:0;
}

.cart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#cartItems{
    max-height:300px;
    overflow-y:auto;
    margin-top:20px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.remove-btn{
    background:none;
    border:none;
    color:red;
    cursor:pointer;
}

.cart-footer{
    margin-top:30px;
    padding-top:15px;
    border-top:1px solid #eee;
}

.checkout-btn{
    padding:12px;
    background:#1db954;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
}
/* FOOTER */
footer {
    background:#0a0a0a;
    padding:60px;
    text-align:center;
    color:#aaa;
}
footer h2 { color:#1db954; }
/* ================= MENU CATEGORÍAS ================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100%;
    background: #f9f9f9;
    padding: 30px 25px;
    box-shadow: 10px 0 40px rgba(0,0,0,0.15);
    transition: left 0.4s ease;
    z-index: 1999;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-header h2 {
    font-size: 1.2rem;
    color: #1db954;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-links a {
    text-decoration: none;
    font-weight: 600;
    color: #222;
    transition: 0.3s;
}

.menu-links a:hover {
    color: #1db954;
    transform: translateX(6px);
}

/* ================= CESTA PANEL ================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 2998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    padding: 25px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 2999;
    display: flex;
    flex-direction: column;
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-footer {
    margin-top: 30px; /* ya no se va al fondo */
    padding-top: 15px;
    border-top: 1px solid #eee;
}
/* ================= BOTÓN CATEGORÍAS ================= */

.menu-toggle {
    position: fixed;
    top: 80px; /* debajo de la topbar */
    left: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 4000; /* más alto que todo */
    transition: 0.3s;
}

.menu-toggle:hover {
    transform: translateY(-3px);
}
/* ================= FOOTER ================= */

footer {
    background: #0a0a0a;
    padding: 90px 10%;
    text-align: center;
    color: #aaa;
    margin-top: 80px;
}

footer h2 {
    font-size: 2.8rem;
    color: #1db954;
    margin-bottom: 20px;
}

.legal-links {
    margin: 35px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legal-links a {
    padding: 12px 24px;
    border: 1px solid rgba(29,185,84,0.4);
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    background: #1db954;
    color: #000;
    box-shadow: 0 0 20px rgba(29,185,84,0.4);
}

.dev a {
    color: #aaa;
    text-decoration: none;
}

.dev a:hover {
    color: #1db954;
}

.copy {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}
/* ======================================= */
/* HERO CONTACTO SUPERIOR */
/* ======================================= */

.iphone-hero-contact {
    width: 100%;
    height: 45vh;
    margin-top: 60px; /* espacio para topbar */
    background: linear-gradient(120deg, #1db954, #17a74a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.iphone-hero-overlay {
    text-align: center;
    color: white;
    padding: 0 10%;
}

.iphone-hero-overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Botón */

.contact-btn {
    padding: 14px 35px;
    background: white;
    color: #1db954;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
/* ======================================= */
/* FORMULARIO */
/* ======================================= */

.contact-form-section {
    padding: 100px 10%;
    background: #f6f8f7;
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-container h2 {
    text-align: center;
    color: #1db954;
    margin-bottom: 40px;
    font-size: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input,
form textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #1db954;
    box-shadow: 0 0 10px rgba(29,185,84,0.2);
}

form button {
    padding: 14px;
    background: #1db954;
    border: none;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

form button:hover {
    background: #159a45;
    transform: translateY(-3px);
}
/* ================= MINI TEXTO CONTACTO ================= */

.mini-contact-text {
    margin-top: 90px; /* antes 60px */
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.mini-contact-text a {
    margin-left: 8px;
    color: #1db954;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.mini-contact-text a:hover {
    text-decoration: underline;
}