body.ticket-kiosk {
    min-height: 100vh;
    padding: 24px 0 40px;
}

.ticket-kiosk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.ticket-kiosk-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 720px;
}

.ticket-kiosk-copy {
    margin-bottom: 28px;
}

.ticket-kiosk-copy .page-subtitle {
    max-width: 560px;
}

.ticket-kiosk-points {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.ticket-kiosk-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(23, 50, 77, 0.06);
}

.ticket-kiosk-point i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(196, 92, 45, 0.14);
    color: var(--primary-strong);
}

.ticket-kiosk-point strong {
    display: block;
    margin-bottom: 4px;
}

.ticket-kiosk-point p {
    margin: 0;
    color: var(--muted);
}

.ticket-kiosk-card {
    display: grid;
    gap: 20px;
    align-content: start;
}

.ticket-input-card {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: rgba(15, 36, 56, 0.94);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.ticket-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ticket-input-label span {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.ticket-input-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(242, 184, 75, 0.18);
    color: #fdd77e;
    font-size: 0.82rem;
    font-weight: 800;
}

.ticket-input-badge.is-online {
    background: rgba(47, 143, 102, 0.18);
    color: #90efc4;
}

.ticket-input-badge.is-offline {
    background: rgba(212, 91, 71, 0.2);
    color: #ffb7a9;
}

#lblNuevoTicket {
    width: 100%;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff3df;
    font-size: clamp(2.1rem, 6vw, 4.5rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.08em;
    min-height: 110px;
    padding: 18px 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#lblNuevoTicket::placeholder {
    color: rgba(255, 243, 223, 0.45);
}

.table_teclado {
    width: 100%;
    border-collapse: separate;
    border-spacing: 12px;
    margin: 0;
}

.table_teclado td {
    width: 33.33%;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(145deg, #fef9f1, #eadfcf);
    color: var(--text);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0 14px 24px rgba(23, 50, 77, 0.1);
    cursor: pointer;
    user-select: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.table_teclado td:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 32px rgba(23, 50, 77, 0.15);
    background: linear-gradient(145deg, #fffdf8, #f1e5d2);
}

.table_teclado td:active {
    transform: translateY(1px);
}

#modalBtn {
    width: 100%;
    min-height: 88px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 18px 34px rgba(196, 92, 45, 0.32);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#modalBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(196, 92, 45, 0.38);
}

#modalBtn h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.ticket-kiosk-actions {
    display: grid;
    gap: 12px;
}

.ticket-kiosk-actions small {
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.ticket-kiosk-actions small.is-offline {
    color: var(--danger);
}

#typeTicketModal .modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, rgba(242, 184, 75, 0.18), transparent 28%),
      linear-gradient(180deg, #163149 0%, #0f2438 100%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

#typeTicketModal .modal-header {
    padding: 24px 26px 12px;
    border-bottom: 0;
    background: transparent;
}

#typeTicketModal .modal-title {
    font-size: 1.35rem;
    font-weight: 900;
}

#typeTicketModal .close {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    opacity: 1;
}

#typeTicketModal .modal-body {
    padding: 12px 26px 28px;
}

#typeTicketModal .btn {
    min-height: 96px;
    border-radius: 22px;
    border: 0;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1080px) {
    .ticket-kiosk-layout {
        grid-template-columns: 1fr;
    }

    .ticket-kiosk-hero {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    body.ticket-kiosk {
        padding-top: 14px;
    }

    .table_teclado {
        border-spacing: 8px;
    }

    .table_teclado td {
        height: 82px;
        border-radius: 18px;
    }

    #modalBtn {
        min-height: 74px;
    }
}
