/* =========================================================
   AVENTURAS VARGAS — Hoja de estilos principal
   =========================================================
   Sistema de diseño
   - Azul océano profundo:  #0F3D5C
   - Azul marca:            #1C6FA3
   - Turquesa:              #2FAFC4
   - Verde palma:           #4C8C3B
   - Verde profundo:        #2F5233
   - Dorado (acento sutil): #C9A24D
   - Fondo claro:           #FBFAF6
   - Texto oscuro:          #12232C
   ========================================================= */

:root {
  --navy: #0F3D5C;
  --blue: #1C6FA3;
  --turquoise: #2FAFC4;
  --green: #4C8C3B;
  --green-deep: #2F5233;
  --gold: #C9A24D;
  --bg: #FBFAF6;
  --bg-alt: #F1F6F5;
  --text: #12232C;
  --text-muted: #4B5D63;
  --white: #FFFFFF;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 30px -14px rgba(15, 61, 92, 0.35);
  --max-width: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #427a33; }

.btn-outline-light {
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.18); }

.btn-whatsapp {
  background: var(--navy);
  color: var(--white);
  padding: 11px 22px;
}
.btn-whatsapp:hover { background: #0a2c42; }
.icon-whatsapp { width: 18px; height: 18px; fill: currentColor; }

.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 61, 92, 0.08);
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--turquoise);
  transition: width 0.2s ease;
}

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

.header-whatsapp { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  margin: 0 auto;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 22px;
  background: var(--bg);
  border-top: 1px solid rgba(15,61,92,0.08);
  padding: 26px 24px 32px;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.mobile-menu.is-open { display: flex; }
.mobile-whatsapp { align-self: flex-start; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

/* .hero-bg ahora es el <video> de fondo del Hero (antes era una imagen).
   Mismas reglas: cubre todo el Hero sin deformarse, gracias a
   position: absolute + object-fit: cover. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,32,48,0.55) 0%, rgba(11,32,48,0.35) 45%, rgba(11,32,48,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 120px;
  max-width: 720px;
}

.hero-eyebrow {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 480px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 2;
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section {
  padding: 96px 0;
}
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--turquoise);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.section-eyebrow-light { color: var(--gold); }

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  max-width: 640px;
  margin-bottom: 48px;
}

/* =========================================================
   TOURS
   ========================================================= */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.tour-card {
  background: var(--white);
  border-radius: 4px 32px 4px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.tour-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.tour-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tour-card:hover .tour-image-wrap img { transform: scale(1.05); }

/* Usar cuando la imagen es un flyer/afiche con texto importante
   que no debe recortarse (ver campo "imagenAjuste" en script.js) */
.tour-image-contain img {
  object-fit: contain;
}
.tour-card:hover .tour-image-contain img { transform: none; }

.tour-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.tour-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tour-body h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.tour-destino {
  color: var(--turquoise);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.tour-meta span { display: flex; align-items: center; gap: 6px; }

.tour-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
}

.tour-highlights {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.btn-tour-info {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
}
.btn-tour-info:hover { background: var(--navy); color: var(--white); }

.btn-tour-reserve {
  background: var(--green);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-tour-reserve:hover { background: #427a33; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text p:not(.section-eyebrow) {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.about-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px 40px 4px 40px;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   BENEFICIOS
   ========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 32px;
}
.benefit-card {
  padding: 28px 6px;
  border-top: 2px solid rgba(15,61,92,0.1);
}
.benefit-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 14px;
}
.benefit-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

/* =========================================================
   COMO RESERVAR
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.step-card { position: relative; }
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--turquoise);
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  max-width: 22ch;
}

/* =========================================================
   GALERIA
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img,
.gallery-grid video {
  display: block;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-grid > *:nth-child(3n+1) { border-radius: 4px 26px 4px 26px; }

.gallery-grid img:hover,
.gallery-grid video:hover {
  transform: scale(1.035);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 30px 26px;
  border: 1px dashed rgba(15,61,92,0.25);
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* =========================================================
   FAQ / ACORDEÓN
   ========================================================= */
.accordion {
  max-width: 760px;
}
.accordion-item {
  border-bottom: 1px solid rgba(15,61,92,0.14);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}
.accordion-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--turquoise);
  transition: transform 0.25s ease;
  font-weight: 400;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel p {
  padding: 0 4px 22px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-title {
  color: var(--white);
  margin: 0 auto 16px;
}
.contact-text {
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  font-size: 1.08rem;
  margin-bottom: 32px;
}
.contact-phone {
  color: rgba(255,255,255,0.75);
  font-size: 0.94rem;
  margin: 18px 0 0;
}
.contact-phone span { font-weight: 600; color: var(--white); }
.social-links {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-links a {
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}
.social-links a:hover { border-color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
}
.footer-tagline { margin: 0; font-size: 0.92rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-social a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

/* =========================================================
   MODAL "VER INFORMACIÓN" DEL TOUR
   ========================================================= */
.tour-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 32, 48, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.tour-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
body.modal-open { overflow: hidden; }

.tour-modal {
  position: relative;
  background: var(--white);
  border-radius: 6px 32px 6px 32px;
  width: min(640px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}
.tour-modal-overlay.is-open .tour-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15,61,92,0.85);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.modal-close svg { width: 18px; height: 18px; fill: currentColor; }
.modal-close:hover { background: var(--navy); }

.modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.modal-image-contain {
  object-fit: contain;
  background: var(--bg-alt);
}

.modal-body {
  padding: 30px 30px 34px;
}
.modal-body h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.modal-destino,
.modal-fecha {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 4px;
  font-weight: 500;
}

.modal-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15,61,92,0.1);
}
.modal-block h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.modal-block p {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.modal-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.modal-block li {
  color: var(--text-muted);
  font-size: 0.96rem;
  padding-left: 22px;
  position: relative;
}
.modal-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.modal-cross-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #B9503F;
  font-weight: 700;
}
.modal-promo {
  color: var(--gold) !important;
  font-weight: 600;
}

.modal-reserve {
  display: flex;
  width: 100%;
  margin-top: 28px;
}

/* =========================================================
   ANIMACIÓN DE ENTRADA (una sola vez, sutil)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-whatsapp { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { min-height: 92vh; }
  .hero-content { padding-top: 70px; padding-bottom: 90px; }
  .tours-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-name { display: none; }
  .btn { padding: 13px 22px; font-size: 0.94rem; }

  .tour-modal-overlay { padding: 0; align-items: flex-end; }
  .tour-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
  .modal-body { padding: 24px 20px 28px; }
}
