/* noteinfartes.com — estilos. Paleta y tipografía del brandbook de Ality (ver diseño original). */

@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neue-montreal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neue-montreal-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../assets/fonts/neue-montreal-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Times Ality"; src: url("../assets/fonts/times-ality.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --font-serif: "Times Ality", "Times New Roman", Times, serif;
  --font-sans: "Neue Montreal", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --cream: #fdf8ed;
  --linen: #f6f1e3;
  --ink: #1a1a12;
  --ink-2: #29291f;
  --olive: #3d3b2a;
  --olive-600: #4d4c3e;
  --olive-em: #7d8541;
  --earth: #76604f;
  --earth-600: #5b4535;
  --lime: #c8cc6a;
  --btn: #9fa85a;
  --btn-hover: #b1b96c;
  --btn-fg: #2b2b1f;
  --muted: #969286;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-2: 0 2px 6px rgba(61,59,42,0.05), 0 12px 28px rgba(61,59,42,0.06);
  --shadow-3: 0 2px 6px rgba(61,59,42,0.05), 0 16px 40px rgba(61,59,42,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { color: var(--ink); font-family: var(--font-sans); }
.page { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--olive); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font-family: inherit; }
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
em { font-style: italic; }
h1 em, h2 em, h3 em, .dr-book p em { color: var(--olive-em); }
[hidden] { display: none !important; }
.anchor { scroll-margin-top: 72px; }

/* Escritorio / móvil (el diseño cambia a los 1000px) */
@media (max-width: 999px) { .d-only { display: none !important; } }
@media (min-width: 1000px) { .m-only, .m-only-inline { display: none !important; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-size: 16px; font-weight: 500; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 150ms; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-dark { background: var(--olive); color: var(--cream); padding: 13px 22px; font-size: 15px; font-weight: 400; }
.btn-dark:hover { background: var(--olive-600); }
.btn-ghost-light { border: 1px solid var(--cream); color: var(--cream); font-weight: 400; }
.btn-ghost-light:hover { background: rgba(253,248,237,0.08); }
.btn-header { padding: 12px 22px; font-size: 15px; }
.btn-header-m { padding: 11px 16px; font-size: 14px; }
.btn-xl { padding: 18px 32px; font-size: 17px; }
.btn-lg { padding: 17px 30px; }
.btn-block { display: flex; width: 100%; padding: 18px 24px; }
.btn-cta { padding: 15px 24px; flex-shrink: 0; }
.btn-next { padding: 15px 28px; }
.link-u { font-size: 15px; color: var(--olive); text-decoration: underline; text-underline-offset: 4px; }

.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--earth); }
.eyebrow-11 { font-size: 11px; }
.eyebrow-dark { color: var(--olive); }
.eyebrow-ondark { color: #bdbca3; }

/* 1 · Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color 240ms; }
.header.is-scrolled { border-bottom-color: rgba(61,59,42,0.16); }
.header-in { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px,4vw,48px); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-brand { font-family: var(--font-serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.header-brand:hover { text-decoration: none; }
@media (max-width: 999px) { .header-brand { font-size: 21px; } }
@media (max-width: 430px) { .header-brand { font-size: 19px; } .btn-header-m { padding: 10px 14px; font-size: 13px; } }
/* En teléfonos angostos el CTA vive en el hero y en la barra inferior. */
@media (max-width: 389px) { .btn-header-m { display: none; } }
.header-nav { display: flex; gap: clamp(18px,2.4vw,36px); font-size: 15px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(61,59,42,0.3); display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(61,59,42,0.06); }
@media (max-width: 999px) { .header-actions { gap: 8px; } }
.menu-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.menu-m { display: flex; flex-direction: column; padding: 4px 20px 20px; border-top: 1px solid rgba(61,59,42,0.12); font-size: 18px; }
.menu-m a { padding: 13px 0; }
.menu-m-wa { border-top: 1px solid rgba(61,59,42,0.12); margin-top: 6px; }

/* 2 · Hero */
.hero { position: relative; overflow: hidden; }
.hero-mark { position: absolute; right: -12%; top: -8%; width: min(820px,90vw); opacity: 0.10; pointer-events: none; }
.hero-in { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(48px,9vw,128px) clamp(20px,4vw,48px) clamp(56px,8vw,112px); }
.hero-col { max-width: 1100px; display: flex; flex-direction: column; gap: 28px; }
.hero-h1 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px,6vw,84px); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.hero-sub { margin: 0; max-width: 760px; font-size: clamp(19px,1.8vw,24px); line-height: 1.5; color: var(--olive); text-wrap: pretty; }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 4px; }
@media (max-width: 999px) {
  .hero-ctas { align-items: stretch; gap: 12px; }
  .hero-ctas .btn-xl { padding: 18px 24px; font-size: 16px; }
  .hero-ctas .link-u { text-align: center; padding: 10px; }
}

/* 3 · Banda */
.band { background: var(--olive); color: var(--cream); }
.wrap-1280 { max-width: 1280px; margin: 0 auto; }
.band-in { padding: clamp(64px,9vw,120px) clamp(20px,4vw,48px); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 48px 56px; }
.band-item { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(253,248,237,0.25); }
.band-num { font-family: var(--font-serif); font-size: clamp(48px,4.8vw,70px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.band-item p { margin: 0; font-size: clamp(19px,1.6vw,22px); line-height: 1.45; color: #e8e3d4; text-wrap: pretty; }
.band-src { font-size: 13px; color: #bdbca3; }
.band-quote { margin: clamp(56px,7vw,88px) 0 0; max-width: 820px; font-family: var(--font-serif); font-size: clamp(28px,3.4vw,44px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.band-quote em, .card-dark h3 em, .cierre h2 em { color: var(--lime); }

/* 4 · Cuestionario */
.quiz-sec-in { max-width: 1180px; margin: 0 auto; padding: clamp(48px,7vw,96px) clamp(12px,3vw,48px); }
.quiz-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(24px,3vw,36px); padding: 0 4px; }
.h2-quiz { margin: 0; max-width: 900px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px,4.4vw,56px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.quiz { height: 560px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-3); overflow: hidden; display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); grid-template-rows: minmax(0,1fr); }
.quiz-chart { background: var(--linen); padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 0; min-width: 0; }
.quiz-svg { width: 100%; margin: 0 auto; }
.quiz-svg svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.quiz-cap { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; line-height: 1.45; color: var(--olive); }
.quiz-cap strong { font-weight: 500; color: var(--ink); }
.quiz-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.quiz-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px,3vw,36px) clamp(18px,3.5vw,44px); transition: opacity 160ms var(--ease-out); }
.quiz-scroll.is-fading { opacity: 0; }
@media (max-width: 999px) {
  .quiz { height: 600px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
  .quiz-chart { padding: 12px 14px 10px; }
  .quiz-svg { max-width: 380px; }
  .quiz-cap { font-size: 12px; }
}
.quiz-nav { flex-shrink: 0; border-top: 1px solid rgba(61,59,42,0.12); padding: 14px clamp(18px,3.5vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; }
.quiz-back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 12px 6px; font-size: 15px; color: var(--olive); cursor: pointer; }
.quiz-cta { flex-shrink: 0; background: var(--olive); color: var(--cream); padding: 14px clamp(18px,3.5vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.quiz-cta-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quiz-cta-lead { font-size: 14px; line-height: 1.4; color: #e8e3d4; }
.quiz-cta-price { font-family: var(--font-serif); font-size: 24px; line-height: 1.1; white-space: nowrap; }
.quiz-cta-unit { font-family: var(--font-sans); font-size: 13px; color: #d6d2c2; }
.quiz-disclaimer { margin: 16px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--earth); }

/* Contenido dinámico del cuestionario */
.q { display: flex; flex-direction: column; gap: 18px; }
.q-title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px,2.6vw,34px); line-height: 1.15; text-wrap: balance; }
.q-titles { display: flex; flex-direction: column; gap: 8px; }
.q-help { margin: 0; font-size: 15px; line-height: 1.5; color: var(--earth); }
.q-group { display: flex; flex-direction: column; gap: 10px; }
.q-group-label { font-size: 15px; font-weight: 500; margin-top: 4px; }
.q-opts { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.opt { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 18px; min-height: 54px; border: 1px solid rgba(61,59,42,0.2); background: #fff; border-radius: 14px; font-size: 16px; line-height: 1.35; color: var(--ink); cursor: pointer; transition: background 150ms, border-color 150ms; }
.opt[aria-pressed="true"] { border-color: var(--olive); background: #f1f0dc; }
.opt-mark { width: 20px; height: 20px; border: 1.5px solid var(--olive); border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; }
.opt-mark i { width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.opt-multi .opt-mark { border-radius: 5px; }
.opt-multi .opt-mark i { border-radius: 2px; }
.opt[aria-pressed="true"] .opt-mark i { background: var(--olive); }
.q-err { margin: 0; font-size: 15px; color: var(--earth-600); }
.q-why { background: var(--linen); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.q-why p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.q-why strong { font-weight: 500; }
.q-why .q-src { font-size: 12px; line-height: 1.5; color: var(--earth); }
.ct { max-width: 560px; }
.ct label, .ct .ct-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--olive); }
.ct input, .ct select { font-size: 17px; padding: 14px 16px; border: 1px solid rgba(61,59,42,0.3); border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%; min-width: 0; }
.ct select { font-size: 16px; padding: 14px 10px; flex-shrink: 0; width: auto; max-width: 52%; }
@media (max-width: 999px) { .ct select { max-width: 44%; } }
.ct .is-bad { border-color: var(--earth-600); }
.ct-phone { display: flex; gap: 8px; min-width: 0; }
.ct-err { font-size: 14px; color: var(--earth-600); }
.ct-legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--earth); }
.ct-legal a { text-decoration: underline; text-underline-offset: 3px; }
.res { display: flex; flex-direction: column; gap: 24px; }
.res-alert { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; background: #f3ebe0; border: 1px solid var(--earth-600); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.5; color: #322d1d; }
.res-block { display: flex; flex-direction: column; gap: 14px; }
.res-name { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px,3.8vw,48px); line-height: 1.05; }
.res-text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--olive); text-wrap: pretty; }
.res-segs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 4px; }
.res-seg { display: flex; flex-direction: column; gap: 8px; }
.res-seg i { display: block; height: 8px; border-radius: 999px; opacity: 0.35; }
.res-seg span { font-size: 12px; line-height: 1.3; color: var(--muted); }
.res-seg.is-on i { height: 14px; opacity: 1; }
.res-seg.is-on span { color: var(--ink); }
.res-range { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); background: #ebe9d2; border-radius: 12px; padding: 12px 16px; }
.res-list { display: flex; flex-direction: column; gap: 10px; }
.res-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.res-list li { padding: 10px 0; border-bottom: 1px solid rgba(61,59,42,0.12); font-size: 15px; line-height: 1.4; }
.res-list li.todo { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; line-height: 1.45; }
.res-list li.todo svg { margin-top: 3px; }
.res-list p { margin: 0; font-size: 15px; line-height: 1.5; }
.res-list .res-plan { margin-top: 4px; color: var(--olive); text-wrap: pretty; }
.res-small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--earth); }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-outline { display: inline-flex; align-items: center; border: 1px solid var(--olive); color: var(--olive); background: transparent; padding: 12px 22px; border-radius: 999px; font-size: 15px; cursor: pointer; }
.btn-outline:hover { background: rgba(61,59,42,0.06); }

/* 5 · Check-up */
.bg-linen { background: var(--linen); }
.sec-pad { padding: clamp(64px,9vw,128px) clamp(20px,4vw,48px); }
.h2-xl { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px,5vw,64px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.cards { margin-top: clamp(40px,5vw,64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 20px; }
.card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-2); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.card-n { font-family: var(--font-serif); font-size: 20px; color: var(--olive-em); }
.card h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.card p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--olive); text-wrap: pretty; }
.card-dark { grid-column: 1 / -1; background: var(--olive); color: var(--cream); border-radius: 22px; padding: clamp(32px,4vw,48px); display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; }
.card-dark h3 { margin: 0; flex: 1 1 240px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px,3vw,36px); line-height: 1.15; }
.card-dark p { margin: 0; flex: 3 1 420px; max-width: 760px; font-size: 20px; line-height: 1.6; color: #e8e3d4; text-wrap: pretty; }
.sec-close { margin: clamp(40px,5vw,56px) auto 0; max-width: 1000px; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(22px,2.2vw,28px); line-height: 1.3; text-wrap: balance; }

/* 6 · Tu consulta */
.consulta-in { max-width: 1180px; margin: 0 auto; padding: clamp(64px,9vw,128px) clamp(20px,4vw,48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px),1fr)); gap: clamp(36px,5vw,72px); align-items: center; }
.consulta-txt { display: flex; flex-direction: column; gap: 24px; }
.consulta-txt p { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--olive); text-wrap: pretty; }
.price-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-3); border: 1.5px solid var(--btn); padding: clamp(28px,4vw,44px); display: flex; flex-direction: column; gap: 22px; }
.price-head { display: flex; flex-direction: column; gap: 6px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-family: var(--font-serif); font-size: clamp(48px,5vw,64px); line-height: 1; }
.price-unit { font-size: 15px; color: var(--olive); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid rgba(61,59,42,0.14); }
.checks li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(61,59,42,0.14); font-size: 16px; line-height: 1.5; color: var(--olive); }
.checks svg { margin-top: 3px; }

/* 7 · Médicos */
.dr-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: clamp(40px,6vw,88px); align-items: center; }
.dr-img { position: relative; aspect-ratio: 4/5; width: 100%; margin: 0 auto; }
.dr-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 22px; display: block; background: #fff; }
@media (max-width: 999px) { .dr-grid { grid-template-columns: minmax(0,1fr); } .dr-img { max-width: 340px; } }
.dr-txt { display: flex; flex-direction: column; gap: 24px; }
.h2-dr { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px,4.6vw,60px); line-height: 1.05; letter-spacing: -0.02em; }
.dr-txt > p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--olive); text-wrap: pretty; }
.dr-book { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow-2); padding: 18px 22px 18px 18px; }
.dr-book img { width: 76px; height: 108px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.dr-book p { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.25; }

/* 8 · Agenda */
.agendar-in { max-width: 1180px; margin: 0 auto; padding: clamp(64px,9vw,128px) clamp(16px,4vw,48px); }
.agendar-grid { margin-top: clamp(32px,4vw,48px); display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 999px) { .agendar-grid { grid-template-columns: minmax(0,1fr); } }
.cal-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-2); padding: clamp(8px,1.5vw,16px); min-height: 560px; overflow: hidden; }
.cal-inline { width: 100%; min-height: 540px; }
.cal-loading { display: flex; align-items: center; justify-content: center; min-height: 540px; font-size: 15px; color: var(--earth); }
.cal-fallback { padding: clamp(20px,3vw,32px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cal-fallback p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--olive); }
.steps { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-2); padding: clamp(20px,3vw,32px); }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-n { width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--olive); color: var(--cream); flex-shrink: 0; }
.step-card.is-locked .step-n { background: #ede8dc; color: var(--earth); }
.step-titles { display: flex; flex-direction: column; }
.step-title { font-family: var(--font-serif); font-size: 24px; line-height: 1.1; }
.step-sum { font-size: 14px; color: var(--earth); }
.step-body { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.step-body p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--olive); }
.step-body .btn-block { max-width: 420px; }
.step-note { font-size: 12px; color: var(--muted); }
.pago-ok { display: flex; align-items: center; gap: 10px; background: #ebe9d2; border-radius: 12px; padding: 12px 16px; }
/* Agenda (Cal.com) a todo lo ancho de la tarjeta; Cal.com ajusta la altura del iframe. */
#step-horario { overflow: hidden; }
#step-horario .cal-inline { width: auto; margin: 16px calc(-1 * clamp(20px,3vw,32px)) calc(-1 * clamp(20px,3vw,32px)); min-height: 0; }
.cal-frame { width: 100%; min-width: 280px; min-height: 480px; }
.cal-frame iframe { display: block; }
.env-test { margin-top: 20px; display: inline-block; background: #f3ebe0; border: 1px dashed var(--earth-600); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #322d1d; }
.summary { position: sticky; top: 96px; background: var(--olive); color: var(--cream); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.summary-title { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; }
.summary-sub { font-size: 14px; color: #d6d2c2; }
.summary-rows { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(253,248,237,0.18); font-size: 15px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows span:first-child { color: #bdbca3; }
.summary-rows span:last-child { text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(253,248,237,0.18); font-size: 15px; color: #bdbca3; }
.summary-price { font-family: var(--font-serif); font-size: 32px; line-height: 1; color: var(--cream); }
.summary-mxn { font-family: var(--font-sans); font-size: 13px; color: #d6d2c2; }
.summary-stripe { font-size: 13px; line-height: 1.5; color: var(--lime); }
.agendar-note { margin: 20px 0 0; font-size: 14px; color: var(--olive); }

/* 9 · Preguntas */
.faq-in { max-width: 880px; margin: 0 auto; padding: clamp(64px,9vw,128px) clamp(20px,4vw,48px); }
.faqs { margin-top: clamp(32px,4vw,48px); display: flex; flex-direction: column; border-top: 1px solid rgba(61,59,42,0.2); }
.faq { border-bottom: 1px solid rgba(61,59,42,0.2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 56px; cursor: pointer; font-size: clamp(17px,1.6vw,19px); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq-sign::before { content: "+"; font-family: var(--font-serif); font-size: 26px; line-height: 1; color: var(--olive-em); }
.faq[open] .faq-sign::before { content: "−"; }
.faq p { margin: 0 0 24px; max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--olive); text-wrap: pretty; }
.faq-wa { display: inline-block; margin: -12px 0 24px; }

/* 10 · Cierre */
.cierre { background: var(--olive); color: var(--cream); position: relative; overflow: hidden; }
.cierre-mark { position: absolute; right: -25%; top: -30%; width: min(1000px,140vw); opacity: 0.06; pointer-events: none; }
.cierre-in { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(72px,10vw,128px) clamp(20px,4vw,48px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.cierre h2 { margin: 0; max-width: 820px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px,5vw,64px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.cierre-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* 11 · Footer */
.footer { background: var(--ink-2); color: #e8e3d4; }
@media (max-width: 999px) { .footer { padding-bottom: 76px; } }
.footer-in { max-width: 1280px; margin: 0 auto; padding: clamp(48px,6vw,72px) clamp(20px,4vw,48px) 40px; display: flex; flex-direction: column; gap: 32px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; flex: 1 1 280px; }
.footer-logo { height: 28px; width: auto; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.6; color: #d6d2c2; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 1 1 220px; }
.footer-col .eyebrow { margin-bottom: 4px; }
.footer-col a { color: #e8e3d4; }
.footer-col button { background: transparent; border: 0; padding: 0; text-align: left; font-size: 14px; color: #e8e3d4; cursor: pointer; }
.footer-legal { padding-top: 24px; border-top: 1px solid rgba(253,248,237,0.16); display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.6; color: #bdbca3; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(41,41,31,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { width: 100%; max-width: 640px; max-height: 80vh; overflow: auto; background: var(--cream); border-radius: 22px; box-shadow: 0 24px 64px rgba(0,0,0,0.25); padding: clamp(24px,4vw,40px); display: flex; flex-direction: column; gap: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal-head h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; }
.modal-x { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(61,59,42,0.25); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-body { font-size: 15px; line-height: 1.6; color: var(--olive); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.modal-body p { margin: 0; }
.modal-link { padding: 13px 22px; }
.modal-foot { margin: 0; font-size: 13px; line-height: 1.6; color: var(--earth); }

/* Barra inferior móvil y WhatsApp flotante */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--cream); border-top: 1px solid rgba(61,59,42,0.16); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 240ms var(--ease-out); }
.bottom-bar .btn-block { padding: 15px 20px; }
.wa-float { position: fixed; right: 16px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 999px; background: var(--btn); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(61,59,42,0.18), 0 2px 6px rgba(61,59,42,0.12); transition: bottom 240ms var(--ease-out), background 150ms; }
.wa-float:hover { background: var(--btn-hover); }
@media (max-width: 999px) {
  body.past-hero .bottom-bar { transform: none; }
  body.past-hero .wa-float { bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== Rediseño (doc noteinfartes.docx) ===== */

/* Referencias numeradas [n] */
sup.ref { font-size: 0.6em; line-height: 0; margin-left: 2px; }
sup.ref a { color: inherit; opacity: 0.75; text-decoration: none; }
sup.ref a:hover { opacity: 1; text-decoration: underline; }
sup.ref + sup.ref::before { content: ","; opacity: 0.75; }

/* Banda de datos: hasta 4 datos; la primera es una frase */
.band-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); }
.band-num-text { font-size: clamp(30px,2.6vw,40px); line-height: 1.08; white-space: normal; text-wrap: balance; }

/* Programa en tres pasos */
.steps-path { list-style: none; margin: clamp(40px,5vw,64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 20px; counter-reset: none; }
.path-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-2); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.path-n { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-em); }
.path-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.1; text-wrap: balance; }
.path-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--olive); text-wrap: pretty; }
.path-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--olive); }
.path-card-dark { background: var(--olive); color: var(--cream); box-shadow: none; }
.path-card-dark .path-n { color: var(--lime); }
.path-card-dark p { color: #e8e3d4; }

/* Lo que ganas */
.gana { margin-top: clamp(48px,6vw,72px); background: var(--olive); color: var(--cream); border-radius: 22px; padding: clamp(32px,4vw,56px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 24px 56px; align-items: start; }
.gana h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px,3.6vw,48px); line-height: 1.05; }
.gana h3 em { color: var(--lime); }
.gana-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.gana-list li { padding: 14px 0; border-bottom: 1px solid rgba(253,248,237,0.18); font-size: 18px; line-height: 1.5; color: #e8e3d4; }
.gana-list li:first-child { padding-top: 0; }
.gana-end { grid-column: 2; margin: 4px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(24px,2.4vw,32px); line-height: 1.2; color: var(--cream); text-wrap: balance; }
@media (max-width: 999px) { .gana { grid-template-columns: minmax(0,1fr); } .gana-end { grid-column: 1; } }

/* Opciones: tres niveles */
.opciones-sub { margin: 20px 0 0; max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--olive); }
.tiers { margin-top: clamp(32px,4vw,48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 20px; align-items: stretch; }
.tier { background: #fff; border-radius: 24px; box-shadow: var(--shadow-3); padding: clamp(28px,3vw,40px); display: flex; flex-direction: column; gap: 18px; }
.tier h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.1; text-wrap: balance; }
.tier .checks { flex: 1; }
.tier-mid { border: 1.5px solid var(--btn); }
.tier .btn-dark { padding: 18px 24px; font-size: 16px; }

/* Agenda: modalidad */
.modalidades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 10px; width: 100%; }
.modalidad { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px 18px; border: 1px solid rgba(61,59,42,0.2); border-radius: 14px; background: #fff; cursor: pointer; color: var(--ink); transition: background 150ms, border-color 150ms; }
.modalidad[aria-pressed="true"] { border-color: var(--olive); background: #f1f0dc; box-shadow: inset 0 0 0 1px var(--olive); }
.modalidad-t { font-family: var(--font-serif); font-size: 22px; line-height: 1.1; }
.modalidad-d { font-size: 14px; line-height: 1.45; color: var(--earth); }
.maps-link { font-size: 14px; }
[data-variante-solo] { display: none; }
html[data-variante="a"] [data-variante-solo="a"], html[data-variante="b"] [data-variante-solo="b"] { display: revert; }
html[data-variante="b"] .step-card[data-variante-solo="b"] { display: block; }
.env-test code { font-size: 13px; }

/* Cierre */
.cierre-sub { margin: -16px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(24px,2.6vw,34px); line-height: 1.2; color: var(--lime); }

/* Fuentes */
.fuentes { background: var(--cream); border-top: 1px solid rgba(61,59,42,0.14); }
.fuentes-in { padding: clamp(40px,5vw,64px) clamp(20px,4vw,48px); }
.fuentes h2 { margin: 0 0 16px; font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--earth); }
.fuentes-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--olive); max-width: 980px; }
.fuentes-list li:target { background: #ebe9d2; border-radius: 6px; }
.fuentes-list a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.fuentes-nota { margin: 20px 0 0; font-size: 13px; color: var(--earth); }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }

/* Niveles sin precio público */

/* Cita */
.cita { background: var(--olive); color: var(--cream); }
.cita-in { margin: 0 auto; max-width: 1280px; padding: clamp(48px,6vw,80px) clamp(20px,4vw,48px); display: flex; flex-direction: column; gap: 24px; }
.cita blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(22px,2.1vw,30px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.cita figcaption { font-size: 15px; line-height: 1.5; color: #d6d2c2; }
.cita figcaption em { color: var(--lime); }

/* Parte de una pregunta que falta por contestar */
.q-group-falta { border-radius: 14px; box-shadow: 0 0 0 2px var(--earth-600); padding: 8px; margin: -8px; animation: falta 900ms var(--ease-out); }
@keyframes falta { 0% { background: #f3ebe0; } 100% { background: transparent; } }
