*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    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:3000;
}

.topbar a{
    color:white;
    text-decoration:none;
    font-weight:500;
}

/* ================= BOTÓN CATEGORÍAS ================= */

.menu-toggle{
    position:fixed;
    top:80px;
    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;
    transition:0.3s;
}

.menu-toggle:hover{
    transform:translateY(-3px);
}

/* ================= PANEL 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 ================= */

.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;
}
/* ================= MINI TEXTO ================= */

.mini-contact-text{
    margin-top:100px;
    text-align:center;
    font-size:0.95rem;
    color:#555;
}

.mini-contact-text a{
    margin-left:8px;
    color:#1db954;
    font-weight:600;
    text-decoration:none;
}

.mini-contact-text a:hover{
    text-decoration:underline;
}

/* ================= CATÁLOGO ================= */

.catalog{
    padding:40px 10% 80px;
    text-align:center;
}

.catalog h1{
    color:#1db954;
    margin-bottom:50px;
}

.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:5000;
}

.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;
}

/* ================= 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;
}

form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

form input, form textarea{
    padding:14px;
    border-radius:10px;
    border:1px solid #ddd;
}

form button{
    border-radius:30px;
}

/* ================= 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;
    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;
}