
.nav {
  display: flex;          /* los pone en fila */
  width: 100%;
}

.nav a {
  flex: 1;                /* todos ocupan el mismo espacio */
  text-align: center;     /* centra el texto */
  padding: 15px;
  text-decoration: none;
  color: black;
  transition: all 0.3s ease;
}

/* Hover */
.nav a:hover {
  font-size: 1.2em;
  background-color: rgba(217, 186, 85, 0.635);
  color: white;
}

.fullRec {
  position: relative;
  transform: scale(1.24);
  bottom: 10px;
  right: 30px;
  margin-top: 10px !important;
}

h1,h2,h3,h4,h5 {
  font-family: 'Poppins FCB';
}

p {
  font-family: 'Open Sans';
}

a {
  font-family: 'Montserrat FCB';
}

a {
  font-family: 'Montserrat FCB', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.fade-right.active {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* --- Definición de Animaciones (Keyframes) --- */

/* Entrada suave desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de expansión para el fondo de la imagen */
@keyframes subtleZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* --- Aplicación de Estilos y Animaciones --- */

/* Contenedor principal e imagen */
.imgContainer {
    overflow: hidden; /* Mantiene el zoom dentro del cuadro */
    position: relative;
}

.nurseImg {
    animation: subtleZoom 10s infinite alternate ease-in-out;
    filter: brightness(0.9);
}

.slogan {
    animation: fadeInUp 1.2s ease-out forwards;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Secciones de contenido */
.seccion-confianza, .testimonios {
    animation: fadeInUp 1s ease-out both;
}

/* Retraso para que la sección de confianza aparezca después del slogan */
.seccion-confianza {
    animation-delay: 0.5s;
}

/* Estilo para los testimonios con efecto Hover */
.testimonio {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    animation: fadeInUp 1s ease-out both;
}

.testimonio:nth-child(2) { animation-delay: 0.7s; }
.testimonio:nth-child(3) { animation-delay: 0.9s; }

.testimonio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Clases utilitarias que ya tienes en tu HTML */
.fade-up {
    animation: fadeInUp 1s ease-out forwards;
}

.zoom-in {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-in:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Estado inicial: oculto y desplazado hacia abajo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado activo: visible y en su posición original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos del Footer --- */
.main-footer {
    background-color: #1a1a1a; /* Gris muy oscuro, casi negro */
    color: #ffffff;
    padding: 60px 20px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.main-footer.active {
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: #d4af37; /* Dorado suave o color de acento profesional */
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #d4af37;
    margin-top: 8px;
}

.footer-section p, .footer-section li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    list-style: none;
}

.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    .footer-section h3::after {
        margin: 8px auto 0;
    }
}

.footer {
  background: #1f2d2b;
  color: #ffffff;
  padding: 60px 20px 20px;
  font-family: 'Open Sans Custom', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 30px;
}

/* Columnas */
.footer-col {
  flex: 1 1 220px;
}

/* Títulos */
.footer-col h3,
.footer-col h4 {
  font-family: 'Poppins Custom', sans-serif;
  margin-bottom: 15px;
  position: relative;
}

/* Línea dorada */
.footer-col h3::after,
.footer-col h4::after {
  content: '';
  width: 40px;
  height: 3px;
  background: #d4af37;
  display: block;
  margin-top: 5px;
  border-radius: 10px;
}

/* Texto */
.footer-col p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #d4af37;
  padding-left: 5px;
}

/* Redes */
.socials a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin: 6px 0;
  transition: 0.3s;
}

.socials a:hover {
  color: #d4af37;
  transform: translateX(5px);
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 13px;
  color: #aaa;
}

.footer {
  animation: fadeInFooter 1s ease;
}

@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  .nav {
    flex-direction: column; /* 🔥 clave */
    align-items: stretch;
  }

  .nav a {
    flex: none;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .fullRec {
  position: relative;
  transform: scale(1.24);
  right: 110%;
}

}

/* Estilos base para la navegación */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Estructura del Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* El menú que está escondido */
.dropdown-content {
  display: none; /* Escondido por defecto */
  position: absolute;
  background-color: #ffffff;
  min-width: 120px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 1;
  border-radius: 5px;
  border-top: 2px solid #B8860B; /* Color dorado de tu logo */
}

/* Enlaces dentro del menú desplegable */
.dropdown-content a {
  color: #005555; /* Azul oscuro de tu logo */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background 0.3s;
}

/* Cambio de color al pasar el mouse por las opciones */
.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #B8860B;
}

/* LA MAGIA: Muestra el menú al pasar el mouse por el contenedor */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Busca este bloque y déjalo así */
.nav a:hover {
  /* Eliminamos font-size: 1.2em para que no crezca */
  background-color: rgba(217, 186, 85, 0.635);
  color: white;
  /* El transition que ya tienes hará que el cambio de color sea suave */
}

.nav a {
  position: relative; /* Para el efecto del subrayado */
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 70%; /* El subrayado crece sin mover el texto */
}

/* 1. Estilo base: Definimos un tamaño fijo para que no se mueva */
.nav a, .dropbtn {
  flex: 1;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease; /* Quitamos 'all' para evitar animar el tamaño */
  font-size: 16px; /* O el tamaño que prefieras, pero FIJO */
  display: block;
  box-sizing: border-box; /* Evita que el padding extra mueva el botón */
}

/* 2. El Hover: SOLO cambiamos colores, NADA de tamaños */
.nav a:hover, .dropdown:hover .dropbtn {
  font-size: 16px !important; /* Forzamos a que se quede igual */
  background-color: rgba(217, 186, 85, 0.635);
  color: white;
  transform: none !important; /* Evita cualquier escalado */
}

/* 3. Ajuste para el Dropdown para que no rompa la fila */
.dropdown {
  flex: 1; /* Esto hace que 'Hospedaje' ocupe el mismo espacio que los otros 'a' */
  display: flex;
  flex-direction: column;
} 

.nav a:hover {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: -5px;
}

/* Busca el .dropdown-content y añade o cambia el 'top' */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 140px; /* Un poco más ancho para que se vea mejor */
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 100;
  border-radius: 5px;
  border-top: 3px solid #B8860B;
  
  /* --- ESTO ES LO QUE LO BAJA --- */
  top: 100%; /* Se coloca justo debajo del botón */
  left: 0;   /* Lo alinea a la izquierda del botón */
  margin-top: 5px; /* Espacio extra opcional para que no toque el borde */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 5px;
    border-top: 3px solid #B8860B;

    /* --- LA SOLUCIÓN AQUÍ --- */
    top: 100%;       /* Lo pega justo al borde inferior del nav */
    left: 0;         
    margin-top: 0;   /* ¡IMPORTANTE! No dejes espacio vacío */
    padding-top: 5px; /* Esto crea el puente invisible para el mouse */
}

/* Para que el puente no se vea blanco sobre el nav, usamos esto: */
.dropdown-content a:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px; /* Sube 20px de área invisible hacia el nav */
    left: 0;
    right: 0;
    height: 20px;
    display: block;
} 

/* Solo en PC */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }
}

.dropbtn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* También asegúrate de que el dropdown herede el mismo comportamiento */
.dropdown:hover > .dropbtn {
  background-color: rgba(217, 186, 85, 0.635);
  color: white;
}

.dropbtn {
  flex: 1;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: black;

  font-family: 'Montserrat FCB', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;

  background: none;
  border: none;
  cursor: pointer;

  display: block;
  width: 100%;
  box-sizing: border-box;

  transition: background-color 0.3s ease, color 0.3s ease;
}