/*
 * v2 landing — hand-written styles loaded after main.css.
 * main.css is a precompiled, purged Tailwind 3.1.8 build that can't be
 * regenerated, so everything new in v2 lives here as plain CSS.
 */

/* ---------- Tokens ---------- */
:root {
  /* Brand (DESIGN.md) */
  --gold: #efb443;
  --gold-deep: #e3a52c;          /* hover state for gold surfaces */
  --olive: #6d8c54;
  --olive-light: #90971d;
  --herb: #9da620;

  /* Neutrals */
  --ink: #111110;                /* ≥4.9:1 on every brand surface */
  --ink-soft: #56564f;           /* secondary text, 7.4:1 on white */
  --paper: #ffffff;
  --paper-alt: #fafafa;
  --head-base: #ededed;
  --line: #e4e2da;

  /* Text-safe accents on white (gold/olive text fail contrast on white) */
  --olive-text: #4f6b3a;         /* 6.0:1 on white */

  /* Consultation-type colors (plans): Primera consulta / Control */
  --type-primera: #4f6b3a;       /* deep forest green; white text 6.0:1 */
  --type-control: #90971d;       /* light olive; white text 3.2:1 (below 4.5:1 AA for small text) */

  /* Type scale */
  --fs-hero: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-statement: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --fs-price: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem);

  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 2px rgb(17 17 16 / 0.05), 0 8px 24px -12px rgb(17 17 16 / 0.18);
  --shadow-lift: 0 2px 4px rgb(17 17 16 / 0.06), 0 16px 32px -14px rgb(17 17 16 / 0.28);
}

/* ---------- Base & browser surfaces ---------- */
:root {
  color-scheme: light; /* single-theme site: don't let the OS darken it */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, sans-serif;
  line-height: 1.6;
  accent-color: var(--olive);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* on the dark hero and footer the gold ring reads clearly (9:1) */
header :focus-visible,
footer :focus-visible {
  outline-color: var(--gold);
}

a {
  text-underline-offset: 0.2em;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

/* ---------- Headings ---------- */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}

.section-title .light {
  font-weight: 300;
}

.section-lead {
  margin-top: 0.75rem;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.section-head {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* Hero */
/* The photo is ~2.1:1 and covers a tall box on phones, so even small
   screens need the 1086px source (the old 200px one rendered blurry). */
/* WebP first (~40% smaller), JPEG for browsers without image-set type() */
.hero {
  background-image: url(../img/bg,w_1086.jpg);
  background-image: image-set(url(../img/bg,w_1086.webp) type("image/webp"), url(../img/bg,w_1086.jpg) type("image/jpeg"));
}

@media (min-width: 1280px) {
  .hero {
    background-image: url(../img/bg,w_1400.jpg);
    background-image: image-set(url(../img/bg,w_1400.webp) type("image/webp"), url(../img/bg,w_1400.jpg) type("image/jpeg"));
  }
}

@media (min-width: 1536px) {
  .hero {
    background-image: url(../img/bg.jpg);
    background-image: image-set(url(../img/bg.webp) type("image/webp"), url(../img/bg.jpg) type("image/jpeg"));
  }
}

/* min-height (not a fixed height) so the logo, headline and button are
   never clipped when the text wraps */
.hero-inner {
  min-height: 28rem;
}

@media (min-width: 768px) {
  .hero-inner {
    min-height: 36rem;
  }
}

@media (min-width: 1536px) {
  .hero-inner {
    min-height: 48rem;
  }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Rotating keyword: the three words share one grid cell, so the cell is
   as wide as the longest word and the headline wraps instead of
   overflowing. One word is always fully visible. */
.word-cycle {
  display: grid;
  justify-items: center;
  margin-top: 0.1em;
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .word-cycle {
    display: inline-grid;
    justify-items: start;
    vertical-align: bottom;
    margin-top: 0;
  }
}

.word-cycle__w {
  grid-area: 1 / 1;
  opacity: 0;
  animation: word-cycle 9s var(--ease-out) infinite;
}

/* negative first delay: a word is already showing on load */
.word-cycle__w:nth-child(1) { animation-delay: -0.5s; }
.word-cycle__w:nth-child(2) { animation-delay: 2.5s; }
.word-cycle__w:nth-child(3) { animation-delay: 5.5s; }

.word-cycle.is-paused .word-cycle__w {
  animation-play-state: paused;
}

@keyframes word-cycle {
  0% {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(6px);
  }
  5%,
  31% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
  36%,
  100% {
    opacity: 0;
    transform: translateY(-0.25em);
    filter: blur(6px);
  }
}

.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;
}

.hero-lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.55;
  max-width: 34ch;
  color: rgb(255 255 255 / 0.92);
  padding-block: 1.25rem 2rem;
}

@media (max-width: 639px) {
  .hero-lead {
    margin-inline: auto;
  }
}

/* About */
.about {
  background-image: url(../img/plato.png);
  background-image: image-set(url(../img/plato.webp) type("image/webp"), url(../img/plato.png) type("image/png"));
}

/* The plate illustration (1317×541) spans the top of the section on
   phones; start the text below it instead of over it. */
@media (max-width: 639px) {
  .about {
    padding-top: calc(41vw + 1.5rem);
  }
}

.statement {
  font-size: var(--fs-statement);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}

.prose-lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.5;
  max-width: 52ch;
}

.statement + .prose {
  margin-top: 1.25rem;
}

.prose {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(17 17 16 / 0.12);
}

.btn--primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgb(17 17 16 / 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgb(17 17 16 / 0.25);
}

.btn--ghost:hover {
  background: var(--paper-alt);
  border-color: rgb(17 17 16 / 0.45);
}

.btn--lg {
  min-height: 3.5rem;
  padding-inline: 2rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Pricing ---------- */
/* Primera consulta | Control switch (tabs). Without JS the switch is
   hidden and both panels are shown one after the other. */
.plan-switch {
  display: none;
}

.js .plan-switch {
  --gap: 0.25rem;
  --pad: 0.3rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  width: min(100%, 26rem);
  margin: 0 auto clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  padding: var(--pad);
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgb(17 17 16 / 0.06);
}

/* Sliding gold pill behind the selected tab (--i set by the tabs script).
   A pseudo-element, so the tablist only contains tabs for screen readers. */
.js .plan-switch::before {
  content: "";
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  width: calc((100% - 2 * var(--pad) - var(--gap)) / 2);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 1px 2px rgb(17 17 16 / 0.12), 0 6px 16px -10px rgb(17 17 16 / 0.35);
  transform: translateX(calc(var(--i, 0) * (100% + var(--gap))));
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-switch__tab {
  position: relative;
  z-index: 1; /* labels sit above the sliding pill */
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.plan-switch__tab:not([aria-selected="true"]):hover {
  color: var(--ink);
  background: var(--paper-alt);
}

.plan-switch__tab[aria-selected="true"] {
  color: var(--ink);
}

/* ---------- Plan picker: selectable options + "Tu selección" summary ---------- */
.plans-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .plans-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr);
    gap: 2.5rem;
  }
}

.plan-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.options {
  display: grid;
  gap: 1.25rem;
}

.options[hidden] {
  display: none;
}

/* without JS both panels show, one after the other */
.options:not([hidden]) + .options:not([hidden]) {
  margin-top: 2.5rem;
}

.options.is-entering {
  animation: panel-in 320ms var(--ease-out);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* One-line cue at the top of each panel ("¿Es tu primera vez?…") */
.panel-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.panel-intro strong {
  color: var(--ink);
}

/* One option = a radio card. The label stretches over the whole card so
   any tap selects it; the quantity selector sits above that layer. */
.option {
  --check: 1.375rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out), background-color 220ms var(--ease-out);
}

.option__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.option__label {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: var(--check) minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  align-items: center;
  cursor: pointer;
}

.option__label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.option__check {
  grid-row: 1 / span 2;
  width: var(--check);
  height: var(--check);
  border-radius: 50%;
  border: 2px solid rgb(17 17 16 / 0.3);
  background: var(--paper);
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.option__name {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}

.option__desc {
  grid-column: 2;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.option__price {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.option__amount {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.3rem;
}

.option__amount [data-price] {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.option__currency {
  font-size: 0.9375rem;
  font-weight: 300;
}

.option__was {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.4rem;
  max-width: 12.5rem;
  margin: 0.35rem 0 0 auto;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (max-width: 639px) {
  .option__was {
    justify-content: flex-start;
    max-width: none;
    margin-left: 0;
  }
}

.option__was [data-saving] {
  color: var(--olive-text);
  font-weight: 700;
}

.option__unit {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.option__badge {
  position: absolute;
  top: 0;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 6px -2px rgb(17 17 16 / 0.3);
}

.option .qty {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2; /* above the stretched label */
  margin: 1rem 0 0 calc(var(--check) + 0.9rem);
}

.option__details {
  grid-column: 1 / -1;
  margin: 1rem 0 0 calc(var(--check) + 0.9rem);
  font-size: 0.9375rem;
}

.js .option__details {
  display: none; /* with JS the details live in the summary */
}

.option__note {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* states */
.option:hover {
  border-color: rgb(17 17 16 / 0.28);
  box-shadow: var(--shadow-lift);
}

.option.is-selected,
.option:has(.option__radio:checked) {
  border-color: var(--type, var(--ink));
  box-shadow: 0 0 0 1px var(--type, var(--ink)), var(--shadow-lift);
}

/* two colors only: Primera consulta = olive, Control = light olive */
.option--primera { --type: var(--type-primera); }
.option--control { --type: var(--type-control); }
.option--primera.is-selected { background: rgb(79 107 58 / 0.09); }
.option--control.is-selected { background: rgb(144 151 29 / 0.1); }

.option.is-selected .option__check,
.option:has(.option__radio:checked) .option__check {
  border-color: var(--type, var(--ink));
  background: var(--type, var(--ink)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center / 70% no-repeat;
  transform: scale(1.05);
}

.option:has(.option__radio:focus-visible) {
  outline: 3px solid var(--olive-text);
  outline-offset: 3px;
}

/* phones: price moves under the name, aligned with it */
@media (max-width: 639px) {
  .option {
    grid-template-columns: minmax(0, 1fr);
  }
  .option__price {
    grid-column: 1;
    grid-row: 2;
    margin: 0.75rem 0 0 calc(var(--check) + 0.9rem);
    text-align: left;
  }
  .option__amount {
    justify-content: flex-start;
  }
}

.is-updating {
  animation: price-in 280ms var(--ease-out);
}

@keyframes price-in {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Shared check-mark list (option details and summary) */
.features {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9688rem;
  line-height: 1.45;
}

.features li {
  position: relative;
  padding-left: 1.6rem;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--olive-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Quantity selector (segmented radio group) — only with JS, since the
   price recalculation needs it. The selected option is a dark "thumb"
   that slides sideways to the new choice (--i = checked index, set by
   the script; --n = option count). */
.qty {
  display: none;
  padding: 0;
  border: 0;
}

.js .qty {
  display: block;
}

.qty legend {
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.qty__options {
  --gap: 0.25rem;
  --pad: 0.25rem;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--gap);
  max-width: 18rem;
  padding: var(--pad);
  border-radius: 12px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}

.qty__thumb {
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  width: calc((100% - 2 * var(--pad) - (var(--n) - 1) * var(--gap)) / var(--n));
  border-radius: 9px;
  background: var(--ink);
  box-shadow: 0 2px 6px -1px rgb(17 17 16 / 0.35);
  transform: translateX(calc(var(--i, 0) * (100% + var(--gap))));
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

/* On cards that aren't the chosen plan, the quantity pill is a light grey
   preview, so only the selected card reads as selected */
.option.is-selected .qty__thumb,
.summary .qty__thumb {
  background: var(--type, var(--ink));
}

.option:not(.is-selected) .qty__thumb {
  background: #d9d6cc;
  box-shadow: none;
}

.option:not(.is-selected) .qty__option input:checked + span {
  color: var(--ink);
}

.qty__option {
  position: relative;
  z-index: 1; /* numbers sit above the sliding thumb */
}

.qty__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.qty__option span {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border-radius: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: background-color 180ms var(--ease-out), color 220ms var(--ease-out);
}

.qty__option input:not(:checked):hover + span {
  background: rgb(17 17 16 / 0.06);
}

.qty__option input:checked + span {
  color: #fff;
}

.qty__option input:focus-visible + span {
  outline: 3px solid var(--olive-text);
  outline-offset: 2px;
}

/* With JS, prices live only in the summary card; the options stay a clean
   list to choose from. Without JS each option keeps its price. */
.js .option {
  grid-template-columns: minmax(0, 1fr);
}

.js .option__price {
  display: none;
}

/* Summary card — same visual language as the options (white card, thin
   border, soft shadow); the plan type is a small chip in its tier color. */
.summary {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 1024px) {
  .summary {
    position: sticky;
    top: 1.5rem;
  }
}

.summary__empty {
  display: none;
  color: var(--ink-soft);
}

.summary__empty p {
  margin-top: 0.35rem;
}

.js .summary--empty .summary__empty {
  display: block;
}

.summary--empty .summary__filled {
  display: none;
}

.summary--empty {
  border-style: dashed;
  box-shadow: none;
}

.summary__chip {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--head-base);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 300ms var(--ease-out);
}

.summary--primera { --type: var(--type-primera); }
.summary--control { --type: var(--type-control); }
.summary__chip { background: var(--type, var(--head-base)); }
.summary--primera .summary__chip,
.summary--control .summary__chip { color: #fff; }

.summary__name {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.summary__meta {
  margin-top: 0.2rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.summary__price {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.summary__amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.summary__amount [data-s="price"] {
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.summary__currency {
  font-size: 1.125rem;
  font-weight: 300;
}

.summary__was {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.summary__was[hidden],
.summary__unit[hidden] {
  display: none;
}

.summary__saving {
  color: var(--olive-text);
  font-weight: 700;
}

.summary__unit {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.summary__subhead {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Presencial / Online choice (same sliding segmented control as quantities) */
.summary__modality {
  margin-top: 1.5rem;
}

.summary__modality .qty__options {
  max-width: none;
}

.summary--empty .summary__modality {
  display: none;
}

.summary__modality + .summary__mode {
  margin-top: 0.75rem;
}

/* Modality / location note, shown for every plan */
.summary__mode {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--paper-alt);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}

.summary__mode svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  color: var(--olive-text);
}

.summary__mode span {
  color: var(--ink-soft);
}

.summary--empty .summary__mode {
  margin-top: 1rem;
}

.summary__cta {
  margin-top: 1rem;
}

.summary__cta[aria-disabled="true"] {
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px dashed rgb(17 17 16 / 0.25);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.summary__hint {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Phone bottom bar with the selected plan, inside thumb reach */
.summary-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  border-radius: 16px;
  background: var(--type, var(--ink));
  transition: transform 320ms var(--ease-out), background-color 300ms var(--ease-out);
  color: #fff;
  box-shadow: 0 14px 32px -10px rgb(0 0 0 / 0.5);
  transform: translateY(calc(100% + 1.5rem));
}

.summary-bar--primera { --type: var(--type-primera); }
.summary-bar--control { --type: var(--type-control); }

.summary-bar.is-shown {
  transform: none;
}

.summary-bar[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .summary-bar {
    display: none !important;
  }
}

.summary-bar__text {
  display: grid;
  min-width: 0;
}

.summary-bar__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.75);
}

.summary-bar__price {
  font-size: 1.125rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.summary-bar .btn {
  flex: none;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Alternate section background; surfaces inside it flip to white */
.section--alt {
  background: var(--paper-alt);
}

.js .section--alt .plan-switch {
  background: var(--paper);
}

/* ---------- Reseñas ---------- */
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--gold);
}

.stars svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.reviews__summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.reviews__summary strong {
  color: var(--ink);
  font-weight: 900;
}

/* Carousel: a native horizontally scrolling track with scroll-snap.
   3 reviews per view on desktop, 2 on tablets, 1 + a peek on phones. */
.carousel__track {
  --gap: 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem; /* snap to the padding edge, so the start is scrollLeft 0 */
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 0.5rem;
  margin: -0.25rem -0.25rem 0;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: 3px solid var(--olive-text);
  outline-offset: 4px;
}

@media (min-width: 640px) {
  .carousel__track {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }
}

@media (min-width: 1024px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  }
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem;
  scroll-snap-align: start;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review__text {
  margin: 0.85rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

/* Opening/closing quote marks as a typographic accent */
.review__text p::before {
  content: "“";
  margin-right: 0.05em;
  color: var(--olive-text);
  font-weight: 900;
}

.review__text p::after {
  content: "”";
  margin-left: 0.05em;
  color: var(--olive-text);
  font-weight: 900;
}

/* Clamp each review to 8 lines; "Mostrar más" expands it */
.review__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}

.review.is-expanded .review__text p {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
}

.review__more {
  align-self: flex-start;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--olive-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.review__more[hidden] {
  display: none;
}

.review__more:hover {
  color: var(--ink);
}

.review__author {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.review__author span {
  font-weight: 400;
  color: var(--ink-soft);
}

.carousel__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel__nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.js .carousel__nav {
  display: flex;
}

.carousel__status {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(17 17 16 / 0.25);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.carousel__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.carousel__btn:hover:not(:disabled) {
  background: var(--paper-alt);
  border-color: rgb(17 17 16 / 0.45);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Trayectoria profesional ---------- */
/* Same language as the rest of the page: light section, ink text, olive
   labels and check marks, the portrait in a rounded card frame. */
.career__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .career__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}

/* Portrait card: photo on top, name + role as its footer */
.career__photo {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.career__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 900px) {
  .career__photo img {
    aspect-ratio: 720 / 987;
  }
}

.career__name {
  padding: 1.1rem 1.25rem 1.25rem;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* the role line keeps its own size under the larger name */
.career__name span {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--olive-text);
}

.career__intro {
  margin-top: 0;
  max-width: 58ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
}

.career__facts {
  display: grid;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}

@media (min-width: 640px) {
  .career__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.career__facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--olive-text);
}

.career__facts dd {
  margin-top: 0.3rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.career__subhead {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 700;
}

.career__focus {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

.career__focus li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding-left: 1.75rem;
}

.career__focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--olive-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.career__focus span {
  font-size: 0.9688rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- "¿Cómo es cada consulta?" ---------- */
.visits {
  display: grid;
  gap: 2.5rem 3.5rem;
  max-width: 60rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .visits {
    grid-template-columns: 1fr 1fr;
  }
}

.visit {
  display: grid;
  justify-items: start;
  align-content: start;
  max-width: 34rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.visit__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
}

/* Online note under both visit descriptions */
.visits__online {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 60rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  line-height: 1.5;
}

.visits__online svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.05rem;
  color: var(--olive-text);
}

.visit__lead {
  margin-bottom: 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.visit .features {
  color: var(--ink-soft);
}

.visit__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* ---------- Contact + location ---------- */
/* Two columns on desktop: contact actions and address on the left, the
   map in a rounded frame on the right (same card language as the rest). */
.location__grid {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .location__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }
}

.location__info .section-lead {
  margin-top: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.contact-link svg {
  width: 28px;
  height: 28px;
  flex: none;
}

/* WhatsApp and TikTok glyphs have no built-in padding (Instagram's 42px
   icon does), so draw them smaller to match its visual size */
.contact-link svg.contact-link__icon--tight {
  width: 18px;
  height: 18px;
  margin: 5px;
}

.contact-link:hover {
  color: var(--olive-text);
  text-decoration: underline;
}

.location__address {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.location__address > svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--olive-text);
}

.location__label {
  font-weight: 700;
}

.location__directions {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--olive-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.location__directions:hover {
  color: var(--ink);
}

.location__map {
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--paper);
}

@media (min-width: 900px) {
  .location__map {
    min-height: 26rem;
  }
}

.location__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

/* ---------- Footer ---------- */
.footer-legal {
  margin-top: 1.75rem;
  max-width: 46rem;
  text-align: center;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.875rem;
  line-height: 1.6;
}

.legal {
  margin-top: 1rem;
  text-align: left;
}

.legal summary {
  width: fit-content;
  margin-inline: auto;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.legal p {
  margin-top: 0.75rem;
}

.footer-copy {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.8125rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* keyword stays on its first word instead of cycling */
  .word-cycle__w {
    animation: none !important;
  }
  .word-cycle__w:first-child {
    opacity: 1;
  }
}

/* Agenda online: WhatsApp becomes the secondary path under the CTA */
.summary__wa {
  margin-top: 0.6rem;
  min-height: 2.75rem;
  font-size: 0.8125rem;
}

.summary__wa[hidden] {
  display: none;
}
