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

:root {
    --crema:  #f5f0e8;
    --teal:   #7ec8c8;
    --teal2:  #4a9a9a;
    --oscuro: #1a1a1a;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Nunito', sans-serif;
    background: var(--crema);
    overflow: hidden;
}

/* ── PASOS ── */
.paso {
    display: none;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--crema);
    animation: fadeIn 0.4s ease;
    position: relative;
}

.paso.activo { display: flex; }

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

/* ── FONDO PATA (gracias y ticket) ── */
.paso-fondo-pata {
    background-image: url('../img/kawanda/logo_pata.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 4s0%;
}

/* ── LOGO ESQUINA ── */
.logo-kawanda-corner {
    width: 120px;
    height: auto;
    position: absolute;
    top: 28px;
    left: 36px;
}

/* ── TEXTO SOBRE PATA ── */
.texto-pata {
    font-size: 72px;
    font-weight: 900;
    color: var(--oscuro);
    text-align: center;
    position: relative;
    z-index: 2;
}

.subtexto-pata {
    font-size: 32px;
    font-weight: 700;
    color: var(--oscuro);
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ── CÓDIGO TURNO EN PANTALLA ── */
.turno-codigo-pantalla {
    font-size: 96px;
    font-weight: 900;
    color: var(--oscuro);
    letter-spacing: 4px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.turno-hora-pantalla {
    font-size: 22px;
    font-weight: 600;
    color: #555;
    position: relative;
    z-index: 2;
}

/* ── PANTALLA PRINCIPAL ── */
.titulo-principal {
    font-size: 44px;
    font-weight: 900;
    color: var(--oscuro);
    text-align: center;
    line-height: 1.15;
    max-width: 780px;
}

/* ── CARITAS ── */
#caritas {
    display: flex;
    gap: 56px;
    justify-content: center;
    align-items: center;
}

.carita {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.carita img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
    transition: transform 0.18s ease;
}

.carita:hover img  { transform: scale(1.1); }
.carita:active img { transform: scale(0.92); }

/* ── DESTINOS ── */
#destinos {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.btn-destino {
    width: 220px;
    height: 150px;
    background: white;
    border-radius: 20px;
    border: 3px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.btn-destino .icono          { font-size: 38px; line-height: 1; }
.btn-destino .destino-nombre { font-size: 19px; font-weight: 800; color: var(--oscuro); }
.btn-destino .destino-sub    { font-size: 12px; color: #999; font-weight: 500; }

.btn-destino:hover {
    border-color: var(--teal2);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(74,154,154,0.22);
}
.btn-destino:active { transform: scale(0.95); }

/* ── LOGO KAWANDA PRINCIPAL ── */
.logo-kawanda {
    width: 150px;
    height: auto;
    object-fit: contain;
}

/* ── ÁREA DE IMPRESIÓN (oculta en pantalla) ── */
#ticket-print-area { display: none; }

/* ── ESQUINAS ── */
.btn-esquina {
    position: fixed;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    z-index: 999;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

#esquina-inf-izq { bottom: 0; left: 0; }
#esquina-sup-izq { top: 0;    left: 0; }
#esquina-sup-der { top: 0;    right: 0; }
#esquina-inf-der { bottom: 0; right: 0; }

/* ══════════════════════════════════════
   IMPRESIÓN
   ══════════════════════════════════════ */
@media print {
    @page {
        size: 58mm auto;
        margin: 5mm 2mm 12mm 2mm;
    }

    html, body {
        width: 58mm !important;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ocultar todo */
    body > * { display: none !important; }

    /* Mostrar solo paso-ticket */
    #paso-ticket {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: static !important;
        width: 54mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
        gap: 0 !important;
        background: white !important;
        background-image: none !important;
        text-align: center !important;
        page-break-inside: avoid !important;
    }

    /* Ocultar elementos de pantalla */
    .logo-kawanda-corner,
    .texto-pata,
    .turno-codigo-pantalla,
    .turno-hora-pantalla,
    .btn-esquina { display: none !important; }

    /* Mostrar área de impresión */
    #ticket-print-area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 54mm !important;
        margin: 0 auto !important;
        gap: 0 !important;
    }

    #ticket-print-area * { visibility: visible !important; }

    #ticket-logo {
        width: 20mm !important;
        height: auto !important;
        margin-bottom: 2mm !important;
    }

    #ticket-empresa {
        font-size: 10pt !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        color: black !important;
        text-align: center !important;
        margin-bottom: 2mm !important;
    }

    #ticket-linea, #ticket-linea2 {
        width: 100% !important;
        border: none !important;
        border-top: 1px dashed black !important;
        margin: 3mm 0 !important;
    }

    #ticket-titulo {
        font-size: 9pt !important;
        font-weight: 700 !important;
        letter-spacing: 3px !important;
        color: black !important;
        text-align: center !important;
        margin-bottom: 2mm !important;
    }

    #ticket-display {
        border: 2px solid black !important;
        border-radius: 3px !important;
        padding: 3mm 5mm !important;
        width: 45mm !important;
        background: white !important;
        text-align: center !important;
        margin: 0 auto 2mm auto !important;
    }

    #ticket-codigo {
        font-family: 'Bebas Neue', sans-serif !important;
        font-size: 35pt !important;
        letter-spacing: 3px !important;
        color: black !important;
        display: block !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    #ticket-hora {
        font-size: 9pt !important;
        color: black !important;
        text-align: center !important;
        margin-top: 2mm !important;
    }

    #ticket-fecha {
        font-size: 8pt !important;
        color: black !important;
        text-align: center !important;
        margin-top: 1mm !important;
        margin-bottom: 2mm !important;
    }

    #ticket-gracias {
        font-size: 8pt !important;
        color: black !important;
        text-align: center !important;
        margin-top: 2mm !important;
        margin-bottom: 15mm !important;
    }
}
