/* ==========================================================
   AVARCAR · Landing page
   Estilos responsive (desktop 1440 / tablet / mobile 390)
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  --green: #107860;
  --cream: #f5f1e7;
  --cream-2: #fcfaf5;
  --sand: #eee7da;
  --line: #d4ccbc;
  --ink: #35372d;
  --muted: #777467;
  --terracotta: #9e4936;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --pad-x: clamp(20px, 7.8vw, 112px);
  --pad-y: clamp(56px, 6.7vw, 96px);
  --maxw: 1216px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
section[id] { scroll-margin-top: 0; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.center { display: flex; justify-content: center; }
.hand { font-family: var(--hand); }
.br-desktop { display: inline; }

.label {
  font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .14em;
  color: var(--green); line-height: 1.4;
}
.label--light { color: var(--cream); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 26px;
  height: 52px; padding: 0 26px;
  font-family: var(--serif); font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--green); color: var(--cream-2); }
.btn--solid:hover { background: #0c604d; }
.btn--light { border-color: #fff; color: #fff; font-family: var(--sans); font-weight: 500; font-size: 13px; }
.btn--light:hover { background: #fff; color: var(--green); }
.btn--green { border-color: var(--green); color: var(--green); }
.btn--green:hover { background: var(--green); color: var(--cream); }

/* Flechas diagonales (SVG, no dependen de emojis/Unicode) */
.arrow { display: inline-block; flex: none; width: 12px; height: 12px; }
.btn .arrow { width: 13px; height: 13px; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; }

/* Botones "Quiero avarcar" en mayúscula (solo esos; misma tipografía) */
.hero .btn--solid,
.paravos .btn--solid,
.ruta__foot .btn--light { text-transform: uppercase; }

/* ---------- NAV ---------- */
.nav {
  height: clamp(68px, 7vw, 100px);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.nav__logo img { width: clamp(100px, 10.4vw, 150px); height: auto; }

/* ---------- HERO ---------- */
.hero { padding: clamp(28px, 3.6vw, 52px) 0 clamp(48px, 5vw, 72px); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 30px); line-height: 1.2; color: var(--green); }
.hero__title {
  margin-top: clamp(14px, 2.2vw, 32px);
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(34px, 1.2rem + 3.5vw, 70px);
  line-height: 1; letter-spacing: -0.022em;
}
.hero__lead {
  margin-top: clamp(20px, 3vw, 45px); max-width: 952px;
  font-size: clamp(16px, 1.15rem + .4vw, 25px); line-height: 1.36;
}
.hero .btn { margin-top: clamp(28px, 3.2vw, 44px); }

/* VSL */
.vsl { width: 100%; max-width: 1000px; margin-top: clamp(28px, 3.2vw, 44px); aspect-ratio: 16 / 9; background: #d9d9d9; position: relative; overflow: hidden; }
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vsl__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* ---------- PROMESA ---------- */
.promesa { background: var(--sand); padding-block: clamp(48px, 5vw, 68px) var(--pad-y); }
.promesa__title {
  font-family: var(--hand); font-weight: 400; color: var(--terracotta); text-align: center;
  font-size: clamp(34px, 1.4rem + 2.4vw, 65px); line-height: 1.05;
}
.promesa__grid {
  margin-top: clamp(28px, 3.5vw, 48px);
  display: grid; grid-template-columns: 420px minmax(0, 450px); gap: 47px; justify-content: center;
}
.promesa__text { font-size: 18px; line-height: 1.75; }
.valores { display: flex; flex-direction: column; gap: 20px; }
.valor { display: flex; gap: 18px; align-items: flex-start; }
.valor__mark { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--terracotta); }
.valor__title { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--ink); }
.valor__text { margin-top: 5px; font-size: 15px; line-height: 1.75; }

/* ---------- RUTA ---------- */
.ruta { background: var(--green); color: #fff; padding-block: clamp(48px, 4vw, 56px) var(--pad-y); }
.ruta__intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ruta__eyebrow { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 30px); color: var(--cream-2); line-height: 1.2; }
.ruta__title {
  margin-top: 20px; max-width: 1097px;
  font-family: var(--serif); font-weight: 400; color: var(--cream-2);
  font-size: clamp(30px, 1.1rem + 2.3vw, 60px); line-height: 1.03;
}
.ruta__title em { font-style: normal; font-size: 1.08em; line-height: 1; }
.ruta__lead { margin-top: 20px; max-width: 933px; color: var(--cream); font-size: clamp(16px, 1rem + .35vw, 22px); line-height: 1.52; }
.ruta__note { margin-top: 14px; font-family: var(--hand); font-size: clamp(26px, 2.4vw, 35px); line-height: 1.1; color: var(--cream); }

.etapas { margin-top: clamp(32px, 3.5vw, 51px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 51px; }
.etapa__img { width: 100%; aspect-ratio: 361 / 287; object-fit: cover; }
.etapa__dest { margin-top: 24px; font-family: var(--sans); font-weight: 400; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; color: #fff; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.2); }
.etapa__exp { margin-top: 18px; font-family: var(--serif); font-size: 25px; line-height: 1.2; color: #fff; }
.etapa__text { margin-top: 18px; font-size: 14px; line-height: 1.75; color: #fff; }

.ruta__foot { margin-top: 28px; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ruta__foot p { font-size: 14px; line-height: 1.75; color: #fff; }

/* ---------- PARA VOS ---------- */
.paravos { background: var(--cream-2); padding-block: var(--pad-y); }
.paravos__title { text-align: center; font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(30px, 1.1rem + 2.3vw, 60px); line-height: 1.03; }
.paravos__title em { color: var(--ink); }
.paravos__cols { margin-top: 38px; display: grid; grid-template-columns: 480px 527px; gap: 109px; justify-content: center; }
.paravos__label { font-family: var(--sans); font-weight: 500; font-size: 20px; line-height: 1.5; color: var(--green); }
.lista { margin-top: 18px; display: flex; flex-direction: column; gap: 0; }
.lista li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.75; }
.lista li::before { content: ""; position: absolute; left: 0; top: .78em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.paravos .center { margin-top: 38px; }

/* ---------- HISTORIA ---------- */
.historia { background: var(--sand); padding-block: clamp(56px, 6vw, 87px) var(--pad-y); }
.historia__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.historia__title { max-width: 1000px; font-family: var(--serif); font-weight: 400; color: var(--green); font-size: clamp(32px, 1.1rem + 2.9vw, 68px); line-height: 1.03; }
.historia__text { font-size: 16px; line-height: 1.75; color: var(--green); }

/* Carrusel */
.carrusel { margin-top: clamp(32px, 3.5vw, 48px); }
.carrusel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.carrusel__track::-webkit-scrollbar { display: none; }
.carrusel__slide { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: #e1d7c6; }
.carrusel__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.carrusel__dots { margin-top: 18px; display: flex; justify-content: center; gap: 8px; }
.carrusel__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--green); opacity: .35; cursor: pointer; transition: width .25s, opacity .25s, border-radius .25s; }
.carrusel__dot[aria-selected="true"] { width: 20px; border-radius: 4px; opacity: 1; }
.carrusel__dot:hover { opacity: .7; }

.cifras { margin-top: clamp(32px, 4vw, 56px); display: flex; justify-content: center; gap: clamp(24px, 11vw, 164px); text-align: center; }
.cifras li { font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: var(--green); }

/* ---------- TESTIMONIOS ---------- */
.testimonios { background: var(--green); padding-block: var(--pad-y); }
.testimonios .label { color: #fff; }
.testimonios__title { margin-top: 18px; font-family: var(--serif); font-style: italic; font-weight: 400; color: #fff; font-size: clamp(34px, 1.2rem + 2.7vw, 60px); line-height: 1.03; }
.testimonios__grid { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; align-items: start; }
.testimonio { display: flex; flex-direction: column; gap: 16px; }
.testimonio__mark { font-family: "Cormorant Garamond", var(--serif); font-size: 68px; line-height: .6; height: 26px; color: var(--sand); }
.testimonio blockquote { font-family: var(--serif); font-size: clamp(21px, 1.05rem + .85vw, 30px); line-height: 1.11; color: #fff; }
.testimonio figcaption { display: flex; flex-direction: column; gap: 7px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.3); line-height: 1.2; }
.testimonio figcaption strong { font-weight: 500; font-size: 13px; color: #fff; }
.testimonio figcaption span { font-size: 11px; color: rgba(255,255,255,.8); }

/* ---------- CONTACTO / FORM ---------- */
.contacto { background: var(--cream-2); color: var(--ink); padding-block: 80px; overflow: hidden; }
.contacto__grid {
  display: grid; grid-template-columns: minmax(0, 687px) minmax(0, 1fr);
  column-gap: 48px; row-gap: 52px; align-items: start;
}
.contacto__main { grid-column: 1; grid-row: 1; max-width: 700px; display: flex; flex-direction: column; gap: 26px; }
.contacto__label { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .024em; line-height: 1.2; color: var(--ink); }
.contacto__title { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 68px; letter-spacing: -.012em; line-height: 70px; }
.contacto__text { color: var(--ink); font-size: 16px; line-height: 28px; }
.contacto__form { grid-column: 1; grid-row: 2; min-width: 0; }
.contacto__form iframe { display: block; width: 100%; border: 0; background: var(--cream-2); }
.contacto__form noscript a { color: var(--ink); text-decoration: underline; }
.contacto__postal { grid-column: 2; grid-row: 2; margin-top: 53px; width: 100%; max-width: 481px; }
.contacto__postal img { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
.faq { background: var(--sand); padding-block: var(--pad-y); }
.faq__grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: clamp(40px, 6.2vw, 90px); align-items: start; }
.faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; position: sticky; top: 32px; }
.faq__title { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(34px, 1.2rem + 2.7vw, 60px); line-height: 1.03; }
.faq__text { font-size: 16px; line-height: 1.75; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.2vw + 1rem, 28px); line-height: 1.2; color: var(--ink); }
.faq__item p { margin-top: 13px; font-size: 14px; line-height: 1.75; }

/* ---------- FOOTER ---------- */
.footer { background: var(--green); color: var(--cream); padding-block: 40px 32px; }
.footer__line { margin: 0; border: 0; height: 1px; background: var(--cream); opacity: .9; }
.footer__main { padding-block: 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { width: clamp(120px, 13vw, 191px); height: auto; }
.footer__brand p { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; }
.footer__links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer__links a { font-size: 14px; line-height: 1.2; transition: opacity .2s; }
.footer__links a:hover { opacity: .7; text-decoration: underline; }
.footer__legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 10px; letter-spacing: .08em; line-height: 1.4; }

/* ==========================================================
   TABLET  (<= 1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .promesa__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .paravos__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .etapas { gap: 24px; }
  .carrusel__slide { flex-basis: calc((100% - 20px) / 2); }
  .contacto__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .contacto__main, .contacto__form, .contacto__postal { grid-column: 1; }
  .contacto__main { grid-row: 1; }
  .contacto__form { grid-row: 2; }
  .contacto__postal { grid-row: 3; margin-top: 0; max-width: 520px; }
  .contacto__title { font-size: clamp(36px, 1.1rem + 3.3vw, 68px); line-height: 1.03; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

/* ==========================================================
   MOBILE  (<= 720px)
   ========================================================== */
@media (max-width: 720px) {
  .br-desktop { display: none; }

  /* Botones "Quiero avarcar" / "¡Quiero Avarcar!" / "Hablemos": ancho completo del contenedor */
  .hero .btn--solid,
  .paravos .btn--solid,
  .ruta__foot .btn--light,
  .faq .btn--green { width: 100%; }
  .paravos .center { justify-content: stretch; }

  /* Primer párrafo del hero: alineado a la izquierda, sin cortar palabras */
  .hero__lead { text-align: left; hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; }

  .promesa__grid { grid-template-columns: 1fr; gap: 28px; }
  .promesa__title { text-align: left; }
  .promesa__text { font-size: 16px; }
  .valor__title { font-size: 22px; }

  .ruta__intro { align-items: flex-start; text-align: left; }
  .etapas { grid-template-columns: 1fr; gap: 40px; }
  .etapa__img { aspect-ratio: 4 / 3; }
  .etapa__exp { font-size: 22px; }
  .ruta__foot { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 36px; }

  .paravos__title { text-align: left; }
  .paravos__cols { grid-template-columns: 1fr; gap: 32px; }
  .paravos .center { justify-content: flex-start; }

  .historia__intro { align-items: flex-start; text-align: left; }
  .carrusel__slide { flex-basis: 86%; }
  .carrusel__track { gap: 12px; }
  .cifras { flex-direction: column; align-items: center; gap: 20px; }

  .testimonios__grid { grid-template-columns: 1fr; gap: 40px; }

  .contacto { padding-block: 56px; }
  .contacto__grid { row-gap: 24px; }
  .contacto__postal { max-width: none; }

  .footer__main { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; }
}

/* ==========================================================
   THANK YOU PAGE (gracias.html)
   ========================================================== */
.btn--cream { background: var(--cream-2); color: var(--green); font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .06em; }
.btn--cream:hover { background: #fff; }
.page-gracias { min-height: 100vh; display: flex; flex-direction: column; }
.page-gracias main { flex: 1; display: flex; flex-direction: column; }
.gracias { flex: 1; background: var(--green); color: var(--cream); padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.gracias__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.gracias__title { font-family: var(--serif); font-weight: 400; color: var(--cream-2); font-size: clamp(36px, 1.1rem + 3.3vw, 68px); letter-spacing: -.012em; line-height: 1.03; }
.gracias__hand { margin-top: 22px; font-family: var(--hand); font-size: clamp(30px, 1.4rem + 1.6vw, 46px); line-height: 1.1; color: var(--cream); }
.gracias__text { margin-top: 18px; max-width: 560px; font-size: clamp(16px, 1rem + .3vw, 19px); line-height: 1.6; color: var(--cream); }
.gracias__hand + .gracias__text { margin-top: 14px; }
.gracias .btn { margin-top: 34px; gap: 14px; }
.gracias__postal img { width: 100%; height: auto; }

/* Página de gracias: cabecera y contenido en verde, footer en crema */
.page-gracias .nav { background: var(--green); border-bottom-color: transparent; }
.page-gracias .footer { background: var(--cream); color: var(--ink); }
.page-gracias .footer__line { background: var(--ink); opacity: .35; }

/* Header verde y footer crema (solo en la página de gracias) */
.page-gracias .nav { background: var(--green); border-bottom: 0; }
.page-gracias .footer { background: var(--cream); color: var(--ink); }
.page-gracias .footer__line { background: var(--line); opacity: 1; }
.page-gracias .footer__brand p { color: var(--ink); }
.page-gracias .footer__links a { color: var(--ink); }
.page-gracias .footer__legal { color: var(--muted); }

@media (max-width: 1024px) {
  .gracias__grid { grid-template-columns: 1fr; }
  .gracias__postal { max-width: 460px; }
}
@media (max-width: 720px) {
  .gracias { padding-block: 28px 56px; }
  .gracias .btn { width: 100%; }
  .gracias__postal { max-width: none; margin-top: 12px; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .carrusel__dot { transition: none; }
}
