
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Flexbox para el diseño vertical */
  }
  .anchor-offset {
    position: relative;
    top: -120px; /* altura del header + margen extra */
    display: block;
    height: 0;
    visibility: hidden;
  }
   
  /* CABECERO */
  #cabecero {
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Separar los elementos horizontalmente */
    align-items: center;
    background-color: white;
    color: black; /* Mejor contraste que blanco sobre blanco */
    padding: 20px;
    font-family: 'Poppins', sans-serif; 
  }
  
  #cabecero a {
    padding: 10%;
    color:black;
    font-size:20px;
  }
  
  /* CONTENEDOR PRINCIPAL */
  #caja-grande {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 180px;
    width: 100%;
  }
  
  /* BLOQUE DE TEXTO */
  .explicacion {
    margin-top:35px;
    width: 50%;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    padding: 10px;
    background-color: #ffffff;
    margin-left: 20px;
    border-radius: 5px;
  }
  
  /* GALERÍA DE IMÁGENES */
  .galeriaImg2 {
    width: 100%;
    padding-top: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  }
  
  .contenedor-imagen2 {
    position: relative;
    width: 100%;
    height:200px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .galeriasImgs {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .contenedor-imagen2:hover .galeriasImgs {
    transform: scale(1.1);
  }
  
  .texto-sobre-imagen {
    font-family: 'Poppins', sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .contenedor-imagen2:hover .texto-sobre-imagen {
    opacity: 1;
  }
  
  /* PIE DE PÁGINA */
  #pie-pagina {
    margin-top: 100px;
    padding: 20px;
    width: 100%;
    background-color: #f0a256;
    color: white;
    text-align: center;
    font-size: 18px;
    margin-top: auto; /* Esto empuja el pie de página al fondo */
  }

@font-face {
font-family: 'D3 Euronism';
src: url('./fonts/d3_euronism.ttf') format('truetype');
}
#pie-pagina p{
font-family: 'D3 Euronism'; /* Aplica la fuente personalizada */
}
 @media(max-width: 1200px) {
  #cabecero {
    height: 80px;
    padding: 10px;
  }
   #boton_home{
    display:none ;
   }
  #cabecero a {
    font-size: 18px;
    padding: 5px;
  }
  
  .explicacion {
    font-size: 16px;
    margin-top: -20px; 
  }

  .galeriaImg2 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 0 20px;
  }

  .contenedor-imagen2 {
    height: 200px;
  }
 }
/* ----------- TABLETS ----------- */
@media (max-width: 768px) {
  #cabecero {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 10px;
  }
   .botones{
    display:none;
   }
   

  #boton_home{
    display:block !important;
    margin-right:  90%;;
   
  }

  #caja-grande {
    flex-direction: column;
    align-items: center;
    margin-top: 140px;
  }

  .explicacion {
    width: 90%;
    margin-left: 0;
  }

  .galeriaImg2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 0 10px;
  }

  .contenedor-imagen2 {
    height: 180px;
  }
}

/* ----------- MÓVILES ----------- */
@media (max-width: 480px) {
  #cabecero {
    height: 40px;
    position:absolute;
  }

  #cabecero a {
    font-size: 14px;
    padding: 5px 0;
  }

  .explicacion {
    margin-top: -70PX; 
    font-size: 14px;
  }

  .contenedor-imagen2 {
    height: 150px;

  }

  #pie-pagina {
    font-size: 14px;
    padding: 10px;
  }
}



