/* ==========================================================================
   Esperanza del Corazón — stylesheet
   Built to brand-direction.md Revision 2 (approved 2026-09-03).
   Revised 2026-09-10: first screen, process flowchart, photo slots, cost and
   decision blocks, header contact, focus visibility and sticky-bar behavior.
   Revised 2026-09-11: compact footer, flowchart connectors and outcomes,
   Requisitos photo header, membership block, compact values.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Color */
  --ivory:        #FFF9F2;
  --white:        #FFFFFF;
  --soft-blue:    #EDF3FA;
  --navy:         #0B2A63;
  --navy-deep:    #081F4A;
  --charcoal:     #24324A;
  --red:          #C71920;
  --green-brand:  #3A842C;   /* decorative only */
  --green-action: #357A29;   /* buttons with white text — 5.29:1 */
  --green-hover:  #2C6622;   /* 6.93:1 */
  --green-active: #26591D;   /* 8.30:1 */

  --border:       rgba(11, 42, 99, 0.12);
  --border-strong:rgba(11, 42, 99, 0.22);
  --shadow-card:  0 1px 3px rgba(11, 42, 99, 0.06);
  --shadow-lift:  0 6px 16px rgba(11, 42, 99, 0.12);

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: 24px;
  --section-y: 96px;
  --radius-card: 12px;
  --radius-btn: 14px;
  --radius-input: 10px;

  --header-h: 64px;
  /* Mobile/tablet CTA bar height, used to pad the page bottom */
  --cta-bar: 0px;
}

@media (max-width: 1099px) { :root { --cta-bar: 76px; } }
@media (max-width: 860px)  { :root { --section-y: 64px; --gutter: 20px; } }
@media (min-width: 981px)  { :root { --header-h: 88px; } }

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchor targets and keyboard focus clear of the sticky header and bar */
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--cta-bar) + 16px);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--cta-bar) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }

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

/* --- Typography --------------------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; margin: 0 0 0.5em; }
h1 { font-size: 32px; line-height: 1.18; }
h2 { font-size: 27px; line-height: 1.28; }
h3 { font-size: 21px; line-height: 1.35; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
strong { font-weight: 600; }

@media (min-width: 861px) {
  h1 { font-size: 48px; line-height: 1.14; }
  h2 { font-size: 36px; line-height: 1.22; }
  h3 { font-size: 23px; }
}

.lead { font-size: 20px; }
.small { font-size: 16px; }
.fineprint { font-size: 16px; max-width: 72ch; margin-top: 20px; }
.eyebrow {
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .04em;
  color: var(--red); margin: 0 0 10px;
}

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); }
.section--blue  { background: var(--soft-blue); }
.section__head { max-width: 46rem; margin-bottom: 36px; }
.section__head p:last-child { margin-bottom: 0; }
.section__foot { margin: 28px 0 0; }

.page-head { padding: 44px 0 36px; }
.page-head .lead { margin-bottom: 0; }
.page-head .lead + p { margin-top: 1.1em; }
@media (min-width: 981px) { .page-head { padding: 72px 0 56px; } }

.split { display: grid; gap: 32px; }
@media (min-width: 861px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .split--wide { grid-template-columns: 1.35fr 1fr; align-items: center; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 20px; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.closing :focus-visible { outline-color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  height: var(--header-h); display: flex; align-items: center; gap: 10px;
}
.site-header__logo { margin-right: auto; }
.site-header__logo img { height: 46px; width: auto; }
.site-header__logo img.desktop { display: none; }

.site-header__tel {
  order: 2; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center;
  color: var(--navy); border: 1.5px solid var(--border-strong);
}
.site-header__tel svg { width: 20px; height: 20px; }
.site-header__tel:hover { background: var(--navy); color: #fff; }
.site-header .site-header__cta { display: none; order: 3; }

.nav-toggle {
  order: 4; width: 44px; height: 44px; border: 0; background: transparent; padding: 0;
  display: grid; place-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }

.site-nav { display: none; order: 1; }
.site-nav[data-open="true"] {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.site-nav a {
  display: block; padding: 14px 0; font-weight: 600; color: var(--navy);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.site-nav a[aria-current="page"] { color: var(--red); }

@media (min-width: 981px) {
  .site-header__logo img.mobile { display: none; }
  .site-header__logo img.desktop { display: block; height: 56px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] {
    display: block; position: static; background: none; border: 0; box-shadow: none;
    margin-right: 8px;
  }
  .site-nav ul { display: flex; gap: 18px; padding: 0; }
  .site-nav a { border: 0; padding: 4px 0; font-size: 16px; white-space: nowrap; }
  .site-nav a:hover { color: var(--red); }
}
@media (min-width: 1100px) {
  .site-nav ul { gap: 24px; }
  .site-nav a { font-size: 17px; }
  .site-header__tel { display: none; }
  .site-header .site-header__cta { display: inline-flex; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.2;
  min-height: 56px; padding: 0 26px; border-radius: var(--radius-btn);
  text-align: center; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--wa { background: var(--green-action); color: #fff; }
.btn--wa:hover  { background: var(--green-hover);  transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--wa:active { background: var(--green-active); transform: translateY(0); }
.btn--tel { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--tel:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--sm svg { width: 18px; height: 18px; }

.btn-row { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; }
.btn-row .btn { width: 100%; }
@media (min-width: 620px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
}

.link-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--navy); text-underline-offset: 4px;
}
.link-more::after { content: "→"; content: "→" / ""; transition: transform .2s ease; }
.link-more:hover::after { transform: translateX(3px); }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 48px; }
.hero__grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero__text { position: relative; z-index: 1; min-width: 0; }
.hero h1 { margin-bottom: 14px; }
.hero__lead { font-size: 18px; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.hero__actions .btn { width: 100%; }
.hero__facts {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px;
  font-size: 16px; font-weight: 600; color: var(--navy);
}
.hero__facts li { display: inline-flex; align-items: center; }
/* Phones: facts stack, each with its own dot. Wider: one line, dot between. */
.hero__facts { flex-direction: column; align-items: flex-start; }
.hero__facts li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); margin-right: 10px;
}
@media (min-width: 520px) {
  .hero__facts { flex-direction: row; align-items: center; }
  .hero__facts li:first-child::before { display: none; }
  .hero__facts li + li::before { margin: 0 12px; }
}
.hero__note {
  margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--red); font-size: 16px;
}
.hero__mark { display: none; }

@media (min-width: 520px) { .hero__actions .btn { width: auto; } }
@media (min-width: 981px) {
  .hero { padding: 64px 0 88px; }
  .hero__lead { font-size: 20px; }
  .hero--photo .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero--text .hero__text { max-width: 44rem; }
  .hero__mark {
    display: block; position: absolute; top: 50%; right: -24px; width: 380px;
    transform: translateY(-50%); opacity: .12; pointer-events: none;
  }
}

/* --- Photographs -------------------------------------------------------- */
/* Every photo slot is optional: nothing is rendered until the file exists. */
.photo { margin: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--soft-blue); }
.photo img { width: 100%; height: auto; object-fit: cover; }
.photo--hero img     { aspect-ratio: 3 / 2; }
.photo--portrait img { aspect-ratio: 4 / 5; }
.photo--card img     { aspect-ratio: 1 / 1; }
.photo--gallery img  { aspect-ratio: 4 / 3; }
@media (min-width: 981px) { .photo--hero img { aspect-ratio: 4 / 3; } }

.gallery { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 700px) {
  .gallery--2 { grid-template-columns: 1fr 1fr; }
  .gallery--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Lists, cards, notes ------------------------------------------------ */
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 38px; max-width: 62ch; }
.checklist li::before,
.ticks li::before {
  content: ""; position: absolute; left: 0; border-radius: 50%; background: var(--green-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
}
.checklist li::before { top: 4px; width: 24px; height: 24px; }
@media (min-width: 700px) { .checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { top: 5px; width: 20px; height: 20px; }

.cards { display: grid; gap: 20px; }
@media (min-width: 861px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px;
}
.card__tag { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--red); }
.card h3 { margin-bottom: 16px; }

.note {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--navy);
  border-radius: var(--radius-card); padding: 22px 24px;
}
.note h3 { font-size: 20px; margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }
.note .link-more { margin-top: 4px; }
.note--red { border-left-color: var(--red); }
.fineprint + .note, .cards + .note { margin-top: 24px; }
.section--white .note { background: var(--ivory); }

/* --- People ------------------------------------------------------------- */
.people { display: grid; gap: 20px; align-items: start; }
@media (min-width: 700px)  { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 26px; overflow: hidden;
}
.person .photo { margin: -26px -26px 20px; border-radius: 0; }
.person__mono {
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 16px;
  display: grid; place-content: center;
  background: var(--navy); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600;
}
.person__mono svg { width: 28px; height: 28px; }
.person h3 { margin: 0; }
.person__role { font-size: 16px; font-weight: 600; color: var(--red); margin: 2px 0 10px; }
.person p:last-child { margin-bottom: 0; }
.person .link-more { margin-top: 6px; }
.person--mexico { background: var(--soft-blue); }

/* --- Process flowchart -------------------------------------------------- */
/* Reads top to bottom at every width. Arrows join consecutive steps; the last
   preparation step points into "El consulado decide", which splits into two
   labeled outcomes. Only "Visa otorgada" continues to the trip steps; "Visa no
   otorgada" ends. From 700px the outcomes sit side by side under a fork; on
   phones they stack beside a rail. Nothing scrolls horizontally.
   Connector x-position inside a card: 1px border + 22px padding + the centre
   of the 40px step number (line at 42–44px). */
.flow { list-style: none; margin: 0; padding: 0; max-width: 880px; display: grid; gap: 40px; }
.flow > li { position: relative; min-width: 0; }

.flow__group, .flow__branch {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px 22px 0;
}
.section--white .flow__group, .section--white .flow__branch { background: var(--ivory); }
.flow__label { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--red); margin: 0 0 16px; }

.flow__steps { list-style: none; margin: 0; padding: 0; }
.flow__step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 28px; }
.flow__branch .flow__step:last-child { padding-bottom: 22px; }
.flow__num {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-content: center; font-weight: 600; font-size: 18px;
}
.flow__body { min-width: 0; }
.flow__body h3 { font-family: var(--sans); font-size: 18px; line-height: 1.35; margin: 8px 0 4px; }
.flow__body p { margin: 0; font-size: 17px; }

/* Step → next step: a line from number to number with an arrowhead on arrival */
.flow__step:not(:last-child)::after,
.flow__group .flow__step:last-child::after {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 7px; width: 2px; background: var(--navy);
}
.flow__step:not(:last-child)::before,
.flow__group .flow__step:last-child::before {
  content: ""; position: absolute; left: 13px; bottom: 0;
  border: 7px solid transparent; border-top-color: var(--navy); border-bottom-width: 0;
}
/* Last preparation step → "El consulado decide": continues out of the card, across the gap */
.flow__group .flow__step:last-child::after { bottom: -34px; }
.flow__group .flow__step:last-child::before { bottom: -41px; }

.flow__card { position: relative; background: var(--navy); border-radius: var(--radius-card); padding: 24px; }
.flow__card h3 { color: #fff; font-size: 22px; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.flow__card p { color: rgba(255,255,255,.92); margin: 0; }
.flow__diamond {
  flex: none; width: 16px; height: 16px; margin: 0 2px;
  background: var(--red); border: 2px solid #fff; transform: rotate(45deg);
}

/* Outcomes — phones: stacked cards beside a rail, each entered by its own arrow */
.flow__branches { position: relative; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.flow__branch { margin-left: 36px; }
.flow__branch--no { padding-bottom: 22px; }
.flow__card::after {
  content: ""; position: absolute; top: 100%; left: 16px; width: 2px; height: 28px; background: var(--navy);
}
.flow__branch::before {
  content: ""; position: absolute; left: -21px; top: -1px; bottom: -21px; width: 2px; background: var(--navy);
}
.flow__branch:last-child::before { top: -21px; bottom: auto; height: 57px; }
.flow__outcome {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 16px; font-weight: 600; line-height: 1.65; color: var(--navy);
}
.flow__outcome::before {
  content: ""; position: absolute; top: 50%; margin-top: -1px; left: -42px; width: 12px; height: 2px; background: var(--navy);
}
.flow__outcome::after {
  content: ""; position: absolute; top: 50%; margin-top: -7px; left: -30px;
  border: 7px solid transparent; border-left-color: var(--navy); border-right-width: 0;
}
.flow__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-content: center;
  font-size: 13px; line-height: 1; color: #fff; background: var(--green-action);
}
.flow__branch--no .flow__mark { background: var(--charcoal); }
.flow__end {
  display: inline-block; margin: 0; padding: 6px 16px; border: 1.5px solid var(--border-strong);
  border-radius: 999px; font-weight: 600; color: var(--charcoal);
}

/* Outcomes — 700px and wider: side by side under a fork from the decision card */
@media (min-width: 700px) {
  .flow__branches { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; align-items: start; }
  .flow__branch { margin-left: 0; }
  .flow__card::after { left: 42px; }
  .flow__branches::before {
    content: ""; position: absolute; top: -28px; left: 42px; width: calc(50% + 14px); height: 2px; background: var(--navy);
  }
  .flow__branch::before, .flow__branch:last-child::before { left: 41px; top: -29px; bottom: auto; height: 22px; }
  .flow__outcome::before { display: none; }
  .flow__outcome::after {
    top: -30px; margin-top: 0; left: 13px;
    border: 7px solid transparent; border-top-color: var(--navy); border-bottom-width: 0;
  }
}

/* --- Before deciding / cost -------------------------------------------- */
.decide { display: grid; gap: 20px; }
.cost {
  background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--navy);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px;
}
.cost > :first-child { margin-top: 0; }
.cost .btn-row { margin-top: 20px; }
.facts { display: grid; gap: 20px; }
@media (min-width: 700px)  { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .facts--3 { grid-template-columns: repeat(3, 1fr); } }
.fact {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px;
}
.fact h3 { font-size: 20px; margin-bottom: 8px; }
.fact p:last-child { margin-bottom: 0; }

/* --- Story -------------------------------------------------------------- */
.story { display: grid; gap: 32px; }
@media (min-width: 861px) {
  .story--photo { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
}
.story__text { max-width: 44rem; }
.pullquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); }
.pullquote p { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--navy); margin-bottom: 10px; }
.pullquote cite { font-style: normal; font-weight: 600; font-size: 16px; }

.values { display: grid; gap: 24px 48px; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
.values h3 { font-size: 21px; margin-bottom: 4px; }
.values p { margin: 0; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 16px; }
.faq details {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.section--white .faq details { background: var(--ivory); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; min-height: 44px;
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  border-radius: var(--radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { padding: 0 24px 22px; }
.faq .faq__a p:last-child { margin-bottom: 0; }
.faq .faq__a .btn-row { margin-top: 18px; }

/* --- Contact ------------------------------------------------------------ */
.contact-options { display: grid; gap: 20px; }
@media (min-width: 861px) { .contact-options { grid-template-columns: 1.15fr 1fr; } }
.option {
  background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px;
}
.option--primary { border-top: 4px solid var(--green-action); }
.option h2 { font-size: 27px; margin-bottom: 8px; }
.option .btn { width: 100%; }
@media (min-width: 620px) { .option .btn { width: auto; } }
.contact-details { display: grid; gap: 24px; margin-top: 44px; }
@media (min-width: 861px) { .contact-details { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.contact-details h3 { font-size: 20px; margin-bottom: 6px; }
.contact-details p { margin-bottom: 6px; }

/* --- Forms -------------------------------------------------------------- */
.form { max-width: 34rem; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--charcoal); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 17px; color: var(--charcoal);
  background: var(--white); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input); padding: 15px 16px; min-height: 56px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5A6478; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline-offset: 1px; }
.field .error { display: none; margin: 8px 0 0; color: var(--red); font-size: 16px; font-weight: 600; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--red); border-left-width: 4px; }
.field[data-invalid="true"] .error { display: block; }
.form .btn { width: 100%; }
@media (min-width: 620px) { .form .btn { width: auto; } }
.form__note { font-size: 16px; margin-top: 18px; }
.form button[disabled] { opacity: .55; cursor: not-allowed; }
#form-error { color: var(--red); font-weight: 600; }

/* --- Closing band and next steps ---------------------------------------- */
.closing { background: var(--navy); color: #fff; }
.closing h2 { color: #fff; }
.closing p { color: rgba(255,255,255,.92); }
.closing .btn--tel { color: #fff; border-color: rgba(255,255,255,.8); }
.closing .btn--tel:hover { background: #fff; color: var(--navy); }
.closing__hours { margin: 20px 0 0; }

.start { list-style: none; margin: 24px 0 4px; padding: 0; display: grid; gap: 16px; max-width: 46rem; }
@media (min-width: 861px) { .start { grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: none; } }
.start li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.start__num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center;
  background: #fff; color: var(--navy); font-weight: 600; font-size: 18px;
}
.start p { margin: 6px 0 0; }
.start--light .start__num { background: var(--navy); color: #fff; }

/* --- Footer ------------------------------------------------------------- */
/* Compact: brand, contact actions and hours on top; one short row for page
   links and social profiles; legal lines last. */
.site-footer {
  background: var(--ivory); border-top: 1px solid var(--border);
  padding: 40px 0 24px; font-size: 16px; color: var(--navy);
}
.site-footer a { color: var(--navy); }
.site-footer h2 {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); margin: 0 0 10px;
}
.site-footer__grid { display: grid; gap: 24px 40px; }
.site-footer__brand { justify-self: start; }
.site-footer img.footer-logo { height: 80px; width: auto; }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__list a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__hours p { margin: 0; line-height: 1.7; }
.site-footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--border);
}
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social__link {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center;
  border: 1.5px solid var(--border-strong); color: var(--navy);
}
.social__link svg { width: 20px; height: 20px; }
.social__link:hover { background: var(--navy); color: #fff; }
/* Social icons and the Google review invitation share one row and wrap together. */
.site-footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.site-footer__review {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.site-footer__review svg { width: 16px; height: 16px; flex: none; }
.site-footer__review:hover { text-decoration: underline; }
.site-footer__legal { margin-top: 12px; font-size: 14px; color: var(--charcoal); }
.site-footer__legal p { margin: 0 0 4px; max-width: 90ch; }
@media (min-width: 620px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 981px) {
  .site-footer__grid { grid-template-columns: auto 1fr auto; gap: 24px 64px; align-items: start; }
  .site-footer__brand { grid-column: auto; }
}

/* --- Sticky WhatsApp bar (phones and tablets) ---------------------------- */
/* Hidden while the hero's own WhatsApp button is visible; docks once the
   footer is in view so it never covers footer links or the form button. */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ivory); border-top: 1px solid var(--border);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 12px rgba(11,42,99,.08);
  transition: transform .25s ease, visibility 0s linear 0s;
}
.cta-bar .btn { display: flex; width: 100%; max-width: 520px; min-height: 52px; margin: 0 auto; }
.cta-bar[data-hidden="true"] {
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.cta-bar[data-docked="true"] { position: static; box-shadow: none; border-top: 0; transform: none; visibility: visible; }
@media (min-width: 1100px) { .cta-bar { display: none; } }

/* --- Group photos (Requisitos) and Ivonne-and-Victor photo -------------- */
/* Phones stack the two group photos at 16:9 so the requirements stay close;
   from 700px they sit side by side at 3:2. */
.gallery--band { margin-top: 28px; }
.photo--group img { aspect-ratio: 16 / 9; }
@media (min-width: 700px) { .photo--group img { aspect-ratio: 3 / 2; } }
@media (min-width: 981px) { .gallery--band { margin-top: 40px; } }
.photo--duo img { aspect-ratio: 4 / 3; }

/* --- Membership (El Programa) ------------------------------------------- */
.membership {
  background: var(--soft-blue); border: 1px solid var(--border); border-left: 4px solid var(--navy);
  border-radius: var(--radius-card); padding: 20px 24px; margin-bottom: 20px;
}
.membership h3 { font-size: 20px; margin-bottom: 6px; }
.membership p { margin: 0; }

/* --- Compact values and matched team cards (Quiénes Somos) -------------- */
@media (min-width: 700px)  { .values--compact { grid-template-columns: repeat(3, 1fr); gap: 24px 32px; } }
@media (min-width: 1024px) { .values--compact { grid-template-columns: repeat(5, 1fr); } }
.people--matched { align-items: stretch; }

/* --- Membresía → Etapa 1 → Etapa 2 (Inicio) ----------------------------- */
/* One sequence: stacked with downward arrows on phones and tablets, three
   columns with rightward arrows on wide screens. */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.journey__step { position: relative; min-width: 0; }
.journey__step--membership { background: var(--soft-blue); }
.journey + .note { margin-top: 24px; }
.journey__step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -34px; width: 2px; height: 26px;
  margin-left: -1px; background: var(--navy);
}
.journey__step:not(:last-child)::before {
  content: ""; position: absolute; left: 50%; bottom: -40px; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--navy); border-bottom-width: 0;
}
@media (min-width: 981px) {
  .journey { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); align-items: stretch; }
  .journey__step--membership { display: flex; flex-direction: column; justify-content: center; }
  .journey__step:not(:last-child)::after {
    left: auto; right: -34px; top: 50%; bottom: auto; width: 26px; height: 2px; margin: -1px 0 0;
  }
  .journey__step:not(:last-child)::before {
    left: auto; right: -40px; top: 50%; bottom: auto; margin: -7px 0 0;
    border: 7px solid transparent; border-left-color: var(--navy); border-right-width: 0;
  }
}

/* --- Video-ready story (Inicio) ----------------------------------------- */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: var(--radius-card); background: var(--navy); box-shadow: var(--shadow-card);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--pending { display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff; }
.video__play {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center;
  border: 2px solid rgba(255,255,255,.85);
}
.video__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video__note { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.92); }

/* --- Story with a vertical TikTok video (Inicio) ------------------------- */
/* Copy leads; the 9:16 player sits beside it on wide screens and below it on
   phones, capped in width so it never dominates the section. */
.story-video { margin: 0; width: 100%; max-width: 280px; justify-self: center; }
.tiktok {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius-card); background: var(--navy); box-shadow: var(--shadow-lift);
}
.tiktok iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-video figcaption { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--charcoal); }
.story-video figcaption p { margin: 0 0 8px; }
.story-video__credit { display: block; font-size: 14px; }
@media (min-width: 861px) {
  .story--tiktok { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
  .story-video { max-width: none; }
}

/* --- Legal page (Aviso de privacidad) ------------------------------------ */
/* Calm reading layout: narrow measure, smaller section headings, no cards. */
.legal-page { padding-top: 44px; }
@media (min-width: 981px) { .legal-page { padding-top: 72px; } }
.legal { max-width: 760px; }
.legal__head { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal__head h1 { margin-bottom: 8px; }
.legal__updated { margin: 0; font-size: 16px; color: var(--charcoal); }
.legal h2 { font-size: 23px; line-height: 1.3; margin: 44px 0 12px; }
@media (min-width: 861px) { .legal h2 { font-size: 27px; } }
.legal__contact { font-style: normal; line-height: 1.8; margin: 0; }
.legal__org { font-weight: 600; color: var(--navy); }
.legal__contact a { font-weight: 600; overflow-wrap: anywhere; }

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
