/* ==========================================================================
   MISSION DINNER PROTOCOL - MOBILE-FIRST DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-main: #090B0E;
    --bg-surface: #10141D;
    --bg-elevated: #161B26;
    --bg-card: rgba(18, 23, 33, 0.85);

    /* Claude Code Warm Palette */
    --c-terracotta: #E06C54;
    --c-terracotta-bright: #F27A59;
    --c-amber: #F59E0B;
    --c-gold: #FBBF24;
    --c-peach: #FFD2C2;
    --c-danger: #EF4444;

    /* Syntax Colors */
    --syn-cyan: #85D8CE;
    --syn-purple: #C084FC;
    --syn-green: #4ADE80;
    --syn-blue: #60A5FA;

    /* Typography */
    --font-display: 'Syne', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Borders & Glow */
    --border-subtle: rgba(224, 108, 84, 0.16);
    --border-accent: rgba(224, 108, 84, 0.38);
    --border-bright: rgba(242, 122, 89, 0.7);
    --glow-warm: 0 0 24px rgba(224, 108, 84, 0.28);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: #F8FAFC;
    font-family: var(--font-body);
    font-size: 15px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   FASE 0: PÁGINA INOCENTE DE CAMUFLAJE (RECETAS VEGANAS PROTEICAS)
   ========================================================================== */
.camouflage-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B0E14;
    color: #E2E8F0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.camo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #94A3B8;
}

.camo-logo {
    color: var(--c-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.camo-article {
    max-width: 660px;
    margin: 22px auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.camo-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #4ADE80;
    letter-spacing: 0.06em;
}

.camo-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 5vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    color: #FFFFFF;
}

.camo-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94A3B8;
}

.camo-card-preview {
    margin-top: 10px;
    background: linear-gradient(145deg, rgba(224, 108, 84, 0.08) 0%, rgba(20, 26, 38, 0.9) 100%);
    border: 1px solid rgba(224, 108, 84, 0.25);
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.camo-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.camo-pill {
    padding: 4px 10px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #4ADE80;
    font-weight: 600;
}

.camo-pill.gold {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

.camo-recipe-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFF2EB;
    line-height: 1.35;
}

.camo-recipe-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #CBD5E1;
}

.camo-continue-btn {
    margin-top: 6px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-gold) 100%);
    border: none;
    border-radius: 10px;
    color: #0A0C10;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.camo-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.camo-continue-btn:active {
    transform: translateY(1px);
}

.camo-tap-hint {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748B;
}

/* ==========================================================================
   CAPA DEL BICHITO REDONDO NATURAL CON MARTILLO
   ========================================================================== */
.bug-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    pointer-events: none;
    overflow: hidden;
}

.natural-bug {
    position: absolute;
    bottom: -90px;
    right: 25px;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(0, 0);
}

.bug-speech {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #FFF2EB;
    color: #1A1E26;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    max-width: 210px;
    width: max-content;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--c-terracotta);
}

.bug-speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 6px 0 6px;
    border-style: solid;
    border-color: #FFF2EB transparent transparent transparent;
}

.bug-speech.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Cuerpo redondo orgánico natural */
.bug-round-body {
    width: 44px;
    height: 44px;
    background: #E06C54;
    border: 3px solid #FFF2EB;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 16px rgba(224, 108, 84, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.15s ease;
}

.bug-round-body.evil {
    background: #D93829 !important;
    box-shadow: 0 0 20px rgba(217, 56, 41, 0.9) !important;
}

.bug-eyes {
    display: flex;
    gap: 8px;
}

.bug-eye {
    width: 8px;
    height: 9px;
    background: #FFFFFF;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.bug-eye::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0A0C10;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

/* Ojos malvados/pícaros */
.bug-round-body.evil .bug-eye {
    height: 3px;
    border-radius: 0;
    background: #FFD000;
}

.bug-round-body.evil .bug-eye.left { transform: rotate(25deg); }
.bug-round-body.evil .bug-eye.right { transform: rotate(-25deg); }

.bug-mouth {
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #FFFFFF;
    border-radius: 0 0 10px 10px;
    margin-top: 3px;
    transition: all 0.2s ease;
}

.bug-round-body.evil .bug-mouth {
    width: 14px;
    height: 7px;
    border-bottom: none;
    border-top: 3px solid #FFFFFF;
    border-radius: 12px 12px 0 0;
    transform: rotate(-10deg);
}

/* Mejillas sonrojadas */
.bug-blush {
    position: absolute;
    width: 7px;
    height: 4px;
    background: rgba(255, 130, 130, 0.7);
    border-radius: 50%;
    top: 25px;
    transition: opacity 0.2s ease;
}
.bug-blush.left { left: 5px; }
.bug-blush.right { right: 5px; }
.bug-round-body.evil .bug-blush { opacity: 0; }

/* Patitas caminantes */
.bug-feet {
    display: flex;
    justify-content: space-between;
    width: 26px;
    position: absolute;
    bottom: -6px;
    z-index: -1;
}

.bug-foot {
    width: 9px;
    height: 7px;
    background: #C85038;
    border: 2px solid #FFF2EB;
    border-radius: 50% 50% 30% 30%;
    transition: transform 0.12s ease;
}

.bug-foot.step {
    transform: translateY(-5px);
}

.bug-antenna {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 12px;
    background: #FFF2EB;
}

.bug-antenna.left { left: 16px; transform: rotate(-20deg); }
.bug-antenna.right { right: 16px; transform: rotate(20deg); }

.bug-hammer {
    position: absolute;
    top: -30px;
    right: -24px;
    font-size: 38px;
    transform-origin: bottom left;
    transform: rotate(-70deg) scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bug-hammer.ready {
    opacity: 1;
    transform: rotate(-30deg) scale(1.2);
}

.bug-hammer.smash {
    opacity: 1;
    transform: rotate(45deg) scale(1.4);
}

.crack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.08s ease;
}

/* ==========================================================================
   FASE 1: PANTALLA AZUL DE LA MUERTE (BSOD)
   ========================================================================== */
.bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: #0078D7;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 1002;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bsod-bar-container {
    width: 100%;
    max-width: 480px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0 10px 0;
}

.bsod-bar-fill {
    height: 100%;
    width: 0%;
    background: #FFFFFF;
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Terminal de logs técnicos en BSOD: ALTURA ESTRICTA FIJA (72px) para que NUNCA empuje la pantalla */
.bsod-terminal-log {
    width: 100%;
    max-width: 480px;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    background: rgba(0, 18, 60, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #BDD8FF;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: hidden;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.bsod-log-line {
    animation: fadeInLog 0.2s ease forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.bsod-log-line.warn {
    color: #FDE047;
    font-weight: 700;
}

.bsod-log-line.danger {
    color: #F87171;
    font-weight: 700;
}

@keyframes fadeInLog {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.skip-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    z-index: 10;
}

.bsod-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: auto 0;
}

.bsod-sad {
    font-size: clamp(3rem, 10vw, 4.2rem);
    line-height: 1;
}

.bsod-heading {
    font-size: clamp(1.05rem, 3.8vw, 1.4rem);
    font-weight: 400;
    line-height: 1.3;
}

.bsod-msg {
    font-size: clamp(0.82rem, 2.8vw, 0.92rem);
    color: #DDE7FF;
    line-height: 1.4;
}

.bsod-progress {
    font-size: 0.95rem;
    font-weight: 600;
}

.bsod-footer-grid {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.bsod-qr {
    flex-shrink: 0;
}

.bsod-qr svg {
    width: 52px;
    height: 52px;
}

.bsod-info {
    font-size: 0.72rem;
    color: #CFE0FC;
    line-height: 1.4;
}

/* ==========================================================================
   FASE 2: NARRATIVA CINEMATOGRÁFICA (FALSO HACKEO OSCURO Y SERIO)
   ========================================================================== */
.story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo translúcido para que la cascada Matrix se vea sutilmente cayendo detrás */
    background: rgba(6, 8, 12, 0.88);
    backdrop-filter: blur(8px);
    z-index: 1003;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    overflow-x: hidden;
}

.cinematic-container {
    width: 100%;
    max-width: 680px;
    background: rgba(14, 18, 26, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(224, 108, 84, 0.35);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), var(--glow-warm);
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px;
    position: relative;
    user-select: none;
}

.cinematic-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cine-header-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.cine-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cine-dot:nth-child(1) { background: #EF4444; }
.cine-dot:nth-child(2) { background: #F59E0B; }
.cine-dot:nth-child(3) { background: #10B981; }

.cinematic-body {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 20px;
}

.cinematic-text-wrap {
    width: 100%;
    text-align: center;
}

.cinematic-text {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 4.2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.6;
    color: #FFF2EB;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
    margin: 0;
    white-space: pre-wrap;
    display: inline;
}

.cinematic-text .hl {
    color: var(--c-gold);
    font-weight: 800;
}

.cinematic-text .danger-text {
    color: #FF7B7B;
    font-weight: 800;
}

.typing-cursor {
    display: inline-block;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--c-gold);
    margin-left: 3px;
    animation: blink-caret 0.65s step-end infinite;
    vertical-align: baseline;
}

@keyframes blink-caret {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.cinematic-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cine-tap-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--c-peach);
    letter-spacing: 0.08em;
    animation: pulse-hint 1.8s ease-in-out infinite;
}

.pulse-arrow {
    font-size: 0.9rem;
    color: var(--c-gold);
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

.enter-roulette-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 26px;
    width: 100%;
    max-width: 300px;
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-gold) 100%);
    border: none;
    border-radius: 12px;
    color: #0A0C10;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}

.enter-roulette-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.55);
}

/* ==========================================================================
   CASCADA MATRIX PERMANENTE DE FONDO (SUAVE Y AMBIENTAL)
   ========================================================================== */
#binary-rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#binary-rain-canvas.active {
    opacity: 0.22;
}

/* ==========================================================================
   ALERTA CRÍTICA (DESPUÉS DEL INTENTO 2 DE LA RULETA)
   ========================================================================== */
.critical-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 4, 6, 0.92);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.critical-warning-overlay.show {
    display: flex;
    animation: alarmPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alarmPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.critical-alarm-card {
    background: linear-gradient(180deg, #180C0C 0%, #0D0606 100%);
    border: 2px solid #EF4444;
    border-radius: 18px;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.55), inset 0 0 25px rgba(239, 68, 68, 0.2);
    max-width: 420px;
    width: 100%;
    padding: 26px 20px;
    text-align: center;
    position: relative;
    user-select: none;
}

.critical-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.alarm-siren {
    font-size: 1.3rem;
    animation: sirenWobble 0.6s infinite alternate;
}

@keyframes sirenWobble {
    from { transform: scale(1); }
    to { transform: scale(1.25); }
}

.critical-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: #FCA5A5;
    letter-spacing: 0.08em;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 9999px;
    padding: 3px 10px;
}

.critical-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 800;
    color: #FF4D4D;
    text-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
    margin-bottom: 14px;
}

.critical-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.6), transparent);
    margin: 12px 0 16px;
}

.critical-desc {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #E2E8F0;
    line-height: 1.55;
    margin-bottom: 22px;
}

.critical-desc strong {
    color: #FF8080;
}

.critical-desc em {
    color: var(--c-gold);
    font-style: normal;
    text-decoration: underline;
}

.critical-dismiss-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
    animation: dangerPulse 1.2s infinite;
}

@keyframes dangerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); transform: translateY(0); }
    50% { box-shadow: 0 0 35px rgba(239, 68, 68, 0.95); transform: translateY(-2px); }
}

/* Parpadeo rojo en pantalla en intento crítico */
@keyframes redStrobe {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: inset 0 0 70px 25px rgba(239, 68, 68, 0.5); }
}

body.critical-red-flash {
    animation: redStrobe 0.8s ease-in-out infinite;
}

/* ==========================================================================
   FASE 3: APLICACIÓN PRINCIPAL (RULETA & CITA)
   ========================================================================== */
.main-experience {
    position: relative;
    z-index: 10;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-experience.active {
    display: block;
    opacity: 1;
}

.clean-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(9, 11, 14, 0.90);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-brand {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-terracotta-bright);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-btn {
    background: rgba(224, 108, 84, 0.08);
    border: 1px solid var(--border-accent);
    color: #F8FAFC;
    padding: 6px 12px;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    user-select: none;
    backdrop-filter: blur(8px);
}

.audio-btn:hover {
    background: rgba(224, 108, 84, 0.16);
    border-color: var(--c-terracotta-bright);
    box-shadow: 0 0 14px rgba(224, 108, 84, 0.3);
    transform: translateY(-1px);
}

.audio-btn:active {
    transform: translateY(0);
}

.audio-note-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.audio-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--c-peach);
}

.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    transition: opacity 0.3s ease;
}

.audio-wave span {
    width: 2.5px;
    border-radius: 2px;
    background: var(--c-terracotta-bright);
    animation: wave-anim 1.1s infinite ease-in-out;
}

.audio-wave span:nth-child(1) { height: 35%; animation-delay: 0.0s; }
.audio-wave span:nth-child(2) { height: 85%; animation-delay: 0.25s; }
.audio-wave span:nth-child(3) { height: 55%; animation-delay: 0.12s; }
.audio-wave span:nth-child(4) { height: 75%; animation-delay: 0.38s; }

@keyframes wave-anim {
    0%, 100% { height: 25%; }
    50% { height: 100%; }
}

.content-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.hero-block {
    text-align: center;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFFFFF 20%, var(--c-peach) 70%, var(--c-terracotta-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1rem;
    color: #94A3B8;
    max-width: 520px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.lives-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.hearts-row {
    display: inline-flex;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(224, 108, 84, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
}

.heart {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.heart.lost {
    opacity: 0.2;
    filter: grayscale(1);
    transform: scale(0.85);
}

/* Ruleta */
.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.wheel-chassis {
    position: relative;
    padding: 16px;
    background: radial-gradient(circle at 50% 50%, rgba(26, 33, 46, 0.65) 0%, rgba(13, 16, 22, 0.95) 100%);
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    margin-bottom: 24px;
    max-width: 100%;
}

.corner-bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--c-terracotta);
    pointer-events: none;
}

.corner-bracket.c-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-bracket.c-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-bracket.c-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-bracket.c-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

#wheel-canvas {
    display: block;
    cursor: pointer;
    border-radius: 50%;
    touch-action: pan-y !important;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.45));
    will-change: transform;
    transform: translateZ(0);
}

.wheel-tap-hint {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #94A3B8;
    text-align: center;
    letter-spacing: 0.04em;
    animation: pulse-hint 2s infinite ease-in-out;
}

.action-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.spin-trigger {
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-terracotta-bright) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(224, 108, 84, 0.45);
    transition: all 0.25s ease;
    text-align: center;
}

.spin-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 45px rgba(224, 108, 84, 0.6);
}

.spin-trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feedback-banner {
    min-height: 48px;
    width: 100%;
    max-width: 480px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.feedback-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-banner.fail {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--c-danger);
    color: #FCA5A5;
}

.feedback-banner.critical {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--c-gold);
    color: #FDE68A;
}

.feedback-banner.victory {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid var(--syn-green);
    color: #86EFAC;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.35);
}

/* ==========================================================================
   STAGE 2: PERSONALIZADOR DE CITA & RASPADITA DEL POSTRE
   ========================================================================== */
.config-stage {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: 40px;
}

.config-stage.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.stage-header {
    text-align: center;
    margin-bottom: 24px;
}

.target-badge {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.config-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    font-weight: 800;
    word-break: break-word;
    line-height: 1.2;
}

.config-desc {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-top: 6px;
}

/* ==========================================================================
   WIZARD PASO A PASO: INDICADOR DE PROGRESO (STEPPER)
   ========================================================================== */
.stepper-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px auto 6px;
    max-width: 380px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    transition: all 0.3s ease;
}

.dot-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--border-subtle);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.dot-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-dot.active .dot-num {
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-gold) 100%);
    border-color: #FFFFFF;
    color: #0A0C10;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
    transform: scale(1.12);
}

.step-dot.active .dot-label {
    color: var(--c-gold);
    font-weight: 700;
}

.step-dot.completed .dot-num {
    background: #22C55E;
    border-color: #4ADE80;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.step-dot.completed .dot-label {
    color: #4ADE80;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 22px;
    transition: background 0.35s ease;
}

.step-line.active {
    background: linear-gradient(90deg, #22C55E, var(--c-gold));
}

/* ==========================================================================
   WIZARD CONTAINER & CARDS
   ========================================================================== */
.wizard-container {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.wizard-card {
    background: linear-gradient(145deg, rgba(20, 25, 38, 0.94) 0%, rgba(12, 16, 25, 0.98) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 158, 11, 0.08);
    backdrop-filter: blur(16px);
    animation: wizardFadeSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizardFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-card-header {
    margin-bottom: 20px;
}

.step-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-gold);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.4;
}

/* ==========================================================================
   PASO 1: RUEDITA / DIAL DEL HORARIO DE HOY
   ========================================================================== */
.wheel-time-picker {
    margin-bottom: 20px;
}

.big-time-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 13, 20, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 14px;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.time-adjust-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--c-gold);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.time-adjust-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--c-gold);
    color: #FFFFFF;
    transform: scale(1.06);
}

.time-adjust-btn:active {
    transform: scale(0.92);
}

.time-center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.big-time {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: #F8FAFC;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
}

.time-suffix {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--c-gold);
    margin-left: 2px;
}

.time-meal-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 3px 14px;
    margin-top: 4px;
}

.time-slider-wrapper {
    margin: 10px 0 16px;
}

.time-wheel-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #1E293B 0%, #334155 50%, #1E293B 100%);
    outline: none;
    cursor: ew-resize;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.time-wheel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFBEB 0%, var(--c-gold) 60%, var(--c-terracotta) 100%);
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.85), 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: grab;
    transition: transform 0.15s ease;
}

.time-wheel-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.18);
}

.time-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #64748B;
    padding: 4px 6px 0;
}

.quick-time-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 480px) {
    .quick-time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.qtime-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #CBD5E1;
    padding: 10px 4px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.qtime-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.qtime-pill.active {
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-terracotta-bright) 100%);
    border-color: var(--c-gold);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(224, 108, 84, 0.4);
    font-weight: 700;
}

/* ==========================================================================
   PASO 2: CARTAS DE NIVEL DE PICANTE
   ========================================================================== */
.spice-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.spice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(14, 18, 27, 0.88);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.spice-card:hover {
    background: rgba(24, 31, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.spice-card.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--c-gold);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.28);
}

.spice-card-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.spice-card-info {
    flex: 1;
}

.spice-card-name {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.spice-card.active .spice-card-name {
    color: var(--c-gold);
}

.spice-card-desc {
    font-size: 0.78rem;
    color: #94A3B8;
    line-height: 1.35;
}

.spice-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--border-subtle);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.spice-card.active .spice-check {
    background: #22C55E;
    border-color: #4ADE80;
    color: #FFFFFF;
}

/* ==========================================================================
   PASO 3: BOLETO DE LOTERÍA RASPABLE DEL POSTRE (😏🥒)
   ========================================================================== */
.scratch-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 130px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--c-gold);
    box-shadow: 0 8px 26px rgba(251, 191, 36, 0.3);
    background: #141824;
    user-select: none;
    touch-action: none;
}

.scratch-secret {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #2D182B 0%, #150E1A 100%);
    padding: 10px;
    text-align: center;
    z-index: 1;
}

.cucumber-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.cucumber-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #4ADE80;
    margin-top: 2px;
}

.cucumber-sub {
    font-size: 0.78rem;
    color: #FFF2EB;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.scratch-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #94A3B8;
    margin: 8px 0 16px;
}

.notes-mini-box {
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notes-mini-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--c-gold);
    font-weight: 600;
}

.custom-input {
    background: #0E1219;
    border: 1px solid var(--border-subtle);
    color: #FFFFFF;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.custom-input:focus {
    border-color: var(--c-terracotta);
}

/* ==========================================================================
   BOTONES DE NAVEGACIÓN DEL WIZARD
   ========================================================================== */
.step-continue-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-gold) 100%);
    border: none;
    border-radius: 12px;
    color: #0A0C10;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.step-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.step-continue-btn:active {
    transform: scale(0.98);
}

.wizard-btn-row {
    display: flex;
    gap: 10px;
}

.step-back-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: #CBD5E1;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    white-space: nowrap;
}

.step-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.step-back-btn:active {
    transform: scale(0.96);
}

.deploy-btn {
    flex: 1;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--c-terracotta) 0%, var(--c-gold) 100%);
    border: none;
    border-radius: 12px;
    color: #0A0C10;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.deploy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.55);
}

.deploy-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   FASE 4: PASARELA DE PAGO FICTICIA ("LA CENA LA PAGÁS VOS")
   ========================================================================== */
.payment-stage {
    display: none;
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 36px auto 0;
    max-width: 520px;
    width: 100%;
}

.payment-stage.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.payment-card-container {
    background: linear-gradient(145deg, rgba(20, 26, 40, 0.95) 0%, rgba(11, 15, 24, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(245, 158, 11, 0.08);
    backdrop-filter: blur(20px);
}

/* Banner jocoso del novio */
.payment-joke-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(224, 108, 84, 0.12) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.joke-icon {
    font-size: 2.2rem;
    line-height: 1;
    animation: jokeIconBounce 2s ease-in-out infinite;
}

@keyframes jokeIconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-6deg); }
}

.joke-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.joke-text strong {
    color: #FBBF24;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.joke-text span {
    font-size: 0.75rem;
    color: #94A3B8;
    font-family: var(--font-mono);
}

/* Detalle de factura / invoice */
.invoice-box {
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #CBD5E1;
    font-family: var(--font-mono);
}

.free-tag {
    color: #4ADE80;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
}

.amount-tag {
    color: #F8FAFC;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.invoice-divider {
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

.total-row {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.92rem;
}

.total-amount {
    color: #FBBF24;
    font-size: 1.15rem;
    font-weight: 900;
    text-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

/* Tarjeta de crédito visual simulada */
.mock-credit-card {
    position: relative;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.mock-credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.card-chip-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #E2B755 0%, #A07821 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
}

.card-contactless {
    font-size: 1.1rem;
    color: #94A3B8;
    transform: rotate(90deg);
}

.card-brand {
    margin-left: auto;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 0.95rem;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.card-number-display {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #F8FAFC;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #64748B;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.card-holder {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-exp {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #CBD5E1;
    letter-spacing: 0.5px;
}

/* Formulario simulado */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #94A3B8;
    font-weight: 600;
}

.card-input {
    background: rgba(10, 13, 20, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.card-input:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.form-row-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.pay-submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    border-radius: 14px;
    color: #0A0C10;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    touch-action: manipulation;
}

.pay-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.6);
}

.pay-submit-btn:active {
    transform: scale(0.98);
}

.pay-submit-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.pay-secure-hint {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 4px;
}

/* ==========================================================================
   FASE 5: PASE VIP MINIMALISTA Y ELEGANTE (APPLE WALLET STYLE)
   ========================================================================== */
.ticket-stage {
    display: none;
    opacity: 0;
    transform: scale(0.96);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 36px;
    width: 100%;
}

.ticket-stage.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.minimal-pass-card {
    max-width: 460px;
    margin: 0 auto;
    background: #0B0E14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid #F59E0B;
    border-radius: 20px;
    padding: 26px 24px 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.06);
    position: relative;
    overflow: hidden;
}

.pass-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pass-brand-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #94A3B8;
}

.pass-status-pill {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ADE80;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pass-main-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin-bottom: 2px;
}

.pass-sub-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #4ADE80;
    margin-bottom: 18px;
}

.pass-divider-dotted {
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    margin: 16px 0;
}

.pass-details-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
    margin-bottom: 20px;
}

.p-min-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.p-min-lbl {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #64748B;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.p-min-val {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: #F1F5F9;
    line-height: 1.3;
}

.dessert-val {
    color: #FBBF24;
}

/* Código de barras largo y extendido */
.barcode-long-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 12px 10px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.barcode-svg {
    width: 100%;
    height: 48px;
    display: block;
}

.barcode-digits {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #94A3B8;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Botones de acción del pase */
.pass-actions-minimal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-wa-minimal {
    width: 100%;
    padding: 14px 18px;
    background: #25D366;
    color: #0A0C10;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.btn-wa-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.btn-wa-minimal:active {
    transform: scale(0.98);
}

.pass-actions-sub {
    display: flex;
    gap: 8px;
}

.btn-sub-minimal {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sub-minimal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.btn-sub-minimal:active {
    transform: scale(0.96);
}

.toast-popup {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1E2533;
    border: 1px solid var(--border-bright);
    color: #FFF2EB;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL 100% PARA SMARTPHONES (iOS / Android)
   ========================================================================== */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    /* Bloqueo obligatorio de audio */
    .audio-gate-card {
        width: calc(100% - 32px);
        max-width: 360px;
        padding: 24px 18px;
    }

    .gate-title {
        font-size: 1.35rem;
    }

    .gate-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    /* Camuflaje */
    .camo-article {
        margin: 16px auto;
        gap: 12px;
    }

    .camo-title {
        font-size: 1.45rem;
    }

    .camo-lead {
        font-size: 0.9rem;
    }

    /* BSOD */
    .bsod-overlay {
        padding: 20px 16px;
    }

    .bsod-sad {
        font-size: 3.6rem;
    }

    .bsod-heading {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .bsod-msg {
        font-size: 0.92rem;
    }

    .bsod-progress {
        font-size: 1rem;
    }

    .bsod-footer-grid {
        gap: 12px;
    }

    .bsod-qr svg {
        width: 50px;
        height: 50px;
    }

    .bsod-info {
        font-size: 0.72rem;
    }

    /* Narrativa Cinematográfica en Móviles */
    .story-overlay {
        padding: 12px;
    }

    .cinematic-container {
        padding: 22px 16px 18px;
        border-radius: 14px;
    }

    .cinematic-header {
        margin-bottom: 16px;
    }

    .cinematic-body {
        min-height: 150px;
    }

    .cinematic-text {
        font-size: 1.18rem;
        line-height: 1.55;
    }

    .enter-roulette-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Experiencia Principal */
    .clean-header {
        padding: 10px 14px;
    }

    .brand-title {
        font-size: 0.8rem;
    }

    .content-wrapper {
        padding: 10px 12px 36px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    /* Ruleta */
    .wheel-container {
        padding: 10px 0;
    }

    .wheel-chassis {
        padding: 6px;
    }

    .action-dock {
        width: 100%;
    }

    .spin-trigger {
        width: 100%;
        padding: 15px 18px;
        font-size: 1rem;
    }

    /* Personalizador de Cita */
    .config-stage {
        padding: 18px 0;
    }

    .config-title {
        font-size: 1.25rem;
    }

    .ide-frame {
        border-radius: 10px;
    }

    .ide-split {
        flex-direction: column;
    }

    .controls-panel {
        padding: 16px 14px;
    }

    .code-panel {
        display: none;
    }

    .pills-row {
        gap: 6px;
    }

    .pill {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .scratch-card-wrapper {
        max-width: 100%;
        height: 110px;
    }

    .cucumber-icon {
        font-size: 26px;
    }

    .cucumber-title {
        font-size: 0.9rem;
    }

    .cucumber-sub {
        font-size: 0.75rem;
    }

    .deploy-btn {
        padding: 14px 18px;
        font-size: 0.92rem;
    }

    /* Pasarela de Pago & Pase VIP Minimalista en Móviles */
    .payment-card-container {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .payment-joke-banner {
        padding: 12px 14px;
        gap: 10px;
    }

    .joke-text strong {
        font-size: 0.95rem;
    }

    .mock-credit-card {
        padding: 16px 18px;
    }

    .card-number-display {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .pay-submit-btn {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .minimal-pass-card {
        max-width: 100%;
        padding: 20px 16px 18px;
        border-radius: 16px;
    }

    .pass-main-title {
        font-size: 1.4rem;
    }

    .p-min-val {
        font-size: 0.82rem;
    }

    .btn-wa-minimal {
        padding: 13px 16px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   SISTEMA DE DISEÑO GOOGLE / GEMINI (LIMPIO, MINIMALISTA, INTUITIVO)
   Paleta monocromática oscura con acento azul Google, sin ruido visual
   ========================================================================== */
:root {
    --g-canvas: #131314;
    --g-surface: #1E1F20;
    --g-surface-elevated: #282A2C;
    --g-border: #333538;
    --g-border-focus: #A8C7FA;
    --g-text-primary: #E3E3E3;
    --g-text-secondary: #C4C7C5;
    --g-text-muted: #8E918F;
    --g-blue: #A8C7FA;
    --g-blue-container: #004A77;
    --g-blue-text: #D3E3FD;
    --g-green: #6DD58C;
    --g-green-container: #0A3818;
}

/* Microinteracciones táctiles limpias estilo Google (sin chispas ni arcoíris) */
button, .g-chip, .g-list-item, .g-btn-primary, .g-btn-text, .g-btn-secondary, .g-pay-btn, .g-btn-whatsapp {
    touch-action: manipulation;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

button:active, .g-chip:active, .g-list-item:active, .g-btn-primary:active, .g-pay-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   PERSONALIZADOR DE CITA (STAGE 2)
   ========================================================================== */
.config-stage {
    display: none;
    width: 100%;
    max-width: 520px;
    margin: 32px auto 0;
    padding: 0 8px;
}

.config-stage.active {
    display: block;
    animation: gFadeIn 0.35s ease forwards;
}

@keyframes gFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.g-stage-header {
    text-align: center;
    margin-bottom: 20px;
}

.g-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--g-blue-text);
    margin-bottom: 12px;
}

.g-spark {
    font-size: 0.85rem;
}

.g-stage-title {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--g-text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.g-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    padding: 4px 10px;
    border-radius: 24px;
}

.g-step-tab {
    background: none;
    border: none;
    color: var(--g-text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 14px;
    cursor: pointer;
}

.g-step-tab.active {
    color: var(--g-blue);
    background: var(--g-surface-elevated);
    font-weight: 600;
}

.g-step-tab.completed {
    color: var(--g-text-secondary);
}

.g-step-sep {
    color: var(--g-border);
    font-size: 0.75rem;
}

/* Tarjeta contenedora de cada paso */
.g-card-container {
    width: 100%;
}

.g-card {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.g-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.g-card-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--g-text-primary);
}

.g-card-sub {
    font-size: 0.82rem;
    color: var(--g-text-muted);
    margin-top: 2px;
}

.g-time-readout-pill {
    background: var(--g-blue-container);
    color: var(--g-blue);
    border: 1px solid rgba(168, 199, 250, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.g-readout-unit {
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 2px;
    opacity: 0.85;
}

/* Grid de chips de horario */
.g-chips-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.g-chips-section-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--g-text-muted);
}

.g-chips-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 440px) {
    .g-chips-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.g-chip {
    background: var(--g-surface-elevated);
    border: 1px solid var(--g-border);
    color: var(--g-text-secondary);
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

.g-chip:hover {
    background: #333538;
    color: var(--g-text-primary);
}

.g-chip.active {
    background: var(--g-blue-container);
    border-color: var(--g-blue);
    color: var(--g-blue-text);
    font-weight: 600;
}

/* Lista elegante de menú de comida */
.g-list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.g-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--g-surface-elevated);
    border: 1px solid var(--g-border);
    border-radius: 14px;
    padding: 14px 14px;
    cursor: pointer;
}

.g-list-item:hover {
    background: #303235;
    border-color: #4A4D51;
}

.g-list-item.active {
    background: rgba(0, 74, 119, 0.25);
    border-color: var(--g-blue);
}

.g-item-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--g-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.g-list-item.active .g-item-radio {
    border-color: var(--g-blue);
}

.g-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.15s ease;
}

.g-list-item.active .g-radio-dot {
    background: var(--g-blue);
}

.g-item-content {
    flex: 1;
}

.g-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.g-item-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--g-text-primary);
}

.g-list-item.active .g-item-title {
    color: var(--g-blue);
}

.g-item-badge {
    background: rgba(168, 199, 250, 0.15);
    color: var(--g-blue);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.g-item-badge.subtle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--g-text-secondary);
}

.g-item-badge.danger {
    background: rgba(248, 113, 113, 0.15);
    color: #F87171;
}

.g-item-desc {
    font-size: 0.78rem;
    color: var(--g-text-muted);
    line-height: 1.35;
}

/* Postre raspable elegante */
.g-scratch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.g-scratch-hint {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--g-text-muted);
}

/* Input estilo Google */
.g-input-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.g-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--g-text-secondary);
}

.g-text-input {
    background: var(--g-surface-elevated);
    border: 1px solid var(--g-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--g-text-primary);
    outline: none;
    transition: border-color 0.15s ease;
}

.g-text-input:focus {
    border-color: var(--g-blue);
}

/* Botones Google Material 3 */
.g-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.g-btn-primary {
    background: var(--g-blue);
    color: #062E6F;
    border: none;
    border-radius: 24px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.g-btn-primary:hover {
    background: #C2E7FF;
}

.g-btn-text {
    background: none;
    border: none;
    color: var(--g-text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 16px;
}

.g-btn-text:hover {
    background: var(--g-surface-elevated);
    color: var(--g-text-primary);
}

/* ==========================================================================
   CHECKOUT GOOGLE PAY (STAGE 4)
   ========================================================================== */
.payment-stage {
    width: 100%;
    max-width: 480px;
    margin: 28px auto 0;
    padding: 0 8px;
}

.g-pay-modal {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.g-pay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--g-border);
}

.g-pay-logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
}

.g-logo-g {
    color: #FFFFFF;
}

.g-logo-pay {
    color: var(--g-text-secondary);
    font-weight: 500;
    margin-left: 2px;
}

.g-pay-secure-tag {
    font-size: 0.72rem;
    color: var(--g-text-muted);
    font-weight: 500;
}

.g-pay-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--g-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.g-pay-quote {
    font-size: 0.88rem;
    color: var(--g-text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.g-pay-author {
    display: block;
    font-size: 0.72rem;
    color: var(--g-text-muted);
    margin-top: 4px;
}

.g-pay-summary {
    background: var(--g-surface-elevated);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.g-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: var(--g-text-secondary);
    margin-bottom: 8px;
}

.g-row-val.free {
    color: var(--g-green);
    font-weight: 600;
}

.g-pay-divider {
    height: 1px;
    background: var(--g-border);
    margin: 10px 0;
}

.g-pay-row.total {
    margin-bottom: 0;
}

.g-total-label {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--g-text-primary);
}

.g-total-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--g-blue);
}

/* Tarjeta digital estilo Google Wallet */
.g-wallet-card {
    background: linear-gradient(135deg, #1C2331 0%, #0D111A 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.g-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.g-card-brand {
    font-weight: 800;
    font-style: italic;
    color: #FFFFFF;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.g-card-contactless {
    color: var(--g-text-muted);
    font-size: 0.85rem;
    letter-spacing: -2px;
}

.g-card-number {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.g-card-bottom {
    display: flex;
    justify-content: space-between;
}

.g-card-lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.g-card-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFFFFF;
}

.g-form-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.g-form-row {
    display: flex;
    gap: 10px;
}

.g-form-row .g-input-field {
    flex: 1;
    margin-bottom: 0;
}

.g-pay-btn {
    width: 100%;
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 24px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.g-pay-btn:hover {
    background: #E3E3E3;
}

.g-pay-disclaimer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--g-text-muted);
    margin-top: 10px;
}

/* ==========================================================================
   PASE VIP GOOGLE WALLET (STAGE 5)
   ========================================================================== */
.ticket-stage {
    width: 100%;
    max-width: 460px;
    margin: 28px auto 40px;
    padding: 0 8px;
}

.g-wallet-pass {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: 24px;
    padding: 22px 20px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.g-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--g-border);
}

.g-pass-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--g-text-secondary);
}

.g-pass-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-green);
}

.g-pass-badge {
    background: var(--g-green-container);
    color: var(--g-green);
    border: 1px solid rgba(109, 213, 140, 0.3);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

.g-pass-title-box {
    margin-bottom: 18px;
}

.g-pass-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--g-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.g-pass-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--g-text-primary);
    margin-top: 2px;
}

.g-pass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    background: var(--g-surface-elevated);
    border-radius: 16px;
    padding: 16px 14px;
    margin-bottom: 18px;
}

.g-pass-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.g-cell-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.g-cell-val {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--g-text-primary);
}

.g-cell-val.dessert {
    color: var(--g-blue);
}

.g-cell-val.highlight {
    color: #FBBF24;
}

.g-pass-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 0 10px;
    border-top: 1px dashed var(--g-border);
    margin-bottom: 18px;
}

.g-barcode-lines {
    display: flex;
    gap: 3px;
    height: 36px;
    align-items: center;
}

.g-barcode-lines span {
    display: block;
    width: 2px;
    height: 100%;
    background: var(--g-text-secondary);
    border-radius: 1px;
}

.g-barcode-lines span:nth-child(2n) { width: 4px; }
.g-barcode-lines span:nth-child(3n) { width: 1px; opacity: 0.6; }
.g-barcode-lines span:nth-child(5n) { width: 5px; }

.g-pass-code-text {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--g-text-muted);
    letter-spacing: 1px;
}

.g-pass-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g-btn-whatsapp {
    background: #25D366;
    color: #063116;
    border: none;
    border-radius: 24px;
    padding: 13px 20px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.g-btn-whatsapp:hover {
    background: #22BF5B;
}

.g-pass-sub-actions {
    display: flex;
    gap: 10px;
}

.g-btn-secondary {
    flex: 1;
    background: var(--g-surface-elevated);
    border: 1px solid var(--g-border);
    color: var(--g-text-secondary);
    border-radius: 20px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.g-btn-secondary:hover {
    background: #333538;
    color: var(--g-text-primary);
}

