/* =============================================================
   Viajes y Turismo por México — styles.css
   Paleta derivada del logotipo de la marca
   ============================================================= */

:root {
  /* Marca */
  --orange:      #EA580B;
  --orange-600:  #C2410C;
  --orange-050:  #FDEEE3;
  --sky:         #38BDF8;
  --sky-600:     #0EA5D9;
  --sky-050:     #E5F6FF;
  --navy:        #07123F;
  --navy-800:    #0E1E52;
  --navy-700:    #16295F;

  /* Neutros cálidos (arena / adobe mexicano) */
  --sand:        #FBF6EE;
  --sand-200:    #F2E7D6;
  --paper:       #FFFFFF;
  --ink:         #0B1220;
  --muted:       #5A6478;
  --line:        #E7DFD2;

  /* Sistema */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(7,18,63,.06);
  --shadow-md: 0 14px 40px rgba(7,18,63,.10);
  --shadow-lg: 0 30px 70px rgba(7,18,63,.16);
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --ff-serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilidades ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 9px);
}
h1, h2, h3 { font-family: var(--ff-display); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; color: var(--navy); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(234,88,11,.30); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(234,88,11,.36); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid rgba(7,18,63,.16); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(7,18,63,.04); }
.btn svg { width: 18px; height: 18px; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,238,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav-logo svg, .nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--ff-display); font-weight: 600; font-size: .95rem; color: var(--navy); position: relative; padding-block: 4px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--orange); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-display); font-weight: 800; color: var(--navy);
  background: #fff; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease);
}
.nav-phone:hover { transform: translateY(-2px); }
.nav-phone svg { width: 17px; height: 17px; color: var(--orange); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; transition: .3s; }

/* =============================================================
   HERO — con línea de vuelo firma
   ============================================================= */
.hero { position: relative; padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 88% -10%, var(--sky-050), transparent 60%),
    radial-gradient(720px 420px at -5% 15%, var(--orange-050), transparent 55%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-content { max-width: 560px; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); font-weight: 900; }
.hero h1 .accent { color: var(--orange); position: relative; white-space: nowrap; }
.hero h1 .accent svg { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 14px; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); margin-top: 22px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-badge b { font-family: var(--ff-display); font-weight: 900; font-size: 1.7rem; color: var(--navy); display: block; line-height: 1; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

/* Espacio de imagen del hero (reemplaza el ticket) */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; margin: 0 auto; max-width: 460px; width: 100%;
  aspect-ratio: 5 / 6; border-radius: 24px; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--navy);
  box-shadow: var(--shadow-lg);
}

/* Línea de vuelo firma (SVG que atraviesa secciones) */
.flightpath { position: absolute; pointer-events: none; z-index: 0; }
.flightpath path { fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .55; }

/* =============================================================
   TIRA "VOLAMOS POR TODO MÉXICO"
   ============================================================= */
.marquee { background: var(--navy); color: #fff; padding-block: 18px; overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.marquee-item .dot { color: var(--orange); font-size: 1.4rem; line-height: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =============================================================
   DESTINOS — galería filtrable (nueva presentación)
   ============================================================= */
.destinos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.destinos-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.destinos-head p { color: var(--muted); max-width: 42ch; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  font-family: var(--ff-display); font-weight: 600; font-size: .92rem; color: var(--navy);
  background: #fff; transition: all .22s var(--ease);
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter .count { opacity: .55; font-size: .82em; margin-left: 4px; }

.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Tarjeta de destino: etiqueta de equipaje / sello de pasaporte */
.dest-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #fff; min-height: 400px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  isolation: isolate;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dest-card__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: #0b3a52; /* respaldo si la imagen aún no existe */
  transition: transform .6s var(--ease);
}
.dest-card:hover .dest-card__bg { transform: scale(1.06); }
.dest-card__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(7,18,63,.85) 100%);
}

.dest-card__code {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-family: var(--ff-display); font-weight: 900; font-size: .78rem; letter-spacing: .18em;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.dest-card__body { position: relative; z-index: 2; padding: 24px; }
.dest-card__cat { font-family: var(--ff-serif); font-style: italic; font-size: .92rem; color: var(--sky); text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 1px 10px rgba(0,0,0,.4); }
.dc-cultura .dest-card__cat, .dc-pueblos .dest-card__cat { color: #ffd9a8; }
.dest-card__name { font-family: var(--ff-display); font-weight: 900; font-size: 1.7rem; line-height: 1.05; margin-top: 4px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.45); }
.dest-card__meta { display: flex; gap: 16px; margin-top: 12px; font-size: .82rem; color: rgba(255,255,255,.82); }
.dest-card__meta span { display: inline-flex; align-items: center; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 1px 8px rgba(0,0,0,.4); }
.dest-card__cta {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-weight: 700; font-size: .9rem;
  color: #fff; border-bottom: 2px solid var(--orange); padding-bottom: 2px; align-self: flex-start;
  transition: gap .25s var(--ease);
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 1px 8px rgba(0,0,0,.4);
}
.dest-card:hover .dest-card__cta { gap: 14px; }
.dest-card.is-hidden { display: none; }

/* =============================================================
   PROCESO
   ============================================================= */
.proceso { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.proceso .eyebrow { color: var(--sky); }
.proceso .eyebrow::before { background: repeating-linear-gradient(90deg, var(--sky) 0 4px, transparent 4px 9px); }
.proceso h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; position: relative; }
.step { position: relative; }
.step__num { font-family: var(--ff-display); font-weight: 900; font-size: 3.4rem; color: transparent; -webkit-text-stroke: 1.6px rgba(56,189,248,.6); line-height: 1; }
.step__icon { width: 48px; height: 48px; margin: 16px 0; color: var(--orange); }
.step h3 { color: #fff; font-size: 1.35rem; }
.step p { color: rgba(255,255,255,.72); margin-top: 8px; font-size: .96rem; }

/* =============================================================
   EXPERIENCIAS (features)
   ============================================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-content: center;
  background: var(--orange-050); color: var(--orange); margin-bottom: 18px;
}
.feature:nth-child(2n) .feature__icon { background: var(--sky-050); color: var(--sky-600); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner { position: relative; }
.cta-card {
  background: linear-gradient(135deg, var(--orange), var(--orange-600));
  color: #fff; border-radius: 26px; padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-card::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
}
.cta-card h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 18ch; }
.cta-card p { margin-top: 14px; font-size: 1.1rem; opacity: .95; max-width: 50ch; }
.cta-card .btn-navy { margin-top: 28px; }

/* =============================================================
   TESTIMONIOS
   ============================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative;
}
.testi .stars { color: var(--orange); letter-spacing: 2px; font-size: 1.05rem; }
.testi blockquote { font-size: 1.02rem; color: var(--ink); margin-top: 14px; line-height: 1.65; }
.testi__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-content: center; font-family: var(--ff-display); font-weight: 900; }
.testi__author b { display: block; color: var(--navy); font-family: var(--ff-display); }
.testi__author span { font-size: .84rem; color: var(--muted); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-block: 64px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: inline-block; background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.footer-logo img { height: 70px; width: auto; display: block; }
.footer-tag { margin-top: 16px; max-width: 32ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--ff-display); color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--sky); }
.footer-phone { font-family: var(--ff-display); font-weight: 900; font-size: 1.5rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* =============================================================
   ANIMACIONES DE SCROLL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

.draw-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.draw-path.is-in { animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo { max-width: 340px; }
  .dest-grid, .testi-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone.desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 22px var(--gutter); gap: 18px; box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
  }
  .dest-grid, .testi-grid, .steps, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-badges { gap: 18px; }
  .destinos-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .draw-path { stroke-dashoffset: 0; }
}
