﻿/* ==========================================
   ESTILOS PARA KIOSCO DE ASISTENCIA - ENTRADA
   RESPONSIVE MULTI-DISPOSITIVO CON SCROLL
   ========================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0c0e12;
    background-image: radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.12) 0%, transparent 45%), radial-gradient(circle at 100% 100%, rgba(0, 80, 238, 0.08) 0%, transparent 45%);
    color: #e2e2e8;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* Cambiado de overflow:hidden a auto para permitir scroll */
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.kiosk-grid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1rem;
    gap: 1rem;
}

/* Header Styles */
.entrada-header {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .entrada-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .header-info {
        align-items: flex-start;
        text-align: left;
    }
}

.sucursal-nombre {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e2e8;
    letter-spacing: -0.02em;
}

.icon-domain {
    font-size: 1.5rem;
}

.sucursal-direccion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(51, 53, 57, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 73, 76, 0.2);
    font-size: 0.75rem;
    font-weight: 500;
    color: #bac9cc;
}

.icon-location {
    font-size: 0.875rem;
}

.header-time {
    text-align: center;
}

@media (min-width: 768px) {
    .header-time {
        text-align: right;
    }
}

.live-clock {
    font-size: 2rem;
    font-weight: 700;
    color: #9cf0ff;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.live-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.125rem;
    font-weight: 500;
    color: #bac9cc;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .live-date {
        justify-content: flex-end;
    }
}

.icon-calendar {
    font-size: 0.875rem;
}

/* Main Panel - Ahora flexible */
.entrada-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.registro-panel {
    background: rgba(30, 32, 36, 0.6);
    backdrop-filter: blur(48px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 56rem;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .registro-panel {
        padding: 2.5rem 2rem;
    }
}

.registro-panel::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(0, 218, 243, 0.4), transparent, rgba(0, 80, 238, 0.4));
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.bg-accent-1 {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 16rem;
    height: 16rem;
    background: rgba(195, 245, 255, 0.1);
    filter: blur(100px);
    border-radius: 9999px;
}

.bg-accent-2 {
    position: absolute;
    bottom: -6rem;
    left: -6rem;
    width: 16rem;
    height: 16rem;
    background: rgba(0, 80, 238, 0.05);
    filter: blur(100px);
    border-radius: 9999px;
}

.registro-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Title Section */
.registro-titulo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #e2e2e8;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 768px) {
    .registro-titulo {
        font-size: 2.25rem;
    }
}

.registro-subtitulo {
    color: #bac9cc;
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
}

/* Input Section */
.input-section {
    max-width: 42rem;
    margin: 0 auto 1.5rem auto;
}

.input-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #bac9cc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.neo-input-large {
    background: rgba(12, 14, 18, 0.85);
    border: 2px solid rgba(132, 147, 150, 0.15);
    width: 100%;
    height: 3.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #9cf0ff;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

    .neo-input-large:focus {
        border-color: #00daf3;
        box-shadow: 0 0 30px rgba(0, 218, 243, 0.15);
        background: rgba(12, 14, 18, 0.98);
    }

    .neo-input-large::placeholder {
        color: rgba(132, 147, 150, 0.2);
    }

/* Number Pad */
.teclado-numerico {
    max-width: 42rem;
    margin: 0 auto 1.5rem auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.tecla {
    background: rgba(51, 53, 57, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e2e8;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .tecla:hover {
        background: rgba(0, 229, 255, 0.2);
        border-color: rgba(156, 240, 255, 0.3);
        transform: translateY(-2px);
        filter: brightness(1.15);
    }

    .tecla:active {
        transform: translateY(1px) scale(0.98);
    }

.icon-backspace, .icon-clear {
    font-size: 1.25rem;
}

/* Action Buttons */
.botones-accion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .botones-accion {
        grid-template-columns: repeat(2, 1fr);
    }
}

.btn-accion {
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-entrada {
    background: linear-gradient(135deg, #00e5ff 0%, #00daf3 100%);
    color: #00363d;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

    .btn-entrada:hover {
        transform: translateY(-2px);
        filter: brightness(1.15);
        box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
    }

    .btn-entrada:active {
        transform: translateY(1px) scale(0.98);
    }

.btn-salida {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

    .btn-salida:hover {
        transform: translateY(-2px);
        filter: brightness(1.15);
        box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
    }

    .btn-salida:active {
        transform: translateY(1px) scale(0.98);
    }

.icon-login, .icon-logout {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer Cards */
.entrada-footer {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .entrada-footer {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background: rgba(30, 32, 36, 0.4);
    backdrop-filter: blur(24px);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

    .info-icon.primary {
        background: rgba(0, 229, 255, 0.1);
    }

    .info-icon.secondary {
        background: rgba(0, 80, 238, 0.1);
    }

.info-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #bac9cc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e2e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-badge, .icon-schedule, .icon-notifications {
    font-size: 1.25rem;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.animate-shake {
    animation: shake 0.25s cubic-bezier(.36,.07,.19,.97) both;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet pequeña (iPad Mini portrait) */
@media (max-width: 834px) and (min-width: 700px) {
    .kiosk-grid {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .registro-panel {
        padding: 1.5rem;
    }

    .registro-titulo {
        font-size: 1.5rem;
    }

    .neo-input-large {
        height: 3rem;
        font-size: 1.75rem;
    }

    .tecla {
        height: 2.75rem;
        font-size: 1.125rem;
    }

    .btn-accion {
        height: 3rem;
        font-size: 0.875rem;
    }
}

/* Tablet grande (iPad, iPad Pro) */
@media (min-width: 835px) and (max-width: 1024px) {
    .kiosk-grid {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .registro-panel {
        padding: 2rem;
    }

    .registro-titulo {
        font-size: 2rem;
    }

    .neo-input-large {
        height: 3.5rem;
        font-size: 2rem;
    }

    .tecla {
        height: 3rem;
        font-size: 1.25rem;
    }

    .btn-accion {
        height: 3.5rem;
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .kiosk-grid {
        padding: 2rem;
        gap: 1.5rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .registro-panel {
        padding: 2.5rem;
    }

    .registro-titulo {
        font-size: 2.25rem;
    }

    .live-clock {
        font-size: 2.5rem;
    }

    .sucursal-nombre {
        font-size: 1.5rem;
    }
}

/* Landscape en tablets pequeñas */
@media (max-width: 1024px) and (orientation: landscape) {
    .kiosk-grid {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .entrada-header {
        gap: 0.5rem;
    }

    .live-clock {
        font-size: 1.75rem;
    }

    .registro-panel {
        padding: 1.25rem;
    }

    .registro-titulo {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .registro-subtitulo {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .neo-input-large {
        height: 2.75rem;
        font-size: 1.5rem;
    }

    .teclado-numerico {
        gap: 0.375rem;
        margin-bottom: 1rem;
    }

    .tecla {
        height: 2.5rem;
        font-size: 1rem;
    }

    .btn-accion {
        height: 2.75rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .entrada-footer {
        gap: 0.5rem;
    }

    .info-card {
        padding: 0.625rem;
        gap: 0.625rem;
    }

    .info-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }

    .info-label {
        font-size: 0.5625rem;
    }

    .info-value {
        font-size: 0.875rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .kiosk-grid {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .sucursal-nombre {
        font-size: 1rem;
    }

    .sucursal-direccion {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .live-clock {
        font-size: 1.5rem;
    }

    .live-date {
        font-size: 0.75rem;
    }

    .registro-panel {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .registro-titulo {
        font-size: 1.25rem;
    }

    .registro-subtitulo {
        font-size: 0.75rem;
    }

    .neo-input-large {
        height: 2.75rem;
        font-size: 1.5rem;
        border-radius: 0.5rem;
    }

    .teclado-numerico {
        gap: 0.375rem;
    }

    .tecla {
        height: 2.5rem;
        font-size: 1rem;
        border-radius: 0.375rem;
    }

    .btn-accion {
        height: 2.75rem;
        font-size: 0.75rem;
        border-radius: 0.5rem;
    }

    .info-card {
        padding: 0.5rem;
        border-radius: 0.5rem;
    }

    .info-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .info-label {
        font-size: 0.5rem;
    }

    .info-value {
        font-size: 0.8125rem;
    }
}


.teclado-quiosco {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-user-select: none !important; /* Evita que el botón se seleccione como texto */
    user-select: none !important;
    cursor: pointer !important;
}