/* Tecnología Biológica Regenerativa — estilos
   Paleta aproximada inspirada en el logo (no es manual de marca).
   Contrastes verificados (WCAG): ink/blanco 12.1 · verde/blanco 7.9 · teal-text/blanco 6.4 · muted/soft 6.3 */

:root {
  --green: #285c35;
  --green-deep: #1f4a2b;
  --teal: #348c86;
  --teal-text: #256963;
  --leaf: #93b447;
  --leaf-light: #c1d86b;
  --soft: #f3f7f1;
  --tint: #eaf2e6;
  --white: #ffffff;
  --ink: #203b32;
  --muted: #4a5f57;
  --line: #dbe6d8;
  --focus: #1a6fd1;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --fs-small: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2vw, 3.2rem);
  --fs-h2: clamp(1.85rem, 1.45rem + 1.7vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --space: clamp(4rem, 3rem + 4.5vw, 7.5rem);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(32, 59, 50, 0.05), 0 8px 24px -12px rgba(32, 59, 50, 0.14);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--green); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: var(--fs-small); line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--lg { min-height: 56px; padding: 0.85em 1.6em; font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { background: #fff; color: var(--green); border-color: #b9ceb4; }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); background: var(--soft); }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--tint); color: var(--green-deep); }
/* WhatsApp: verde de la marca WhatsApp con texto oscuro (contraste 7:1) */
.btn--whatsapp { background: #25d366; color: #06301a; }
.btn--whatsapp:hover { background: #1ebe5b; color: #06301a; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-pair--full { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pair--full .btn { width: 100%; padding-inline: 0.8em; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 999px; border: 1.5px solid #c6d6c2; background: #fff; color: var(--green);
  cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--soft); border-color: var(--green); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- Revisión ---------- */
.rev-banner { background: #fff4cc; color: #4a3b00; font-size: var(--fs-small); padding: 10px 0; border-bottom: 1px solid #ecd98a; }
.rev-flag {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 8px;
  background: #fff4cc; color: #4a3b00; border: 1px dashed #c9a93a;
  font-size: 0.875rem; font-weight: 600; line-height: 1.4;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(32, 59, 50, 0.4); }
.header__bar { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-height: var(--header-h); }
.header__bar > * { flex-shrink: 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 58px; height: auto; }
.brand__name { display: flex; flex-direction: column; white-space: nowrap; font-weight: 700; line-height: 1.12; font-size: 1.12rem; letter-spacing: 0.005em; color: var(--green); }
.brand__name span + span { color: var(--teal-text); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav__list { display: flex; gap: 2px; }
.nav__list a, .nav__phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-small); white-space: nowrap;
}
.nav__list a:hover { background: var(--soft); color: var(--green); }
.nav__phone { color: var(--green); font-weight: 600; }
.nav__phone:hover { background: var(--soft); }
.header__cta { min-height: 46px; }

.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; place-items: center;
}
.menu-btn svg { width: 24px; height: 24px; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; }
.menu-btn path { transition: transform 0.25s var(--ease), opacity 0.2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .menu-l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-l3 { transform: translateY(-5px) rotate(-45deg); }

/* El menú compacto se genera en build.mjs con un punto de corte según el número de enlaces. */
@media (max-width: 360px) { .brand__name { font-size: 0.86rem; } }

/* ---------- Portada ---------- */
.hero { padding: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 45fr 55fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: stretch; }
.hero__text { align-self: center; }
.hero__visual { display: grid; }
.eyebrow { color: var(--teal-text); font-weight: 600; font-size: var(--fs-small); letter-spacing: 0.02em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--leaf)); }
.hero h1 { font-size: var(--fs-h1); color: var(--green-deep); letter-spacing: -0.025em; font-weight: 700; }
.lead { margin-top: 22px; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); color: var(--ink); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hours-chip {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 28px;
  padding: 12px 18px; border-radius: 14px; background: var(--soft); color: var(--green-deep);
  font-weight: 600; font-size: var(--fs-small); line-height: 1.45;
}
.hours-chip .icon { color: var(--teal); margin-top: 2px; }
.support { margin-top: 18px; color: var(--muted); font-size: var(--fs-small); max-width: 46ch; }

.hero__visual { position: relative; }
.hero__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 11 / 12.4; position: relative; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.illustrative { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .85rem; padding: 4px 10px; border-radius: 8px; }

.hero__panel {
  position: relative; border-radius: 28px; overflow: hidden; min-height: clamp(360px, 30vw + 180px, 560px);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(193, 216, 107, 0.35), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(52, 140, 134, 0.18), transparent 60%),
    var(--soft);
  display: grid; align-items: end; padding: clamp(20px, 3vw, 36px);
}
.hero__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__card {
  position: relative; background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.5vw, 32px);
  box-shadow: var(--shadow); max-width: 400px;
}
.hero__card-kicker { color: var(--teal-text); font-weight: 600; font-size: var(--fs-small); }
.hero__card-hours { display: flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 700; color: var(--green-deep); margin: 6px 0 10px; letter-spacing: -0.01em; }
.hero__card-hours .icon { color: var(--teal); width: 0.9em; height: 0.9em; }
.hero__card-text { color: var(--muted); font-size: var(--fs-small); }
.inline-link { font-weight: 600; color: var(--green); white-space: nowrap; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { min-height: 300px; }
  .hero__card { margin-left: 0; max-width: none; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__photo.placeholder { aspect-ratio: auto; min-height: 400px; }
}
@media (max-width: 520px) {
  .actions .btn { width: 100%; }
  .actions .btn-pair { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Portada con video de fondo (ADN en bucle, decorativo) */
.hero--video { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: #f6f9f5; }
.hero__media { position: absolute; top: 0; bottom: 0; left: -48%; right: 0; background-size: cover; background-position: 50% 50%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 62%),
    linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 18%);
}
.hero--video .hero__visual { justify-items: end; }
.hero--video .hero__photo { width: min(100%, 470px); box-shadow: 0 30px 60px -30px rgba(32, 59, 50, 0.45); }
.hero__bg-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.9); color: var(--green); display: grid; place-items: center; cursor: pointer;
}
.hero__bg-toggle svg { width: 18px; height: 18px; }
.hero__bg-toggle .when-paused { display: none; }
.hero__bg-toggle[aria-pressed="true"] .when-paused { display: contents; }
.hero__bg-toggle[aria-pressed="true"] .when-playing { display: none; }
.hero.is-static .hero__bg-toggle { display: none; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 600; font-size: var(--fs-small); letter-spacing: 0.01em;
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-light); }
.hero__tagline { margin-top: 18px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 600; color: var(--teal-text); line-height: 1.3; }
.hero__also { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
.hero__also span:first-child { font-weight: 600; color: var(--ink); }
.hero__also a { color: var(--green); font-weight: 600; }
@media (max-width: 900px) {
  .hero__media { left: 0; background-position: 80% 50%; }
  .hero__video { object-position: 80% 50%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.8) 55%, rgba(255,255,255,1) 100%); }
  .hero--video .hero__visual { justify-items: stretch; }
  .hero--video .hero__photo { width: 100%; }
}

/* ---------- Marcadores (solo revisión) ---------- */
.placeholder {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #e4eedf 0%, #d6e8e4 100%);
  border: 2px dashed #a9c3a6; color: var(--green-deep);
}
.placeholder__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.placeholder figcaption, .gcard__ph {
  position: absolute; inset: auto 16px 16px 16px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, 0.9); border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; line-height: 1.4;
}
.placeholder--tall figcaption strong { font-size: 1.1rem; }
.placeholder .rev-flag { position: absolute; top: 14px; left: 14px; margin: 0; }
.placeholder__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b5a12; }

/* ---------- Galería en movimiento ---------- */
.gallery { padding: 0 0 clamp(3rem, 2rem + 3vw, 5rem); }
.gallery .rev-flag { margin-bottom: 18px; }
.gallery__viewport { position: relative; }
.gallery__track {
  display: flex; gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 6px var(--gutter);
  touch-action: pan-x pan-y;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -3px; }
.gcard {
  flex: 0 0 auto; width: clamp(230px, 18vw + 120px, 360px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; background: var(--soft); position: relative;
}
.gcard img { width: 100%; height: 100%; object-fit: cover; }
.gcard .illustrative { font-size: 0.8rem; left: 10px; bottom: 10px; padding: 2px 8px; }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.gallery__caption { color: var(--muted); font-size: var(--fs-small); }
.gallery__controls { display: flex; gap: 10px; }
[data-gallery-toggle] .when-paused { display: none; }
[data-gallery-toggle][aria-pressed="true"] .when-paused { display: contents; }
[data-gallery-toggle][aria-pressed="true"] .when-playing { display: none; }
.when-playing, .when-paused { display: contents; }
.gallery.is-static [data-gallery-toggle] { display: none; }

/* ---------- Secciones ---------- */
.section { padding: var(--space) 0; }
.section--soft { background: var(--soft); }
.section--tint { background: var(--tint); }
.section__title { font-size: var(--fs-h2); color: var(--green-deep); max-width: 22ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section__head .section__title { margin-bottom: 0; }
.section__head p { max-width: 42ch; font-size: var(--fs-small); }

/* Enfoque */
.approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.approach__item { padding-top: 22px; border-top: 2px solid var(--line); }
.approach__num { display: block; font-weight: 700; color: var(--teal-text); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 14px; }
.approach__item h3 { font-size: var(--fs-h3); color: var(--green-deep); margin-bottom: 10px; }
.approach__item p { color: var(--muted); }
@media (max-width: 1000px) { .approach { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
@media (max-width: 560px) { .approach { grid-template-columns: 1fr; } }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.cards--team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card h3 { font-size: var(--fs-h3); color: var(--green-deep); }
.service__aka { color: var(--teal-text); font-weight: 600; margin-top: -4px; }
.service__cta { margin-top: auto; }
.service__note { color: var(--muted); font-size: 0.95rem; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line); }
.about__title { margin-bottom: 20px; }
.about__main { display: grid; gap: 20px; }
.about__main .about__title { margin-bottom: 0; }
.about__text { display: grid; gap: 18px; max-width: 62ch; align-self: center; padding-left: clamp(0px, 2vw, 28px); border-left: 3px solid var(--leaf-light); }
.about__text p { color: var(--ink); font-size: var(--fs-body); }
.about__intro { font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem); color: var(--ink); }
.about__systems { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); }
.about__systems-title { font-weight: 700; color: var(--green-deep); margin-bottom: 14px; }
.about__systems ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.about__systems li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink); line-height: 1.35; }
.about__systems li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--leaf)); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__text { border-left: 0; padding-left: 0; } }
@media (max-width: 420px) { .about__systems ul { grid-template-columns: 1fr; } }
.service__cond-label { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-top: 4px; }
.service__cond { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 4px; }
.service__cond li { background: var(--soft); border: 1px solid var(--line); color: var(--green-deep); border-radius: 999px; padding: 4px 12px; font-size: 0.95rem; font-weight: 500; }
.service__cat { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); }
.service__meta { margin: 6px 0 10px; display: grid; gap: 10px; width: 100%; }
.service__meta div { border-top: 1px solid var(--line); padding-top: 10px; }
.service__meta dt { font-weight: 600; font-size: 0.95rem; }
.service__meta dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.person__photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); margin-bottom: 6px; }
.person__photo .placeholder__tag { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 6px; }
.person { flex-direction: row; align-items: center; gap: 20px; }
.person__mono { width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--green), var(--teal)); color: #fff; font-weight: 700; font-size: 1.6rem; letter-spacing: 0.04em; }
.person:has(.person__img) { flex-direction: column; align-items: stretch; padding: 14px 14px 24px; gap: 16px; }
.person:has(.person__img) > div { padding: 0 8px; }
.person__img { width: 100%; aspect-ratio: 3 / 4; height: auto; border-radius: var(--radius-sm); object-fit: cover; object-position: 50% 20%; }
.cards--team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 340px)); }
.person__role { font-weight: 600; color: var(--teal-text); }
.person__license { font-size: 0.95rem; color: var(--muted); }
.facility { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.15rem;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(clamp(22px, 2.2vw, 30px) + 22px); left: calc(clamp(22px, 2.2vw, 30px) + 58px); right: -10px;
  height: 2px; background: repeating-linear-gradient(90deg, #b9d0b3 0 6px, transparent 6px 12px);
}
.step h3 { font-size: var(--fs-h3); color: var(--green-deep); margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { flex-direction: row; gap: 18px; border: 0; background: transparent; padding: 0 0 28px; }
  .step:not(:last-child)::after { display: block; top: 52px; bottom: 6px; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #b9d0b3 0 6px, transparent 6px 12px); }
}

/* Preguntas frecuentes */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item--draft { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(201, 169, 58, 0.06) 10px 20px); }
.acc-item__h { font-size: inherit; }
.acc-item__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: var(--fs-h3); font-weight: 600; color: var(--green-deep); line-height: 1.3;
}
.acc-item__btn:hover { color: var(--green); }
.acc-item__icon { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--soft); }
.acc-item__icon::before, .acc-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--green); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.25s var(--ease); }
.acc-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item__btn[aria-expanded="true"] .acc-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-item__panel { padding: 0 4px 24px; max-width: 64ch; }
.acc-item__panel p { color: var(--ink); }
.js .acc-item__panel[hidden] { display: none; }

/* ---------- Carrusel de videos ---------- */
.carousel__track {
  --per: 3; --gap: clamp(14px, 1.6vw, 24px);
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 4px 8px; margin: -4px; position: relative;
}
.carousel__track::-webkit-scrollbar { display: none; }
.vcard {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
@media (max-width: 1000px) { .carousel__track { --per: 2; } }
@media (max-width: 620px) { .carousel__track { --per: 1.18; } }
.vcard__media { position: relative; aspect-ratio: 9 / 16; max-height: 560px; background: var(--soft); }
.vcard__media { background: #0e1e16; }
.vcard__media img, .vcard__noposter { width: 100%; height: 100%; object-fit: contain; }
.vcard__media video { width: 100%; height: 100%; object-fit: contain; background: #0e1e16; }
.vcard__error { position: absolute; inset: auto 12px 12px; background: #fdecea; color: #7a1d12; border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; }
.vcard__transcript { margin-top: 10px; }
.vcard__transcript summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.vcard__transcript p { color: var(--muted); font-size: 0.95rem; max-height: 14em; overflow: auto; }
.vcard__noposter { position: relative; background: linear-gradient(150deg, #e4eedf, #d6e8e4); }
.vcard__play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; border-radius: 0; }
.vcard__play-icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); color: var(--green); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.vcard__play-icon svg { width: 30px; height: 30px; margin-left: 4px; }
.vcard__play:hover .vcard__play-icon { transform: scale(1.06); }
.vcard__play:focus-visible { outline-offset: -6px; border-radius: var(--radius); }
.vcard__dur, .vcard__demo { position: absolute; bottom: 12px; right: 12px; background: rgba(20, 40, 30, 0.8); color: #fff; font-size: 0.9rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; }
.vcard__demo { right: auto; left: 12px; top: 12px; bottom: auto; background: #fff4cc; color: #4a3b00; letter-spacing: 0.06em; }
.vcard__body { padding: 18px 20px 22px; }
.vcard__body h3 { font-size: 1.15rem; color: var(--green-deep); margin-bottom: 6px; }
.vcard__body p { color: var(--muted); font-size: var(--fs-small); }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.carousel__pos { min-width: 5.5em; text-align: center; font-weight: 600; color: var(--green-deep); font-variant-numeric: tabular-nums; }

/* Reproductor */
.player { border: 0; padding: 0; background: transparent; max-width: min(92vw, 520px); width: 100%; max-height: 94dvh; }
.player::backdrop { background: rgba(14, 30, 22, 0.78); }
.player__inner { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 94dvh; overflow: auto; }
.player__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 6px; }
.player__title { font-size: 1.15rem; color: var(--green-deep); }
.player__media video { width: 100%; max-height: 72dvh; background: #0e1e16; border-radius: var(--radius-sm); }
.player__error { background: #fdecea; color: #7a1d12; border-radius: 10px; padding: 12px 14px; font-size: var(--fs-small); }
.player__transcript summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.player__transcript p { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Contacto ---------- */
.contact {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(52, 140, 134, 0.35), transparent 60%),
    var(--green);
  color: #fff; padding: var(--space) 0;
}
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.contact h2 { font-size: var(--fs-h2); max-width: 18ch; }
.contact__text { margin-top: 18px; font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem); color: #e3efe0; max-width: 40ch; }
.contact__card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); padding: clamp(22px, 2.8vw, 36px); }
.contact__list { display: grid; gap: 16px; margin: 0 0 18px; }
.contact__list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); padding-bottom: 14px; flex-wrap: wrap; }
.contact__list dt { color: #cfe3cb; }
.contact__list dd { margin: 0; font-weight: 700; font-size: 1.15em; }
.contact__list a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.contact__list div { align-items: center; }
.contact__list a:hover { text-decoration: underline; }
.contact__condition { display: flex; align-items: center; gap: 10px; font-weight: 600; background: rgba(255, 255, 255, 0.12); padding: 12px 14px; border-radius: 12px; margin-bottom: 22px; }
.contact__condition .icon { color: var(--leaf-light); }
.contact :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: #fff; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0; }
.footer__grid { display: grid; grid-template-columns: auto 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.footer__logo { width: 180px; }
.footer__info { display: grid; gap: 8px; font-size: var(--fs-small); }
.footer__info a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green); font-weight: 600; text-decoration: none; }
.footer__info a:hover { text-decoration: underline; }
.footer__name { font-weight: 700; color: var(--green-deep); font-size: var(--fs-body); }
.footer__disc { font-size: var(--fs-small); color: var(--muted); background: var(--soft); border-radius: var(--radius-sm); padding: 18px 20px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: clamp(2rem, 3vw, 3rem); padding: 20px 0 28px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: auto 1fr; } .footer__disc { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__logo { width: 160px; } }

/* ---------- Barra de llamada móvil ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
    transition: transform 0.25s var(--ease);
  }
  .callbar.is-hidden { transform: translateY(110%); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Aparición suave ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Menú compacto (generado) ---------- */
@media (max-width: 1240px) {

:root { --header-h: 68px; }
.menu-btn { display: grid; }
.header__cta { display: none; }
.brand__mark { width: 44px; }
.brand__name { font-size: 0.95rem; }
.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 4px;
  padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -20px rgba(32, 59, 50, 0.35);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
html.js .nav:not(.is-open) { display: none; }
.nav__list { flex-direction: column; }
.nav__list a, .nav__phone { min-height: 52px; font-size: var(--fs-body); padding: 10px 12px; border-radius: 12px; white-space: normal; }
.nav__phone { border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 16px; }
}
html.nav-compact { --header-h: 68px; }html.nav-compact .menu-btn { display: grid; }html.nav-compact .header__cta { display: none; }html.nav-compact .brand__mark { width: 44px; }html.nav-compact .brand__name { font-size: 0.95rem; }html.nav-compact .nav {
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 4px;
  padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -20px rgba(32, 59, 50, 0.35);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}html.nav-compact.js .nav:not(.is-open) { display: none; }html.nav-compact .nav__list { flex-direction: column; }html.nav-compact .nav__list a, html.nav-compact .nav__phone { min-height: 52px; font-size: var(--fs-body); padding: 10px 12px; border-radius: 12px; white-space: normal; }html.nav-compact .nav__phone { border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 16px; }

html.nav-no-cta .header__cta { display: none; }
