/* ==========================================================================
   TU VITRINA DIGITAL — PRESTIGE DESIGN SYSTEM (style.css)
   Vanilla CSS Masterpiece • 100% Offline-Ready & Widescreen Optimized
   Designed by Antigravity IDE for TuVitrinaDigital.cl
   ========================================================================== */

/* IMPORTACIÓN DE FUENTES PREMIUM DESDE GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800&family=Cinzel:wght@700;900&family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. RESET Y CONFIGURACIÓN BASE (LOCKED VIEWPORT)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #030303;
    color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================================
   1.1 COMPATIBILIDAD OFFLINE & CAPA DE UTILIDADES (ROBUST MULTI-TENANT)
   ========================================================================== */
.hidden {
    display: none !important;
}
.opacity-0 {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}
.opacity-100 {
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}
.pointer-events-none {
    pointer-events: none !important;
}
.pointer-events-auto {
    pointer-events: auto !important;
}
.scale-95 {
    transform: scale(0.95) !important;
}
.scale-100 {
    transform: scale(1) !important;
}
.fixed {
    position: fixed !important;
}
.inset-0 {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}
.z-50 {
    z-index: 50 !important;
}
.flex {
    display: flex !important;
}
.flex-col {
    flex-direction: column !important;
}
.items-center {
    align-items: center !important;
}
.justify-center {
    justify-content: center !important;
}

/* ==========================================================================
   2. MOTOR DE TEMAS MULTI-NICHO EN TIEMPO REAL
   ========================================================================== */

/* ── 2.1 TEMA GOURMET & FIRE (Estudio Gastronómico de Lujo) ── */
body.theme-gourmet {
    background-color: #020202;
    background-image: 
        radial-gradient(circle at 65% 50%, rgba(20, 20, 20, 0.15) 0%, #020202 100%),
        url('images/bg/road.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    transition: background 0.8s ease;
}
body.theme-gourmet .studio-corona {
    background: radial-gradient(circle, rgba(251, 146, 60, 0.28) 0%, rgba(239, 68, 68, 0.12) 45%, rgba(0,0,0,0) 80%);
}
body.theme-gourmet .lens-rays {
    background: repeating-conic-gradient(from 0deg, rgba(245, 158, 11, 0.03) 0deg 6deg, transparent 6deg 16deg);
    display: block;
}
body.theme-gourmet .spark-container {
    display: block;
}
body.theme-gourmet .text-accent {
    background: linear-gradient(to bottom, #fffbeb, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.theme-gourmet .glass-badge {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.08);
    color: #fbbf24;
}

/* ── 2.2 TEMA RETAIL & MODERN (Estilo Boutique Minimalista) ── */
body.theme-retail {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #0f172a !important;
    transition: background 0.8s ease;
}
body.theme-retail .studio-corona {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%) !important;
}
body.theme-retail .lens-rays, body.theme-retail .spark-container {
    display: none !important;
}
body.theme-retail .text-accent {
    background: linear-gradient(to right, #4f46e5, #ec4899) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-retail .glass-badge {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
    color: #4f46e5 !important;
}
body.theme-retail h2, body.theme-retail p, body.theme-retail span.code-title {
    color: #0f172a !important;
}
body.theme-retail .thumbnail-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
body.theme-retail .thumbnail-card:hover {
    border-color: #4f46e5 !important;
}
body.theme-retail .bottom-carousel-bar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* ── 2.3 TEMA TOURISM & ADVENTURE (Paisajes Patagónicos Cinemáticos) ── */
body.theme-tourism {
    background-color: #080d1a !important;
    background-image: 
        linear-gradient(rgba(8, 13, 26, 0.8), rgba(8, 13, 26, 0.45)),
        url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&q=80&w=1920') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #f8fafc !important;
    transition: background 0.8s ease;
}
body.theme-tourism .studio-corona {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%) !important;
}
body.theme-tourism .lens-rays, body.theme-tourism .spark-container {
    display: none !important;
}
body.theme-tourism .text-accent {
    background: linear-gradient(to bottom, #f0f9ff, #38bdf8, #0284c7) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-tourism .glass-badge {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.1) !important;
    color: #38bdf8 !important;
}
body.theme-tourism .thumbnail-card {
    background: rgba(15, 23, 42, 0.4) !important;
}

/* ── 2.4 TEMA WELLNESS & SPA (Serenidad Zen y Armonía Orgánica) ── */
body.theme-wellness {
    background-color: #f4f6f4 !important;
    background-image: 
        linear-gradient(rgba(244, 246, 244, 0.9), rgba(244, 246, 244, 0.85)),
        url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&q=80&w=1920') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #2d3748 !important;
    transition: background 0.8s ease;
}
body.theme-wellness .studio-corona {
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%) !important;
}
body.theme-wellness .lens-rays, body.theme-wellness .spark-container {
    display: none !important;
}
body.theme-wellness .text-accent {
    background: linear-gradient(to right, #0d9488, #0f766e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-wellness .glass-badge {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(13, 148, 136, 0.15) !important;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.05) !important;
    color: #0d9488 !important;
}
body.theme-wellness h2, body.theme-wellness p, body.theme-wellness span.code-title {
    color: #2d3748 !important;
}
body.theme-wellness .thumbnail-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(13, 148, 136, 0.1) !important;
}
body.theme-wellness .bottom-carousel-bar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(13, 148, 136, 0.1) !important;
}

/* ==========================================================================
   3. ARQUITECTURA DE CONTENEDORES (CENTERED GOURMET WIDESCREEN)
   ========================================================================== */
.app-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    padding: 1rem; /* Reducido de 1.5rem para optimizar espacio */
}

/* CABECERA (Logo centrado arriba integrado en el flex vertical) */
.main-header {
    position: relative; /* Cambiado a relative para alinearse en el flujo y no solapar */
    width: 100%;
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.main-header img {
    height: 5.5rem; /* Ajustado para una proporción gourmet refinada */
    max-height: 10vh;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.65));
    transition: transform 0.3s ease;
}

/* MAIN PRODUCT SHOWCASE (CENTRO PANTALLA) */
.main-showcase {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0; /* Eliminado margin desmedido */
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.floating-burger-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Escalado 20% más grande (de 800px a 960px) para máxima imponencia visual */
    height: 58vh; /* Escalado 20% más grande (de 48vh a 58vh) para una presencia colosal parrillera */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-majestic 8.5s ease-in-out infinite;
}

.main-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 35px 50px rgba(0,0,0,0.95)) drop-shadow(0 0 45px rgba(245, 158, 11, 0.25));
    transition: all 0.5s ease-in-out;
}

/* PLACA IZQUIERDA: CÓDIGO (B1, S1) */
.product-code-plate {
    position: absolute;
    top: 5%; /* Subido al 5% para mejor balance visual */
    left: -2%; /* Acercado al borde del contenedor */
    z-index: 25;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 2.2rem; /* Más ancho */
    border-radius: 26px; /* Bordes más pronunciados para el tamaño gigante */
    font-size: 3.8rem; /* ¡BIEN GRANDE! De 2.2rem a 3.8rem */
    font-weight: 900;
    letter-spacing: 0.12em;
    font-family: 'Syne', sans-serif;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transform: rotate(-3deg);
    transition: all 0.3s ease;
}

/* PLACA DERECHA: ETIQUETA (MÁS PEDIDA, NUEVO) */
.product-tag-sticker {
    position: absolute;
    top: 5%; /* Subido al 5% para mejor balance visual */
    right: -2%; /* Acercado al borde del contenedor */
    z-index: 25;
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 1.6rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transform: rotate(3deg);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* TIMER OFERTAS FLASH FLOTANTE CENTRADO */
.countdown-pill {
    position: absolute;
    bottom: -10%;
    z-index: 25;
    background: linear-gradient(135deg, #7f1c1d 0%, #dc2626 50%, #7f1c1d 100%);
    border: 2px solid #f59e0b; /* Borde dorado premium más delgado */
    padding: 0.35rem 0.9rem; /* Padding más compacto */
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.72rem; /* Texto más elegante y pequeño */
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.65), 
                0 0 8px rgba(245, 158, 11, 0.35),
                inset 0 0 8px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; /* Distancia menor */
    animation: gold-glow-pulse 1.8s infinite alternate ease-in-out;
    transform: scale(1.05);
    font-family: 'Syne', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.countdown-timer-span {
    background: #000000;
    color: #f59e0b; /* Timer digital dorado */
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.15rem 0.5rem; /* Padding digital más compacto */
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.9rem; /* Timer mucho más pequeño y refinado */
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
    box-shadow: inset 0 0 5px rgba(245, 158, 11, 0.3), 
                0 0 6px rgba(245, 158, 11, 0.6);
    text-shadow: 0 0 3px rgba(245, 158, 11, 0.8);
}

.studio-corona {
    position: absolute;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(25px);
}

.lens-rays {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    transform-origin: center center;
    animation: rotate-sunburst 90s linear infinite;
}

/* ==========================================================================
   4. PIE DE PÁGINA (CENTERED INFO + SIDE CAROUSELS)
   ========================================================================== */
.footer-container {
    width: 90vw;
    margin: 0 auto 0.2rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem; /* Reducido para evitar desbordes */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 40;
}

.thumbnail-group {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    width: 26%;
}
.thumbnail-group.align-right {
    justify-content: flex-end;
}

.thumbnail-card {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    width: 95px; /* Ligeramente más compacto para mayor balance */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.thumbnail-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}
.thumbnail-card img {
    height: 85%;
    width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.5));
}

/* BLOQUE CENTRAL DE TEXTO GOURMET */
.center-info-block {
    width: 46%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2rem; /* Reducido para mejor control vertical */
}

.product-title {
    font-size: 2.2rem; /* Ajustado para perfectas proporciones y no romper palabras */
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: 'Syne', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 10px 20px rgba(0,0,0,0.55);
}

.product-price-plate {
    font-size: 3rem; /* Ajustado de 3.5rem a 3rem */
    font-weight: 800;
    letter-spacing: -0.01em;
    font-family: 'Outfit', sans-serif;
    margin: -0.1rem 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.45);
}

.product-description {
    font-size: 0.88rem; /* Ajustado para óptimo legibilidad y consistencia */
    line-height: 1.4;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.95;
    max-w: 95%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================================================
   5. SISTEMAS DE ANIMACIÓN Y CAPAS CINEMÁTICAS
   ========================================================================== */

/* SPARK BRASAS GENERADOR */
.spark-container {
    position: absolute;
    width: 120%;
    height: 120%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.spark {
    position: absolute;
    bottom: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffb03a 15%, #ff4500 70%, rgba(255,69,0,0) 100%);
    box-shadow: 0 0 8px 2px rgba(255, 140, 0, 0.8), 0 0 16px 4px rgba(255, 69, 0, 0.4);
    animation: spark-rise var(--dur) cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    animation-delay: var(--delay);
    left: var(--left);
    --drift: 0px;
}

/* ANIMACIONES CLAVE NATIVAS */
@keyframes rotate-sunburst {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-majestic {
    0%, 100% { transform: translateY(0px) rotate(-0.5deg) scale(1); }
    50% { transform: translateY(-10px) rotate(0.5deg) scale(1.018); }
}

@keyframes spark-rise {
    0% {
        transform: translateY(60px) translateX(0) scale(0.3);
        opacity: 0;
    }
    15% { opacity: 1; }
    85% { opacity: 0.9; }
    100% {
        transform: translateY(-240px) translateX(var(--drift)) scale(1.3) rotate(220deg);
        opacity: 0;
    }
}

@keyframes alert-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15); }
    50% { opacity: 0.9; box-shadow: 0 10px 35px rgba(239, 68, 68, 0.35); }
}

@keyframes gold-glow-pulse {
    0% {
        transform: scale(1.05) translateY(0);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.6), 0 0 10px rgba(245, 158, 11, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 0 32px rgba(239, 68, 68, 0.95), 0 0 22px rgba(245, 158, 11, 0.8), inset 0 0 12px rgba(0, 0, 0, 0.5);
    }
}

/* TRANSICIONES CINEMÁTICAS VERTICALES (CONTROLADOR JS - SOPORTA RANDOMLY & NEGATIVE VECTORS) */
.card-transition-out {
    opacity: 0;
    transform: translate3d(var(--out-x, 0px), var(--out-y, 300px), 0) scale(var(--out-scale, 0.8)) rotate(var(--out-rotate, -3deg)) !important;
    filter: blur(10px);
    transition: all 0.55s cubic-bezier(0.3, 0.8, 0.4, 1) !important;
    animation: none !important; /* Detener flotación para evitar conflictos visuales */
}
.card-transition-in-start {
    opacity: 0 !important;
    transform: translate3d(var(--in-x, 0px), var(--in-y, -350px), 0) scale(var(--in-scale, 0.8)) rotate(var(--in-rotate, 4deg)) !important;
    filter: blur(15px) !important;
    transition: none !important;
    animation: none !important;
}
.card-transition-in-end {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg) !important;
    filter: blur(0px) !important;
    transition: all 0.95s cubic-bezier(0.34, 1.56, 0.5, 1.12) !important;
    animation: none !important;
}

/* ==========================================================================
   6. OVERLAYS DE ACCIONAMIENTO DE ALTA GAMA
   ========================================================================== */

/* ALERTA RELÁMPAGO (#alert-overlay) */
.overlay-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(2, 2, 4, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
}
.overlay-fullscreen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.alert-prestige-card {
    position: relative;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 4rem 5rem;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 15, 18, 0.7);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.6),
        inset 0 1px 2px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.alert-pill {
    align-self: center;
    background: #fbbf24;
    color: #000000;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
}
.alert-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    font-family: 'Syne', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
}
.alert-message-text {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}
.alert-footer-note {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #64748b;
    text-transform: uppercase;
}

/* ==========================================================================
   7. PANEL DE SIMULACIÓN Y DESARROLLO (COLLAPSIBLE)
   ========================================================================== */
.dev-sim-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 1.2rem;
    width: 320px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(280px);
    opacity: 0.6;
}
.dev-sim-panel:hover {
    transform: translateY(0);
    opacity: 1;
}
.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-b: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
}
.sim-header h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sim-header span {
    background: #fbbf24;
    color: #000000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}
.sim-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.sim-section:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.8rem;
}
.sim-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sim-input {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: #ffffff;
    font-size: 0.75rem;
    width: 100%;
}
.sim-input:focus {
    outline: none;
    border-color: #fbbf24;
}
.sim-btn {
    background: #d97706;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}
.sim-btn:hover {
    background: #fbbf24;
    color: #000000;
}
.sim-btn-alert {
    background: #b91c1c;
}
.sim-btn-alert:hover {
    background: #ef4444;
    color: #ffffff;
}
.sim-row {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   8. PORTAL DE BIENVENIDA / INTERACCIÓN INICIAL
   ========================================================================== */
.welcome-portal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 2, 4, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}
.welcome-card {
    position: relative;
    max-width: 580px;
    width: 100%;
    text-align: center;
    padding: 4rem 3rem;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 15, 18, 0.5);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.welcome-card img {
    height: 7rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.welcome-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    font-family: 'Syne', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
}
.welcome-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    max-w: 80%;
    margin: 0 auto;
}
.welcome-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.25);
    animation: alert-pulse 1.8s infinite;
}

/* ==========================================================================
   9. GLASS BADGE MODIFIERS FOR BRANDING TAGS
   ========================================================================== */
.glass-badge-gold {
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15) !important;
}
.glass-badge-red {
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15) !important;
}
.glass-badge-green {
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15) !important;
}

/* ==========================================================================
   10. PORTAL DE CARTA GOURMET OVERLAY
   ========================================================================== */
.menu-prestige-card {
    position: relative;
    max-width: 1100px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3.5rem 3rem;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8, 8, 10, 0.95);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.6),
        inset 0 1px 2px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.menu-header-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.menu-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-close-btn:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    transform: scale(1.05);
}
.menu-close-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}
.menu-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
}

/* ==========================================================================
   11. DYNAMIC PORTRAIT RESPONSIVENESS (Vertical Screens & Portrait TVs)
   ========================================================================== */
@media (orientation: portrait), (max-width: 900px) {
    /* Optimizar el contenedor principal de la App */
    .app-container {
        height: 100vh;
        width: 100vw;
        padding: 2.5rem 1.2rem 1.2rem 1.2rem;
        justify-content: space-between;
    }

    /* Cabecera compacta */
    .main-header {
        margin-bottom: 0.8rem;
    }
    .main-header img {
        height: 6.5rem;
        max-height: 11vh;
    }

    /* Ajustar el escaparate central del producto */
    .main-showcase {
        height: 48vh;
        flex-grow: 1;
    }
    .floating-burger-wrapper {
        width: 95vw;
        max-width: 100%;
        height: 40vh;
    }
    .main-hero-image {
        max-height: 90%;
        object-fit: contain;
    }

    /* Reposicionar los stickers / placas laterales de forma vertical para que no se desborden */
    .product-code-plate {
        top: 2%;
        left: 2%;
        font-size: 2rem; /* ¡BIEN GRANDE en portrait también! */
        padding: 0.6rem 1.4rem;
        border-radius: 16px;
    }
    .product-tag-sticker {
        top: 2%;
        right: 2%;
        font-size: 0.75rem;
        padding: 0.5rem 1.1rem;
    }
    .countdown-pill {
        bottom: -2%;
        font-size: 0.6rem;
        padding: 0.25rem 0.7rem;
        gap: 0.3rem;
    }
    .countdown-timer-span {
        font-size: 0.72rem !important;
        padding: 0.1rem 0.35rem !important;
    }

    /* Rediseñar completamente el pie de página para portrait */
    .footer-container {
        width: 100%;
        display: flex !important;
        flex-direction: row !important; /* Fila con envoltura para juntar ambas columnas de miniaturas */
        flex-wrap: wrap !important;
        align-items: center;
        justify-content: center !important;
        gap: 0.5rem 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
        margin-bottom: 0.5rem;
    }

    /* El bloque de información central pasa a ser el centro del diseño vertical */
    .center-info-block {
        width: 100% !important;
        text-align: center !important;
        order: 1; /* Nombre, Precio y Desc arriba de las miniaturas */
        margin-bottom: 0.2rem;
    }
    .product-title {
        font-size: 2.2rem !important;
        margin-bottom: 0.25rem;
    }
    .product-price-plate {
        font-size: 2rem !important;
        margin-bottom: 0.4rem;
        display: inline-block;
    }
    .product-description {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        max-width: 90vw !important;
        margin: 0 auto;
    }

    /* Las miniaturas se unen en una sola fila horizontal al fondo */
    .thumbnail-group {
        width: auto !important; /* Cambiado a auto para que compartan la misma fila */
        display: flex !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        order: 2; /* Ambas cajas de miniaturas fluyen al fondo juntas */
    }
    .thumbnail-group.align-right {
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
        order: 3;
    }
    .thumbnail-card {
        width: 75px !important;
        height: 60px !important;
        border-radius: 12px !important;
    }

    /* Ajustes responsivos para Overlays de Alertas en Modo Vertical / Portrait */
    .alert-prestige-card {
        padding: 3rem 2rem !important;
        max-width: 90% !important;
        gap: 1.5rem !important;
        border-radius: 28px !important;
        box-shadow: 
            0 20px 50px rgba(0,0,0,0.8),
            0 0 40px rgba(251, 191, 36, 0.15) !important;
    }
    .alert-title {
        font-size: 4rem !important; /* Más masivo, gigante y llamativo */
        line-height: 0.95 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 0.5rem !important;
        font-weight: 900 !important;
        /* Efecto destello neon premium */
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(251, 191, 36, 0.3) !important;
    }
    .alert-message-text {
        font-size: 1.9rem !important;
        line-height: 1.3 !important;
    }
}
