/*
    Theme Name: ProSIG-CSH-ciesas
    Theme URI: 
    Author: Alejandro Peñalosa
    Author URI: http://twitter.com/alexpenalosa
    Description: Theme Diseñado para AGES Oaxaca ProSIG-CSH
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: biblioteca, libros, antropología, historia, lingüística, ciencias sociales
    Text Domain: ages
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Oswald:wght@700&display=swap');

:root {
    /** Fuentes **/
    --fuente-prncipal: 'Raleway', sans-serif;
    --fuente-headings: 'Oswald', sans-serif;

    /** Colores **/
    --primario: #5a3410;
    --gris-oscuro: #2f2e2e;
    --gris-claro: #ebebeb;
    --blanco: #fff;
    --negro:#000; 
}

html {
    box-sizing: border-box;
    font-size: 62.5%; /** 10px = 1 rem **/
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuente-prncipal);
    font-size: 18px;
    font-size: 1.8rem;
    line-height: 2;
    background-color: var(--blanco)
}

/** Headings **/
/**h1, */h2, h3, h4 {
    font-family: var(--fuente-headings);
    margin:0 0 5rem 0;
    line-height: 1.2;
    color:var(--primario);
}
h1 {
    font-size: 6rem;
    font-family: var(--fuente-headings);
    margin:0 0 5rem 0;
    line-height: 1.2;
    color: var(--blanco);
}
h2 {
    font-size: 4.8rem;
}
h3 {
    font-size: 3.6rem;
}
h4 {
    font-size: 2.4rem;
}

/** Globales **/
hr {
    border-bottom: 1px var(--gris-claro);
}
p {
    margin:0;
    color:var(--negro);
    line-height: 1.2;
    font-size: 14px;
}
a {
    text-decoration:none;
}
ul {
    list-style:none;
    margin:0;
    padding:0;
}
img {
    display:block;
    max-width: 100%;
    height:auto;
}
.imagen-destacada {
    margin:3rem auto;
}

button {
    background-color:#462609
}
@media (min-width: 768px) {
  button {
    width: 100%;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color:#462609;
  }
  button a {
    color:white !important;
  }
}
.contenedor {
    width: min(95%, 120rem);
    margin: 0 auto;
}
.contenido-centrado {
    width: min(95%, 80rem);
    margin: 0 auto;
}

/** Utilidades **/
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-primary {
    color: var(--primario);
}
.text-blanco {
    color: var(--blanco);
}
.seccion {
    /*padding: 5rem 0;*/
}
.section .seccion {
    padding:0;
}

/** Header **/
.header {
    background-color: #d7dee1;
    padding-top:0;
    /*padding-bottom:2rem; *//
}
.header-nav-wrapper {
    display: flex;
    justify-content: flex-end;
}

.contenedor .barra-navegacion {
    margin:0 auto;
    background: transparent;
    padding:0;
    box-shadow:none;
    border-radius: 0%;

}
.barra-navegacion {
    display: flex;
    flex-direction: column;
    align-items:center;
}
@media (min-width:768px) {
    .barra-navegacion {
        flex-direction: row;
        justify-content:space-between;
    }
}


@media (min-width:768px) {
    .descubridor {
        flex-direction: row;
        justify-content:center;
        color:var(--blanco);
        background-color:var(--negro);
        margin-bottom:2rem;
    }
}
@media (min-width:768px) {
    .fixed-top {
        position:fixed;
        width:100%;
        top:0;
        left:0;
        padding:1rem 5rem;
        height:7rem;
        background-color: var(--gris-claro);
        z-index:1000;
        transition: background-color 300ms ease-in-out;
    }
}

.logo a img {
    padding:30px;
}

img {
    display: block;
    width: 45%;
    height: auto;
}

.tagline {
    color: var(--blanco);
    margin-top: 5rem;
}

@media (min-width:768px) {
    .tagline {
        margin-top: 15rem;
}
.tagline p {
    font-size: 2rem;
}

@media (min-width:992px) {
    .fixed-top {
        position:fixed;
        width: 100%;
        top: 0;
        left: 0;
        padding:1rem 5rem;
        height:10rem;
        z-index: index 1000;
    }
}

/*.menu-principal {
    display:none;
}*/

.hamburger-menu:hover {
    cursor: pointer;
}
@media (min-width:768px) {
    .hamburger-menu {
        display:none;
    }
}
.contenedor-menu {
    opacity:1;
    /*max-height: 0;*/
    transition-delay: 100ms, 300ms;
    transition-property: opacity, max-height;
    transition-timing-function:ease-in-out;
    transition-duration: 300ms;
    text-align:center;
    color:var(--primario);
}
@media (min-width:768px) {
    .contenedor-menu {
        all:unset;
    }
}  
.mostrar {
    opacity: 1;
    max-height:35rem;
    transition-delay: 100ms, 300ms;
    transition-property: max-height, opacity;
    transition-timing-function:ease-in-out;
    transition-duration: 300ms;
}

@media (min-width:768px) {
    .menu-principal {
        display:block;
    }
    .menu-principal .menu {
        display:flex;
    }
}
.menu-principal a {
    font-family: var(--fuente-prncipal);
    font-weight: 700;
    display:block;
    text-align:center;
    color: var(--primario);
    font-size: 1.8rem;
    padding :.5rem 2rem;

}


@media (min-width:768px) {
    .menu-principal .current_page_item {
        border-bottom: 3px solid var(--gris-oscuro);
     }
    .menu-principal a {
        position:relative;
        z-index:1;
    }
    .menu-principal a::before, 
    .menu-principal a::after {
        position: absolute;
        left: 0;
        content: '';
        display: block;
        width: 100%;
        height: 50%;
        background-color: var(--primario);
        z-index: -1;
        transform: scaleX(0);
        transition: transform .6s;
    }
    .menu-principal a::before {
        top: 0;
        transform-origin: left;
    }
    .menu-principal a::after {
        top:50%;
        transform-origin: right;
    }
    .menu-principal a:hover {
        color:var(--blanco);
    }
    .menu-principal a:hover::before {
        transform: scaleX(1);
    }
    .menu-principal a:hover::after {
        transform: scaleX(1);
    }
}

/** ----------- Footer ---------------**/

.footer {
  font-family: sans-serif;
  font-size: 0.9em;
  color: #333;
  padding: 1em;
}

.footer-wrapper {
  max-width: 100%;
}

.footer .imagenescc {
  text-align: left; /* Mantiene la alineación a la izquierda */
}

.footer .licencia {
  list-style: none;        /* Quita los puntos de la lista */
  padding: 0;
  margin: 0;
  display: grid;           /* Activa grid layout */
  grid-template-columns: repeat(5, auto); /* 5 columnas */
  column-gap: 0.3em;       /* Espacio horizontal entre íconos */
  align-items: center;     /* Centra verticalmente las imágenes */
}

.footer .licencia li {
  display: flex;           /* Centra la imagen dentro de la celda */
  align-items: center;
}

.footer .licencia img {
  max-width: 1em;
  max-height: 1em;
  vertical-align: middle;
}
.copyright {
    color: var(--negro);
}
.copyright a {
    color: #1864c6;
}



/** Cards **/
.listado-grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}
@media (min-width:768px) {
  .listado-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
.card:hover img {
  transform: scale(1.2);
}

.card {
  background-image: linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .7));
  position: relative;
  overflow: hidden;
}

.card img {
  display:block;
  position: relative;
  z-index: -1;
  height: 40rem;
  object-fit:cover;
  transition: transform 300ms ease;
}

.card .contenido {
  position:absolute;
  bottom:0;
  left:0;
  padding:2rem;
}

.card .contenido h4 {
  color:var(--color-blanco);
  margin:0;
}

.card .contenido p {
  color:var(--color-blanco);
}
/** Pdf embebido centrar **/
div.pdfemb-viewer {
    overflow: hidden;
    line-height: 1;
    margin: 0 auto;
    padding: 0px;
    border: 1px solid #000;
    position: relative;
    text-align: left;
    direction: ltr;
    background-color: #d3d3d3;
}

/** Sidebar **/
@media (min-width:768px) {
    .con-sidebar {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

/** Imagen de desplegados **/

.imagen-destacada.wp-post-image {
    width: 100%;
  }

/** Listado de Textos Sidebar **/

.textos-sidebar li {
    border-bottom: 1px solid var(--gris-claro);
    padding: 2rem 0;
    display:grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.textos-sidebar .imagen {
    width:100%;
}
.textos-sidebar li:last-of-type {
    border:none;
}
.textos-sidebar .contenido-textos h3 {
    margin:0;
    font-size: 2.5rem;
}
.textos-sidebar .contenido-textos a {
    color:var(--primario);
}
.textos-sidebar .contenido-textos p {
    font-size:1.3rem;
}
/* Recursos */
.reursos-sidebar li {
    border-bottom: 1px solid var(--gris-claro);
    padding: 2rem 0;
    display:grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.recursos-sidebar .imagen {
    width:100%;
}
.reursos-sidebar li:last-of-type {
    border:none;
}
.reursos-sidebar .contenido-textos h3 {
    margin:0;
    font-size: 2.5rem;
}
.reursos-sidebar .contenido-textos a {
    color:var(--primario);
}
.reursos-sidebar .contenido-textos p {
    font-size:1.3rem;
}
/* Periódicos*/
.periodicos-sidebar li {
    border-bottom: 1px solid var(--gris-claro);
    padding: 2rem 0;
    display:grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.periodicos-sidebar .imagen {
    width:100%;
}
.periodicos-sidebar li:last-of-type {
    border:none;
}
.periodicos-sidebar .contenido-textos h3 {
    margin:0;
    font-size: 2.5rem;
}
.periodicos-sidebar .contenido-textos a {
    color:var(--primario);
}
.periodicos-sidebar .contenido-textos p {
    font-size:1.3rem;
}

/** Página Principal **/ 
@media (min-width:768px){
    .fullwidth-video-container {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}
}
fullwidth-video-container {
    display:none !important;
}
.fullwidth-video-container {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}
@media (max-width:768px){
    .fullwidth-video-container {
        width: 100%;
        height: auto;
        max-height: auto;
        object-fit: cover;
    }
}
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 15px;
    color: white;
    font-size: clamp(1.2rem, 4vw, 2rem); /* Ajusta entre 1.2rem y 2rem */
    font-weight: bold;
    width: 90%;
    border-radius: 12px;
    line-height: 1.4;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .video-overlay {
        display:none;
    }
}

.titular .blanco {
    color: rgb(29, 33, 36), !important;
    width:100%;
}
@media (max-width:480px)  {
    .titular .blanco {
        color: white, !important;
        width:100%;
        background-color: var(--negro);
    }
}

@media (max-width: 768px) { /* Ajusta el tamaño según sea necesario */
    .fullwidth-gif {
        display: none;
    }

    .video-overlay h1 {
        font-size: 1.5em; /* Tamaño ajustado para móvil */
    }
}

@media (max-width: 768px) {
    .video-overlay h1 {
        display: block;
        font-size: 1.5em; /* Ajusta el tamaño según necesidad */
    }
}

/* Cambiar h1 por h2 en todas las pantallas */
.video-overlay h1 {
    font-size: inherit; /* Mantiene el estilo original */
    background: rgba(0, 0, 0, 0.25);

}

.video-overlay h1::before {
    content: " ";
    display: block;
}

.video-overlay h1 {
    font-size: inherit;
}


.intro .introtexto p {
    width:65%;
    font-size:1.8rem;

}

.bienvenida p{
    max-width: 90rem;
    margin:0 auto;
    text-align:justify;
    font-size: 18pt;
    line-height: 1.6;
    color:black;
}


.contenedor-wide {
    width:100%;
    background-color: #703f14a6;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 468px) {
    .contenedor-wide {
        width:100%;
        background-color: #703f14a6;
        padding:10px;
    }
}

/** Contenedor banner 2 cols**/
.fondo {
    background-color: #a28266;
}

.contenedor {
    /**max-width: 60%;
    margin: 0 auto;
    background: transparent;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;**/
}

.columnas {
    display: flex;
    gap: 20px;
}

.columna {
    flex: 1;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color:rgba(196, 169, 141, 1);
}

.btn-azul {
    background-color: #704214;
    color: white;
}

.btn-azul:hover {
    background-color:rgb(201, 151, 108);
}

.btn-verde {
    background-color: #704214;
    color: white;
}

.btn-verde:hover {
    background-color:rgb(201, 151, 108);
}
.btn-cafe {
    background-color: gba(196, 169, 141, 1);
}

.btn-cafe::hover {
    background-color:rgb(95, 59, 19);
    color:white;
}

.contenido {
    display: none;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ccc;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}
.contenido ul li{
    color:black;
}

.banner-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;

    margin:0 auto;
}

@media (max-width: 368px) {
  .banner-container {
    display: flex;
    flex-direction: column; /* Apila los elementos en columna */
    align-items: center; /* Centra los elementos horizontalmente */
  }

  .banner-button {
    width: 90%; /* Ajusta el ancho de los botones */
    margin-bottom: 10px; /* Agrega espacio entre los botones */
    text-align: center; /* Centra el texto dentro de los botones */
    padding: 10px; /* Mejora la apariencia de los botones */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
  }

  .contenedor {
    padding: 10px; /* Mejora el espacio alrededor del contenedor */
  }
}
@media (min-width: 768px) {
  .banner-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Distribuye los botones equitativamente */
    align-items: center; /* Centra los botones verticalmente */
    flex-wrap: wrap; /* Permite que los botones se envuelvan si es necesario */
  }

  .banner-button {
    width: 45%; /* Ajusta el ancho de los botones para dos columnas */
    margin-bottom: 10px; /* Agrega espacio entre los botones */
    text-align: center; /* Centra el texto dentro de los botones */
    padding: 10px; /* Mejora la apariencia de los botones */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
  }
}



.banner-container.contenedor {
    margin:0 auto;
    width:100%;
    align-items:center;
}

.banner-button {
    background-color: #704214; /* Color sepia */
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    margin:35px;
}

.banner-button:hover {
    background-color: #5a3410; /* Un sepia más oscuro al pasar el mouse */
    transform: scale(1.05);
}


.servicios {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .servicios {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .servicios {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 3rem;
        justify-items: center;
        max-width: 1200px;
        margin:0 auto;
    }
}
.servicio {
    height:25rem;
    position:relative;
    display:flex;
    justify-content:center;
    align-items: center;
}
.servicio::after {
    content: '';
    background-image: linear-gradient( rgb(0 0 0 / .5), rgb(0 0 0 / .5));
    position: absolute;
    width: 100%;
    height:100%;
    top: 0;
    border-radius:60%
}
.servicio img {
    height: 25rem;
    width:30rem;
    object-fit: cover;
    border-radius: 100%;
}
@media (min-width:768px) {
    .servicio,
    .servicio img {
        height: 20rem;
        width:20rem;
        border-radius: 100%;
    }
}
.servicio p {
    position: absolute;
    color:var(--blanco);
    z-index: 100;
    font-weight: 900;
}
@media (min-width:768px) {
    .servicio p {
        opacity:0;
        transition: opacity .5s ease-out;
    }
    .servicio:hover p{
        opacity:1;
    }
}

/* Tablas */

.content-table {
    border-collapse: collapse;
    margin: 5px 0;
    font-size: 0.9em;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width:100%;
}

th h3{
    background-color: #0e436e;
    color: #ffffff !important;
    text-align: left;
    font-weight: bold;
    margin-bottom:0;
}

.content-table th,
.content-table td {
    padding: 5px 5px;
}

.content-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.content-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.content-table tbody tr:last-of-type {
    border-bottom: 2px solid #0e436e;
}

.content-table tbody tr.active-row {
    font-weight: bold;
    color: #0e436e;
}

/* Ages-Directorio */

h3,h2.ages-todas {
    margin:.5rem 0;
}

/* Descubridor */

.container-descubridor {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border:none;
}

/* Flecha en contenido colapsado */
details {
    color: var(--primario);
    font-weight: 700;
}
details summary:hover {
    pointer-events: visible;
}
details summary::marker {
    content: "⮞ ";
    color: var(--primario);
    font-size: 1.5rem;
  }
  
  /* Flecha en contenido desplegado */
  details[open] summary::marker {
    content: "⮟ ";
  }

  /** estilos para boton de revistas **/
  .boton-revistas { 
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primario); /* Color de fondo del botón */
    color: #fff; /* Color del texto del botón */
    text-decoration: none; /* Quita subrayado del enlace */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 16px; /* Tamaño de la fuente */
    border: none; /* Quita borde del botón */
}

.boton-revistas:hover {
     background-color: #6b87b6; /* Cambia color de fondo al pasar el cursor sobre el botón */
}

/** Distribución del contenido **/

@media only screen and (max-width: 767px) {
    .contenedor-grid {
      grid-template-columns: 1fr; /* Cambia a una sola columna */
      grid-gap: 20px; /* Cambia el espacio entre elementos */
    }
  }

.contenedor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 49px; /* Espacio entre columnas */

  }
  
  .objeto {
    background-color: #ccc;
    height: 150px;
    padding:1rem;
    justify-content:center;
    align-content:center;
  }

  /* ACORDEON: Estilo base para los paneles */
 .accordion {
    max-width: 900px;
    margin: 0 auto;
    padding-top:2rem;
  }
  
  .accordion-item {
    border-bottom: 1px solid #003858;
  }
  
  /* Estilo para el encabezado del panel */
  .accordion-header {
    background-color: rgba(107, 135, 182, 0.55);
    padding: 10px;
    cursor: pointer;
  }
  
  /* Estilo para el contenido del panel */
  .accordion-content {
    padding: 20px;
    display: none; /* Ocultar el contenido por defecto */
  }
  
  /* Estilo para mostrar el contenido activo */
  .accordion-item.active .accordion-content {
    display: block;
    background-color: rgba(107, 135, 182, 0.35);
  }

  .bibliotecas, 
  .cargo {
    max-width:900px;
    margin:0 auto;
  }

  .container {
    max-width: 100%;
    background: white;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin:0 auto;
}

.columns {
    display: flex;
    gap: 20px;
}

.column {
    flex: 2;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.btn-blue {
    background-color: #007bff;
    color: white;
}

.btn-blue:hover {
    background-color: #0056b3;
}

.btn-green {
    background-color: #28a745;
    color: white;
}

.btn-green:hover {
    background-color: #1e7e34;
}

button .btn-cafe {
    background-color: rgba(196, 169, 141, 1);
}

button .btn-cafe::hover {
    background-color:rgb(95, 59, 19);
    color:white;
}

.content {
    display: none;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ccc;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

/**Formas para escritorio, tableta y movil*/

/* Estilos comunes para todos los tamaños de pantalla */
.seccion {
    padding: 20px;
}

.contenedor-wide {
    max-width: 100%;
    margin: 0 auto;
}

.banner-container {
    display: flex;
    /*justify-content: space-between;*/
    flex-wrap: wrap;
}


/* Para pantallas de escritorio */
@media (min-width: 768px) {
    .banner-container {
        flex-direction: row;
    }
    .banner-button {
        font-size: 18px;
        padding: 15px 30px;
        max-width: 30%;
    }
}

/* Para pantallas de tabletas */
@media (max-width: 1023px) and (min-width: 768px) {
    .banner-container {
        flex-direction: column;
        align-items: center;
    }
    .banner-button {
        font-size: 16px;
        width: 80%;
    }
}

/* Para pantallas de móvil */
@media (max-width: 767px) {
    .seccion {
        padding: 10px;
    }

    .banner-container {
        flex-direction: column;
        align-items: center;
    }

    .banner-button {
        font-size: 14px;
        width: 90%;
        margin: 8px 0;
    }
}

/** Propuestas cartográficas cards **/

/* Estilos generales */
.contenedor-propuestas {
    width: 100%;
    max-width: 1200px; /* Para que no se vea demasiado ancho en pantallas grandes */
    margin: 0 auto; /* Centrar el contenedor */
    padding: 20px;
}

/* Contenedor de las filas */
.fila-modulos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilos para cada módulo */
.modulo-izquierda-derecha {
    display: flex;
    flex-direction: column; /* Por defecto en móvil */
    align-items: center;
    width: 100%;
    gap: 20px;
    text-align: center;
}

/* Ajustes de imágenes */
.modulo-izquierda-derecha img {
    width: 100%; /* Hacer que las imágenes sean responsivas */
    max-width: 300px;
    height: auto;
    border-radius: 8px; /* Bordes redondeados */
    transition: transform 0.3s ease-in-out;
}

/* Efecto hover en imágenes */
.modulo-izquierda-derecha img:hover {
    transform: scale(1.05);
}

/* Texto dentro de cada módulo */
.texto-izquierda, .pagina-derecha {
    width: 100%;
    max-width: 500px;
}

.texto-izquierda img {
    max: width 95%;
}

/* Botón de instructivo */
.pagina-derecha button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.pagina-derecha button:hover {
    background-color: #002f5f;
}

/* Media query para pantallas mayores a 768px */
@media (min-width: 768px) {
    .modulo-izquierda-derecha {
        flex-direction: row; /* Se colocan en dos columnas */
        justify-content: space-between;
        text-align: left;
    }

    .texto-izquierda, .pagina-derecha {
        width: 48%;
    }
}


/** Imagenes de la página de Acervo Cartográfico **/

.contenedor-acervo {
        display: grid;
        grid-template-columns: repeat(3, 300px); /* Tres columnas */
        grid-template-rows: repeat(2, 300px); /* Dos filas */
        gap: 20px; /* Espaciado entre marcos */
        justify-content: center; /* Centrar el grid */
        width: fit-content; /* Ajusta el ancho al contenido */
        margin: auto; /* Centra el contenedor en la página */
    }
    
      .marco-imagen {
        width: 300px;  /* Tamaño cuadrado */
        height: 300px;
        border:rgba(51, 51, 51, 0.5) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Evita que la imagen sobresalga */
        background-color: #f0f0f0; /* Color de fondo del marco */
    }

    /* Las imágenes llenan el cuadro sin deformarse */
    .marco-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Ocupa el espacio vacío en la segunda fila */
    .marco-imagen:nth-child(4) {
        grid-column: 1; /* Primera columna en la segunda fila */
    }
    
    .marco-imagen:nth-child(5) {
        grid-column: 2; /* Segunda columna en la segunda fila */
    }
    

    @layer reset, base, utilities, components, layout, overrides;

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --direction {
  syntax: '<number>';
  initial-value: 1;
  inherits: true;
}

@layer reset {
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }

  :where(:not(dialog)) {
    margin: 0;
  }

  :where(html) {
    -webkit-text-size-adjust: none;

    @media (prefers-reduced-motion: no-preference) {
      scroll-behavior: smooth;
    }
  }

  :where(body) {
    min-block-size: 100svb;
    -webkit-font-smoothing: antialiased;
  }
}

@layer base {
  html {
    --surface-1: oklch(20% 0.03 269);
    --surface-2: oklch(26% 0.04 269);
    --text-1: oklch(91% 0.03 61);
    --body: 400 1rem/1.5rem system-ui, sans-serif;
    --display: 400 3.562rem/4rem system-ui, sans-serif;
    --display-small: 400 2.25rem/2.75rem system-ui, sans-serif;
    --label: 500 0.875rem/1.25rem system-ui, sans-serif;
    --title: 400 1.375rem/1.75rem system-ui, sans-serif;
    color-scheme: dark;
  }

  body {
    background-color: var(--surface-1);
    color: var(--text-1);
    font: var(--body);
  }
}

@layer layout {
  .section {
    display: grid;
    max-inline-size: 100%;
    min-block-size: 100svb;
    overflow-x: clip;
    padding-block: 80px;
    place-items: center;
  }

  .section-wrapper {
    display: grid;
    place-items: center;
  }

  .header {
    display: grid;
    place-items: center;
    gap: 16px;
    z-index: 2;

    /* lg-n-above */
    @media (width >=1024px) {
      /* Placing header and cards in the same grid cell to stack them */
      /* Both elements use grid-area: 1/1 to overlap within the same area */
      grid-area: 1/1;
    }
  }

  .hgroup {
    display: grid;
    place-items: center;
    gap: 8px;
  }

  .headline {
    font: var(--display-small);

    /* lg-n-above */
    @media (width >=1200px) {
      font: var(--display);
    }
  }

  .section-link {
    color: var(--text-1);
    text-decoration: underline;
    font: var(--label);

    /* lg-n-below */
    @media (width < 1024px) {
      display: none;
    }
  }

/* Contenedor de las cards */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra las tarjetas */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cards normales */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 280px; /* ancho fijo */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #5a3410;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.card a {
  display: inline-block;
  text-decoration: none;
  background: #0077cc;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.card a:hover {
  background: #005fa3;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/** Integrantes del equipo */
.team {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
  }
  
  .team h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
  }
  
  .team p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
  }
  
  /* Asegurar que los elementos se alinean correctamente */
  .team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las tarjetas */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Estilización de las tarjetas */
  .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 280px; /* Tamaño fijo para que se vean en línea */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #5a3410;
  }
  
  .card p {
    font-size: 2rem;
    color: #555;
    margin-bottom: 15px;
  }
  
  .card a {
    display: inline-block;
    text-decoration: none;
    background: #0077cc;
    color: #5a3410;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
  }
  
  .card a:hover {
    background: #005fa3;
  }
  
  .card:hover {
   transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
 .marco-imagen {
    line-height: 1.2;
    font-size: 15px;
    font-family: 'Lato';
}

.listado-biblio {
  list-style-type: square;
  color:#000;
}


//** Contenedor de mapas destacados **/

.contenedor-propuestas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.propuesta {
  text-decoration: none;
  color: #000;
  text-align: center;
}

.propuesta img {
  width: 100%;
  height: auto;
  display: block;
}

.propuesta h4 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Generador */
.generador-mapas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 4rem auto;
  align-items: center;
  padding: 0 1rem;
}

.generador-mapas img {
  width: 100%;
}

.boton {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-propuestas,
  .generador-mapas {
    grid-template-columns: 1fr;
  }
}
