/* The asesoría landing page (/asesoria/), built from scratch after Canva
   proposal A, which Henry chose on 2026-10-21. Fonts: DM Serif Display
   + Jost (his pick). Self-contained on purpose: it
   uses none of the shared programa/comprar styles. Henry has one photo of
   himself, so the layout needs only that one. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #FAF8F4;
  --beige: #EFE6D8;
  --ink: #3A3A35;
  --text: #55544E;
  --faint: #A6A39A;
  --line: #E7E3DB;
  --rule: #CFC9BD;
  --green: #5A7550;
  --green-dark: #4A6342;
  --stat: #6E7C64;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Jost', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 6vw, 6rem);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); }

.button {
  display: inline-block; background: var(--green); color: #FFF; text-decoration: none;
  font-weight: 400; font-size: 0.92rem; letter-spacing: 0.06em;
  padding: 0.95rem 3.2rem; border-radius: 3px; transition: background 0.2s ease;
}
.button:hover { background: var(--green-dark); }

/* Title with a short rule under it, as in the proposal */
.ruled { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.2; }
.ruled::after { content: ''; display: block; width: 42px; height: 2px; background: var(--rule); margin-top: 0.8rem; }

/* ── Hero: Henry's photo fading into the page, text on the right ── */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); min-height: min(100vh, 760px); }
.hero-photo { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 62%, var(--bg) 100%); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gutter) 4rem clamp(1.5rem, 4vw, 4rem); }
.hero h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: 0.005em; max-width: 620px; }
.hero .sub { margin-top: 1.4rem; max-width: 520px; font-size: 1.04rem; letter-spacing: 0.02em; line-height: 1.55; }
.hero .button { align-self: flex-start; margin-top: 2rem; }
.hero .note { margin-top: 0.8rem; font-size: 0.9rem; font-weight: 400; color: var(--ink); }

.topnav { position: absolute; top: 1.6rem; right: var(--gutter); display: flex; align-items: center; gap: 1.8rem; z-index: 2; font-size: 0.86rem; letter-spacing: 0.04em; }
.topnav a { text-decoration: none; color: var(--ink); }
.topnav .name { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0; }
.topnav a:not(.name) { padding-bottom: 0.2rem; border-bottom: 1px solid var(--rule); }

/* ── Rows divided by hairlines ── */
.row { border-top: 1px solid var(--line); padding: 4.5rem var(--gutter); }
.row.soft { background: var(--bg-soft); }

/* Antes y después */
.change { text-align: center; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); max-width: 760px; margin: 0 auto; }
.ba figure { margin: 0; }
.ba img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.ba figcaption { margin-top: 0.7rem; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ba-text { margin-top: 1.6rem; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--ink); }

/* Quién te acompaña | Qué recibes */
.duo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.duo > div:first-child { padding-right: clamp(2rem, 5vw, 5rem); }
.duo > div:last-child { padding-left: clamp(2rem, 5vw, 5rem); border-left: 1px solid var(--line); }
.who .ruled { margin-bottom: 1.6rem; }
.who p { font-size: 0.95rem; }
.who .intro { font-size: 1.02rem; font-weight: 400; color: var(--ink); line-height: 1.6; }
.who .more { margin-top: 1.6rem; font-size: 0.9rem; color: var(--text); }

.gets .ruled { margin-bottom: 1.4rem; }
.gets ol { list-style: none; counter-reset: g; }
.gets li {
  counter-increment: g; position: relative; display: flex; align-items: baseline; gap: 1.4rem;
  padding: 0.62rem 0; font-size: 0.94rem; font-weight: 400; color: var(--ink); line-height: 1.45;
}
.gets li::before { content: counter(g, decimal-leading-zero); flex: none; width: 1.4rem; font-size: 0.78rem; font-weight: 300; color: var(--faint); font-variant-numeric: tabular-nums; }
.gets li::after { content: ''; flex: none; align-self: center; width: 22px; height: 1px; background: var(--line); margin-left: auto; }
.gets li b { font-weight: 600; color: var(--green-dark); }
.gets .excl { margin-top: 1.4rem; padding-left: 2.8rem; font-size: 0.84rem; color: var(--faint); }

/* Cómo funciona: numbers joined by thin lines */
.how { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--stat); margin-bottom: 0.9rem; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 1.2rem; left: 3.6rem; right: -1.2rem; height: 1px; background: var(--rule); }
.steps h3 { font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; }
.steps p { font-size: 0.86rem; line-height: 1.6; }
.why { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.why h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.why p { font-size: 0.9rem; }

/* Para quién es */
.fit-head { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 3rem; }
.fit-head .intro { margin-top: 1.4rem; font-size: 0.95rem; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.fit h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.fit ul { list-style: none; }
.fit li { padding: 0.62rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; font-weight: 400; color: var(--ink); }
.fit li:last-child { border-bottom: 1px solid var(--line); }
.fit .no li { color: var(--text); font-weight: 300; }

/* Preguntas frecuentes */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 3rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; font-size: 0.96rem; font-weight: 400; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-weight: 300; font-size: 1.2rem; line-height: 1; color: var(--faint); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { padding: 0 2.5rem 1.2rem 0; font-size: 0.9rem; }

/* Cierre: beige band with a drawn olive branch */
.closing { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--beige); padding: 3.6rem var(--gutter) 3.6rem clamp(9rem, 22vw, 20rem); }
.closing .branch { position: absolute; left: -10px; bottom: -14px; width: clamp(9rem, 20vw, 17rem); height: auto; color: var(--stat); opacity: 0.75; }
.closing-text { position: relative; }
.closing-text p:first-child { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.25; color: var(--ink); max-width: 34rem; }
.closing-text p + p { margin-top: 0.6rem; font-size: 0.9rem; max-width: 32rem; }
.closing .button { flex: none; position: relative; }

footer { padding: 2.4rem var(--gutter) 2.8rem; text-align: center; font-size: 0.76rem; color: var(--faint); line-height: 1.8; }

/* Mobile bar */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s ease; }
.sticky.show { transform: none; }
.sticky span { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.sticky span small { display: block; font-family: var(--body); font-size: 0.72rem; color: var(--faint); }
.sticky .button { padding: 0.75rem 1.6rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { height: min(56vh, 460px); }
  .hero-photo::after { background: linear-gradient(180deg, rgba(255,255,255,0) 70%, var(--bg) 100%); }
  .hero-text { padding: 1.6rem var(--gutter) 3.2rem; }
  .topnav { top: 1rem; left: var(--gutter); right: var(--gutter); justify-content: space-between; }
  .topnav .name, .topnav a { color: #FFF; border-color: rgba(255,255,255,0.6); text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
  .topnav .faq-link { display: none; }
  .row { padding: 3.2rem var(--gutter); }
  .duo, .how, .fit-head, .faq-wrap, .fit, .why { grid-template-columns: 1fr; gap: 2rem; }
  .duo > div:first-child { padding-right: 0; }
  .duo > div:last-child { padding-left: 0; border-left: none; padding-top: 2.4rem; border-top: 1px solid var(--line); }
  .why { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .closing { flex-direction: column; align-items: flex-start; padding: 3rem var(--gutter) 9rem; }
  .closing .branch { left: auto; right: -10px; transform: scaleX(-1); }
  .sticky { display: flex; }
  footer { padding-bottom: 6rem; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
