/* ===== ESTILOS PRINCIPALES - TEMA NARANJA ===== */
.sistema-vigiladores-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 20px;
    border: 3px solid #ff9800;
    box-shadow: 0 10px 40px rgba(230, 81, 0, 0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.titulo-principal {
    color: #e65100;
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.15);
    padding-bottom: 15px;
    border-bottom: 4px solid #ff9800;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contenedor-formularios {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .contenedor-formularios {
        grid-template-columns: 1fr;
    }
}

/* ===== SECCIONES ===== */
.seccion-formulario {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.establecimientos-seccion {
    border-top: 5px solid #ff9800;
}

.planilla-seccion {
    border-top: 5px solid #2196f3;
}

.titulo-seccion {
    background: linear-gradient(to right, #e65100, #ff9800);
    color: white;
    margin: 0;
    padding: 20px;
    font-size: 1.8em;
    text-align: center;
}

.planilla-seccion .titulo-seccion {
    background: linear-gradient(to right, #1976d2, #2196f3);
}

/* ===== TARJETAS ===== */
.card-formulario {
    padding: 25px;
}

.card-pdf {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #2196f3;
}

/* ===== FORMULARIOS ===== */
.form-vigilador {
    margin-bottom: 25px;
}

.grupo-form {
    margin-bottom: 20px;
}

.grupo-form label {
    display: block;
    margin-bottom: 8px;
    color: #e65100;
    font-weight: 600;
    font-size: 1.1em;
}

.label-naranja {
    color: #e65100 !important;
    font-size: 1.2em !important;
    font-weight: bold !important;
}

.input-vigilador,
.select-vigilador {
    width: 100%;
    padding: 14px;
    border: 2px solid #ff9800;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s;
    background: white;
    box-sizing: border-box;
}

.input-vigilador:focus,
.select-vigilador:focus {
    outline: none;
    border-color: #e65100;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.2);
    transform: translateY(-2px);
}

/* ===== BOTONES ===== */
.btn-vigilador {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 5px;
    min-width: 200px;
}

.btn-naranja {
    background: linear-gradient(45deg, #e65100, #ff9800);
    color: white;
    border: 2px solid #ff9800;
}

.btn-verde {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    color: white;
    border: 2px solid #4caf50;
}

.btn-azul {
    background: linear-gradient(45deg, #1565c0, #2196f3);
    color: white;
    border: 2px solid #2196f3;
}

.btn-rojo {
    background: linear-gradient(45deg, #c62828, #f44336);
    color: white;
    border: 2px solid #f44336;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: auto;
}

.btn-vigilador:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-naranja:hover { background: linear-gradient(45deg, #d84315, #ef6c00); }
.btn-verde:hover { background: linear-gradient(45deg, #1b5e20, #388e3c); }
.btn-azul:hover { background: linear-gradient(45deg, #0d47a1, #1976d2); }
.btn-rojo:hover { background: linear-gradient(45deg, #b71c1c, #d32f2f); }

/* ===== FILAS ===== */
.fila-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== VIGILADORES ===== */
.card-vigilador {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #ffb74d;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.15);
}

.cabecera-vigilador {
    background: linear-gradient(to right, #ffb74d, #ff9800);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.cabecera-vigilador h3 {
    margin: 0;
    font-size: 1.4em;
}

.contenedor-registros {
    margin: 20px 0;
}

.item-registro {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #ffcc80;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.acciones-form {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ===== TABLAS ===== */
.contenedor-tabla {
    margin-top: 30px;
}

.titulo-tabla {
    color: #e65100;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9800;
    font-size: 1.5em;
}

.titulo-pdf {
    color: #1976d2;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196f3;
    font-size: 1.5em;
}

.tabla-scroll {
    overflow-x: auto;
    border-radius: 10px;
    border: 2px solid #ff9800;
    background: white;
}

.tabla-vigiladores {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.fila-cabecera {
    background: linear-gradient(to right, #e65100, #ff9800);
    color: white;
}

.planilla-seccion .fila-cabecera {
    background: linear-gradient(to right, #1976d2, #2196f3);
}

.tabla-vigiladores th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
}

.tabla-vigiladores td {
    padding: 14px 20px;
    border-bottom: 1px solid #ffe0b2;
    font-size: 1em;
}

.tabla-vigiladores tbody tr:hover {
    background-color: #fff3e0;
}

.tabla-vigiladores tbody tr:nth-child(even) {
    background-color: #fff8e1;
}

.tabla-vigiladores tbody tr:nth-child(even):hover {
    background-color: #ffecb3;
}

.text-center {
    text-align: center;
    padding: 30px !important;
    color: #666;
}

.text-right {
    text-align: right;
    font-weight: bold;
}

/* ===== BUSCADOR ===== */
.buscador {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 2px solid #ff9800;
    border-radius: 10px;
    font-size: 1.1em;
    box-sizing: border-box;
    background: white;
    transition: all 0.3s;
}

.buscador:focus {
    border-color: #e65100;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.2);
    transform: translateY(-2px);
}

/* ===== TOTALES ===== */
.total-container {
    background: linear-gradient(to right, #e65100, #ff9800);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.planilla-seccion .total-container {
    background: linear-gradient(to right, #1976d2, #2196f3);
}

.total-text {
    font-size: 1.2em;
}

.total-valor {
    font-size: 1.8em;
    background: white;
    color: #e65100;
    padding: 10px 25px;
    border-radius: 8px;
    border: 3px solid #ffcc80;
}

.planilla-seccion .total-valor {
    color: #1976d2;
    border-color: #90caf9;
}

/* ===== SECCIÓN PDF ===== */
.seccion-pdf {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 3px dashed #2196f3;
}

/* ===== INPUTS ESPECIALES ===== */
.dni-input {
    background: #fff8e1;
    font-weight: bold;
    color: #e65100;
}

.horas-input {
    background: #e8f5e9;
    font-weight: bold;
    color: #2e7d32;
}

/* ===== DATE PICKER ===== */
.datepicker,
.datepicker-range {
    background: white url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e65100"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"/></svg>') right 15px center no-repeat;
    background-size: 24px;
    cursor: pointer;
    padding-right: 50px;
}

.datepicker-range {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231976d2"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"/></svg>');
}

/* ===== MENSAJES ===== */
.mensaje-exito {
    background: linear-gradient(to right, #2e7d32, #4caf50);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    display: none;
}

.mensaje-error {
    background: linear-gradient(to right, #c62828, #f44336);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sistema-vigiladores-container {
        padding: 15px;
        margin: 10px;
    }
    
    .titulo-principal {
        font-size: 2em;
        margin-bottom: 25px;
    }
    
    .btn-vigilador {
        width: 100%;
        margin: 8px 0;
    }
    
    .fila-form {
        grid-template-columns: 1fr;
    }
    
    .acciones-form {
        flex-direction: column;
    }
    
    .total-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-vigilador {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-vigilador:hover {
    animation: pulse 0.3s ease-in-out;
}

/* ===== ESTADOS ===== */
.input-vigilador:invalid {
    border-color: #f44336;
    background-color: #ffebee;
}

.input-vigilador:valid {
    border-color: #4caf50;
    background-color: #e8f5e9;
}