/* style.css - Identidad Visual: Neon Noir (D' La Vida Bar) */

/* 1. IMPORTACIÓN DE FUENTES (Yellowtail para Títulos, Montserrat para Lectura) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Yellowtail&display=swap');

:root {
    /* --- PALETA NEON NOIR --- */
    --bg-noir: #050505;       /* Fondo Base: Negro Profundo */
    --bg-surface: #0f0f0f;    /* Superficies: Casi negro */
    --gold: #FFD700; /* Añade esta línea para que el dorado funcione */
    --gold-glow: rgba(255, 215, 0, 0.5); /* Brillo dorado */
    /* Colores Neón (Alta Saturación) */
    --neon-red: #FF003C;      /* Rojo Vida (Botones, Ofertas) */
    --neon-green: #CCFF00;    /* Verde Lima (Precios) */
    --neon-cyan: #00F0FF;     /* Cian Eléctrico (Hielo, Detalles) */
    --neon-magenta: #BD00FF;  /* Magenta (Títulos) */
    
    --text-primary: #FFFFFF;  /* Blanco Puro (Lectura) */
    
    /* Tipografías */
    --font-neon: 'Yellowtail', cursive;     /* Títulos Artísticos */
    --font-body: 'Montserrat', sans-serif;  /* Textos Funcionales */
    
    /* Efectos */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--bg-noir); 
    color: var(--text-primary); 
    font-family: var(--font-body); 
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* --- HERO & HEADER --- */
.hero-optimizado { 
    height: 40vh; /* Altura ajustada para el logo */
    position: relative; 
    overflow: hidden; 
    border-bottom: 2px solid var(--neon-cyan); /* Borde neón sutil */
    background: #000; 
    box-shadow: 0 10px 40px -10px black;
}

.hero-bg { 
    width: 100%; height: 100%; object-fit: cover; 
    position: absolute; top: 0; left: 0; z-index: 0; 
    opacity: 0.5; /* Oscurecido para resaltar el logo */
}

.overlay { 
    position: relative; z-index: 1; width: 100%; height: 100%; 
    background: linear-gradient(to top, var(--bg-noir) 10%, rgba(5,5,5,0.4)); 
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center; 
    padding: 30px; text-align: center;
}

/* --- LOGO E IDENTIDAD --- */
.logo-container {
    margin-bottom: 5px;
}
.main-logo {
    width: 120px; /* Tamaño controlado del logo.png */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 60, 0.4)); /* Resplandor rojo detrás */
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }

.brand-name {
    font-family: var(--font-neon); 
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-red); /* Doble neón */
    line-height: 1.1;
}

.tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-top: 5px;
    opacity: 0.9;
}

/* --- BUSCADOR --- */
.search-wrapper { padding: 0 20px; margin-top: -25px; position: relative; z-index: 20; }
.search-box { 
    background: rgba(20, 20, 20, 0.95); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--neon-magenta); 
    border-radius: 50px; display: flex; align-items: center; padding: 5px 20px; 
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.15);
}
#search-input { width: 100%; padding: 12px 0; background: transparent; border: none; color: white; font-family: var(--font-body); font-size: 1rem; outline: none; }
.search-icon { color: var(--neon-cyan); margin-right: 10px; font-size: 1.2rem; }

/* --- FILTROS --- */
.filters-container { 
    position: sticky;
    top: 0;
    z-index: 100;
    /* Fondo con transparencia y desenfoque para efecto cristal sobre el contenido */
    background: rgba(5, 5, 5, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

.filters { 
    display: flex; 
    gap: 12px; 
    padding: 0 20px; 
    overflow-x: auto; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn { 
    background: rgba(255, 255, 255, 0.03); 
    color: #777; /* Color apagado cuando no está activo */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 10px 22px; 
    border-radius: 50px; 
    font-family: var(--font-body); 
    font-size: 0.85rem;
    font-weight: 500;
    /* Transición de larga duración con curva suave */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
    white-space: nowrap;
    position: relative;
}
.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-cyan);
}
.filter-btn.active { 
    background: rgba(0, 240, 255, 0.1); 
    color: var(--neon-cyan); 
    border-color: var(--neon-cyan); 
    font-weight: 700; 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: scale(1.05);
}
.filter-btn.active::after {
    width: 30%; /* Aparece la línea de acento */
}
.filter-btn:hover {
    background: rgba(0, 255, 255, 0.1); /* Fondo sutil */
    color: var(--neon-cyan);
    transform: scale(1.05);
}
.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
/* Botón flotante IA */
.fab-ia {
    transition: all 0.3s ease;
}

.fab-ia:hover {
    transform: scale(1.1) rotate(5deg); /* Crece y rota un poco */
    box-shadow: 0 0 20px var(--neon-magenta); /* Brillo magenta intenso */
}

/* Botón de Maridaje */
.btn-match {
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-match:hover {
    background: var(--neon-magenta);
    box-shadow: 0 0 12px var(--neon-magenta);
    animation: shake 0.5s ease; /* Pequeño temblor sutil para llamar la atención */
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* --- GRID MENÚ (CORREGIDO PARA CATEGORÍAS) --- */
.container { padding: 25px 20px; }

/* Título general de la página (opcional, ya que usaremos cabeceras por sección) */
.section-title { 
    font-family: var(--font-neon); 
    color: var(--neon-magenta); 
    font-size: 2.2rem; margin-bottom: 25px; 
    text-shadow: 0 0 8px rgba(189, 0, 255, 0.4);
    display: none; /* Lo ocultamos porque ahora cada categoría tiene su título */
}

/* CAMBIO IMPORTANTE: El contenedor principal deja de ser Grid */
.menu-grid { 
    display: block; 
    width: 100%;
}

/* Nueva clase para la rejilla interna de cada categoría */
.grid-productos { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 20px; 
    padding-bottom: 40px; /* Espacio entre categorías */
}

/* Estilos para las Secciones y Títulos Pegajosos */
.category-section {
    scroll-margin-top: 140px; /* Para que al navegar el título no quede tapado por el header */
}

/* css/style.css */

.category-header {
    position: static; 
    background: transparent; 
    backdrop-filter: none;
    padding: 20px 0 10px 0;
    margin-bottom: 15px;
    font-family: var(--font-neon);
    color: var(--neon-cyan);
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}
/* TARJETA DE PRODUCTO (Se mantiene igual, solo asegúrate de que esté correcta) */
.card { 
    background: var(--bg-surface); 
    border-radius: 16px; overflow: hidden; 
    border: 1px solid #222; 
    position: relative; cursor: pointer; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición suave */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px) scale(1.02); /* Se eleva y crece sutilmente */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 
                0 0 15px var(--neon-cyan); /* Añade un resplandor neón */
    border-color: var(--neon-cyan); /* Cambia el borde al color de la marca */
}

/* Efecto de zoom en la imagen al hacer hover */
.card .img-box img {
    transition: transform 0.5s ease;
}

.card:hover .img-box img {
    transform: scale(1.1); /* Zoom suave en la foto del cóctel/plato */
}
.card:active { transform: scale(0.98); }

.img-box { height: 160px; background: #111; position: relative; }
.img-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.info { padding: 15px; }
.card h3 { 
    font-family: var(--font-neon); 
    font-size: 1.5rem; 
    color: var(--text-primary); 
    margin-bottom: 5px; 
    font-weight: 400;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.short-desc {
    font-family: var(--font-body);
    font-size: 0.75rem; color: #aaa;
    margin-bottom: 12px; line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2;           /* <--- AGREGA ESTA LÍNEA */
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* PRECIOS */
.price { 
    color: var(--neon-green); 
    font-family: var(--font-body); 
    font-weight: 800; font-size: 1.1rem; 
    text-shadow: 0 0 5px rgba(204, 255, 0, 0.2);
}
.rating-pill { color: #888; font-size: 0.8rem; }

/* Ajuste Mobile para el nuevo grid interno */
@media (max-width: 768px) {
    .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-header { font-size: 1.8rem; top: 60px; }
}
/* BADGES */
.badge-destacado { 
    background: linear-gradient(135deg, #ffd700, #ff8c00); /* Color dorado/oro */
    color: #000;
    font-weight: 800;
    position: absolute; top: 10px; right: 10px; 
    padding: 4px 10px; border-radius: 4px; 
    font-size: 0.65rem; font-weight: 800; z-index: 10; font-family: var(--font-body);
    box-shadow: 0 0 10px var(--neon-red);
}

.card.agotado { opacity: 0.5; filter: grayscale(100%); pointer-events: none; }
.badge-agotado { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); 
    color: var(--neon-red); border: 2px solid var(--neon-red); 
    padding: 8px 15px; font-weight: 900; font-size: 1rem; border-radius: 6px; z-index: 20; 
}

/* --- TOASTS --- */
#toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 400px; pointer-events: none; }
.toast { 
    background: rgba(20, 20, 20, 0.95); color: white; padding: 16px 20px; 
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border: 1px solid #333; backdrop-filter: blur(10px); 
    display: flex; align-items: center; gap: 15px; pointer-events: auto; 
    font-family: var(--font-body); font-size: 0.9rem; 
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
}
.toast.success { border-left: 4px solid var(--neon-green); }
.toast.error { border-left: 4px solid var(--neon-red); }

@keyframes slideIn { from { opacity: 0; transform: translateY(-20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }

/* --- MEDIA QUERIES (Para móviles) --- */
@media (max-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .container { padding: 15px 12px; }
    .card h3 { font-size: 1.3rem; }
} 
/* ↑↑ IMPORTANTE: Esta llave cierra el Media Query. ¡No la borres! ↑↑ */


/* =========================================
   ESTILOS DEL SHAKER VIRTUAL (Mixer IA)
   ========================================= */

/* 1. Botón Flotante (FAB) */
.fab-ia {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff0055, #ff5500); /* Color Lava */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(255, 0, 85, 0.4);
    cursor: pointer;
    z-index: 900; /* Por encima de todo */
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-ia:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 85, 0.6);
}

.fab-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* 2. Modal del Shaker */
.shaker-card {
    background: #121212; /* Fondo oscuro elegante */
    border: 1px solid #333;
    text-align: center;
    width: 90%;
    max-width: 380px;
    padding: 30px 20px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    /* Aseguramos que se centre si modal.css no lo hace */
    margin: auto; 
}

.shaker-title { 
    color: white; 
    margin-bottom: 5px; 
    font-family: var(--font-neon); 
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.shaker-subtitle { 
    color: #888; 
    font-size: 0.9rem; 
    margin-bottom: 25px; 
    font-family: var(--font-body);
}

/* 3. Grid de Ingredientes */
.essences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.essence-btn {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 5px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.essence-btn span { font-size: 1.8rem; }
.essence-btn small { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }

.essence-btn:hover { background: #252525; }

.essence-btn.selected {
    background: var(--gold, #FFD700); /* Fallback a dorado si no existe var */
    color: black;
    border-color: var(--gold, #FFD700);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 4. Animación Coctelera */
.shaker-container {
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.shaker-visual {
    width: 90px;
    height: 90px;
    background: #1e1e1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #444;
    transition: 0.3s;
    position: relative;
}

.shaker-visual .material-icons { font-size: 3.5rem; color: #555; transition: 0.3s; }

/* Estado: Listo para mezclar */
.shaker-visual.ready {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid white;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.4);
    animation: pulse 2s infinite;
}
.shaker-visual.ready .material-icons { color: white; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(255, 165, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); } }

/* Estado: Agitando */
.shaker-visual.shaking {
    animation: shake-hard 0.5s ease-in-out infinite;
    background: #ff0055; /* Rojo intenso al agitar */
    border-color: #ff0055;
}

@keyframes shake-hard {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-10deg); }
    20% { transform: translate(-3px, 0px) rotate(10deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(10deg); }
    50% { transform: translate(-1px, 2px) rotate(-10deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-10deg); }
}

.shaker-status { 
    margin-top: 15px; 
    font-size: 0.9rem; 
    color: #666; 
    font-weight: 500;
    min-height: 20px;
}


.ai-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badges de Social Proof */
.badge-trending {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

.badge-urgent {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffa502;
    color: black;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* Botón Match */
.btn-match {
    background: transparent;
    border: 1px solid #6c5ce7;
    color: #6c5ce7;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-match:hover {
    background: #6c5ce7;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Limitamos el tamaño de la foto y mantenemos proporción */
.hero-image-glow img {
    max-width: 180px; 
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--neon-cyan);
    object-fit: cover; /* Evita que la imagen se estire */
}

/* Ajustes para Móviles (Breakpoint de 768px) */
@media (max-width: 768px) {
    .hero-ai {
        flex-direction: column-reverse; /* Foto arriba, texto abajo */
        text-align: center;
        padding: 15px;
    }

    .hero-image-glow img {
        max-width: 140px; /* Más pequeña en móvil */
        margin-bottom: 10px;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }
}

/* --- MARIDAJE IA RESPONSIVE --- */
.pairing-result {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.pairing-result img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Imagen redonda tipo avatar */
    border: 2px solid var(--neon-magenta);
    object-fit: cover;
}

/* Color Frío (Bebidas) */
.neon-cold {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}
.neon-cold img { box-shadow: 0 0 20px var(--neon-cyan); }

/* Color Cálido/Fuerte (Comidas) */
.neon-warm {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}
.neon-warm img { box-shadow: 0 0 20px var(--neon-magenta); }

/* Ajuste de tamaño para que la foto no sea gigante */
.hero-image-glow img {
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hero-ai { flex-direction: column-reverse; text-align: center; }
    .hero-image-glow img { max-width: 120px; }
}

/* --- ANIMACIÓN DE ESCÁNER IA --- */
.scanner-wrapper {
    text-align: center;
    padding: 20px;
    display: none; /* Se activa con JS */
}

/* Caja del escáner */
.neon-scanner-box {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 20, 40, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Línea láser que se mueve */
.scan-line {
    width: 100%;
    height: 2px;
    background: var(--neon-magenta);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta);
    animation: scanning 1.5s linear infinite;
}

/* Rejilla decorativa de fondo */
.scan-grid {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Animación del movimiento */
@keyframes scanning {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Animación de texto parpadeante */
.blink-text {
    animation: textPulse 1s infinite alternate;
}

@keyframes textPulse {
    from { opacity: 0.6; text-shadow: 0 0 5px var(--neon-cyan); }
    to { opacity: 1; text-shadow: 0 0 15px var(--neon-cyan), 0 0 5px white; }
}

/* Clases de utilidad para mostrar/ocultar */
.match-content-hidden { display: none; }

/* ==========================================
   🍷 ESTILOS PARA LA NOTA DEL SOMMELIER (AI)
   ========================================== */

.ai-pairing-note {
    background: rgba(255, 0, 85, 0.08); /* Fondo magenta muy sutil */
    border-left: 3px solid var(--neon-magenta); /* Borde de neón a la izquierda */
    padding: 12px 16px;
    border-radius: 4px 12px 12px 4px; /* Bordes redondeados asimétricos */
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.1); /* Brillo tenue */
    animation: slideInDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    border-top: 1px solid rgba(255, 0, 85, 0.1);
}

.ai-pairing-note small {
    color: var(--neon-magenta);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.5);
}

.ai-pairing-note p {
    color: #f0f0f0;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}

/* Animación de entrada para que la nota aparezca con estilo */
@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.scanner-wrapper {
    text-align: center;
    padding: 20px;
}

.neon-scanner-box {
    width: 100%;
    height: 150px;
    border: 1px solid var(--neon-cyan);
    position: relative;
    overflow: hidden;
    background: rgba(0, 255, 255, 0.05);
    margin: 20px 0;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    position: absolute;
    box-shadow: 0 0 15px var(--neon-cyan);
    animation: scanMove 2s infinite ease-in-out;
}

@keyframes scanMove {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.blink-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

.btn-match.loading {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Animación de rotación para el icono */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.fa-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 5px;
}

.hero-ai {
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    transition: all 0.5s ease;
}

/* Tarjeta de Cristal (La caja principal) */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 35px;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* Barra superior de info (Clima y Ubicación) */
.hero-status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
}

/* Layout dividido para que no se apriete */
.hero-main-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    align-items: center;
}

/* Título Noir Gigante */
.noir-title-massive {
    font-family: 'Yellowtail', cursive;
    font-size: 2.6rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.hero-hint {
    color: #999;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.hero-hint strong {
    color: var(--neon-green);
    font-weight: 700;
}

/* Botón Estilo Píldora Neón */
.btn-neon-pill {
    background: transparent;
    border: 2px solid var(--neon-magenta);
    color: var(--neon-magenta);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-neon-pill:hover {
    background: var(--neon-magenta);
    color: white;
    box-shadow: 0 0 20px var(--neon-magenta);
}

/* Imagen con efecto de flotación */
.floating-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: floatingHero 3s ease-in-out infinite;
    border-radius: 15px;
}

@keyframes floatingHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
    .hero-glass-card { padding: 25px 20px; }
    
    .hero-main-layout {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        text-align: center;
        gap: 20px;
    }
    
    .hero-visual-side {
        order: -1; /* La foto pasa arriba del texto */
    }

    .noir-title-massive { font-size: 2rem; }
    
    .hero-status-bar {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}