/* =========================================================
   FORMULARIO PRINCIPAL
   ========================================================= */
form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

/* =========================================================
   BOTONES DEL FORMULARIO
   ========================================================= */
button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.2rem;
    background: #2b7cff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #1a5fd1;
}

#cancelar {
    background: #888;
}

#cancelar:hover {
    background: #666;
}

/* =========================================================
   CONTENEDOR DEL GESTOR
   ========================================================= */
.gestor-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
}

/* =========================================================
   BOTONES GRANDES DEL GESTOR
   ========================================================= */
.gestor-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    gap: 1.5rem;
}

.gestor-btn {
    display: block !important;
    width: 100%;
    padding: 1.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: #2d6cdf;
    color: white;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gestor-btn:hover {
    background: #1a4fb8;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.gestor-btn:active {
    transform: scale(0.97);
}

/* =========================================================
   ICONO DE INFORMACIÓN
   ========================================================= */
.info-icon {
    cursor: pointer;
    font-size: 20px;
    color: #0077cc;
    margin-left: 8px;
}

.info-icon:hover {
    color: #005fa3;
}

/* =========================================================
   TEXTO OCULTO DE INFORMACIÓN
   ========================================================= */
.info-texto {
    display: none;
    background: #eef6ff;
    border-left: 4px solid #0077cc;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}
#info-texto {
    background: red !important;
}
.info-box {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
}
#info-texto {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 9999 !important;
}
/* =========================================================
   GESTOR PRÓXIMAS ACTIVIDADES
   ========================================================= */

/* Tarjeta de actividad */
.actividad-card {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Cabecera con iconos */
.actividad-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

/* Botones de icono */
.btn-icon {
    border: none;
    background: none;
    font-size: 1.6rem;   /* antes 1.2rem */
    cursor: pointer;
    margin-left: 12px;
    margin-right: 12px;
    padding: 6px;
    transition: transform 0.15s ease;
}

.btn-icon:hover {
    transform: scale(1.15);
}


.btn-icon.borrar {
    color: #d9534f;
}

.btn-icon.editar {
    color: #0275d8;
}

/* Campos */
.actividad-campo {
    display: flex;
    margin-bottom: 8px;
}

.actividad-campo .label {
    width: 110px;
    font-weight: bold;
    color: #333;
}

.actividad-campo .valor {
    flex: 1;
    color: #444;
}

/* Título de bimestre */
.bimestre-titulo {
    background: #2c3e50;
    color: #fff;
    padding: 10px 15px;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
}
.info-bloque {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}
.input-editar {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
}

.actividad-acciones,
.actividad-guardar {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-icon.guardar {
    color: #0a7c0a;
    font-size: 1.8rem;
}
.gestor-btn-guardar {
    display: inline-block;        /* El <a> se comporta como botón */
    background-color: #4CAF50;    /* Mismo color que el botón */
    color: white;
    padding: 10px 18px;           /* Tamaño visual equilibrado */
    border-radius: 6px;           /* Igual que los botones */
    border: none;
    text-decoration: none;        /* Quita subrayado del enlace */
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.gestor-btn-guardar:hover {
    background-color: #45a049;    /* Hover elegante */
}
.botonera-editar {
    display: flex;
    gap: 12px;      /* ← separación perfecta entre botones */
    margin-top: 15px;
}

/* =========================================================
   AGENDA DIARIA
   ========================================================= */

.agenda-lista {
    max-width: 600px;
    margin: 0 auto;
}

.agenda-item {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.agenda-img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.agenda-titulo {
    margin: 12px 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: capitalize;
    text-align: center;
}

.agenda-file {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

#convocatoria p {
    text-align: justify;
}

#convocatoria pre {
    text-align: justify;
    font-size: 1em; /* mismo tamaño que el texto normal */
    white-space: pre-wrap; /* permite saltos de línea sin romper diseño */
    font-family: inherit; /* evita que se vea más pequeño */
}
/* Bloque extra bajo la convocatoria */
.convocatoria-extra {
    margin-top: 25px;
    padding: 20px;
    background: #f7f9fc;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    text-align: center;
}

.convocatoria-extra h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #003366;
}

/* Botón PDF */
.btn-delegacion {
    display: inline-block;
    padding: 10px 18px;
    background: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
}

.btn-delegacion:hover {
    background: #005fa3;
}
