/* ============================================================
   BURGUER PLAY 2026 - ESTILO PREMIUM DARK MODE
   ============================================================ */

:root {
    --primary: #ff3c00;
    --secondary: #ffbc0d;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f5f5f5;
    --font-main: 'Inter', sans-serif;
}

/* 1. BASE Y ESTRUCTURA */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* iframe de fondo carrusel */
#iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.35;
    filter: blur(3px) brightness(0.5);
    pointer-events: none;
}

/* 2. BANNER CABECERA */
.banner {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    font-family: "Burguer", sans-serif;
    font-size: 3.5rem;
    z-index: 10;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.banner.hide {
    transform: translateY(-50px);
    opacity: 0;
}

/* Letras de colores del logo */
.a { color: #ffbc0d; text-shadow: 0 0 15px rgba(255,188,13,0.4); }
.az { color: #00ccff; text-shadow: 0 0 15px rgba(0,204,255,0.4); }
.r { color: #ff3c00; text-shadow: 0 0 15px rgba(255,60,0,0.4); }
.v { color: #44ff44; text-shadow: 0 0 15px rgba(68,255,68,0.4); }

.subt, .subt2 {
    font-family: var(--font-main);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-top: 10px;
    font-weight: 300;
}

.subt a, .subt2 a {
    color: #aaa;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.subt a:hover { color: var(--secondary); }

/* 3. NAVEGACIÓN STICKY (FAMILIAS) - FINAL */
.familias {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: nowrap; 
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 5px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.familias a {
    flex: 1;
    display: flex;
    text-decoration: none;
    margin: 0 2px;
    min-width: 0;
    cursor: pointer; /* Forzamos el cursor aquí */
}

.boton.categ {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 2px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 600;
    text-align: center;
    pointer-events: none; /* TRUCO: El clic lo recibe el <a>, no el texto */
    transition: all 0.2s ease;
}

/* El hover ahora se aplica al <a> pero afecta al botón hijo */
.familias a:hover .boton.categ {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .familias {
        flex-wrap: wrap; 
        justify-content: center;
        padding: 10px;
        gap: 8px;
    }
    .familias a {
        flex: 1 1 auto; 
        min-width: 100px;
    }
    .boton.categ {
        padding: 12px 10px;
        white-space: normal;
    }
}

/* 4. GRID DE PRODUCTOS */
.cuerpo {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 20px 150px 20px; /* Margen inferior para no tapar con el carrito */
}

/* 5. TARJETAS (ITEMS) */
.item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 25px;
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    transition: opacity 0.5s ease, border-color 0.3s ease;
    will-change: transform; /* Optimización para el script 3D */
}

.item.oculto {
    display: none;
    opacity: 0;
}

.item strong.boton {
    font-size: 1.4rem;
    color: var(--secondary);
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
    line-height: 1.2;
}

.item p {
    font-size: 0.95rem;
    color: #bbb;
    margin: 0;
    text-wrap: pretty;
}

.precio {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-align: right;
    margin-top: 15px;
    align-self: end;
}

.precio::after {
    content: '';
    font-size: 1rem;
    margin-left: 4px;
    color: var(--secondary);
}

/* 6. CARRITO FLOTANTE */
.pedido {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    z-index: 1000;
}

.carrito {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    margin-right: 20px;
    scrollbar-width: none;
}

.enpedido {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#preciototal {
    background: var(--secondary);
    color: #000;
    padding: 12px 28px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#preciototal.bump {
    transform: scale(1.15);
}

/* 7. RESPONSIVE */
@media (max-width: 768px) {
    .banner { font-size: 2.8rem; padding: 40px 10px; }
    .contenedor { grid-template-columns: 1fr; gap: 15px; }
    .item { padding: 20px; }
    #preciototal { font-size: 1.2rem; padding: 10px 20px; }
}

/* Efecto Ripple para los botones (usado por tu JS) */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* FUENTE MODERNA */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

.banner {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    overflow: hidden;
    z-index: 10;
}

/* CONTENEDOR PRINCIPAL DEL TEXTO */
.logo-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: #fff;
    margin: 0;
    letter-spacing: -2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    font-style: italic;
}

/* ESTILO PARA LAS LETRAS DE "PLAY" (LOS COLORES ORIGINALES) */
/* Usamos .a, .az, .r, .v para que coincida con tu HTML original */
.logo-text span {
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.logo-text span:hover {
    transform: translateY(-10px) scale(1.1);
}

/* COLORES ORIGINALES MEJORADOS */
.a  { color: #ffbc0d; text-shadow: 0 0 15px rgba(255, 188, 13, 0.6); } /* Amarillo */
.az { color: #00ccff; text-shadow: 0 0 15px rgba(0, 204, 255, 0.6); } /* Azul */
.r  { color: #ff3c00; text-shadow: 0 0 15px rgba(255, 60, 0, 0.6); }   /* Rojo */
.v  { color: #44ff44; text-shadow: 0 0 15px rgba(68, 255, 68, 0.6); }  /* Verde */

/* EFECTO DE HUMO DETRÁS DEL LOGO */
.smoke-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.smoke-container span {
    position: absolute;
    bottom: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0;
}

/* Animación cuando pasas el ratón por el banner */
.banner:hover .smoke-container span {
    animation: rise 3s infinite linear;
}

@keyframes rise {
    0% { transform: translate(-50%, 0) scale(1); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: translate(-50%, -150px) scale(3); opacity: 0; }
}

/* Posiciones de las partículas de humo */
.smoke-container span:nth-child(1) { left: 40%; animation-delay: 0s; }
.smoke-container span:nth-child(2) { left: 50%; animation-delay: 0.7s; }
.smoke-container span:nth-child(3) { left: 60%; animation-delay: 1.4s; }
.smoke-container span:nth-child(4) { left: 45%; background: rgba(255, 60, 0, 0.1); animation-delay: 0.3s; }
.smoke-container span:nth-child(5) { left: 55%; background: rgba(255, 188, 13, 0.1); animation-delay: 1.1s; }.logo-text {
    /* ... tu código anterior ... */
    text-shadow: 0 0 20px rgba(255, 60, 0, 0.5);
    position: relative;
}

