/* Propiedades generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Quita las propiedades por default a los enlaces */
a {
    all: unset;
    cursor: pointer;
}

/* Bloque del encabezado */
.encabezado {
    background-color: #008079;
    padding: 1rem;
}

.imagen_encabezado {
    width: clamp(1.5625rem, 1.4699rem + 0.463vw, 1.875rem);
    height: auto;
    transition: transform 0.3s ease;
}

.enlace_encabezado:hover .imagen_encabezado {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transform: scale(1.3);
}

/* Bloque del contenido */
.contenido {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    align-items: center;
    padding: 1.5rem 0;
}

.wrapper_contenido {
    width: 80%;
    display: flex;
    flex-flow: column;
    gap: 2rem;
}

.item_wrapper table {
    width: 100%;
    border-collapse: collapse;  
}

tr {
  border-bottom: 2px solid #ddd;
}

.item_wrapper table tr td:nth-child(1) {
    width: 10%;
}

.item_wrapper table tr td:nth-child(2) {
    width: 80%;
}

.item_wrapper table tr td:nth-child(3) {
    width: 10%;
    text-align: center;
}

.titulo_tabla {
    font-size: clamp(1.375rem, 1.1932rem + 0.9091vw, 1.875rem);
    background-color: #005954;
    color: #ffffff;
    border-radius: 5px;
    padding: 0.2rem;
}


tr>td {
    padding: 0.5rem;
    font-size: clamp(0.6875rem, 0.5208rem + 0.8333vw, 1.25rem);
    text-align: left;
}

.opciones_tabla {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    justify-content: center;
    align-items: center;
}


.imagen_tabla {
    transition: transform 0.3s ease;
    width: clamp(0.9375rem, 0.7523rem + 0.9259vw, 1.5625rem);
}

.imagen_tabla:hover {
    filter: invert(41%) sepia(100%) saturate(4342%) hue-rotate(163deg) brightness(92%) contrast(95%);
    transform: scale(1.3);
}

.ojo_unico {
    visibility: hidden;
    pointer-events: none;
}

/* Bloque de las opciones con carrusel */
.fila-dinamica td {
    position: relative;
}


.flecha-izq,
.flecha-der {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #008079;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.flecha-izq {
    left: -0.5rem;
}

.flecha-der {
    right: -0.5rem;
}

.flecha-izq:hover,
.flecha-der:hover {
    color: #005a52;
}

/* Bloque del pop up o modal de visualizacion de archivos */
/* #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 90%;
    height: 90%;
    max-width: 800px;
    max-height: 600px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#popup iframe {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 8px;
} */

body.modal-abierto {
    overflow: hidden;
}

/* Overlay */
#overlay {
    display: none;
    position: fixed;
    inset: 0; /* atajo para top:0; left:0; width:100%; height:100%; */
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

/* Modal */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 90%;
    height: 90%;
    max-width: 800px;
    max-height: 600px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* evita huecos innecesarios */
}

/* iframe ocupa todo el modal */
#popup iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Ajustes en móviles muy pequeños */
@media (max-width: 400px) {
    #popup {
        width: 95%;
        height: 80%; /* para no ocupar toda la pantalla */
        max-height: none; /* quitar límite fijo */
    }
}

/* Bloque del footer */
.pie_pagina {
    background-color: #cccccc;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: 1.5rem;
    gap: 1rem;
}

.pie_pagina>* {
    flex: auto;
}

.seccion_pie {
    display: flex;
    gap: 1rem;
    flex-flow: column nowrap;
}

.seccion_pie h3 {
    text-align: center;

}

.opciones_pie {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.item_opciones {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.item_opciones:visited {
    color: #000000;
}

.imagen_pie {
    width: 1.5rem;
}

.mensaje_final {
    justify-content: center;
    flex-basis: 100%;
    text-align: center;
    padding-top: 2rem;
}