/* =========================================================
   Rostrip · Turismo Educativo
   Mobile-first. Sistema visual basado en la landing de Egresados Primarios.
   ========================================================= */

/* ===== FUENTES (Montserrat variable 400–900, alojada en el tema · licencia OFL) ===== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== TOKENS ===== */
:root {
  /* Marca */
  --red: #ed3238;          /* color de marca: superficies grandes (hero, contacto, iconos) */
  --red-600: #d42a30;      /* botones (contraste AA con texto blanco) */
  --red-700: #b71f25;      /* hover */
  --red-ink: #c9252b;      /* texto rojo chico sobre fondos claros (AA) */
  --red-50: #fdeeee;
  --red-100: #fbdcdd;

  /* Neutros */
  --cream: #fdf3ef;
  --gray-50: #f3f3f4;
  --ink: #1a1a1a;
  --ink-2: #474747;
  --ink-3: #6b6b6b;
  --line: #e6e1de;
  --white: #ffffff;
  --footer: #141414;

  /* WhatsApp */
  --wa: #25d366;
  --wa-dark: #1ebe5a;

  /* Tipografía */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ls-body: -0.01em;
  --ls-title: -0.02em;
  --ls-label: 0.05em;

  /* Formas */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 34px -10px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 50px -18px rgba(0, 0, 0, 0.45);

  /* Layout */
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: 64px;

  /* Movimiento */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 88px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 40px; --header-h: 80px; --section-y: 110px; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: var(--ls-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
picture { display: block; }
.dest-card__media picture { height: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 2000;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ===== COMPONENTES BASE ===== */

/* Pill / etiqueta */
.pill {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--red-ink);
  color: var(--red-ink);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.pill--filled { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.pill--light  { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary:hover { background: var(--red-700); }

.btn--white { background: var(--white); color: var(--red-ink); }
.btn--white:hover { background: var(--red-50); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn--outline { border-color: var(--red-600); color: var(--red-ink); background: transparent; }
.btn--outline:hover { background: var(--red-600); color: var(--white); }

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.82rem; }
.btn--lg { min-height: 54px; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* Sparkle decorativo (mismo motivo que la referencia) */
.sparkle {
  position: absolute;
  color: #fdf0ea;
  opacity: 0.16;
  pointer-events: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); }

/* Barra de administración de WordPress (solo con sesión iniciada) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } } /* en mobile la barra no es fija */

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__logo { flex-shrink: 0; margin-right: auto; }
.site-header__logo img { height: 36px; width: auto; }

.site-header__cta { flex-shrink: 0; }
/* Pantallas muy angostas: el CTA no entra junto al logo; "Contacto" sigue en el menú */
@media (max-width: 359px) {
  .site-header__cta { display: none; }
}

/* Hamburguesa */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile: panel desplegable */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 0 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .25s var(--ease), visibility 0s;
}
.site-nav li + li { border-top: 1px solid #f0f0f0; }
.site-nav a {
  display: block;
  padding: 14px var(--gutter);
  font-size: 1rem;
  font-weight: 600;
  transition: color .2s;
}
.site-nav a:hover { color: var(--red-ink); }

@media (min-width: 960px) {
  .site-header__inner { gap: 32px; }
  .site-header__logo { margin-right: 0; }
  .site-header__logo img { height: 42px; }
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    margin-inline: auto;
    background: none;
    box-shadow: none;
    border: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 32px; }
  .site-nav li + li { border: 0; }
  .site-nav a {
    position: relative;
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--ink);
  }
  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
    transition: width .25s var(--ease);
  }
  .site-nav a:hover::after { width: 100%; }
  .site-header__cta { min-height: 44px; padding: 10px 24px; font-size: 0.85rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--red);
}

.sparkle--hero-a { width: 140px; height: 140px; left: -30px; bottom: -40px; }
.sparkle--hero-b { width: 96px; height: 96px; right: -18px; top: 40px; }

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-block: 44px 56px;
}

.hero__content { display: flex; flex-direction: column; align-items: flex-start; }

.hero__badge { margin-bottom: 18px; }

.hero__title {
  font-size: clamp(2.6rem, 11vw, 4.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title span { display: block; }
.hero__title-accent { color: #ffd3d4; }

.hero__lead {
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}

/* Datos duros */
.hero__stats {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 34rem;
  margin-bottom: 28px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(2px);
}
.hero-stat__number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.hero-stat__icon { width: 38px; height: 38px; flex-shrink: 0; }
.hero-stat__label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}
.hero-stat__label strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.hero__ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* Imagen */
.hero__media { position: relative; margin: 0; }
.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--red-700);
}
.hero__chip {
  position: absolute;
  left: 12px;
  bottom: -14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hero__chip svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red-ink);
  flex-shrink: 0;
}
.hero__chip strong { display: block; font-weight: 800; font-size: 0.9rem; }

@media (min-width: 560px) {
  .hero__stats { grid-template-columns: auto 1fr; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; width: auto; }
}

@media (min-width: 768px) {
  .hero__inner { padding-block: 64px 80px; gap: 56px; }
  .hero__title { font-size: clamp(3.5rem, 8vw, 4.75rem); }
  .hero__lead { font-size: 1.1rem; }
  .hero__chip { left: 24px; bottom: -18px; }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 56px;
    min-height: min(calc(100svh - var(--header-h)), 820px);
  }
  .hero__title { font-size: clamp(3.4rem, 5.2vw, 5rem); }
  .sparkle--hero-a { width: 170px; height: 170px; left: 24px; bottom: -30px; }
  .sparkle--hero-b { width: 120px; height: 120px; right: -20px; top: 60px; }
}

/* ===== SECCIONES ===== */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--gray  { background: var(--gray-50); }

#destinos, #por-que-elegirnos, #contacto { scroll-margin-top: calc(var(--header-h) - 1px); }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}
.section-head .pill { margin-bottom: 16px; }
.section-head__text {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 34rem;
}

.section-title {
  font-size: clamp(2.1rem, 8.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
}
.section-title span { display: block; }
.section-title__accent { color: var(--red); }

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
    margin-bottom: 52px;
  }
  .section-head__text { padding-bottom: 6px; }
  .section-title { font-size: clamp(2.6rem, 5vw, 3.75rem); }
}

/* Bullets (mismo patrón que la referencia) */
.bullets { display: grid; gap: 10px; }
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #333;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

/* ===== DESTINOS ===== */
.dest-grid {
  display: grid;
  gap: 20px;
}

.dest-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.dest-card:hover { box-shadow: var(--shadow-hover); translate: 0 -3px; }

.dest-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--red-50);
}
.dest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.dest-card:hover .dest-card__media img { transform: scale(1.04); }

/* Cards sin foto: el área del ícono es flexible y se adapta al alto de la fila
   (así no estiran a las cards con foto que comparten la fila) */
.dest-card__media--icon {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 140px;
  display: grid;
  place-items: center;
  background-color: var(--red-50);
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(237, 50, 56, 0.06) 14px 16px);
  color: var(--red);
}
.dest-card__media--icon svg { width: 64px; height: 64px; stroke-width: 1.6; }
.dest-card__media--icon + .dest-card__body { flex: 0 0 auto; }

.dest-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 24px;
}
.dest-card__body .btn { margin-top: auto; }

.dest-card__kicker {
  margin-bottom: -10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red-ink);
}
.dest-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
}
.dest-card__text { font-size: 0.93rem; line-height: 1.55; }

/* Duración y paseos destacados (datos de cada itinerario PDF) */
.dest-card__title + .dest-card__meta { margin-top: -8px; }
.dest-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--red-ink);
}
.dest-card__meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.dest-card__list {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}
.dest-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.dest-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* Incluido en todos los viajes */
.includes {
  margin-top: 28px;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.includes__title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.includes__list { display: grid; gap: 14px; }
.includes__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.includes__list strong { color: var(--ink); font-weight: 700; }
.includes__list svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-ink);
  flex-shrink: 0;
}
.includes__note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (min-width: 640px) {
  .includes { padding: 32px; }
  .includes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
}
@media (min-width: 1024px) {
  .includes { margin-top: 36px; padding: 36px 40px; }
  .includes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card "Armá el tuyo" */
.dest-card--cta {
  color: var(--white);
  background-color: var(--red);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, 0.05) 14px 16px);
}
.dest-card--cta .dest-card__media--icon { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.dest-card--cta .dest-card__kicker { color: #ffe1e2; }
.dest-card--cta .dest-card__text { color: rgba(255, 255, 255, 0.95); }

@media (min-width: 640px) {
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  /* 9 cards en 2 columnas: la última ocupa el ancho completo en formato horizontal */
  .dest-card--cta { grid-column: 1 / -1; flex-direction: row; }
  .dest-card--cta .dest-card__media { flex: 0 0 38%; }
  .dest-card--cta .dest-card__body { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 32px; }
  .dest-card--cta .dest-card__body .btn { margin-top: 4px; width: auto; }
}

@media (min-width: 1024px) {
  .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .dest-card--cta { grid-column: auto; flex-direction: column; }
  .dest-card--cta .dest-card__media { flex: 1 1 auto; }
  .dest-card--cta .dest-card__body { flex: 0 0 auto; justify-content: flex-start; padding: 22px 22px 24px; }
  .dest-card--cta .dest-card__body .btn { margin-top: auto; width: 100%; }
}

/* ===== POR QUÉ ELEGIRNOS ===== */
.pillars { display: grid; gap: 20px; }

.pillar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
  border-top: 4px solid var(--red);
}
.pillar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--red);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__title {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 10px;
}
.pillar__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .pillar { padding: 34px 34px 38px; }
}
@media (min-width: 1100px) {
  .pillars { gap: 28px; }
}

/* ===== RESPALDO ===== */
.proof-grid { display: grid; gap: 16px; }
.proof-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  padding: 28px 26px 32px;
}
.proof-card .pill { margin-bottom: 16px; }
.proof-card__title {
  font-size: clamp(1.35rem, 6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 10px;
}
.proof-card__desc { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }

/* "Acompañamiento" mide ~10.4em en Montserrat 900: los tamaños están calculados para que no desborde */
@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .proof-card:last-child { grid-column: 1 / -1; }
  .proof-card__title { font-size: 1.6rem; }
}
@media (min-width: 1024px) {
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-card:last-child { grid-column: auto; }
  .proof-card__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
}
@media (min-width: 1100px) {
  .proof-grid { gap: 28px; }
  .proof-card { padding: 34px 32px 38px; }
}

/* ===== CONTACTO ===== */
.contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--red);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0) 0 14px,
    rgba(255, 255, 255, 0.04) 14px 16px
  );
}
.sparkle--contact { width: 120px; height: 120px; right: 6%; top: -24px; }

.contact__inner {
  position: relative;
  display: grid;
  gap: 32px;
  padding-block: var(--section-y);
}
.contact__intro .pill { margin-bottom: 16px; }
.contact__title {
  font-size: clamp(2.1rem, 8.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact__text {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 30rem;
}
.contact__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 600;
}
.contact__note svg { width: 22px; height: 22px; flex-shrink: 0; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.4);
  padding: 24px 18px 22px;
}

.form__grid { display: grid; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.req { color: var(--red-ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;           /* 16px: evita el zoom automático en iOS */
  line-height: 1.4;
  color: var(--ink);
  background: #fafafa;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c9252b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select:invalid { color: #8a8a8a; }
.field select option { color: var(--ink); }
.field ::placeholder { color: #9a9a9a; opacity: 1; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cfc8c4; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(237, 50, 56, 0.15);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red-600); background: #fff8f8; }

.field__error {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--red-ink);
}
.field.has-error .field__error { display: block; }

.form__submit { margin-top: 22px; }
.form__submit .btn__icon { width: 20px; height: 20px; }
.form__submit[disabled] { opacity: 0.75; cursor: progress; transform: none; }

.form__legend {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
}

.form__status:empty { display: none; }
.form__status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form__status.is-success { background: #eaf8ef; color: #17643a; border: 1px solid #bfe6cd; }
.form__status.is-error   { background: var(--red-50); color: #9c1c21; border: 1px solid var(--red-100); }
.form__status a { font-weight: 700; text-decoration: underline; }

@media (min-width: 640px) {
  .form-card { padding: 34px 32px 30px; }
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .contact__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 72px;
  }
  .contact__title { font-size: clamp(2.4rem, 3.8vw, 3.3rem); }
  .form-card { padding: 40px 40px 34px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.6;
  /* espacio para el botón flotante de WhatsApp en mobile */
  padding-bottom: 72px;
}
.site-footer__inner {
  display: grid;
  gap: 28px;
  padding-block: 48px 32px;
}
.site-footer__brand { display: grid; gap: 18px; }
.site-footer__brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1); /* logo en blanco */
}
.site-footer__legal strong { color: var(--white); font-weight: 700; }
.site-footer__legal a { color: rgba(255, 255, 255, 0.9); transition: color .2s; }
.site-footer__legal a:hover { color: var(--white); text-decoration: underline; }

.site-footer__side { display: grid; gap: 20px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  transition: background-color .2s, border-color .2s, color .2s;
}
.social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.social svg { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .site-footer__side { justify-items: end; }
}
.site-footer__nav a { font-weight: 600; color: rgba(255, 255, 255, 0.85); transition: color .2s; }
.site-footer__nav a:hover { color: var(--white); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-block: 20px 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom a:hover { color: var(--white); }

.site-footer :focus-visible { outline-color: var(--white); }

@media (min-width: 768px) {
  .site-footer { padding-bottom: 0; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-block: 56px 36px;
  }
  .site-footer__brand { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* Focus visible sobre fondos rojos */
.hero :focus-visible,
.contact__intro :focus-visible,
.dest-card--cta :focus-visible { outline-color: var(--white); }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  min-width: 56px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float__label { display: none; font-size: 0.88rem; font-weight: 700; color: #0b3d1f; }
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26); }
.wa-float:focus-visible { outline-color: var(--ink); }
.wa-float svg { color: #0b3d1f; }

@media (min-width: 768px) {
  .wa-float { right: 24px; bottom: 24px; padding: 0 20px 0 16px; }
  .wa-float__label { display: inline; }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Hero: el texto se muestra sin animación (es el contenido principal de la primera pantalla
   y animarlo retrasa el LCP); solo la imagen entra con un fundido suave. */
.hero__media  { animation: fadeSlideUp .7s  var(--ease) both .3s; }

/* Scroll: solo si hay JS (si falla, el contenido se ve igual) */
.js [data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (min-width: 960px) {
  .js [data-animate="fade-left"]  { transform: translateX(-40px); }
  .js [data-animate="fade-right"] { transform: translateX(40px); }
}
.js [data-animate].is-visible { opacity: 1; transform: none; }

.js [data-delay="1"] { transition-delay: .08s; }
.js [data-delay="2"] { transition-delay: .18s; }
.js [data-delay="3"] { transition-delay: .28s; }

/* Spinner del botón de envío */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Movimiento reducido: sin desplazamientos ni animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-animate] { opacity: 1; transform: none; }
  .spinner { animation: spin 1.4s linear infinite !important; }
}
