*{
    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 INICIO ================= */

.inicio-btn-container{
    position:fixed;
    top:60px; /* justo debajo de topbar */
    width:100%;
    display:flex;
    justify-content:center;
    z-index:2500;
    pointer-events:none;
}

.inicio-btn{
    background:white;
    padding:8px 20px;
    border-radius:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    text-decoration:none;
    font-weight:600;
    color:#1db954;
    transition:0.3s;
    pointer-events:auto;
}

.inicio-btn:hover{
    transform:translateY(-3px);
}
/* ================= BOTONES ================= */

.menu-toggle,
.cart-toggle{
    position:fixed;
    top:80px;
    background:white;
    padding:10px 18px;
    border-radius:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
    cursor:pointer;
    z-index:4000;
    font-weight:600;
}

.menu-toggle{ left:20px; }
.cart-toggle{ right:20px; }

/* ================= 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:60px;              /* BAJA EL MENÚ */
    left:-350px;
    width:320px;
    height:calc(100% - 60px); /* AJUSTA ALTURA */
    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;
}
/* ================= SECCIONES ================= */

.catalog-sections{
    padding:150px 10% 100px;
    text-align:center;
}

.catalog-sections h1{
    color:#1db954;
    margin-bottom:60px;
}

.section-list{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.section-item{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
    text-decoration:none;
    color:#222;
    transition:0.3s;
}

.section-item:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 50px rgba(0,0,0,0.12);
}

.section-item h2{
    color:#1db954;
    margin-bottom:10px;
}

/* ================= FOOTER ================= */

footer{
    background:#0a0a0a;
    padding:90px 10%;
    text-align:center;
    color:#aaa;
}

footer h2{
    font-size:2.8rem;
    color:#1db954;
    margin-bottom:20px;
}

.legal-links{
    margin:35px 0;
    display:flex;
    justify-content:center;
    gap:25px;
}

.legal-links a{
    color:#ccc;
    text-decoration:none;
}

.dev a{
    color:#aaa;
}

.copy{
    margin-top:20px;
    font-size:0.9rem;
}
/* ================= GRID SECCIONES VISUAL ================= */

.section-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
}

.section-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
    text-decoration:none;
    color:#222;
    transition:0.3s;
}

.section-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(0,0,0,0.15);
}

.section-card h2{
    color:#1db954;
    margin-bottom:20px;
    text-align:center;
}

.section-images{
    display:flex;
    gap:15px;
    justify-content:center;
    flex-wrap:wrap;
}

.section-images img{
    width:90px;
    height:90px;
    object-fit:contain;
    border-radius:12px;
    background:#f6f8f7;
    padding:10px;
    transition:0.3s;
}

.section-card:hover .section-images img{
    transform:scale(1.05);
}