/* Configuración General y Reset */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 20px;
    background-color: #f0f3f4;
    color: #333;
}

/* Animación de Entrada para el Contenido de la Semana */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Diseño del Panel en dos Columnas */
.main-layout {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 25px;
}

.col-izquierda {
    flex: 2;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    /* Aplicación de la animación */
    animation: fadeInUp 0.4s ease-out forwards; 
}

.col-derecha {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Encabezados y Subtítulos */
h1, h2, h3 {
    margin-top: 0;
    color: #2c3e50;
}

.subtitulo-semana {
    color: #7f8c8d;
    font-weight: normal;
    margin-bottom: 25px;
}

/* Sección de Búsqueda por Fecha */
.buscador-fecha {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.buscador-fecha label {
    font-weight: bold;
    font-size: 0.85em;
    color: #475569;
}

.buscador-fecha input[type="date"] {
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    color: #2c3e50;
}

/* Botones y Navegación */
.navegacion {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9em;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:active {
    transform: scale(0.98);
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-pdf {
    background-color: #e67e22;
    margin-bottom: 20px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.btn-pdf:hover {
    background-color: #d35400;
}

.btn-guardar {
    width: 100%;
    margin-top: 10px;
    background-color: #2c3e50;
}

/* Tabla del Rol Semanal */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: white;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 14px;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
}

.hoy-resaltado {
    background-color: #e8f4fd !important;
    border-left: 5px solid #3498db;
    font-weight: bold;
}

.hoy-etiqueta {
    color: #3498db;
    font-size: 0.85em;
}

/* Encabezado Oculto para la Exportación PDF */
.titulo-pdf {
    padding: 10px 0;
    display: none;
}

/* Calendario Mensual Lateral */
.card-calendario {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.card-calendario h3 {
    margin-bottom: 5px;
    text-transform: uppercase;
}

.calendario-anio {
    color: #7f8c8d;
    font-size: 0.9em;
}

.grid-calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.calendario-header {
    font-weight: bold;
    color: #7f8c8d;
    font-size: 0.8em;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.calendario-dia {
    padding: 8px 0;
    font-size: 0.9em;
    border-radius: 4px;
    color: #2c3e50;
    position: relative;
}

.dia-vacio {
    visibility: hidden;
}

.hoy-circulo {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(231,76,60,0.4);
}

/* Formulario de Configuración de Nombres */
.formulario {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: #475569;
}

.form-group input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1em;
}


.btn-config {
    background-color: #7f8c8d;
    font-size: 0.85em;
    padding: 8px 14px;
}

.btn-config:hover {
    background-color: #616a6b;
}

.calendario-dia.semana-activa {
    background-color: #e8f4fd;
    font-weight: bold;
    border-radius: 4px;
}




