/* ============================================================
   HEADER — top bar on every page. Desktop shows the five links;
   below 1000px the same links live in the burger drawer.
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--ink);
}

.brand__role {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: none;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease-out);
}

.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.nav__drawer {
  display: none;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.nav__drawer.is-open { display: block; }

.nav__drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 300;
  color: var(--ink);
}

.nav__drawer a[aria-current="page"] { font-style: italic; }

@media (max-width: 400px) {
  .brand__name { font-size: 21px; }
  .brand__role { font-size: 8.5px; }
  .site-header__cta { padding: 0 16px; }
}

@media (min-width: 768px) {
  .site-header__inner { padding: 0 var(--gutter-d); }
}

@media (min-width: 1000px) {
  .site-nav {
    display: flex;
    gap: 34px;
  }

  .site-nav a {
    position: relative;
    padding: 6px 0;
    font-family: var(--font-ui);
    font-size: 15.5px;
    font-weight: 400;
    color: var(--text);
    transition: color .2s;
  }

  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--c-deep);
    transform: scaleX(0);
    transition: transform .25s var(--ease-out);
  }

  .site-nav a:hover { color: var(--ink); }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

  .nav__burger,
  .nav__drawer,
  .nav__drawer.is-open { display: none; }
}

/* ============================================================
   BLOCKS & SPACERS — full-width sections alternate backgrounds;
   a spacer is a clean band of page colour between them, not decoration.
   ============================================================ */
.block { padding: var(--sec) 0; }
.block--soft  { background: var(--bg-soft); }
.block--mist  { background: var(--bg-mist); }
.block--sage  { background: var(--bg-sage); }
.block--paper { background: var(--bg-paper); }
.block--tight { padding: calc(var(--sec) * .6) 0; }
.block--tight + .block--tight { padding-top: 0; }

.spacer { height: var(--spacer); }

.section-head {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-head .lead { font-size: var(--fs-body); color: var(--text); }

@media (min-width: 900px) {
  .block { padding: var(--sec-d) 0; }
  .block--tight { padding: calc(var(--sec-d) * .6) 0; }
  .block--tight + .block--tight { padding-top: 0; }
}

/* ============================================================
   HERO — text and photo as two equal halves; the photo runs to the
   edge of the screen. Stacked on phones, photo right under the text.
   ============================================================ */
.hero { display: grid; background: var(--bg-soft); }
.hero--home { background: var(--bg-mist); }

.hero__text { padding: 48px var(--gutter) 44px; }

.hero__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

.hero--page .hero__title { font-size: var(--fs-page); }

.hero__sub {
  max-width: 480px;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 34px;
}

.hero__photo { aspect-ratio: 4 / 3; overflow: hidden; }

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero__text { padding: 56px var(--gutter-d) 52px; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 480px; }
  .hero--home { min-height: 560px; }
  .hero__text {
    align-self: center;
    padding: 64px 56px 64px var(--inset);
  }
  .hero__photo { aspect-ratio: auto; }
}

/* ============================================================
   ICON CIRCLES — filled with a stronger tint of the block's tone
   ============================================================ */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--badge-sage);
  color: var(--ink);
}

.icon-badge svg { width: 30px; height: 30px; }
.icon-badge--mist  { background: var(--badge-mist); }
.icon-badge--paper { background: var(--badge-paper); }
.icon-badge--sm { width: 52px; height: 52px; }
.icon-badge--sm svg { width: 25px; height: 25px; }
.icon-badge--lg { width: 88px; height: 88px; }
.icon-badge--lg svg { width: 38px; height: 38px; }

/* ============================================================
   SERVICE CARDS — "¿En qué puedo acompañarte?"
   ============================================================ */
.services {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: var(--r-card);
  background: var(--bg-sage);
}

.service-card--mist { background: var(--bg-mist); }

.service-card__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: var(--fs-card);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}

.service-card__text {
  flex: 1;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}

.service-card .link-arrow { margin-top: 24px; }

@media (min-width: 900px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
  .service-card { padding: 34px 32px 32px; }
}

/* ============================================================
   DARK BAND — the phrase, at a height that fits its content
   ============================================================ */
.band {
  padding: 52px 0;
  /* Skeleton-leaf photo under a deep green tint, so the white text keeps its contrast.
     The plain colour stays as the fallback while the photo loads. */
  background:
    linear-gradient(rgba(40, 70, 60, .58), rgba(40, 70, 60, .58)),
    url('../img/band-leaves.jpg') center / cover no-repeat,
    var(--c-deep);
  text-align: center;
}

.band .eyebrow { color: rgba(255, 255, 255, .82); }

.band__text {
  max-width: 760px;
  margin: 14px auto 0;
  font-family: var(--font-display);
  font-size: var(--fs-band);
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .band { padding: 60px 0; }
}

/* ============================================================
   TESTIMONIALS — scroll-snap carousel. Swipe works without script;
   main.js adds the arrows' behaviour and the dots.
   ============================================================ */
.carousel { position: relative; margin-top: 40px; }

.t-row {
  display: flex;
  gap: 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.t-row::-webkit-scrollbar { display: none; }
.t-row:focus-visible { outline: 2px solid var(--c-deep); outline-offset: 4px; }

.t-card {
  flex: 0 0 86%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: var(--r-card);
  background: var(--card-soft);
}

.t-card__quote {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.t-card__stars {
  margin-top: 18px;
  font-size: 19px;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--star);
}

.t-card__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.t-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-strong);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -40px;
  border: 0;
  border-radius: 50%;
  background: var(--sage-strong);
  color: #fff;
  transition: background .2s, opacity .2s;
}

.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover { background: var(--c-deep); }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.carousel__arrow--prev { left: -72px; }
.carousel__arrow--next { right: -72px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 22px;
}

.carousel__dots button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
}

.carousel__dots button::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border: 1.5px solid var(--c-deep);
  border-radius: 50%;
  transition: background .2s;
}

.carousel__dots button[aria-current="true"]::before { background: var(--c-deep); }

@media (min-width: 768px) {
  .t-row { margin: 0 calc(var(--gutter-d) * -1); padding: 0 var(--gutter-d) 4px; scroll-padding: 0 var(--gutter-d); }
  .t-card { flex-basis: calc((100% - 18px) / 2); }
}

@media (min-width: 1000px) {
  .t-row { margin: 0; padding: 0 0 4px; scroll-padding: 0; gap: 22px; }
  .t-card { flex-basis: calc((100% - 44px) / 3); padding: 28px 28px 24px; }
}

@media (min-width: 1300px) {
  .carousel__arrow { display: flex; }
}

/* ============================================================
   SPLITS — photo and text side by side
   ============================================================ */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split__photo {
  overflow: hidden;
  border-radius: var(--r-photo);
  aspect-ratio: 4 / 3;
}

.split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same shape as the portrait itself (2:3), so nothing is cropped: her hand sits at the
   bottom edge */
.split__photo--portrait { aspect-ratio: 2 / 3; max-width: 460px; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--portrait { grid-template-columns: 5fr 6fr; }
  .split--flip > :first-child { order: 2; }
}

/* Full-bleed split: the photo half runs to the edge of the screen */
.split-bleed { display: grid; background: var(--bg-paper); }

.split-bleed__photo { aspect-ratio: 4 / 3; overflow: hidden; }
/* Anchored to the bottom edge: the plant and chair sit low in the photo (the original
   ends at the chair legs), the top is bare wall */
.split-bleed__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

.split-bleed__body { padding: 48px var(--gutter) 56px; }

/* Home's invitation to Contacto: two buttons, side by side when they fit */
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 768px) {
  .split-bleed__body { padding: 56px var(--gutter-d) 64px; }
}

@media (min-width: 900px) {
  .split-bleed { grid-template-columns: 1fr 1fr; }
  .split-bleed__photo { aspect-ratio: auto; }
  .split-bleed__body { align-self: center; padding: 56px var(--inset) 64px 56px; }
}

/* ============================================================
   FORMACIÓN — one card per qualification, easy to scan
   ============================================================ */
/* Professional title and licence number under "Hola, soy Inés" */
.credential {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

/* Professional experience — one row per position, years on the left from 760px */
.exp-list {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.exp-item {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card-soft);
}

.exp-item__years {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.exp-item__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

.exp-item__role {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-style: italic;
  color: var(--muted);
}

.exp-item__text {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

@media (min-width: 760px) {
  .exp-list { gap: 20px; margin-top: 48px; }
  .exp-item { grid-template-columns: 150px minmax(0, 1fr); column-gap: 32px; padding: 26px 30px; }
  .exp-item__years { grid-row: 1 / span 4; padding-top: 6px; }
  .exp-item > :not(.exp-item__years) { grid-column: 2; }
}

.edu-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card-soft);
}

.edu-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

.edu-card__meta {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 759.98px) {
  .edu-card { gap: 18px; padding: 20px; }
  .edu-card .icon-badge { width: 50px; height: 50px; }
  .edu-card .icon-badge svg { width: 24px; height: 24px; }
}

@media (min-width: 760px) {
  .edu-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
  .edu-card { padding: 26px 30px; }
}

/* ============================================================
   CALL-TO-ACTION PANEL — closes Sobre mí and El proceso
   ============================================================ */
.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 30px;
  border-radius: var(--r-panel);
  background: var(--sage-strong);
}

.cta-panel__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

.cta-panel .btn { min-width: 190px; }

.cta-panel--deep { background: var(--c-deep); }

@media (min-width: 768px) {
  .cta-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 56px;
  }
}

/* ============================================================
   EL PROCESO — free-session boxes, numbered steps, Online/Presencial tabs
   ============================================================ */
.free-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px;
  border-radius: var(--r-card);
  background: var(--bg-sage);
}

.free-box__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
}

.free-box__desc {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
}

/* The compact box repeated inside "Cómo trabajo", a stronger tint */
.free-box--inner {
  display: block;
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--badge-sage);
}

.free-box--inner .free-box__title { font-size: 19px; font-weight: 400; }

@media (min-width: 768px) {
  .free-box { align-items: center; gap: 28px; padding: 28px 36px; }
  .free-box--inner { padding: 24px 32px; }
}

.gratuita {
  position: relative;
  white-space: nowrap;
}

.gratuita::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--c-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}

.gratuita.draw::after { transform: scaleX(1); }

.tabs {
  display: flex;
  gap: 34px;
  margin-top: 36px;
  border-bottom: 1px solid var(--line-strong);
}

.tab {
  position: relative;
  padding: 10px 0 12px;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: color .2s;
}

.tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--c-deep);
  transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}

.tab[aria-selected="true"] { color: var(--ink); font-weight: 400; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.sessions__layout { margin-top: 28px; transition: opacity .22s ease; }

.sessions__photo {
  position: relative;
  /* Square on phones: shows the whole jug and plant (Online) and the whole
     vase and branches (Presencial); capped so tablets stay modest. */
  aspect-ratio: 1 / 1;
  max-height: 520px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--r-photo);
}

.sessions__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Both photos are portrait with their subject at the bottom, so every crop
     trims the plain curtain above instead. */
  object-position: 50% 100%;
}

/* The Presencial branches start high up, so anchor above the bottom edge. */
.sessions__layout[data-mode="presencial"] .sessions__photo img { object-position: 50% 60%; }

.sessions__place {
  position: absolute;
  left: 14px;
  top: 14px;
  display: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(244, 245, 242, .92);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.sessions__layout[data-mode="presencial"] .sessions__place { display: block; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-step);
  background: rgba(255, 255, 255, .62);
}

.steps[hidden] { display: none; }

.steps--right .step { flex-direction: row-reverse; }

.step > div { flex: 1; }

.step__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-deep);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
}

.step__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}

.step__desc {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
}

.sessions__footnote {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.sessions__footnote strong { font-weight: 600; color: var(--ink); }

.sessions__wa { margin-top: 16px; }

.sessions .cta-panel { margin-top: 56px; }

@media (min-width: 900px) {
  .sessions__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 32px;
  }

  .sessions__layout[data-mode="presencial"] .sessions__photo { order: 2; }
  /* The steps set the row height; the photo fills it instead of dictating it. */
  .sessions__photo { aspect-ratio: auto; height: auto; max-height: none; min-height: 460px; margin-inline: 0; }
  .sessions__photo img { position: absolute; inset: 0; }
  .sessions__layout[data-mode="presencial"] .sessions__photo img { object-position: 50% 100%; }
  .steps { margin-top: 0; justify-content: space-between; }
  .sessions .cta-panel { margin-top: 72px; }
}

/* ============================================================
   TARIFAS — three price cards, information strip, questions
   (inside El proceso, section #tarifas; there is no separate Tarifas page)
   ============================================================ */
.price-grid {
  display: grid;
  gap: 18px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  border-radius: var(--r-panel);
  background: var(--bg-sage);
}

.price-card--paper { background: var(--bg-paper); }
.price-card--mist  { background: var(--bg-mist); }

.price-card__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: var(--fs-card);
  font-weight: 300;
  color: var(--ink);
}

.price-card__desc {
  flex: 1;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}

.price-card__desc p + p { margin-top: 12px; }

.price-card__list-title { font-weight: 600; color: var(--ink); }

.price-card__list { margin-top: 8px; }

.price-card__list li {
  position: relative;
  padding: 3px 0 3px 18px;
  font-size: 15.5px;
  line-height: 1.5;
}

.price-card__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.price-card__box {
  margin-top: 24px;
  padding: 18px 20px 18px;
  border-radius: var(--r-step);
  background: rgba(255, 255, 255, .68);
}

.facts div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 15px;
}

.facts svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--ink); }
.facts dt { flex: 1; color: var(--text); }
.facts dd { font-weight: 600; color: var(--ink); text-align: right; }

.price-card__price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.price-card__label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.price-card__amount {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

/* Used while a price is not confirmed: text instead of a figure */

.price-card__pill {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--badge-sage);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

/* Urbanist has no ordinal glyph, so "1ª" is set as a raised small letter */
.ord { font-size: .72em; vertical-align: .38em; text-decoration: underline; text-underline-offset: 1px; }

.price-card--paper .price-card__pill { background: var(--badge-paper); }
.price-card--mist  .price-card__pill { background: var(--badge-mist); }

.price-card .btn { margin-top: 20px; }

/* Shared session facts live in the strip below the cards, so the price row is alone in its box */
.price-card__box > .price-card__price:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.section-head + .price-grid { margin-top: 40px; }
.price-grid + .info-strip { margin-top: 22px; }

@media (min-width: 1000px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.info-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--r-panel);
  background: var(--bg-soft);
}

.info-strip__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 300;
  color: var(--ink);
}

.info-strip__list { margin-top: 10px; }

.info-strip__list li {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
}

@media (min-width: 768px) {
  .info-strip { flex-direction: row; align-items: center; gap: 36px; padding: 32px 44px; }
  .info-strip > div:last-child { padding-left: 36px; border-left: 1px solid var(--line-strong); }
}

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.faq-intro {
  padding: 34px 30px;
  border-radius: var(--r-panel);
  background: var(--bg-paper);
}

.faq-intro .btn { margin-top: 30px; }

.faq { display: flex; flex-direction: column; gap: 12px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--card-soft);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  transition: transform .25s var(--ease-out);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 24px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

@media (min-width: 900px) {
  .faq-split { grid-template-columns: 5fr 6fr; gap: 36px; align-items: start; }
  .faq-intro { padding: 44px 44px; }
}

/* ============================================================
   CONTACTO — intro · form · photo running to the right edge,
   then a strip of three messages
   ============================================================ */
.contact-hero { display: grid; background: var(--bg-soft); }

.contact-hero__intro { padding: 48px var(--gutter) 28px; }

.contact-hero__intro .body-text { font-size: var(--fs-lead); }
.contact-hero__intro .hero__title { font-size: clamp(40px, 3.6vw, 54px); }

.contact-hero__form { padding: 0 var(--gutter) 40px; }

.contact-hero__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.contact-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }

@media (min-width: 768px) {
  .contact-hero__intro { padding: 56px var(--gutter-d) 32px; }
  .contact-hero__form { padding: 0 var(--gutter-d) 48px; }
}

@media (min-width: 1100px) {
  .contact-hero {
    grid-template-columns: calc(var(--inset) + 330px) minmax(0, 1fr) 30%;
    column-gap: 0;
  }
  .contact-hero__intro { align-self: center; padding: 48px 40px 48px var(--inset); }
  .contact-hero__form { position: relative; z-index: 1; margin-right: -24px; padding: 40px 0 48px 0; }
  .contact-hero__photo { aspect-ratio: auto; }
}

/* Small map under the intro: a zone in the north of Madrid, drawn by js/main.js */
.area-map { margin: 26px 0 0; }

.area-map__canvas {
  height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--r-photo);
  background: var(--bg-sage);
  z-index: 0;   /* keep the map's own layers under the sticky header */
}
.area-map__canvas:empty { display: none; }

.area-map .leaflet-container { font-family: var(--font-ui); }
.area-map .leaflet-control-zoom { border: 1px solid var(--line); border-radius: var(--r-input); overflow: hidden; box-shadow: none; }
.area-map .leaflet-control-zoom a { width: 30px; height: 30px; line-height: 28px; color: var(--c-deep); font-weight: 400; }
.area-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .78); color: var(--t3); }
.area-map .leaflet-control-attribution a { color: inherit; }

.area-map__label {
  padding: 3px 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-deep);
  color: #fff;
  font: 500 12px/1.4 var(--font-ui);
  letter-spacing: .02em;
  box-shadow: none;
}
.area-map__label::before { display: none; }

.area-map__caption {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  color: var(--t2);
  font-size: 15px;
  line-height: 1.45;
}
.area-map__caption svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-deep); }

@media (min-width: 1100px) {
  .area-map__canvas { height: 210px; }
}

.form-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--card-soft);
}

@media (min-width: 768px) {
  .form-card { padding: 34px 34px; }
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-panel);
  background: var(--bg-soft);
}

.contact-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 24px;
}

.contact-strip__item + .contact-strip__item { border-top: 1px solid var(--line-strong); }

.contact-strip__title {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.contact-strip__text {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.contact-strip .btn { margin-top: 16px; padding-inline: 16px; font-size: 14.5px; gap: 8px; white-space: nowrap; }
.contact-strip .icon-badge { width: 56px; height: 56px; }
.contact-strip .icon-badge svg { width: 27px; height: 27px; }

@media (min-width: 900px) {
  .contact-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 14px 0; }
  .contact-strip__item { gap: 18px; padding: 22px 24px; }
  .contact-strip__item + .contact-strip__item { border-top: 0; border-left: 1px solid var(--line-strong); }
}

/* ============================================================
   FORM — fields unchanged from the previous design
   ============================================================ */
.contact__sub {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--text);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__sub + .form { margin-top: 24px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field__label {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  height: auto;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .8; }

.field__hint {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-deep);
  background: #fff;
}

.modality-toggle {
  display: flex;
  gap: 16px;
}

.modality-toggle input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.modality-chip {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  background: rgba(255, 255, 255, .7);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.modality-toggle input[type="radio"]:checked + .modality-chip {
  border: 1.5px solid var(--c-deep);
  background: var(--bg-sage);
  color: var(--ink);
  font-weight: 500;
}

.modality-toggle input[type="radio"]:focus-visible + .modality-chip {
  outline: 2px solid var(--c-deep);
  outline-offset: 2px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--c-deep);
  cursor: pointer;
}

.form-check label {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
}

.form-check a { color: var(--ink); text-decoration: underline; }

.form .btn { margin-top: 6px; border: 0; }

.form-success {
  display: none;
  margin-top: 24px;
  padding: 40px 20px;
  border-radius: var(--r-card);
  background: var(--bg-sage);
  text-align: center;
}

.form-success p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.form-error {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-input);
  background: #fbe9e7;
}

.form-error p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #8a3b2f;
}

.form-error a { color: #8a3b2f; font-weight: 600; text-decoration: underline; }

/* ============================================================
   FOOTER — shared with the legal pages
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px var(--gutter) 38px;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer { padding: 30px var(--gutter-d); }
  .footer__inner {
    max-width: calc(var(--max) - 2 * var(--gutter-d));
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copy,
.footer__text,
.footer__legal a,
.footer__sep,
.footer__legal-sep {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--text);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__legal a { transition: color .2s; }
.footer__legal a:hover { color: var(--ink); }
