#footer {
  background-color: #005f54;
  z-index: 10;
  padding: 0;
  padding-left: 0.5em;
  padding-right: 0.5em;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.25fr;
  visibility: visible;
  width: 100%;
  height: 10vh;
  margin-top: 100px
}

@media (aspect-ratio <= 4/3) {
  #footer  {
    display: flex;
    flex-direction: column; /* Cambia a columna para pantallas más pequeñas */
    align-items: center; /* Centra los elementos horizontalmente */
    height: auto;
    margin-top: 0;
  }
  .text-left{
    text-align: center;
    font-size: 0.9rem !important;
  }
  #footer > .section-center> .dedalo  > p{
    margin:auto;
    font-size: 0.9rem !important;
      
  }
  .dedalo_image{
    height: 1.5rem !important; 
  }
  .section-left{
    margin-top: 3%;
    margin-right: 3%;
    margin-left: 3%;
  }
  .section-center{
    margin-top: 3%;
    margin-bottom: 3%;
    margin-right: 3%;
    margin-left: 3%;
  }
  .section-right{
    margin-top: 3%;
    margin-bottom: 3%;
    margin-right: 3%;
    margin-left: 3%;
  }
 
  
}

@media (max-width: 600px) {
  
  .text-left{
    font-size: 0.7rem !important;
  }
  #footer > .section-center> .dedalo  > p{
    font-size: 0.7rem !important;
      
  }
  .dedalo_image{
    height: 1.15rem !important; 
  }
}
@media (aspect-ratio <= 4/3) {

  .section-right ul li {
    flex: 0 0 50%; /* 2 por fila */
    max-width: 95%;
  }
   .section-right ul li :nth-child(3) {
    height: 85%;
  }
  
  
  .section-center::before {
    display: none; /* Oculta el fondo en pantallas más pequeñas */
  }
  .section-center > a {
    display: none; /* Oculta el enlace en pantallas más pequeñas */
  }
  .section-center > a > img {
    display: none; /* Oculta el enlace en pantallas más pequeñas */
  }
}

#footer > .section-left {
  display: flex;
  flex-direction: column; /* Mantiene los elementos en una columna */
  justify-content: center;
  align-items: center;
  padding-top: 0.5%;
  padding-bottom: 0.5%;
}
#footer > .section-left > .text-left{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: white;
  font-size: 0.85rem;
  margin: 0 auto;

}

#footer > .section-center{
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* <-- alinea verticalmente */
  width: 100%;
  height: 100%;
}

.section-center::before {
  position:absolute;
  content: '';
  top: -50px; /* ajusta para que sobresalga hacia arriba */
  transform: translateY(-67.5%);
  width: 100%;
  height: 170%;
  background: url('../html/Footer_huevo.svg') no-repeat center;
  background-size: contain;
  background-position: bottom center; /* Asegura que el fondo esté centrado en la parte inferior */
  z-index: 0;
  overflow: visible !important;
}

.section-center > a {
  position: absolute;
  top: 5%; /* ajusta según tu diseño */
  left: 26%;
  transform: translateY(-80%);
  width: 9vw;
  height: 9vw; /* ← Añadí esto */
  aspect-ratio: 1;
  z-index: 10;
  display: block;
  border-bottom: none; /* sobre el fondo pero detrás del contenido si necesitas */
}

#footer > .section-center > .dedalo {
  display: flex;
  flex-direction: column; /* Cambia a columna para alinear verticalmente */
  justify-content: flex-end;
  width: 100%;
  height: 20%;
  margin-top:auto ;
}

.dedalo_image{
  height: 1.4em;
  vertical-align: text-bottom;
  transition: all 0.35s linear;
}
.dedalo_image:hover {
  transform: scale(1.05);
  opacity: 1;
  }

#footer > .section-center> .dedalo  > p{
  margin:0;
  font-size: 0.8rem;
  color: white;
  text-align: center;

}

.section-right {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%;
}

.section-right ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 columnas */
  margin: 0;
  margin-top: 0;
  padding: 0;
  width: 100%;
  height: auto;
  list-style: none;
}

.section-right ul li {
  display: flex; /* Centrar contenido en la celda */
  justify-content: center;
  align-items: center;
  padding-left: 0 !important;
}

.section-right ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* Centrar texto si lo hubiera */
  border-bottom: none !important;
}

.section-right ul li a img {
  max-width: 90%; /* Controla tamaño sin estirar */
  max-height: 90%;
  object-fit: contain;
  transition: all 0.35s linear;
}

.section-right ul li a img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.section-right ul li a img.small-img {
  max-width: 40%;
  max-height: 60%;
}
  
