/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* =========================
   FONDO GENERAL
========================= */
body {
    background-color: #f4f6f8;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.form-contenedor {
    max-width: 520px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background-color: #ffffff;
    background-image: url('marca-agua.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 280px;
}

/* =========================
   IMAGEN SUPERIOR
========================= */
.form-imagen {
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center;
}

.form-imagen img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* =========================
   TÍTULO
========================= */
.form-contenedor h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 18px;
    color: #333;
}

/* =========================
   CONSENTIMIENTO DE DATOS
========================= */
#mensajeConsentimiento {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 13px;
    color: #444;
    margin-bottom: 12px;
}

#mensajeConsentimiento input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    margin-top: 2px;
}

#mensajeConsentimiento a {
    color: #2f6da1;
    text-decoration: none;
}

#mensajeConsentimiento a:hover {
    text-decoration: underline;
}

/* =========================
   GRUPOS DE CAMPOS
========================= */
.form-grupo {
    margin-bottom: 12px;
}

.form-grupo label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 13px;
    color: #444;
}

/* =========================
   INPUTS Y SELECTS
========================= */
.form-grupo input,
.form-grupo select {
    width: 100%;
    height: 32px;
    padding: 4px 8px;
    line-height: 1.1;
    border: 1px solid #bfc5ca;
    border-radius: 4px;
    font-size: 13px;
    background-color: #f7f7f7; /* fondo suave para diferenciar campo editable */
}

.form-grupo input:focus,
.form-grupo select:focus {
    outline: none;
    border-color: #4a7fb4;
    background-color: #ffffff; /* opcional: resalta al enfocar */
}

/* =========================
   BOTÓN
========================= */
.form-boton {

    display:block;
    width:100%;
    height:36px;
    margin-top:10px;

    background-color:#2f6da1;
    color:#ffffff;

    border:none;
    border-radius:4px;

    font-size:14px;
    font-weight:bold;

    cursor:pointer;

    text-align:center;
    text-decoration:none;
    line-height:36px;
    padding:0;

}

.form-boton:hover {
    background-color: #245682;
}

/* =========================
   MENSAJES
========================= */
.mensaje-exito {
    background-color: #e6f4ea;
    color: #256029;
    border: 1px solid #b7dfc0;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 13px;
}

.mensaje-error {
    background-color: #fdecea;
    color: #a4282d;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* =========================
   ACTIVIDADES
========================= */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px; /* compacto en vertical y horizontal */
}

.actividades-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.actividades-grid input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 50%; /* checkbox circular */
    margin: 0;
}

/* =========================
   ERRORES
========================= */
input.error-field, select.error-field {
    border-color: #a4282d;
    background-color: #fdecea;
}

/* =========================
   MEDIA QUERIES PARA MÓVIL
========================= */
@media (max-width: 600px) {

    .form-contenedor {
        margin: 15px;
        padding: 20px;
    }

    .form-grupo input,
    .form-grupo select {
        height: 32px;
        font-size: 13px;
        background-color: #f7f7f7; /* mantener fondo suave en móvil */
    }

    .form-boton {

    font-size:15px;
    line-height:36px;
    padding:0;

    }

    .form-imagen img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 180px;
    }

    /* Actividades más compactas y circulares en móvil */
    .actividades-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px 8px;
    }

    .actividades-grid label {
        font-size: 12px;
        gap: 4px;
    }

    .actividades-grid input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }

    /* Checkbox consentimiento más compacto en móvil */
    #mensajeConsentimiento input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin-top: 1px;
    }
}

/* ==========================================================
   TABLERO BATCH
   ----------------------------------------------------------
   Módulo base para el Tablero de Control.

   Este bloque centraliza los estilos utilizados por
   tablero.php y por los módulos que se integren
   posteriormente (Enlace Municipal, Departamental,
   Administrador, etc.).

   IMPORTANTE:
   - No modifica estilos existentes.
   - No afecta formularios.
   - No altera login ni registro.
   - Solo incorpora estilos reutilizables para el tablero.

   Versión: 1.0.0
========================================================== */

/* Contenedor de información superior */

.tablero-info{

    background:#ffffff;
    padding:15px;
    border:1px solid #dcdcdc;
    border-radius:6px;
    margin-bottom:20px;

}


/* Tabla principal */

.tablero{

    width:100%;
    border-collapse:collapse;
    background:#ffffff;

}


/* Cabecera */

.tablero th{

    background:#222222;
    color:#ffffff;
    padding:12px;
    font-size:13px;
    font-weight:bold;
    text-align:center;

}


/* Celdas */

.tablero td{

    padding:12px;
    border-bottom:1px solid #dddddd;
    text-align:center;
    vertical-align:middle;

}


/* Primera columna */

.tablero td:first-child{

    text-align:left;

}


/* Botones de acción */

.tablero-boton{

    font-size:24px;
    text-decoration:none;

}


/* Estado */

.tablero-estado{

    font-size:13px;
    color:#444444;
    margin-top:4px;

}


/* Responsive */

@media (max-width:700px){

    .tablero{

        font-size:12px;

    }

    .tablero th,
    .tablero td{

        padding:8px;

    }

    .tablero-boton{

        font-size:20px;

    }

}
