/* Tipografías alojadas en la propia web (sin Google). */
:root {
  --teal-deep: #123136;
  --teal: #1f4a4f;
  --teal-soft: #6fa7a1;
  --sage: #95a589;
  --gold: #c4975c;
  --gold-soft: #e3bd85;
  --paper: #faf7f2;
  --tint: #f0eadf;
  --ink: #14292c;
  --muted: #58696a;
  --radius: 999px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .6rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(to bottom, rgba(18,49,54,.8), rgba(18,49,54,0));
  transition: background .3s ease, padding .3s ease;
}
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__toggle { display: none; }
.nav__brand { display: block; line-height: 0; }
.nav__brand img { display: block; height: 104px; width: auto; transition: height .3s ease; }
.nav.is-scrolled { background: rgba(18,49,54,.96); backdrop-filter: blur(8px); padding-top: .4rem; padding-bottom: .4rem; }
.nav.is-scrolled .nav__brand img { height: 56px; }
.nav__links { display: flex; gap: 1.75rem; font-size: .95rem; }
.nav__links a { text-decoration: none; opacity: .85; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .95rem 1.75rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(227,189,133,.5); }
.btn--small { padding: .55rem 1.2rem; font-size: .95rem; }
.btn--light { background: #fff; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.link { color: #fff; text-underline-offset: 6px; opacity: .9; padding: .6rem .25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem clamp(1rem, 4vw, 3rem) 4rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, var(--teal) 0%, var(--teal-deep) 65%),
    var(--teal-deep);
}
.breath {
  position: absolute;
  top: 50%; left: 50%;
  width: min(86vmin, 760px);
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid; place-items: center;
  pointer-events: none;
}
.breath__orb, .breath__halo {
  position: absolute; inset: 0;
  border-radius: 50%;
  will-change: transform;
  animation: breathe 10s ease-in-out infinite;
}
.breath__orb {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.55), transparent 38%),
    radial-gradient(circle at 70% 75%, var(--gold), transparent 60%),
    radial-gradient(circle at 40% 45%, var(--teal-soft), #1f4a4f 75%);
  filter: saturate(1.05);
  opacity: .72;
}
.breath__halo {
  inset: -14%;
  background: radial-gradient(circle, rgba(196,151,92,.30), transparent 65%);
  filter: blur(30px);
}
.breath__word {
  position: absolute;
  bottom: 6%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: rgba(255,255,255,.75);
}
@keyframes breathe {
  0%, 100% { transform: scale(.62); }
  45%, 55% { transform: scale(1); }
}

.hero__copy {
  position: relative;
  max-width: 44rem;
  text-align: center;
  text-shadow: 0 2px 30px rgba(18,49,54,.55);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.hero__lead {
  margin: 1.75rem auto 0;
  max-width: 34rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 9rem) clamp(1rem, 4vw, 3rem); }
.section--tint { background: var(--tint); }
.wrap { max-width: 72rem; margin: 0 auto; }
.wrap--narrow { max-width: 46rem; }
.wrap--split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.section__lead { margin-top: 1.25rem; font-size: 1.2rem; color: var(--muted); max-width: 26rem; }

/* Topics: a typographic list in two columns, not cards */
.topics {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(20,41,44,.18);
}
.topics li {
  display: block;
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid rgba(20,41,44,.18);
}
.topics__desc { display: block; margin-top: .35rem; }
.topics__name { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; }
.topics__desc { color: var(--muted); }

/* Steps: a real sequence */
.steps { counter-reset: step; display: grid; gap: 2.5rem; }
.steps li { counter-increment: step; position: relative; padding-left: 4.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-deep); color: var(--gold-soft);
  font-family: var(--serif); font-size: 1.5rem;
}
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }
.steps p { margin-top: .4rem; color: var(--muted); }

/* About */
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 48% 52% 46% 54% / 38% 40% 60% 62%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.6), transparent 40%),
    linear-gradient(160deg, var(--teal-soft), var(--gold));
  display: grid; place-items: center;
  color: var(--teal-deep);
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.prose { margin-top: 1.25rem; font-size: 1.15rem; max-width: 36rem; }
.facts { margin-top: 2.25rem; display: grid; gap: 1rem; max-width: 36rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(20,41,44,.18); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--muted); }

/* FAQ */
.faq { margin-top: 2.5rem; border-top: 1px solid rgba(20,41,44,.18); }
.faq details { border-bottom: 1px solid rgba(20,41,44,.18); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.35rem 0;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); }

/* Contact */
.contact {
  position: relative;
  padding: clamp(5rem, 11vw, 10rem) clamp(1rem, 4vw, 3rem);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(196,151,92,.22), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(196,151,92,.30), transparent 50%),
    var(--teal-deep);
}
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; }
.contact__lead { margin-top: 1.25rem; font-size: 1.2rem; color: rgba(255,255,255,.85); }
.contact__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact__meta { margin-top: 2.5rem; color: rgba(255,255,255,.7); font-size: .98rem; }
.contact__meta a { color: #fff; text-underline-offset: 4px; padding: .5rem 0; display: inline-block; }

.footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: #0c2326; color: rgba(255,255,255,.65);
  font-size: .875rem; display: grid; gap: .5rem; text-align: center;
}
.footer strong { color: #fff; }

/* Modalidades y motivos: columnas con filete, sin tarjetas */
.ways, .reasons {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.ways li, .reasons li { padding-top: 1.25rem; border-top: 2px solid var(--gold); }
.ways h3, .reasons h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.ways p, .reasons p { margin-top: .6rem; color: var(--muted); }
.reasons { margin-top: 2.5rem; }
.ways { margin-top: 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; column-gap: clamp(2rem, 6vw, 5rem); }
.ways li { padding-top: 1.5rem; }
.ways h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.ways p { font-size: 1.1rem; max-width: 30rem; }
.ways__note { margin-top: 3rem; font-size: 1.1rem; color: var(--muted); }
.ways__note a { color: var(--teal); text-underline-offset: 5px; }

.footer__legal a { color: inherit; text-underline-offset: 4px; }
.footer__legal a:hover { color: #fff; }

/* Páginas legales */
.legal-head { background: var(--teal-deep); padding: 1.25rem clamp(1rem, 4vw, 3rem); }
.legal-head a { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; }
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--ink); }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: 2.25rem; }
.legal p, .legal li { margin-top: .75rem; color: var(--ink); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal .draft { padding: .9rem 1.1rem; border-left: 4px solid var(--gold); background: var(--tint); font-size: .95rem; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.15rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--teal-deep);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(18,49,54,.55);
  transition: transform .2s ease;
}
.wa:hover { transform: translateY(-2px); }
@media (max-width: 480px) { .wa span { display: none; } .wa { padding: .85rem; } }
@media (prefers-reduced-motion: reduce) { .wa { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__brand img { height: 84px; }
  .wrap--split { grid-template-columns: 1fr; }
  .portrait { max-width: 20rem; }
  .topics { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
}

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 13px;
    border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .5rem clamp(1rem, 4vw, 3rem) 1.25rem;
    background: #123136;
    font-size: 1.15rem;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open { background: #123136; }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); opacity: 1; }
  .nav__links a:last-child { border-bottom: 0; }
  .breath { width: min(125vw, 580px); }
  .breath__word { display: none; }
  .hero { padding-top: 8.5rem; }
  .hero__actions { flex-direction: column; gap: .5rem; }
  .hero__actions .btn { width: min(100%, 17rem); text-align: center; }
  .contact__actions { flex-direction: column; align-items: center; }
  .contact__actions .btn { width: min(100%, 19rem); text-align: center; }
  .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath__orb, .breath__halo { animation: none; transform: scale(.85); }
  .btn, .nav, .nav__brand img, .nav__toggle span { transition: none; }
}
