﻿* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 16px;
}

.entrada-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.header-info {
    color: #fff;
    flex: 1;
    min-width: 200px;
}

.empresa-nombre {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .empresa-nombre i {
        font-size: 20px;
    }

.empresa-direccion {
    font-size: 13px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-time {
    color: #fff;
    text-align: right;
    flex: 1;
    min-width: 200px;
}

.live-clock {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .live-clock i {
        font-size: 28px;
    }

.live-date {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.entrada-main {
    padding: 24px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.registro-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 480px;
    margin: 0 auto 32px auto;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: inline-block;
    text-transform: uppercase;
}

.registro-titulo {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    color: #fff;
    text-align: center;
}

.registro-subtitulo {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
}

.input-section {
    margin-bottom: 24px;
}

.input-identificacion {
    font-size: 32px !important;
    text-align: center;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    letter-spacing: 8px;
    width: 100%;
}

    .input-identificacion::placeholder {
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 8px;
    }

.teclado-numerico {
    margin-bottom: 24px;
}

.teclado-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.btn-tecla {
    flex: 1;
    min-height: 56px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .btn-tecla:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .btn-tecla:active {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(0.98);
    }

.botones-accion {
    display: flex;
    gap: 12px;
}

.btn-accion {
    flex: 1;
    min-height: 56px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    padding: 12px;
}

    .btn-accion i {
        font-size: 20px;
    }

.btn-entrada {
    background: #10b981;
}

    .btn-entrada:hover {
        background: #059669;
    }

.btn-salida {
    background: #ef4444;
}

    .btn-salida:hover {
        background: #dc2626;
    }

.kpi-section {
    margin-top: 32px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .kpi-card:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.kpi-content {
    flex: 1;
}

.kpi-titulo {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-valor {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

@media (max-width: 992px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-info {
        text-align: center;
    }

    .empresa-nombre,
    .empresa-direccion {
        justify-content: center;
    }

    .header-time {
        text-align: center;
    }

    .live-clock,
    .live-date {
        justify-content: center;
    }

    .empresa-nombre {
        font-size: 18px;
    }

    .empresa-direccion {
        font-size: 12px;
    }

    .live-clock {
        font-size: 28px;
    }

        .live-clock i {
            font-size: 24px;
        }

    .live-date {
        font-size: 12px;
    }

    .registro-card {
        padding: 24px 20px;
    }

    .registro-titulo {
        font-size: 22px;
    }

    .input-identificacion {
        font-size: 28px !important;
        padding: 12px;
    }

    .btn-tecla {
        min-height: 52px;
        font-size: 20px;
    }

    .btn-accion {
        min-height: 52px;
        font-size: 15px;
    }

    .botones-accion {
        flex-direction: column;
    }

    .kpi-card {
        padding: 16px;
    }

    .kpi-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .kpi-valor {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .entrada-header {
        padding: 12px 16px;
    }

    .entrada-main {
        padding: 20px 12px;
    }

    .teclado-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .btn-tecla {
        min-height: 48px;
        font-size: 18px;
    }

    .registro-card {
        padding: 20px 16px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kpi-card {
        padding: 14px;
    }
}

/* =========================================
   ESTILOS MODALES (Pegar al final de Entrada.css)
   ========================================= */

/* Contenedor principal del modal */
#modalResultado .modal-content {
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Header del modal */
#modalResultado .modal-header {
    padding: 30px 30px 20px !important;
    border: none !important;
    flex-direction: column !important;
    text-align: center;
    color: white !important;
}

    /* Colores del Header según la clase que agrega tu JS */
    #modalResultado .modal-header.entrada {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    }

    #modalResultado .modal-header.salida {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    }

    #modalResultado .modal-header.error {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    }

/* Icono circular dentro del header */
#modalIcon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 15px auto !important;
    font-size: 32px !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

#modalTitulo {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: white !important;
}

/* Cuerpo del modal */
#modalResultado .modal-body {
    padding: 30px !important;
    text-align: center;
}

#modalImagen {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #fff !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
    margin-bottom: 20px !important;
}

#modalNombre {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 8px !important;
}

#modalMensaje {
    font-size: 15px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Footer del modal */
#modalResultado .modal-footer {
    padding: 20px 30px 30px !important;
    border: none !important;
    justify-content: center !important;
}

/* Botón de cerrar */
#btnCerrarModal {
    padding: 12px 40px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

    /* Colores del botón según la clase que agrega tu JS */
    #btnCerrarModal.entrada {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    }

    #btnCerrarModal.salida {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    }

    #btnCerrarModal.error {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    }

    #btnCerrarModal:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        color: white !important;
    }