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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

.reloj {
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.hora {
    font-size: 42px;
    font-weight: bold;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.fecha {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
    text-transform: capitalize;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    transition: border-color 0.2s;
    text-transform: uppercase;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-entrada {
    background: #27ae60;
}

.btn-entrada:hover:not(:disabled) {
    background: #229954;
}

.btn-salida {
    background: #e74c3c;
}

.btn-salida:hover:not(:disabled) {
    background: #c0392b;
}

.mensaje {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.mensaje.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.oculto {
    display: none;
}

.estado-dia {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.estado-dia h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
}

.registro-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e1e8ed;
    font-size: 14px;
}

.registro-item:last-child {
    border-bottom: none;
}

.registro-item .hora-registro {
    color: #2c3e50;
    font-weight: 600;
}

.registro-item .estado-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.estado-tag.abierto {
    background: #fff3cd;
    color: #856404;
}

.estado-tag.cerrado {
    background: #d4edda;
    color: #155724;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #95a5a6;
    font-size: 12px;
}
