/* =========================================================
   ALMAS NÓMADES — PREMIUM LANDING CSS
   Estrategia Tipográfica Editorial Premium (Spartan / Lato / Gothic)
========================================================= */

/* =========================================================
   1. VARIABLES GLOBALES Y RESETS
========================================================= */
:root {
  --bg: #F8ECDE;
  --bg-soft: #FFF9F4;
  --text: #241B10;
  --text-soft: #5A4638;
  --orange: #D66F32;
  --purple: #5F3465;
  --white: #FFFFFF;
  --shadow-soft: 0 12px 35px rgba(36, 27, 16, 0.06);
  --shadow-lift: 0 20px 45px rgba(36, 27, 16, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif; /* Cambiamos a Lato para una lectura ultra profesional y limpia */
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6; /* Un interlineado más generoso para que respire el texto */
  font-size: 1.05rem;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* Encabezados principales con League Spartan */
h1, h2 {
  font-family: 'League Spartan', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

/* Subtítulos y elementos cortos: Acá es donde brilla League Gothic */
h3, h4, h5 {
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
.card:focus-visible,
.collage-card:focus-visible {
  outline: 3px solid rgba(214, 111, 50, 0.55);
  outline-offset: 4px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section {
  position: relative; /* Asegúrate de que el contenedor tenga esto */
  overflow: hidden;   /* Para que nada se salga del borde */
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;

  /* Usamos una sola imagen para mayor control del espaciado */
  background-image: url('images/logo.png');

  /* Aumentamos el tamaño significativamente (ej. 400px o más).
     Cuanto más grande sea el valor, menos logos cabrán en pantalla.
  */
  background-size: 450px auto;

  /* El espaciado se controla con el tamaño.
     Movemos el origen para que no empiecen todos desde la esquina (0,0).
  */
  background-position: 50px 100px;

  /* Mantenemos el desenfoque suave para que no se vea tan rígido */
  filter: blur(0.8px);

  /* Opacidad un poco más baja para que sea un detalle sutil */
  opacity: 0.06;

  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.bg-soft {
  background-color: var(--bg-soft);
}

.section-title {
  font-size: 2.4rem;
  color: var(--orange);
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 40px;
}

/* =========================================================
   2. CABEZAL PRINCIPAL (HEADER)
========================================================= */
.main-header {
  background-image: linear-gradient(rgba(36, 27, 16, 0.6), rgba(36, 27, 16, 0.8)), 
                    url('images/cabezal.jpg');
  background-size: cover;
  background-position: center;
  padding: 96px 20px 84px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.header-compass {
  position: absolute;
  top: -40px;
  right: -50px;
  font-size: 20rem;
  color: var(--orange);
  opacity: 0.15;
  pointer-events: none;
  transform: rotate(15deg);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.logo-cabezal {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-text-block h1 {
  font-size: 3.5rem;
  letter-spacing: 0;
  margin-bottom: 15px;
  color: var(--bg);
}

.header-text-block p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 25px;
  max-width: 600px;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  font-family: 'League Gothic', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: all 0.3s ease;
  min-height: 48px;
}

.btn-main:hover {
  background-color: var(--purple);
  transform: translateY(-3px);
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.wave-divider .shape-fill {
  fill: #F8ECDE;
}

/* =========================================================
   3. SECCIÓN: SOBRE NOSOTROS
========================================================= */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-compass {
  position: absolute;
  bottom: -60px;
  left: -40px;
  font-size: 26rem;
  color: var(--orange);
  opacity: 0.03;
  pointer-events: none;
  transform: rotate(-15deg);
  z-index: 1;
}

.about-section .container {
  position: relative;
  z-index: 2;
}

.about-p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.about-p strong {
  display: block;
  margin-bottom: 12px;
}

.highlight-text {
  max-width: 520px;
  /* Cambio sugerido: si buscas algo más serio/armónico, prueba 'Playfair Display' o 'Lora' en itálica */
  font-family: 'Satisfy', cursive;

  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 500;

  /* Ajuste clave para legibilidad y elegancia */
  line-height: 1.6;
  letter-spacing: 0.02em;

  color: #5D4037; /* Asegúrate que sea un tono cálido sólido */

  margin: 30px 0 24px;
  padding: 0 0 0 20px; /* Un poco más de aire a la izquierda */

  /* Refinamiento del borde para que sea más sutil y sofisticado */
  border-left: 2px solid #D66F32;
}

.about-img-drop {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 41% 59% 45% 55% / 46% 37% 63% 54%;
  box-shadow: 0 10px 30px rgba(36, 27, 16, 0.06);
  transition: border-radius 0.6s ease, transform 0.6s ease; 
}

.about-img-drop:hover {
  border-radius: 59% 41% 55% 45% / 54% 63% 37% 46%;
  transform: scale(1.02) rotate(1deg); 
}

.about-extended {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
}

.about-extended.active {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.7s cubic-bezier(1, 0, 1, 0), opacity 0.5s ease;
}

.btn-readmore {
  background: var(--purple);
  border: 1px solid rgba(95, 52, 101, 0.18);
  border-radius: 999px;
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  padding: 13px 20px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(95, 52, 101, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-readmore:hover {
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(214, 111, 50, 0.22);
  transform: translateY(-2px);
}

.mvo-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0 15px 0;
  text-align: left;
}

.mvo-item {
  background: var(--bg-soft);
  padding: 25px 20px;
  border-radius: 8px;
  border-top: 4px solid var(--orange);
  box-shadow: 0 5px 15px rgba(36, 27, 16, 0.02);
}

.mvo-item h3 {
  font-size: 1.5rem; /* League Gothic con espaciado */
  color: var(--purple);
  margin-bottom: 10px;
}

.mvo-item p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* =========================================================
   4. PRÓXIMAS SALIDAS (Tarjetas Premium)
========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 30px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-info {
  padding: 35px 30px;
}

.card-info h3 {
  font-family: 'League Spartan', sans-serif; /* Títulos de tarjetas en Spartan para consistencia */
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0;
}

.card-info p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--white);
  background-color: var(--orange);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'League Gothic', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0;
  z-index: 2;
}

/* =========================================================
   5. ¿QUÉ VAS A VIVIR?
========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 45px;
}

.feature-card {
  text-align: center;
  padding: 45px 35px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(36, 27, 16, 0.06);
}

.feature-icon {
  min-height: 96px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* =========================================================
   6. VIAJES ANTERIORES (Deslizador Horizontal)
========================================================= */
.past-scroll-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 10px 35px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.past-card {
  flex: 0 0 min(360px, 86vw);
  scroll-snap-align: start;
  opacity: 0.9;
}

.past-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.past-scroll-container::-webkit-scrollbar-track {
  background: rgba(36, 27, 16, 0.03);
  border-radius: 10px;
}

.past-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(95, 52, 101, 0.25);
  border-radius: 10px;
}

.past-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

.past-card img {
  filter: grayscale(45%) contrast(1.05); 
  transition: filter 0.4s ease;
}

.past-card:hover img {
  filter: grayscale(0%) contrast(1);
}

.past-card .card-info {
  padding: 28px 26px 30px;
}

.past-card .card-info h3 {
  line-height: 1.15;
}

.badge-past {
  background-color: var(--text-soft) !important;
  color: var(--white);
}

.past-date {
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.past-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-top: 12px;
}

/* =========================================================
   7. RESEÑAS GOOGLE
========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

.testimonial {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonials-grid p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-top img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-top h5 {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  text-transform: none;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   8. NUESTRA COMUNIDAD INDOMABLE
========================================================= */
.community-section {
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.community-compass {
  position: absolute;
  top: -30px;
  right: -50px;
  font-size: 28rem;
  color: var(--purple);
  opacity: 0.02;
  pointer-events: none;
  transform: rotate(20deg);
}

.community-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.community-p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.community-highlight {
  font-family: 'League Spartan', sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--purple);
  font-weight: 700;
}

.collage-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 10px;
}

.collage-card {
  background: var(--white);
  padding: 10px 10px 40px 10px;
  box-shadow: 0 8px 25px rgba(36, 27, 16, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

.collage-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
}

.collage-card img.img-focus-top {
  object-position: center 30%;
}

/* Restaurada a la onda orgánica de Caveat */
.handwritten-note {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Caveat', cursive; /* Caveat recuperada */
  font-size: 1.35rem;
  color: var(--orange);
  white-space: nowrap;
  text-transform: none;
}

.pic-1 { transform: rotate(-3deg) translateY(-10px); }
.pic-2 { transform: rotate(4deg) translateY(5px); }
.pic-3 { transform: rotate(-2deg) translateX(-5px); }
.pic-4 { transform: rotate(3deg) translateY(-8px); }

.collage-card:hover {
  transform: scale(1.06) rotate(0deg);
  z-index: 10;
  box-shadow: 0 15px 35px rgba(36, 27, 16, 0.12);
}

/* =========================================================
   9. VISORES / MODALES
========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 18px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 450px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-height: 90vh; /* El modal nunca ocupará más del 90% de la altura de la pantalla */
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.close-modal:hover {
  background: var(--orange);
}

.modal-body h3 {
  font-family: 'League Spartan', sans-serif;
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: 5px;
  letter-spacing: 0;
}

.modal-body {
  padding: 25px;
  overflow-y: auto; 
  flex-grow: 1; /* Ocupa el espacio restante del modal */
}

/* Opcional: Para que la barra de scroll de la bitácora se vea más estética y premium */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

.modal-subtitle {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.whatsapp-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  width: 100%;
  margin-top: 20px;
}

.whatsapp-btn:hover {
  background-color: #1EBE55;
}

.pdf-btn {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 14px;
  background-color: var(--purple);
}

.pdf-btn:hover {
  background-color: var(--orange);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--bg);
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(36, 27, 16, 0.6);
  color: var(--white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: var(--orange);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.modal-lightbox {
  max-width: 700px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modal-lightbox .carousel-container {
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-lightbox .carousel-track img {
  object-fit: contain;
  background-color: #1a140e;
}

/* =========================================================
   10. BOTÓN FLOTANTE WHATSAPP
========================================================= */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  z-index: 12000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); 
  animation: pulse-radar 2s infinite;
}

.whatsapp-floating:hover {
  background-color: #1EBE55;
  transform: scale(1.1) rotate(8deg);
}

@keyframes pulse-radar {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 8px 25px rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 8px 25px rgba(37, 211, 102, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 25px rgba(37, 211, 102, 0.4); }
}

@media (max-width: 480px) {
  .whatsapp-floating {
    width: 65px;
    height: 65px;
    font-size: 2.2rem;
    bottom: 20px;
    right: 20px;
  }
}

/* =========================================================
   11. FOOTER PREMIUM (4 Columnas)
========================================================= */
.main-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(36, 27, 16, 0.95) 0%, rgba(111, 56, 62, 0.94) 48%, rgba(64, 34, 70, 0.96) 100%),
    url('images/cabezal.jpg') center/cover;
  color: var(--white);
  padding: 78px 0 26px;
  text-align: center;
}

.main-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/logo.png');
  background-repeat: repeat;
  background-size: 190px auto;
  opacity: 0.035;
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-bottom: 40px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.footer-title {
  font-family: 'League Spartan', sans-serif;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.footer-kicker {
  color: rgba(255, 249, 244, 0.76);
  font-family: 'Satisfy', cursive;
  font-size: 1.25rem;
  line-height: 1;
}

.footer-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 380px;
  margin: 0 auto;
}

.footer-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  font-family: 'League Gothic', sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-whatsapp-cta:hover {
  background: #1EBE55;
  transform: translateY(-2px);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  color: var(--bg);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.footer-qr img {
  width: 132px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 14px;
  background-color: var(--white);
  padding: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.qr-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.qr-link:hover {
  transform: scale(1.05);
}

.footer-qr p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 4px;
}

.footer-official {
  font-weight: 700;
  color: var(--bg) !important;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-legal a:hover {
  color: var(--bg);
  transform: translateX(4px);
}

.footer-payments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.payment-methods span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods i {
  color: var(--bg);
  font-size: 1.1rem;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--bg);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--bg);
}

/* =========================================================
   12. MEDIA QUERIES (TABLETS Y ESCRITORIO)
========================================================= */

@media (min-width: 768px) {
  .section { padding: 100px 0; }
  
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 50px;
    padding: 40px 0;
  }

  .header-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  .header-text-block h1 { font-size: 4.2rem; }

  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 50px;
    align-items: start;
  }

  .about-img-drop {
    height: 480px;
    position: sticky;
    top: 40px;
    z-index: 10;
  }

  .mvo-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
  }

  .cards-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .community-layout {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  
  .collage-card img { height: 190px; }
  
  .pic-1 { transform: rotate(-4deg) translateY(-15px); }
  .pic-2 { transform: rotate(5deg) translateX(10px); }
  .pic-3 { transform: rotate(-3deg) translateY(15px); }
  .pic-4 { transform: rotate(3deg) translateX(-5px); }

  .footer-container {
    grid-template-columns: minmax(280px, 1.55fr) 0.85fr 1fr 1fr;
    text-align: left;
    align-items: start;
    gap: 34px;
  }

  .main-footer { text-align: left; }
  .footer-brand { align-items: flex-start; }
  .footer-brand-head {
    flex-direction: row;
    align-items: center;
  }
  .footer-desc { margin: 0; }
  .social-icons { justify-content: flex-start; }
  .footer-qr { align-items: flex-start; text-align: left; }
  .payment-methods span { justify-content: flex-start; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .about-section .container {
    max-width: 1450px; 
    width: 95%;
  }

  .about-grid {
    grid-template-columns: 1fr 2.2fr; 
    gap: 80px; 
  }
}

@media (min-width: 1200px) {
  .about-grid { gap: 100px; }
}

@media (min-width: 1400px) {
  .about-section .container { max-width: 1600px; }
}

/* =========================================================
   13. MENÚ, CONTROLES Y DETALLES FINALES
========================================================= */
.btn-mas-info {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: 'League Gothic', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.btn-mas-info:hover {
  background: var(--text);
  color: var(--white);
}

.menu-hamburguesa,
.cerrar-menu {
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.menu-hamburguesa {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  background: rgba(36, 27, 16, 0.58);
  backdrop-filter: blur(8px);
  z-index: 9500;
  box-shadow: 0 8px 24px rgba(36, 27, 16, 0.18);
}

.menu-hamburguesa:hover,
.cerrar-menu:hover {
  transform: scale(1.05);
  background: rgba(36, 27, 16, 0.78);
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(100%, 410px);
  height: 100vh;
  color: var(--white);
  transition: right 0.4s ease;
  z-index: 9900;
  display: flex;
  flex-direction: column;
  padding: 64px 40px;
  background:
    linear-gradient(135deg, rgba(214, 111, 50, 0.96) 0%, rgba(95, 52, 101, 0.97) 100%),
    url('images/cabezal.jpg') center/cover;
  box-shadow: -24px 0 50px rgba(36, 27, 16, 0.22);
  backdrop-filter: blur(10px);
}

.sidebar.activo {
  right: 0;
}

.cerrar-menu {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.sidebar-nav a {
  color: var(--white);
  font-family: 'League Spartan', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-nav a:hover {
  opacity: 0.82;
  transform: translateX(-4px);
}

.sidebar-nav .link-destacado {
  margin-top: 12px;
  color: var(--bg);
}

#viajes-exterior {
  background:
    linear-gradient(135deg, rgba(95, 52, 101, 0.11), rgba(214, 111, 50, 0.08)),
    var(--bg-soft);
  border-top: 1px solid rgba(95, 52, 101, 0.08);
  border-bottom: 1px solid rgba(95, 52, 101, 0.1);
  padding-top: 86px;
  padding-bottom: 96px;
}

#viajes-exterior::before {
  opacity: 0.03;
  background-size: 220px auto;
}

#viajes-exterior .cards-grid {
  grid-template-columns: 1fr;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

#viajes-exterior .card {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  min-height: 360px;
}

#viajes-exterior .card img {
  height: 100%;
  min-height: 360px;
}

#viajes-exterior .card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 42px;
}

#viajes-exterior .card-info h3 {
  font-size: 1.9rem;
}

.experience-section {
  background-color: var(--bg);
  padding-top: 76px;
}

.alerta-legales-modal {
  background-color: var(--bg-soft);
  border-left: 3px solid var(--orange);
  padding: 12px;
  margin: 20px 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.alerta-legales-modal a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
}

.descripcion-truncada {
  position: relative;
  max-height: 110px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  margin-bottom: 10px;
}

.descripcion-truncada.abierta {
  max-height: 2200px;
}

#modal-description {
  white-space: pre-line;
}

.fade-texto {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.descripcion-truncada.abierta .fade-texto {
  opacity: 0;
}

.icono-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.handwritten-note {
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .main-footer {
    padding: 58px 0 22px;
  }

  .footer-container {
    gap: 28px;
    margin-bottom: 30px;
  }

  .footer-brand-head {
    margin-bottom: 12px;
  }

  .footer-logo {
    width: 62px;
    height: 62px;
  }

  .footer-whatsapp-cta {
    margin-top: 18px;
  }

  .social-icons {
    margin-top: 20px;
  }

  .footer-qr img {
    width: 118px;
  }

  .main-header {
    padding-top: 88px;
  }

  .header-text-block h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card-info {
    padding: 28px 22px;
  }

  #viajes-exterior {
    padding-top: 70px;
    padding-bottom: 76px;
  }

  #viajes-exterior .card {
    display: block;
    min-height: 0;
  }

  #viajes-exterior .card img {
    height: 260px;
    min-height: 0;
  }

  #viajes-exterior .card-info {
    padding: 30px 24px;
  }

  #viajes-exterior .card-info h3 {
    font-size: 1.55rem;
  }

  .btn-readmore {
    width: 100%;
  }

  .collage-container {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .sidebar {
    padding: 68px 28px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
