body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f0f0f0;
}

h1 {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    color: #fff;
    background-color: #5E3B8D;
    padding: 30px;
}

h2 {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    color: #5E3B8D;
}

h3 {
    text-align: center;
    color: #333;
}

/* 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 */
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1800px;
    margin: 0 auto;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #333;
}

legend {
    font-size: 1.2em;
    color: #5E3B8D;
    padding: 0 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estilos para la sección 20: Entrevista y Supervisión */
fieldset legend {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #5E3B8D;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #5E3B8D;
    color: white;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #5E3B8D;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
    text-align: center;
}

th, td {
    padding: 10px;
}

thead {
    background-color: #ddd;
}

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;
}

.min_ent_cog {
}

.min_ent_cog .sub_h_co {
    background-color: #5E3B8D;
    color: #fff;
    font-weight: bold;
}

.min_ent_cog .back_h_co {
    background-color: #fff;
}

.min_ent_cog .back_h_co input {
    text-align: center;
}

.min_ent_cog td {
}

.min_ent_cog .h_co {
    background-color: #5E3B8D;
    font-weight: bold;
    color: #fff;
}

.dep input {
    width: auto;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.duracion {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #5E3B8D;
    border-radius: 5px;
    padding: 15px;
}

.duracion input {
    width: 80px;
    padding: 8px;
    text-align: center;
}

/* 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;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ccc;
    text-align: center;
}

th {
    color: #fff;
    background-color: #5E3B8D;
}

th, td {
    padding: 10px;
}

thead {
    background-color: #5E3B8D;
}

tbody tr:nth-child(even) {
    background-color: #fff; /* Color alternativo para filas */
}

a {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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;
}
