/* =================================================
   HEADER SPACER – FIX HEADER FIJO
================================================= */
.header-spacer {
  height: 90px;
}

@media (max-width: 768px) {
  .header-spacer {
    height: 72px;
  }
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  transition: background 0.3s ease;
}



/* NAV CONTAINER */
.nav-container {
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo-img {
  height: 80px;
}

/* ================= DESKTOP ================= */
.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
   font-family: 'Poppins', Arial, sans-serif;

}


.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #03ac99;
  transition: 0.3s;
}

.nav a:hover {
  color: #03ac99;
}

.nav a:hover::after {
  width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  width: 36px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 3000;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: #03ac99;
  border-radius: 4px;
  transition: 0.35s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 60px;
}
@media (max-width: 800px) {
  .hero {
    background: url("../imagenes/nosotros2.webp") center / cover no-repeat;
    padding: 120px 20px 40px;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 30px 35px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size:1.5rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

/* BOTÓN *//* ================= FOOTER ESTILO MODERNO ================= */

.footer-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 80px 6%;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  
}



/* TARJETAS */
.footer-card {
  background: #037e6f8a;
  padding: 30px;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* LÍNEA DECORATIVA */
.footer-card::before {
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #04c8b7, #ffffff);
}

/* HOVER */
.footer-card:hover {
  transform: translateY(-8px);
  background: #02574e84;
}

/* TÍTULOS */
.footer-card h3,
.footer-card h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* TEXTO */
.footer-card p,
.footer-card a {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

/* HOVER LINKS */
.footer-card a:hover {
  color: #38bdf8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
  }
}
/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
  width: 100%;
  margin: 0;
  padding: 20px 0;
  background: #000;
  text-align: center;
}



/* Texto del footer */
.footer-bottom p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 20px;
  }
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cfcfcf;
  text-decoration: none;
}

.footer-link img {
  width: 60px;
  height: auto;
  object-fit: contain;
}
/* ===== ANIMACIÓN FOOTER AL SCROLL ===== */
.footer-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.footer-card.show {
  opacity: 1;
  transform: translateY(0);
}
.footer-constancia {
  text-align: center;
  margin-top: 40px;
}

.constancia-img {
  max-width: 220px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.constancia-img:hover {
  transform: scale(1.05);
}

.footer-bottom {
  width: 100%;
  background-color: #000;
  color: #ffffff;
  text-align: center;
  padding: 18px 12px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 5;
   position: relative;
  bottom: 0;
  margin: 0;
}
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 16px 38px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn:hover {
  background: #03ac99;
  color: #fff;
}

/* OCULTAR EXTRAS EN DESKTOP */
.nav-mobile-extra {
  display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  /* MENU MOBILE – SIN PARPADEO */
  .nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    opacity: 0;
    pointer-events: none;

    /* ❌ SIN TRANSICIÓN AQUÍ */
    transition: none;
  }

  /* ✅ TRANSICIÓN SOLO CUANDO SE ACTIVA */
  .nav.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.35s ease;
  }

  /* LINKS MOBILE */
  .nav a {
    font-size: 2rem;
    font-weight: bold;
    color: #03ac99;
    letter-spacing: 1px;
    text-decoration: none;

    opacity: 0;
    transform: translateY(20px);

    /* ✨ SOMBRA EN TEXTO */
    text-shadow:
      
      0 8px 18px rgba(0,0,0,0.25);
  }

  .nav.active a {
    animation: itemIn 0.5s ease forwards;
  }

  .nav.active a:nth-child(1) { animation-delay: 0.1s; }
  .nav.active a:nth-child(2) { animation-delay: 0.2s; }
  .nav.active a:nth-child(3) { animation-delay: 0.3s; }
  .nav.active a:nth-child(4) { animation-delay: 0.4s; }
  .nav.active a:nth-child(5) { animation-delay: 0.5s; }
  .nav.active a:nth-child(6) { animation-delay: 0.6s; }

  /* EXTRAS MOBILE */
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 30px;

    opacity: 0;
    transform: translateY(20px);
  }

  .nav.active .nav-mobile-extra {
    animation: itemIn 0.5s ease forwards;
    animation-delay: 0.6s;
  }

  .nav-social {
    display: flex;
    gap: 25px;
  }

  .nav-social img {
    width: 32px;
    height: 32px;
  }
}

/* ANIMACIÓN */
@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =============================
   🔥 BOTÓN WHATSAPP FLOTANTE
============================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* AJUSTE MOBILE */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float img {
    width: 40px;
    height: 40px;
  }
}
/* =================================================
   BOTÓN VOLVER A DESTINOS (PRINCIPAL)
================================================= */

.volver-destinos {
  max-width: 1100px;
  margin: 50px auto 12px; /* espacio superior + poco aire inferior */
  padding: 0 20px;
  display: flex;
  align-items: center;
}

/* BOTÓN */
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-volver:hover {
  background: #eaeaea;
  transform: translateX(-2px);
}

/* =================================================
   BOTÓN VOLVER A DESTINOS 2 (SECUNDARIO)
================================================= */

.volver-destinos2 {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.btn-volver2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-volver2:hover {
  background: #eaeaea;
  transform: translateX(-2px);
}

/* =================================================
   MOBILE
================================================= */

@media (max-width: 768px) {
  .volver-destinos {
    margin: 96px auto 16px; /* respeta header + compacto */
  }

  .volver-destinos2 {
    margin-top: 14px;
  }

  .btn-volver,
  .btn-volver2 {
    font-size: 0.9rem;
    padding: 9px 16px;
  }
}





/* ===============================
   CTA
=============================== */
.btn-whatsapp {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 28px;
  background: #25D366;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   ANIMACIONES
=============================== */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================
   SECCIÓN FAMILIA – TEXTO EDITORIAL + GALERÍA 3D
================================================= */

.familia-section {
  margin-top: 0px;
  padding: 10px 8% 100px;
  background: #fff;
  color: #111;
}


/* =========================
   INTRO (EDITORIAL)
========================= */

.familia-intro {
  margin-top: 0;        /* 🔥 quita el negativo */
  max-width: 100%;
  margin-bottom: 40px; /* 🔥 sube todo el bloque */
}



.familia-intro h2 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
   max-width: 100%;
}

.familia-intro p {
  font-size: 1.5rem;
  line-height: 1.85;
  opacity: 0.9;
  text-align: justify;
  margin: 0;
}

/* =========================
   BLOQUES
========================= */

.familia-bloque {
  margin-bottom: 100px;
  max-width: 100%;
}

.familia-bloque h3 {
  max-width: 100%;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 6px;
  
}

.lugares {
  max-width: 100%;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  opacity: 0.55;
  margin-bottom: 8px;
}

.descripcion {
  font-size: 1.5rem;
  line-height: 1.7;
  max-width: 100%;
  margin-bottom: 28px;
  text-align: justify;
}

/* =================================================
   GALERÍA 3D – ESTABLE (DESKTOP)
================================================= */

.galeria-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.galeria-horizontal {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* CARD */
.galeria-item {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ESTADOS */
.galeria-item.active {
  transform: translateZ(120px);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.galeria-item.left {
  transform: translateX(-340px) rotateY(18deg) scale(0.9);
  opacity: 0.6;
  z-index: 2;
}

.galeria-item.right {
  transform: translateX(340px) rotateY(-18deg) scale(0.9);
  opacity: 0.6;
  z-index: 2;
}

/* LABEL */
.galeria-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* BOTONES DESKTOP */
.galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.galeria-btn.prev { left: -60px; }
.galeria-btn.next { right: -60px; }

/* =========================
   DETALLES
========================= */

.familia-detalles {
  font-size: 1.5rem;
  margin-top: -80px;
  max-width: 520px;
}

.familia-detalles h3 {
  margin-top: 150px;
 max-width: 520px;
}

.familia-detalles li {
  margin-top: 20px;
  margin-bottom: 8px;
}
.familia-detalles2 h3 {
   font-size: 1.3rem;
  margin-top: 100px;
 max-width: 920px;
}

/* =========================
   CTA
========================= */

.familia-cta {
  margin-top: 10px;
}

.btn-whatsapp {
  display: inline-block;
  padding: 18px 36px;
  border-radius: 40px;
  background: linear-gradient(135deg, #25D366, #1ebd5a);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.4);
}

/* =========================
   ANIMACIÓN
========================= */



.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================
   GALERÍA MOBILE – SIN FLECHAS + INDICADOR DESLIZA
================================================= */
@media (max-width: 768px) {

  /* RESET 3D */
  .galeria-horizontal {
    transform: none !important;
    height: auto !important;
    justify-content: flex-start !important;
    align-items: center;
  }

  .galeria-item {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* CONTENEDOR */
  .galeria-wrapper {
    position: relative;
    padding: 32px 0 16px;
    overflow: hidden;
    display: block;
  }

  /* SCROLL */
  .galeria-horizontal {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 14%;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .galeria-horizontal::-webkit-scrollbar {
    display: none;
  }

  /* TARJETAS CUADRADAS Y GRANDES */
  .galeria-item {
    flex: 0 0 92vw;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 28px;
    overflow: hidden;
  }

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

  /* ❌ OCULTAR FLECHAS EN MOBILE */
  .galeria-btn {
    display: none !important;
  }

  /* TEXTO DESLIZAR */
  .galeria-wrapper::after {
    content: "Desliza  ←  →";
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.6;
    color: #000;
  }

 .galeria-wrapper,
.galeria-horizontal,
.galeria-item,
.galeria-item img {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

}
