/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Eliminar márgenes y paddings por defecto */
body, html {
    margin: 0;
    padding: 0;
}

/* Asegurar que el contenedor y la imagen ocupen todo el ancho */
.image-container {
    width: 100%;
    margin: 0;
    padding: 0;
}
img {
    width: 100%;
    height: auto;
    display: block; /* Eliminar espacio extra generado por imágenes inline */
}

h1 {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    color: #5E3B8D;
}
h2 {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    color: #5E3B8D;
}

fieldset {
    border: 2px solid #5E3B8D;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
}

legend {
    font-size: 1.2em;
    color: #5E3B8D;
    padding: 0 10px;
    font-weight: bold;
    text-transform: uppercase;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

input[type="text"], input[type="number"], input[type="date"], input[type="time"], select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #f0f0f0;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus, select:focus {
    border-color: #5E3B8D;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}

input[type="submit"] {
    width: 100%;
    background-color: #5E3B8D;
    color: white;
    padding: 12px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #357abd;
}

/* Estilos específicos para móviles */
@media (max-width: 768px) {
    fieldset {
        padding: 15px;
    }

    input[type="text"], input[type="number"], input[type="date"], input[type="time"], select {
        font-size: 0.9em;
    }

    input[type="submit"] {
        font-size: 1em;
    }
}

/* Estilos para la sección 20: Entrevista y Supervisión */
fieldset legend {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #5E3B8D;
}

label {
    font-size: 1em;
}

input[type="date"], input[type="time"] {
    padding: 8px;
}

input[type="number"] {
    max-width: 150px;
}

input[type="time"], input[type="date"] {
    max-width: 250px;
}

/* Añadir espacio entre los campos */
input, select {
    margin-bottom: 15px;
    float: left;
}

/* Nuevos estilos específicos */
fieldset {
    border: 2px solid #5E3B8D;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
}

select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f0f0f0;
}

select:focus {
    border-color: #5E3B8D;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}

/* Espacio entre opciones de múltiples selecciones */
select[multiple] {
    height: auto;
    min-height: 100px;
}

input[type="submit"] {
    background-color: #5E3B8D;
    color: white;
    padding: 12px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #357abd;
}
fieldset {
    transition: all 0.5s ease-in-out;
}

select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    background-color: #f0f0f0;
}

/* Estilo del archivo mostrar.php */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}
h1 {
    text-align: center;
    color: #333;
}
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}
th {
    background-color: #5E3B8D;
    color: white;
}
tr:nth-child(even) {
    background-color: #fff; /* Color alternativo para filas */
}
button, a {
    display: inline-block;
    background-color: #5E3B8D;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}
button:hover, a:hover {
    background-color: #0056b3;
}
.center {
    text-align: center;
    margin-bottom: 20px;
}
/* Botones extra */
.btn-encuestas {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-encuestas a {
    text-decoration: none;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-encuestas a:hover {
    background-color: #218838;
}

.descarga_cog {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
