/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Barra superior */
.top-bar {
    background-color: #0B714F; 
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center; /* alinea verticalmente */
    padding: 0.625rem 5%;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.contact-info {
  color: white;
  text-align: left;
  margin: 0;
}

.line-break {
  display: none;
}

@media (max-width: 40rem) {
  .line-break {
    display: inline;
  }

  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: #0B714F;
    transition: transform 0.5s ease;
    z-index: 1000;
  }

  .top-bar.hidden {
    transform: translateY(-100%);
  }

  .navbar {
    position: fixed;
    width: 100%;
    top: 3rem; /* altura normal cuando la top-bar está visible */
    transition: top 0.5s ease;
    z-index: 999;
  }

  .navbar.shift-up {
    top: 0; /* sube para ocupar el espacio del top-bar oculta */
  }
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    margin-left: 0.625rem;
    text-decoration: none;
}

.social-links img {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}


/* Barra de navegación */
.navbar {
    background-color: #eae9bf;
    position: fixed;
    top: 2.5rem;
    width: 100%;
    z-index: 999;
    overflow: visible;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6.25rem;
    padding-left: 8%;
    height: 6.875rem;
}

.navbar .logo img {
  height: 5rem;
  width: auto;
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.625rem;
}

.navbar ul li {
  min-width: 7.5rem;
  text-align: center;
}

.navbar ul li a {
  text-decoration: none;
  color: black;
  font-weight: normal;
  font-size: 1.0625rem;
  display: inline-block;
  min-width: 7.5rem;          
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 0.625rem 0;
}

.navbar ul li a:hover {
  transform: scale(1.1);
  color: black;          /* mantiene el texto negro al hacer hover */
  text-decoration: none; /* aseguramos que no aparezca subrayado en hover */
}

@media (max-width: 40rem) {
  .navbar {
    top: 4rem; /* o el valor que necesites para que no se superponga */
    padding: 0 2rem; /* opcional, ajustar padding si hace falta */
  }
}

/* Botón flotante de WhatsApp */
.whatsapp {
    position: fixed;
    width: 3.125rem;
    height: 3.125rem;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    display: block;
}

.whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.whatsapp img:hover {
    transform: scale(1.1);
}

/* Espacio para compensar la barra fija */
main {
  flex: 1;
  padding-top: 10.625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: 75rem;
  margin: auto;
}

footer > *, footer > * > * {
  margin-top: 0;
  margin-bottom: 0;
} 

/* Footer */
footer {
    background-color: #0B714F;
    color: #ccc;
    padding: 1.25rem 0.625rem;
    margin-top: 0;

}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-contact {
  line-height: 2.5;
  flex: 1 1 100%;       /* ocupa todo el ancho disponible si lo necesita */
  max-width: 100%;
}

.footer-contact p {
  overflow-wrap: anywhere; /* Permite que corte el email en el guion o punto si hace falta */
  white-space: nowrap;     /* En pantallas grandes: todo en una línea */
  overflow: visible;
  text-overflow: unset;
}

@media (max-width: 100rem) {
  .footer-contact p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    padding-left: 5.5em;   /* sangría general */
    text-indent: -5.5em;   /* quita sangría a la primera línea */
  }

  .footer-contact p.direccion {
    white-space: normal;
    overflow-wrap: break-word;
    padding-left: 5.5rem;
    text-indent: -5.5rem;
  }
}

.footer-nav h3{
  line-height: 2;
}

.footer-content div {
  margin: 0.625rem;
  max-width: 28.125rem;
}

.footer-content h3 {
    color: white;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    line-height: 1.4;
}

.footer-nav ul li {
  margin-bottom: 0.625rem;
}

.footer-nav ul li a {
  position: relative;
  color: #ccc;
  text-decoration: none !important; /* Asegura que se quite el subrayado estándar */
  display: inline-block;
  padding-bottom: 0.125rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 0.125rem;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s ease-in-out;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
    background-size: 100% 0.125rem;
}

/* Mapa en la parte inferior */
.footer-map {
    flex: 2 1 20rem; /* flex-basis: 20rem */
  min-width: 20rem;
  max-width: 100%;
  margin-top: 1.25rem;
}

/* Sección contacto */
.contact-section {
  margin: 3.125rem 0;
}

/* Nueva sección de imagen de fondo con degradado */
.imagen-fondo {
  width: 100%;
  height: 31.25rem;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 60%, #0B714F 100%),
    url('../img/fondo.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-fondo {
  width: 100%;
  height: 40.625rem;
  background: 
  linear-gradient(to right, rgba(0, 0, 0, 0.438), rgba(0, 0, 0, 0)),   
  url('../img/index.jpeg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: left;
  padding-left: 6.25rem;
  padding-right: 6.25rem;
}

.index-header h2 {
  text-align: left;
  font-size: 3rem;
  margin: 0;
  margin-top: 10.625rem;
  color: white;
}

.index-header h3 {
  text-align: left;
  font-size: 1.3125rem;
  margin: 0;
  margin-top: 0.625rem;
  color: #eae9bf;
  max-width: 45rem;
}

.index0 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9375rem, 5vw, 3.75rem);
  padding: 3.75rem 0;
  max-width: 156.25rem;
  margin: 0 auto;
  flex-wrap: wrap;
  background-color: #eae9bf5a;
  width: 100%;
}

.index-text0 {
  flex: 1;
  min-width: 18.75rem;
  max-width: 43.75rem;
  color: #333;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center;
}

.index-text0 h1 {
  font-size: 1.125rem;
  text-transform: uppercase;
  font-weight: 400;
  color: #0B714F;
  margin-bottom: 1.25rem;
  margin-left: 1.875rem;
}

.index-text0 h4 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 100%;
}

.index-text0 h3 {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 1.875rem;
  margin-bottom: 2.5rem;
  color: #555;
  max-width: 90%;
  margin-left: 1.875rem;
}

.boton-index-tdr,
.boton-index-tdr:link,
.boton-index-tdr:visited,
.boton-index-tdr:hover,
.boton-index-tdr:focus,
.boton-index-tdr:active {
  color: white !important;
  text-decoration: none;
}

.boton-index-tdr {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0B714F;
  font-size: 1.1875rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: background-color 0.3s ease;
  outline: none;
  border: none;
}

.boton-index-tdr:hover {
  background-color: #095c3f;
}

.index-image0 {
  flex: 1;
  min-width: 18.75rem;
  max-width: 37.5rem;
}

.index-image0 img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.index1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9375rem, 5vw, 3.75rem);
  padding: 3.75rem 0;
  max-width: 156.25rem;
  margin: 0 auto;
  flex-wrap: wrap; /* hace que sea responsivo */
}

.index-text1 {
  flex: 1;
  min-width: 18.75rem;
  max-width: 43.75rem;
  color: #333;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center;
}

.index-text1 h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  max-width: 100%;
}

.index-text1 h3 {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #555;
  max-width: 90%;
  margin-left: 1.875rem;
}

.boton-index-servicios,
.boton-index-servicios:link,
.boton-index-servicios:visited,
.boton-index-servicios:hover,
.boton-index-servicios:focus,
.boton-index-servicios:active {
  color: white !important;
  text-decoration: none;
}

.boton-index-servicios {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0B714F;
  font-size: 1.1875rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: background-color 0.3s ease;
  outline: none;
  border: none;
}

.boton-index-servicios:hover {
  background-color: #095c3f;
}

.index-image1 {
  flex: 1;
  min-width: 18.75rem;
  max-width: 37.5rem;
}

.index-image1 img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.index2 {
  width: 100%;
  height: 31.25rem; 
  background: 
    linear-gradient(to right, rgba(0, 0, 0, 0.487), rgba(0, 0, 0, 0.3)),   
    url('../img/index2.jpeg') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* alinea a la izquierda */
  justify-content: center;
  padding-left: 6.25rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.boton-wrapper {
  margin-top: 1.25rem;
  margin-left: 1.875rem;
}

.index-header2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* espacio entre los elementos */
  margin-left: 1.875rem;
  max-width: 60%;
}

.index-header2 h2 {
  text-align: left;
  font-size: 2.375rem;
  font-weight: 700;
  margin: 0;
  color: white;
  line-height: 1.5;
}

.index-header2 h3 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #ffffff;
  text-align: left;
}

.boton-wrapper a,
.boton-wrapper a:link,
.boton-wrapper a:visited,
.boton-wrapper a:hover,
.boton-wrapper a:focus,
.boton-wrapper a:active {
  color: white !important;
  text-decoration: none;
}

.boton-wrapper {
  margin-top: 2.5rem;
  display: inline-block;
  padding: 0.625rem 1.5625rem;
  background-color: #0B714F;
  font-size: 1.1875rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: background-color 0.3s ease;
  outline: none;
  border: none;
}

.boton-wrapper:hover {
  background-color: #095c3f;
}

.index3 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.875rem;
  padding: 3.75rem 1.25rem;
  flex-wrap: wrap;
}

.index-instalaciones3 {
  flex: 1 1 18.75rem;
  max-width: 21.875rem;
  border-radius: 0.625rem;
  padding: 1.875rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  color: rgb(0, 0, 0);
}

.index-actividades3 {
  flex: 1 1 18.75rem;
  max-width: 21.875rem;
  border-radius: 0.625rem;
  padding: 1.875rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  color: white;
}

.index-instalaciones3 {
  background-color: #eae9bf;
}

.index-actividades3 {
  background-color: #0B714F;
}

.index-foto3 {
  flex: 1 1 18.75rem;
  max-width: 21.875rem;
  max-height: 25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-foto3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.625rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.index-instalaciones3 p,
.index-actividades3 p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.boton-index-instalaciones,
.boton-index-actividades {
  background-color: white;
  color: #000;
  text-decoration: none;
 padding: 0.625rem 1.25rem;
  font-weight: bold;
  border-radius: 0.375rem;
  transition: background-color 0.3s;
  border: 0.125rem solid transparent;
}

.boton-index-instalaciones:hover {
  background-color: #eae9bf;
  border: 0.125rem solid black;
}

.boton-index-actividades:hover {
  background-color: #0B714F;
  border: 0.125rem solid white;
  color: white
}

@media (max-width: 50rem) {
  .index0,
  .index1 {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 1.25rem;
  }

  .index-text0,
  .index-text1,
  .index-image0,
  .index-image1 {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .index-text0 h1 {
    margin-left: 0;
  }

  .index-header h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .index-header h3{
    font-size: 1.3rem;
    text-align: center;
    max-width: 80%;
  }

  .index-header h2, 
  .index-header h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .index-fondo {
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
  }

  .index-header2 h2{
    font-size: 2rem;
    text-align: center;
    margin-left: 0;
    line-height: 1.4;
  }

  .index-header2 h3 {
    font-size: 1.25rem;
    text-align: center;
    margin-left: 0;
    line-height: 1.4;
  }

  .index2 {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
  }

  .index-header2 {
    margin: 0;
    max-width: 100%;
    padding: 0 1rem;
    align-items: center;
  }

  .boton-wrapper {
    margin: 1.5rem auto 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .boton-wrapper a {
    padding: 0.625rem 1.5625rem;
    background-color: #0B714F;
    border-radius: 0.625rem;
    font-size: 1.125rem;
    font-weight: 600;
  }

  .index3 {
    flex-direction: column;
    padding: 2.5rem 1.25rem;
  }

  .index-instalaciones3,
  .index-actividades3,
  .index-foto3 {
    max-width: 100%;
    margin-bottom: 1.875rem;
  }
}

/* Sección verde con el contenido */
.contacto-verde {
  background-color: #0B714F;
  color: white;
  padding: 3.75rem 0.625rem;
}

.contacto-verde .contacto-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 75rem;
  margin: auto;
  padding: 0 0.625rem;
}

.contacto-verde .formulario,
.contacto-verde .info-contacto {
  flex: 1 1 31.25rem;
}

.contacto-header h2 {
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin-top: 18.75rem;
  padding: 3.75rem 0 1.25rem 0;  
  color: white;
}

.contacto-verde .contacto-contenido {
  display: flex;
  flex-wrap: wrap;
  max-width: 75rem;
  margin: auto;
  gap: 2.5rem;
}

.formulario,
.info-contacto {
  flex: 1 1 31.25rem;
}

.info-contacto {
  margin-top: -3.125rem;
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.625rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.formulario textarea {
  resize: none;
  height: 9.375rem;
}

.boton-contenedor {
  display: block;          /* 🔐 evita que el flex lo estire */
  text-align: center;        /* o center / right según querés alinear */
}

.formulario button {
  display: inline-block;
  padding: 0.625rem 3.75rem;
  background-color: white;
  color: #0B714F;
  border: none;
  font-weight: bold;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario button:hover {
  background-color: #ccc;
}

.info-contacto {
  color: white;
  padding: 2.5rem 1.25rem;
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 31.25rem;
}

.info-contacto h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: white;
  border-bottom: 0.125rem solid white;
  padding-bottom: 0.625rem;
}

.info-contacto p {
  display: flex;
  align-items: flex-start;
  margin: 0.75rem 0;
}

.contact-item {
  margin-bottom: 0.9375rem;
}

.contact-item h4 {
  font-size: 1.1rem; 
  margin-bottom: 0.125rem; 
  color: #ffffff; 
  font-weight: 600;
}

.contact-item p {
  font-size: 1.1rem;
  color: #ffffff; 
  font-weight: 400;
  margin-left: 2em;
}

.extra-info > *, .extra-info > * > * {
  margin-top: 0;
  margin-bottom: 1.25rem; 
}

.extra-info {
  background-color: #ffffff;
  padding: 2.5rem 1.25rem 1.25rem 1.25rem; 
  width: 100%;
  margin-bottom: 0;
}

.redes-contenedor {
  max-width: 75rem; 
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem; 
  justify-content: flex-start;
  align-items: center;
}

.texto-redes {
  flex: 1 1 60%;
}

.texto-redes h3 {
  font-size: 1.5rem; 
  margin-bottom: 0.625rem; 
  text-transform: uppercase;
}

.texto-redes p {
  font-size: 1.125rem; 
  color: #333;
}

.botones-redes {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; 
  align-items: flex-end;
}

.boton-facebook,
.boton-instagram {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3125rem;
  font-weight: bold;
  color: white;
  text-align: center;
  width: 100%;
  max-width: 18.75rem;
}

.boton-facebook {
  background-color: #3b5998;
}

.boton-instagram {
  background-color: #E1306C;
}

.boton-facebook i,
.boton-instagram i {
  margin-right: 0.5rem;
  transition: background-color 0.3s ease;
}

.boton-instagram:hover {
  background-color: #c2185b; /* más oscuro que #E1306C */
}

.boton-facebook:hover {
  background-color: #2d4373; /* más oscuro que #3b5998 */
}



@media (max-width: 68.75rem) { 
  .redes-contenedor {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem; 
    text-align: center;
  }

  .texto-redes {
    width: 100%;
  }

  .botones-redes {
    align-items: center; /* ← centra los botones */
    width: 100%;
  }

  .boton-facebook,
  .boton-instagram {
    max-width: 60%; /* ← que no ocupen todo el ancho */
  }

  .info-contacto {
    order: 2;
    max-width: 85%;
    margin: 0 auto;
  }

  .info-contacto h3 {
    text-align: center;
  }

  .formulario {
    order: 1;
    max-width: 100%;
  }
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Por defecto, menú horizontal visible */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* todos a la derecha, o usa space-between si querés separarlos */
  gap: 1.25rem; /* espacio entre elementos */
  width: 100%;
}

/* Por defecto, hamburguesa oculta */
.hamburger {
  display: none;
  font-size: 1.875rem;
  cursor: pointer;
  z-index: 2000;

  padding-left: 1.25rem; 
  user-select: none;

  align-items: center;
  justify-content: flex-start;
  width: 3.75rem;
  height: 2.5rem;
  margin-left: 0;
}

/* Menú hamburguesa oculto por defecto */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 2.8125rem;
  right: 0;
  height: 100%;
  width: 21.875rem;
  background-color: #eae9bf;
  padding-top: 6.25rem;
  gap: 1.25rem;
  box-shadow: -0.125rem 0 0.3125rem rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1500;
  overflow-y: auto;
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

.hamburger-menu li:nth-child(1) {
  margin-top: 4.375rem;
}

/* Menú hamburguesa visible cuando tiene clase active */
.hamburger-menu.active {
  transform: translateX(0);
}

/* Cambiar ícono a X cuando se abre el menú */
.hamburger.open::before {
  content: "✖";
  font-size: 1.25rem;
}

/* Oculta el contenido original de la hamburguesa cuando está "open" */
.hamburger.open {
  color: transparent;
  position: relative;
}

.hamburger.open::before {
  position: absolute;
  color: black;
  top: 0.625rem;
  right: 1.25rem;
}

/* Media query para pantallas grandes (laptop y superior) */
@media (min-width: 64rem) {
  .footer-map {
    flex: 3 1 50rem;  
    max-width: 50rem;
    margin-top: 0;
  }

  .map-container {
    padding-bottom: 60%; 
  }
}


/* media query para que hamburguesa se muestre en pantallas chicas */
@media (max-width: 83.75rem) {
  .nav-container .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

form {
  display: flex; 
  flex-direction: column; 
  gap: 0.9375rem; 
  max-width: 31.25rem;  
  margin: auto;     
}

form input,
form textarea {
  width: 100%; 
  padding: 0.625rem; 
  font-size: 1rem;  
  box-sizing: border-box; 
}

/* ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN ADMISIÓN */
.admision-fondo {
  position: relative;
  width: 100%;
  height: 37.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admision-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    rgba(0, 0, 0, 0.5) url('../img/admision.jpg') no-repeat center center;
  background-blend-mode: darken;
  background-size: cover;
  z-index: 0;
}

.admision-header {
  position: relative;
  z-index: 1;
}

.admision-header h2 {
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin-top: 10.625rem;
  color: white;
}

.admision1 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.25rem;
  margin-top: 3.125rem;
  margin-bottom: 3.125rem;
}

.admision-text1 {
  font-size: 1.25rem; 
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  max-width: 60%;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 0.625rem; 
}

.admision-info {
  background-color: #eae9bf;
  padding: 3.75rem 2.5rem; 
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #3e2e2f;
}

.admision-contenido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3.125rem; 
  max-width: 75rem; 
  margin: 0 auto;
}

.columna-izquierda,
.columna-derecha {
  flex: 1;
  min-width: 18.75rem;
}

.columna-izquierda h2 {
  font-size: 1.625rem;
  font-weight: bold;
  margin-bottom: 0.625rem;
}

.linea {
  width: 3.75rem;
  height: 0.1875rem;
  background-color: #0B714F;
  margin-bottom: 1.25rem;
}

.iconos {
  font-size: 3.125rem;
  color: #0B714F;
  display: flex;
  gap: 1.5625rem;
  margin-bottom: 1.25rem; 
}

.columna-izquierda p {
  font-size: 1.25rem; 
  line-height: 1.6;
  margin-bottom: 0.9375rem; 
}

.telefono {
  font-weight: bold;
  font-size: 1.375rem; 
  color: #0B714F;
}

.columna-derecha h4 {
  font-size: 1.25rem; 
  font-weight: bold;
  margin-top: 10vh; /* bien usar vh para margen vertical relativo a la pantalla */
}

.columna-derecha h5 {
  font-size: 1.25rem; 
  font-weight: bold;
  margin-top: 3vh;
}

.columna-derecha ul {
  list-style: none;
  padding: 0;
  margin: 0.625rem 0 1.25rem; 
}

.columna-derecha li {
  margin-bottom: 0.625rem; 
  color: #053626;
  font-size: 1.125rem;
}

.columna-derecha .telefono {
  display: none;
}

@media (max-width: 48rem) {
  .admision-contenido {
    flex-direction: column;
  }

  .columna-derecha h4 {
    margin-top: 0;
  }

  .columna-derecha {
    padding-left: 1rem;
  }

  .columna-izquierda {
    text-align:center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .columna-izquierda, .columna-derecha {
    min-width: 100%;
  }

  .telefono {
    order: 3;
    margin-top: 2rem;
  }

  .columna-izquierda .telefono {
    display: none;
  }

  .columna-derecha .telefono {
    display: block;
  }
}

@media (max-width: 75rem) {
.admision-text1 {
  max-width: 85%;
  }
}

.admision-fotos {
  display: flex;
  width: 100vw; /* ancho total de la ventana */
  max-width: 100%; /* para no salirte del contenedor padre */
  overflow: hidden; /* evita que se salga contenido */
}

.admision-fotos img {
  flex: 1 1 0; /* que crezcan igual, sin mínimo ancho fijo */
  width: auto;  /* para que no estiren más que su contenedor */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-width: 25vw; /* máximo 25% del ancho pantalla para 4 fotos */
  height: auto;
}

@media (max-width: 45rem) {
  .admision-fotos {
    flex-wrap: wrap; /* permite que los items se envuelvan */
  }

  .admision-fotos img {
    max-width: 50vw; /* cerca del 50% del ancho para dos fotos por fila */
    flex-basis: 50vw; /* base para que ocupen casi la mitad */
  }
}

/* INSTALACIONES Y HABITACIONES INSTALACIONES Y HABITACIONES INSTALACIONES Y HABITACIONES INSTALACIONES Y HABITACIONES INSTALACIONES Y HABITACIONES */
.iyh-fondo {
  position: relative;
  width: 100%;
  height: 37.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iyh-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    rgba(0, 0, 0, 0.5) url('../img/iyh.jpeg') no-repeat center center;
  background-blend-mode: darken;
  background-size: cover;
  z-index: 0;
}

.iyh-header {
  position: relative;
  z-index: 1;
}

.iyh-header h2 {
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin-top: 10.625rem;
  color: white;
}

.instalaciones-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  background-color: #fdf9f3;
  padding: 3.75rem 9.375rem;
  align-items: center;
  justify-content: center;
}

.instalaciones-texto {
  flex: 1 1 28.125rem;
  max-width: 37.5rem;
  color: #121c2c;
}

.instalaciones-texto h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}

.instalaciones-texto ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.instalaciones-carrusel-container {
  position: relative;
  height: 31.25rem;
  max-width: 46.875rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instalaciones-carrusel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.instalaciones-carrusel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrusel-controles {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0.3125rem;
  transform: translateY(-50%);
}

.carrusel-controles button {
  background-color: rgba(0, 0, 0, 0.258);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.habitaciones-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  background-color: #fdf9f3;
  padding: 3.75rem 9.375rem;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}


.habitaciones-texto {
  flex: 1 1 18.75rem;
  max-width: 34.375rem;
  color: #121c2c;
  padding: 1.875rem 1.25rem;
  text-align: left;
}

.habitaciones-texto h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}

.habitaciones-texto ul {
  list-style: disc;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.habitaciones-carrusel-container {
  position: relative;
  height: 31.25rem;
  max-width: 46.875rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.habitaciones-carrusel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.habitaciones-carrusel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrusel-controles {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0.3125rem;
  transform: translateY(-50%);
}

.carrusel-controles button {
  background-color: rgba(0, 0, 0, 0.258);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.instalaciones-carrusel-container,
.habitaciones-carrusel-container {
  margin: 0 !important;
  padding: 0 !important;
}

.instalaciones-carrusel img,
.habitaciones-carrusel img {
  margin: 0 !important;
  display: block;
}

.instalaciones-section,
.habitaciones-section {
  margin: 0 !important;
}

.instalaciones-texto ul,
.habitaciones-texto ul {
  margin-bottom: 0 !important;
}

@media (min-width: 55rem) and (max-width:80.6rem) {
  .instalaciones-texto {
    order: 1;
  }

  .instalaciones-carrusel-container {
    order: 2;
  }

  .habitaciones-texto {
    order: 3;
  }

  .habitaciones-carrusel-container {
    order: 4;
  }

  .habitaciones-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .instalaciones-texto,
  .habitaciones-texto {
    width: 100%;
    max-width: none;
    padding: 0.5rem 0.5rem;
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-left: 0;
  }

  .instalaciones-texto h2,
  .habitaciones-texto h2 {
    font-size: 1.375rem;
  }

  .instalaciones-texto ul,
  .habitaciones-texto ul {
    list-style: disc;
    margin-left: 3rem;
    font-size: 1rem;
    line-height: 1.7;
  }

}


@media (max-width: 55rem) {
  .instalaciones-section,
  .habitaciones-section {
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .instalaciones-texto,
  .habitaciones-texto {
    width: 100%;
    max-width: none;
    padding: 0.5rem;
    text-align: center;
  }

  .instalaciones-texto h2,
  .habitaciones-texto h2 {
    font-size: 1.375rem;
  }

  .instalaciones-texto ul,
  .habitaciones-texto ul {
    padding-left: 1rem;
    font-size: 0.95rem;
    text-align: left;
  }

  .instalaciones-carrusel-container,
  .habitaciones-carrusel-container {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10; /* Mantiene proporción similar a escritorio */
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .instalaciones-carrusel img,
  .habitaciones-carrusel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .carrusel-controles {
    padding: 0 0.5rem;
  }

  .carrusel-controles button {
    font-size: 1.25rem;
    padding: 0.4rem 0.6rem;
  }

  .instalaciones-texto {
    order: 1;
  }

  .instalaciones-carrusel-container {
    order: 2;
  }

  .habitaciones-texto {
    order: 3;
  }

  .habitaciones-carrusel-container {
    order: 4;
  }
}


.contenedor {
  padding: 0 3.125rem;
}

.seccion-jardin {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  margin: 2.5rem auto;
  border-radius: 0.625rem;
  background-color: white;
  box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.1);
  min-height: 20rem;
  overflow: hidden;
  align-items: stretch;
}

.jardin-texto {
  background-color: #0B714F;
  color: white;
  padding: 2.5rem 2rem;
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jardin-texto p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.jardin-carrusel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jardin-imagenes {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.jardin-imagenes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0 0.625rem 0.625rem 0;
}

@media (max-width: 45rem) {
  .contenedor{
    width: 96%;
    margin: 0 auto;
  }
  .seccion-jardin {
    flex-direction: column;
    min-height: auto;
  }

  .jardin-texto {
    width: 100%;
    padding: 2rem 1.5rem;
    border-radius: 0.625rem 0.625rem 0 0;
    text-align: center;
  }

  .jardin-carrusel {
    width: 100%;
    height: 15rem; /* altura fija para evitar gaps */
    margin-top: 0;
  }

  .jardin-imagenes {
    width: 100%;
    height: 100%;
  }

  .jardin-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0.625rem 0.625rem;
  }
}



/* TIPOS DE RECIDENCIA TIPOS DE RECIDENCIA TIPOS DE RECIDENCIA TIPOS DE RECIDENCIA TIPOS DE RECIDENCIA TIPOS DE RECIDENCIA TIPOS DE RECIDENCIA*/
.residencia-fondo {
  position: relative;
  width: 100%;
  height: 37.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.residencia-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    rgba(0, 0, 0, 0.5) url('../img/residencias.jpg') no-repeat center center;
  background-blend-mode: darken;
  background-size: cover;
  z-index: 0;
}

.residencia-header {
  position: relative;
  z-index: 1;
}

.residencia-header h1 {
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin-top: 10.625rem;
  color: white;
}

.residencia-bloques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  background-color: #ffffff;
  gap: 1vh;
}

.bloque-up-l, .bloque-up-r, .bloque-down-l, .bloque-down-r {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  background-color: white;
  box-sizing: border-box;
}

.bloque-up-l h3, .bloque-up-r h3, .bloque-down-l h3, .bloque-down-r h3 {
  font-size: 1.5rem;
  margin-bottom: 1vh;
  color: #095c3f;
}

.bloque-up-l p, .bloque-up-r p, .bloque-down-l p, .bloque-down-r p {
  font-size: 1rem;
  color: #555;
  padding-right: 2vw;
  padding-left: 2em;
  text-align: justify;
}

.bloque-up-r {
  padding: 10vh 5vw 2.5vh 2.5vw;
}

.bloque-up-l {
 padding: 10vh 2.5vw 2.5vh 5vw;
}

.bloque-down-l{
 padding: 2.5vh 2.5vw 10vh 5vw;
}

.bloque-down-r{
 padding: 2.55vh 5vw 10vh 2.5vw;
}


@media (max-width: 75rem) {
  .residencia-bloques {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .bloque-up-l, .bloque-down-r {
  padding: 5vh 6vw;
  }

  .bloque-up-r, .bloque-down-l {
  padding: 2vh 6vw;
  }
}

/* SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS SERVICIOS*/
.servicios-fondo {
  position: relative;
  width: 100%;
  height: 37.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicios-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    rgba(0, 0, 0, 0.5) url('../img/servicios.jpg') no-repeat center center;
  background-blend-mode: darken;
  background-size: cover;
  z-index: 0;
}

.servicios-header {
  position: relative;
  z-index: 1;
}

.servicios-header h1 {
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin-top: 10.625rem;
  color: white;
}

.servicios1, .servicios2 {
  padding: 3.125rem 1.25rem;
  display: flex;
  justify-content: center;
  background-color: #eae9bf72;
}

.servicios2 {
  background-color: #ffffff;
}

.servicios1-contenedor,
.servicios2-contenedor {
  max-width: 75rem;
  width: 100%;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.servicios1-imagen,
.servicios2-imagen {
  width: 40%;
  height: 31.25rem;
  overflow: hidden;
  border-radius: 1.25rem;
  flex-shrink: 0;
}

.servicios1-imagen img,
.servicios2-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
}

.servicios1-texto,
.servicios2-texto {
  width: 60%;
  color: #1b2430;
}

.servicios1-texto h2,
.servicios2-texto h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.servicios1-texto p,
.servicios2-texto p {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  text-align: center;
}

.servicios1-texto ul,
.servicios2-texto ul {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.servicios1-texto li,
.servicios2-texto li {
  margin-bottom: 0.625rem;
  font-size: 1rem;
  line-height: 1.2;
}

/* RESPONSIVE */
@media (max-width: 59.375rem) {
  .servicios1-contenedor,
  .servicios2-contenedor {
    flex-direction: column;
    text-align: center;
    margin: 0vh 8vw;
  }

  .servicios1-imagen,
  .servicios2-imagen,
  .servicios1-texto,
  .servicios2-texto {
    width: 100%;
  }

  .servicios1-texto ul,
  .servicios2-texto ul {
    text-align: left;
    display: inline-block;
  }
}

/* ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES ACTIVIDADES */
.actividades-fondo {
  position: relative;
  width: 100%;
  height: 37.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actividades-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    rgba(0, 0, 0, 0.5) url('../img/actividades.jpg') no-repeat center center;
  background-blend-mode: darken;
  background-size: cover;
  z-index: 0;
}

.actividades-header {
  position: relative;
  z-index: 1;
}

.actividades-header h1 {
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin-top: 10.625rem;
  color: white;
}

.actividades1 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.25rem;
  background-color: #eae9bf72; 
}

.actividades-text1 {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  max-width: 60%;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 0.625rem;
  margin-top: 3.125rem;
  margin-bottom: 3.125rem;
}

.actividades-resumen {
  background-color: #ffffff;
  padding-left: 3.75rem;
  padding-right: 3.75rem;
  padding-top: 3.125rem;
  padding-bottom: 1.5625rem;
}

.actividades-iconos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 81.25rem;
  margin: 0 auto;
  text-align: center;
}

.icono {
  width: 11.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9375rem;
}

.icono i {
  font-size: 3.125rem;
  color:#0B714F;
}

.icono p {
  font-size: 0.95rem;
  color: #1b1b1b;
  line-height: 1.4;
}

@media (max-width: 43.75rem) {
  .icono {
    width: 100%;
  }

}

.actividades-lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.875rem;
  padding: 1.5625rem 3.75rem 3.125rem 3.75rem;
  width: 80%;
  margin: 0 auto;
}

.lista {
  background-color: #eae9bf72;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.lista-grande {
  grid-column: span 2;
}

/* 💡 Distribuye el UL de "Actividades Recreativas" en 2 columnas */
.lista ul {
  columns: 1; /* default */
  column-gap: 2.5rem;
  padding-left: 1.25rem;
  margin: 0;
  line-height: 1.8;
}

/* Solo aplicar columnas si hay muchas actividades */
.lista:nth-child(1) ul {
  columns: 2;
}

/* Ajustes para títulos y listas */
.lista h3 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem 0;
  color: #3b3b3b;
}

.lista ul {
  columns: 1;
  column-gap: 2.5rem;
  padding-left: 1.25rem;
  margin: 0;
}

.icono-caja {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  margin: 1.25rem;
  font-size: 2.5rem;
  color: #095c3fbc;
  opacity: 0.7;
}

/* Tooltip flotante */
#floating-tooltip {
  position: fixed;
  display: none;
  background-color: white;
  border: 1px solid #ccc;
  padding: 0.75rem 0.9375rem;
  border-radius: 0.625rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  max-width: 31.25rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  z-index: 10000;
  pointer-events: none;
  white-space: normal;
}

.tooltip-text {
  display: none;
}

.actividades-fotos {
  display: flex;
  width: 100vw; /* ancho total de la ventana */
  max-width: 100%; /* para no salirte del contenedor padre */
  overflow: hidden; /* evita que se salga contenido */
}

.actividades-fotos img {
  flex: 1 1 0; /* que crezcan igual, sin mínimo ancho fijo */
  width: auto;  /* para que no estiren más que su contenedor */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-width: 25vw; /* máximo 25% del ancho pantalla para 4 fotos */
  height: auto;
}

@media (max-width: 45rem) {
  .actividades-fotos {
    flex-wrap: wrap; /* permite que los items se envuelvan */
  }

  .actividades-fotos img {
    max-width: 50vw; /* cerca del 50% del ancho para dos fotos por fila */
    flex-basis: 50vw; /* base para que ocupen casi la mitad */
  }
}

@media (max-width: 50rem) {
  .actividades-lista {
    grid-template-columns: 1fr !important;
    width: 90% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .lista-grande {
    grid-column: span 1 !important;
  }
  .lista ul {
    columns: 1 !important;
  }

  #floating-tooltip {
    max-width: 90vw;  
    left: 5vw;
    right: 5vw;
  }

  .actividades-text1 {
    max-width: 80%;
  }
}


