﻿/* ====================================================
    GASTRONODE LANDING PAGE STYLES - APPLE BENTO STYLE
===================================================== */

:root {
    --gastro-bg: #000000;
    --gastro-card-bg: #1c1c1e;
    --gastro-card-hover: #2c2c2e;
    --gastro-text-primary: #f5f5f7;
    --gastro-text-secondary: #86868b;
    --gastro-accent: #2997ff;
    --gastro-accent-hover: #147ce5;
    --gastro-border-radius: 40px;
    --gastro-border-radius-sm: 28px;
    --gastro-spacing: 32px;
}

body.gastronode-page {
    background-color: var(--gastro-bg);
    color: var(--gastro-text-primary);
    font-family: 'Inter', 'Poppins', sans-serif;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* Typography Adjustments */
.gastronode-page h1,
.gastronode-page h2,
.gastronode-page h3,
.gastronode-page h4 {
    letter-spacing: -0.02em;
}

/* ====================================================
    HERO SECTION
===================================================== */
.hero-gastro {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 4rem) 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--gastro-bg);
    margin-bottom: 0px;
    padding-bottom: 0px;
}

/* Pseudo-elemento para el degradado azul superior, para que quede sobre el video */
.hero-gastro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(41, 151, 255, 0.25), transparent 70%);
    z-index: 5;
    pointer-events: none;
}

/* Video del hero — contenedor en flujo, debajo del botón */
.hero-video-wrapper {
    z-index: 1;
    top: -10rem;
    width: 150%;
    overflow: hidden;
    position: relative;
}

.hero-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-video-wrapper {
        width: 100vw;
        max-width: none;
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
        border: none;
        position: relative;
        left: 0;
        top: 0;
    }

    .hero-video-wrapper video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.1), transparent 70%);
    filter: blur(80px);
    z-index: 5;
    /* encima del video */
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08), transparent 70%);
    filter: blur(80px);
    z-index: 5;
    /* encima del video */
    pointer-events: none;
}

.hero-gastro-content {
    max-width: 900px;
    z-index: auto;
    /* Quitamos el contexto de apilamiento para que el video baje del todo */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-gastro-title,
.hero-gastro-subtitle,
.hero-actions {
    position: relative;
    z-index: 10;
    /* Aseguramos que el texto esté sobre los brillos */
}

.hero-gastro-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-gastro-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gastro-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.4;
}

.hero-actions {
    position: relative;
    z-index: 10;
}

.gastro-btn {
    background-color: var(--gastro-text-primary);
    color: var(--gastro-bg);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.gastro-btn:hover {
    transform: scale(1.05);
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* .hero-media-wrapper eliminado — reemplazado por .hero-bg-video */

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gastro-text-secondary);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ====================================================
    BENTO GRID (Features)
===================================================== */
.bento-section {
    padding: 6rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    margin-top: 0px;
    padding-top: 0px;
}

.bento-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.12), transparent 70%);
    filter: blur(120px);
    top: 10%;
    left: 10%;
    z-index: -1;
    pointer-events: none;
    animation: floatingGlow 15s infinite alternate ease-in-out;
}

.bento-glow-2 {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08), transparent 70%);
    filter: blur(100px);
    bottom: 10%;
    right: 5%;
    z-index: -1;
    pointer-events: none;
    animation: floatingGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatingGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    100% {
        transform: translate(20px, 20px) scale(1);
    }
}

.bento-header {
    text-align: center;
    margin-bottom: 4rem;
}

.bento-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: var(--gastro-spacing);
}

.bento-card {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gastro-border-radius);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.bento-card:hover {
    transform: translateY(-10px);
    background: rgba(44, 44, 46, 0.8);
    border-color: rgba(41, 151, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.bento-card.card-wide.custom-design-card {
    padding-bottom: 0;
    overflow: hidden;
}

.custom-design-card p {
    max-width: 600px;
}

/* Custom Carousel Styles */
.menu-carousel-wrapper {
    margin-top: 2rem;
    width: calc(100% + 6rem);
    margin-left: -3rem;
    height: 200px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% + 800px));
    }
}

.menu-carousel-track {
    display: flex;
    gap: -40px;
    padding: 25px 0 45px 0;
    width: max-content;
    animation: scrollTrack 18s ease-in-out infinite alternate;
    will-change: transform;
}

/* Mini Menu Card Styles */
.mini-menu-card {
    width: 160px;
    height: 190px;
    margin-right: -30px;
    /* Increase overlap */
    transform: rotate(var(--card-rotation, 0deg));
    z-index: 1;
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    color: #333;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, z-index 0s;
    position: relative;
}

.mini-menu-card:hover {
    transform: scale(1.1) translateY(-10px) rotate(0deg);
    z-index: 100;
}

.mini-menu-card:nth-child(odd) {
    --card-rotation: -2deg;
    margin-top: 10px;
}

.mini-menu-card:nth-child(even) {
    --card-rotation: 1.5deg;
    margin-top: -5px;
}

.mini-menu-card:nth-child(3n) {
    --card-rotation: 2.5deg;
    z-index: 2;
}

.mini-img {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

.mini-title {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mini-desc {
    font-size: 0.5rem;
    opacity: 0.7;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-price {
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: auto;
}

.mini-allergens {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.mini-allergen {
    width: 10px;
    height: 10px;
    opacity: 0.8;
}

/* Card Variants */
/* Card Variants & Positioning Variability */
.style-modern {
    font-family: 'Inter', sans-serif;
}

/* Elegant: Price Top & Floating */
.style-elegant {
    background: #1a1a1a;
    color: #d4af37;
    border: 1px solid #d4af37;
    font-family: 'Georgia', serif;
    padding-top: 35px;
}

.style-elegant .mini-price {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
}

/* Minimal: Image Bottom */
.style-minimal {
    background: #fff;
    border-radius: 0;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    border: 1px solid #000;
}

.style-minimal .mini-img {
    order: 3;
    margin-top: 8px;
    margin-bottom: 0;
    filter: grayscale(1);
    border-radius: 0;
}

/* Vibrant: Overlay text on image */
.style-vibrant {
    background: #ffec00;
    color: #000;
    padding: 0;
    overflow: hidden;
}

.style-vibrant .mini-img {
    height: 90px;
    margin: 0;
    border-radius: 0;
}

.style-vibrant .mini-content-wrap {
    padding: 10px;
    position: relative;
}

.style-vibrant .mini-title {
    position: absolute;
    top: -20px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.65rem;
}

/* Dark Pro: Accent border & Bottom Price */
.style-dark-pro {
    background: #000;
    color: #fff;
    border-radius: 20px;
    border: 1px solid #333;
}

.style-dark-pro .mini-title {
    color: var(--gastro-accent);
}

.style-dark-pro .mini-price {
    text-align: right;
    width: 100%;
    border-top: 1px solid #333;
    padding-top: 5px;
}

/* Nordic: Title Overlay Top */
.style-nordic {
    background: #fff;
    color: #111;
    font-family: 'Outfit', sans-serif;
    padding: 12px;
}

.style-nordic .mini-title {
    order: -1;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 2px;
    line-height: 1;
    border-bottom: 4px solid #111;
    padding-bottom: 4px;
}

.style-nordic .mini-img {
    height: 50px;
    margin: 5px 0;
}

.style-nordic .mini-price {
    font-size: 1rem;
    font-weight: 900;
    margin-top: 5px;
}

/* Chef Badge Animation */
.chef-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4757;
    color: white;
    font-size: 0.5rem;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 900;
    white-space: nowrap;
    animation: badgeFloat 2.5s infinite ease-in-out;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    z-index: 10;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -8px);
    }
}

/* Scanning Effect for AI suggestion */
.scanning-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gastro-accent);
    box-shadow: 0 0 20px var(--gastro-accent), 0 0 40px var(--gastro-accent);
    animation: scanLine 3s infinite linear;
    z-index: 5;
    opacity: 0.7;
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.style-ai-picked {
    background: #0a0a0a;
    color: #fff;
    border: 2px solid var(--gastro-accent);
}

.style-ai-picked .mini-title {
    color: var(--gastro-accent);
    font-weight: 800;
}

.style-ai-picked .mini-desc {
    opacity: 0.6;
}

/* AI Suggestion: Subtle Nam Avatar pulse */
.nam-ai-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: url('./asistente.webp') no-repeat center center;
    background-size: cover;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px var(--gastro-accent);
}

.nam-ai-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gastro-accent);
    animation: namPulse 2s infinite ease-out;
}

@keyframes namPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Vibrancy card improvements (Tacos/Pineapple) */
.style-vibrant {
    background: #ffec00;
    color: #000;
    padding: 0;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.style-vibrant .mini-img {
    height: 80px;
    margin: 0;
    border-radius: 0;
}

.style-vibrant .mini-content-wrap {
    padding: 8px;
    text-align: left;
}

.style-vibrant .mini-title {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    background: #000;
    color: #ffec00;
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 5px;
    position: relative;
    top: -15px;
}

.style-vibrant .mini-desc {
    font-weight: 600;
    margin-top: -10px;
}





.bento-card.has-full-canvas .card-content {
    padding: 3rem;
    position: relative;
    z-index: 10;
    pointer-events: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    /* Bajarlo un poco */
}

.bento-card.has-full-canvas .bento-icon,
.bento-card.has-full-canvas h3,
.bento-card.has-full-canvas p {
    margin-bottom: 1rem;
    pointer-events: auto;
}


.bento-card:hover {
    transform: scale(1.02);
    background-color: var(--gastro-card-hover);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    z-index: 2;
}

.bento-card p {
    color: var(--gastro-text-secondary);
    line-height: 1.5;
    z-index: 2;
}

.bento-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2997ff, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Specific Card Sizings */
/* Toggle Animation for Control Total */
/* Custom Toggle Component */
.custom-toggle {
    width: 65px;
    height: 36px;
    background-color: var(--gastro-accent);
    border-radius: 20px;
    position: relative;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    display: inline-block;
}

.custom-toggle .toggle-knob {
    width: 28px;
    height: 28px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-toggle.inactive {
    background-color: #ff3b30;
}

.custom-toggle.inactive .toggle-knob {
    transform: translateX(29px);
}

.bento-card.is-inactive {
    background-color: #2c1a1a;
}

.bento-card.is-inactive h3,
.bento-card.is-inactive p {
    opacity: 0.6;
}

/* Automation Vibe for Control Total */
.automation-vibe {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--gastro-border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.automation-vibe::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08) 0%, transparent 70%);
    animation: ambientLight 12s infinite linear reverse;
    pointer-events: none;
}


.time-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

#autoTime {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gastro-accent);
}

.shift-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: all 0.5s ease;
}

.mini-inventory {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.item-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

.item-status i {
    font-size: 1rem;
    transition: all 0.5s ease;
}


.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

/* QR & Stats Animations */
.qr-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.custom-qr {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}

.qr-dot {
    width: 100%;
    height: 100%;
    background-color: var(--gastro-accent);
    border-radius: 1px;
    opacity: 0.4;
    /* Base opacity lower for better contrast */
}

.qr-dot.blink {
    animation: qrBlink var(--blink-duration, 2s) infinite ease-in-out;
    animation-delay: var(--blink-delay, 0s);
}


/* Finder patterns: 3x3 squares in corners */
.qr-finder-pattern {
    grid-column: span 3;
    grid-row: span 3;
    border: 2px solid var(--gastro-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    position: relative;
    padding: 2px;
}


.qr-finder-pattern::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--gastro-accent);
    border-radius: 1px;
}



@keyframes qrBlink {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: brightness(1.5);
    }
}

.qr-stats-vibe {
    margin-top: auto;
    width: 100%;
    padding-top: 1rem;
}

.scans-counter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gastro-accent);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    display: block;
}

.live-graph {
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

/* Smart Dishes Interactions */
.smart-dish-preview {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--gastro-border-radius-sm);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.smart-dish-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.1) 0%, transparent 70%);
    animation: ambientLight 8s infinite linear;
    pointer-events: none;
}

@keyframes ambientLight {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.dish-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.dish-alert {
    font-size: 0.6rem;
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 20px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.dish-alert.pulsing {
    animation: alertPulse 2s infinite ease-in-out;
}

.config-slider-wrap {
    width: 100%;
    position: relative;
    z-index: 1;
}

.config-slider {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    margin: 0.8rem 0;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gastro-accent);
    border-radius: 4px;
    width: 20%;
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: width;
}

.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    left: 20%;
    transition: left 1s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 15px rgba(41, 151, 255, 0.4);
    will-change: left;
}

.config-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 500;
}

@keyframes alertPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(239, 68, 68, 0);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    }
}


.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--gastro-accent), transparent);
    border-radius: 2px 2px 0 0;
    height: 20%;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 4px 8px;
    background: rgba(41, 151, 255, 0.1);
    border: 1px solid rgba(41, 151, 255, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gastro-accent);
    animation: fadeSlide 4s infinite;
}

@keyframes fadeSlide {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }
}


#allergensCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    contain: strict;
    /* isolates layout/paint to this element */
}



.square-media {
    aspect-ratio: 1 / 1;
    height: auto !important;
}

.immersion-container {
    margin-top: 2rem;
    width: 100%;
    flex: 1;
    min-height: 500px;
    border-radius: var(--gastro-border-radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.immersion-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Slider Styles */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--gastro-border-radius-sm);
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-btn i {
    font-size: 0.8rem;
}


/* ====================================================
    CONOCE A ÑAM (AI SECTION)
===================================================== */
.nam-section {
    padding: 8rem 1rem;
    background: linear-gradient(to bottom, var(--gastro-bg), #0f172a, var(--gastro-bg));
    position: relative;
}

.nam-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nam-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 50%;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 0 40px rgba(0, 198, 255, 0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.nam-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.ai-text {
    background: linear-gradient(75deg,
            #4285f4 0%,
            #9b51e0 25%,
            #e94263 50%,
            #9b51e0 75%,
            #4285f4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ai-shimmer 4s linear infinite;
    font-weight: 700;
}

@keyframes ai-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}


.nam-features {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nam-feature {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 28px;
    width: 360px;
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes throb {

    0%,
    30%,
    100% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    15% {
        transform: scale(1.05);
        border-color: var(--gastro-accent);
        box-shadow: 0 15px 35px rgba(0, 198, 255, 0.3);
    }
}

.nam-feature:nth-child(1) {
    animation: slideUpFade 0.8s ease-out forwards, throb 4s infinite ease-in-out 1.5s;
    animation-delay: 0.2s, 1.5s;
}

.nam-feature:nth-child(2) {
    animation: slideUpFade 0.8s ease-out forwards, throb 4s infinite ease-in-out 2.8s;
    animation-delay: 0.4s, 2.8s;
}

.nam-feature:nth-child(3) {
    animation: slideUpFade 0.8s ease-out forwards, throb 4s infinite ease-in-out 4.1s;
    animation-delay: 0.6s, 4.1s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nam-feature:hover {
    transform: translateY(-15px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--gastro-accent);
    box-shadow: 0 20px 40px rgba(0, 198, 255, 0.2);
}

.nam-feature i {
    font-size: 3rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.nam-feature h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Allergens Canvas Styles */
#allergensCanvas {
    cursor: none;
    width: 100%;
    height: 100%;
}

#allergensContainer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* ====================================================
    FAQ SECTION (SEO & AI Optimized)
===================================================== */
.gastro-faq-section {
    padding: 6rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-header p {
    color: var(--gastro-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gastro-border-radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(44, 44, 46, 0.8);
    border-color: rgba(41, 151, 255, 0.3);
}

.faq-item.active {
    border-color: var(--gastro-accent);
    box-shadow: 0 10px 30px rgba(41, 151, 255, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gastro-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--gastro-accent);
}

.faq-icon {
    font-size: 1rem;
    color: var(--gastro-accent);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1), padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 2rem;
}

.faq-answer p {
    color: var(--gastro-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.faq-answer strong {
    color: var(--gastro-text-primary);
    font-weight: 700;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 2rem 1.5rem 2rem;
    opacity: 1;
}

/* ====================================================
    SOCIAL PROOF
===================================================== */
.social-proof {
    padding: 6rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.proof-card {
    background: linear-gradient(135deg, var(--gastro-card-bg) 0%, #202024 100%);
    border-radius: var(--gastro-border-radius);
    padding: 4rem 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.proof-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--gastro-accent);
    margin-bottom: 0.5rem;
}

.stat-item h4 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gastro-accent);
    margin: 0;
}

.proof-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gastro-text-primary);
    font-weight: 300;
    font-style: italic;
}

/* ====================================================
    CTA / PRICING
===================================================== */
.cta-gastro {
    padding: 8rem 1rem;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--gastro-bg) 70%);
}

.cta-price {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.cta-price span {
    font-size: 1.5rem;
    color: var(--gastro-text-secondary);
    font-weight: 400;
    letter-spacing: normal;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background-color: transparent;
    border: 2px solid var(--gastro-text-primary);
    color: var(--gastro-text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.btn-email:hover {
    background-color: var(--gastro-text-primary);
    color: var(--gastro-bg);
}

/* Groups Card Decoration */
.groups-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--gastro-border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.groups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.table-id {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gastro-accent);
}

.total-price {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: slideInItem 0.4s ease-out forwards;
}

@keyframes slideInItem {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.qty-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--gastro-accent);
    border: 1px solid rgba(41, 151, 255, 0.2);
    transition: all 0.3s ease;
}

.qty-pill.bump {
    transform: scale(1.3);
    background: var(--gastro-accent);
    color: white;
}

.item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-price {
    font-family: monospace;
    opacity: 0.8;
}

.item-min-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    font-weight: 800;
    white-space: nowrap;
}

.item-min-badge.met {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.group-stats-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pulse-blue {
    animation: textPulse 2s infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* SEO Map Animation Styles */
.seo-card {
    position: relative;
    overflow: hidden;
    display: block;
    /* Volver a block para que el contenido no se divida en flex */
}

.seo-content {
    position: relative;
    z-index: 3;
    max-width: 50%;
    /* Mantener el texto a un lado para no tapar el pin central */
    pointer-events: none;
}

.map-animation-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    z-index: 1;
    opacity: 0.6;
    /* Un poco más sutil al ser fondo */
}

.map-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    stroke-linecap: round;
}

.road {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 15;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawRoad 10s infinite ease-in-out;
}

.road-h {
    stroke-dasharray: 400;
}

.road-v {
    stroke-dasharray: 300;
}

@keyframes drawRoad {

    0%,
    5% {
        stroke-dashoffset: 400;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    30%,
    85% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    95%,
    100% {
        opacity: 0;
    }
}

.building {
    fill: rgba(255, 255, 255, 0.02);
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
    opacity: 0;
    transform-origin: center;
    animation: fadeInBuilding 10s infinite ease-in-out;
}

.building-target {
    fill: rgba(41, 151, 255, 0.05);
    stroke: var(--gastro-accent);
    stroke-width: 2;
    opacity: 0;
    transform-origin: center;
    animation: fadeInBuilding 10s infinite ease-in-out;
    animation-delay: 0.5s;
}

@keyframes fadeInBuilding {

    0%,
    30% {
        opacity: 0;
        transform: scale(0.95);
    }

    40%,
    85% {
        opacity: 1;
        transform: scale(1);
    }

    95%,
    100% {
        opacity: 0;
    }
}

.map-pin {
    opacity: 0;
    transform-origin: 175px 160px;
    animation: pinDrop 10s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pinDrop {

    0%,
    50% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }

    55%,
    85% {
        opacity: 1;
        transform: translateY(0) scale(1.2);
    }

    95%,
    100% {
        opacity: 0;
    }
}

.pin-head {
    fill: #ff3b30;
    stroke: #fff;
    stroke-width: 2;
}

.pin-point {
    stroke: #ff3b30;
    stroke-width: 3;
}

.pin-pulse {
    fill: #ff3b30;
    opacity: 0;
    transform-origin: 175px 140px;
    animation: pinRipple 2.5s infinite ease-out;
}

@keyframes pinRipple {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    55% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Reducir altura de tarjetas inferiores - Recuperando tamaño equilibrado */
#seoCard,
#allergensCard,
#smartDishCard {
    min-height: 220px;
    height: auto;
    padding: 2rem;
}

.pin-head {
    fill: #ff3b30;
    stroke: #fff;
    stroke-width: 2;
}

.pin-point {
    stroke: #ff3b30;
    stroke-width: 3;
}

.pin-pulse {
    fill: #ff3b30;
    opacity: 0;
    transform-origin: 350px 140px;
    animation: pinRipple 2.5s infinite ease-out;
}

/* Smart Dish Preview Styles */
.smart-dish-preview {
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.dish-name {
    font-size: 0.65rem;
    font-weight: 800;
}

.dish-alert {
    font-size: 0.55rem;
    background: rgba(255, 71, 87, 0.1);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.config-slider-wrap {
    margin: 8px 0;
}

.config-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    font-weight: 700;
    opacity: 0.6;
}



@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large,
    .card-wide {
        grid-column: 1;
    }

    .bento-card {
        padding: 2rem;
    }

    .hero-gastro-title {
        font-size: 3.5rem;
    }
}

.cta-disclaimer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--gastro-text-secondary);
    opacity: 0.7;
    font-weight: 400;
}

/* Espaciado extra solicitado entre texto y contenido (caruseles, imagenes, vídeos) */
.bento-card .menu-carousel-wrapper,
.bento-card .media-container {
    margin-top: 2.5rem !important;
}