/* ==========================================================================
   KALMS · Centro Psicológico Integral — hoja de estilos principal
   Mobile-first. Colores derivados del logo en versión mate.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca (versiones mate de los colores del logo) */
  --green: #6f9a52;          /* logo #87bf58 apagado */
  --green-strong: #446a30;   /* para texto sobre claro (AA) */
  --blue: #3e6f9e;           /* logo #3a78bc apagado */
  --blue-strong: #2d5680;    /* botones / enlaces (AA con blanco) */
  --gold: #b8995e;           /* versión "dorado" del logo */
  --accent-red: #b5524a;
  --accent-yellow: #d9b64a;
  --s-from: #2e5e43;         /* S · Salud: degradado verde oscuro */
  --s-to: #6f9a52;

  /* Superficies y texto (modo claro) */
  --bg: #f6f3ed;
  --bg-alt: #ece7de;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(31, 42, 55, 0.12);
  --text: #1f2a37;
  --text-muted: #4f5b67;
  --link: var(--blue-strong);
  --header-bg: rgba(246, 243, 237, 0.82);
  --menu-bg: rgba(246, 243, 237, 0.97);
  --shadow: 0 1px 2px rgba(31, 42, 55, 0.06), 0 8px 24px rgba(31, 42, 55, 0.08);

  /* Hero: capa al 30 % sobre el video */
  --hero-overlay: rgba(20, 30, 40, 0.30);

  /* Tipografía (sin fuentes externas, con fallback) */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Bell MT", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #8fb574;
    --green-strong: #a3c78a;
    --blue: #7ea7d1;
    --blue-strong: #8db4dc;
    --gold: #cdb27c;
    --s-from: #5f9a78;
    --s-to: #a3c78a;
    --bg: #12171d;
    --bg-alt: #171e26;
    --surface: rgba(30, 38, 48, 0.72);
    --surface-solid: #1c242e;
    --border: rgba(230, 233, 236, 0.12);
    --text: #e6e9ec;
    --text-muted: #aab4be;
    --link: #9cc0e4;
    --header-bg: rgba(18, 23, 29, 0.82);
    --menu-bg: rgba(18, 23, 29, 0.97);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--blue-strong); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-strong); margin-bottom: .8rem;
}
.lead { font-size: 1.12rem; color: var(--text-muted); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: #2d5680; color: #fff; }
.btn--primary:hover { background: #24476b; }
.btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--blue); color: var(--link); }
.btn--whatsapp { background: #1f7a4d; color: #fff; }
.btn--whatsapp:hover { background: #18633e; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- 4. Cabecera y navegación ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: transparent; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-solid,
.site-header.nav-open {
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-size: 1.55rem; letter-spacing: .08em; }
.brand__tag { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-top: .25rem; }
.site-header.is-solid .brand,
.site-header.nav-open .brand { color: var(--text); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12);
  color: #fff; cursor: pointer;
}
.site-header.is-solid .nav-toggle,
.site-header.nav-open .nav-toggle { color: var(--text); border-color: var(--border); background: var(--surface); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil */
.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--menu-bg);
  border-top: 1px solid var(--border); padding: .5rem 16px 1.5rem;
  display: none;
}
.site-header.nav-open .main-nav { display: block; }
.main-nav__list { list-style: none; margin: 0; padding: 0; }
.main-nav__list > li { border-bottom: 1px solid var(--border); }
.main-nav__link,
.main-nav__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .4rem;
  padding: .9rem .25rem; background: none; border: 0; color: var(--text);
  font: 500 1.02rem/1.3 var(--font-sans); text-decoration: none; cursor: pointer; text-align: left;
}
.main-nav__trigger .chev { width: 14px; height: 14px; transition: transform .2s; }
.main-nav__trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown { list-style: none; margin: 0 0 .6rem; padding: 0 0 0 .75rem; display: none; }
.dropdown.is-open { display: block; }
.dropdown a { display: block; padding: .55rem .25rem; color: var(--text-muted); text-decoration: none; }
.dropdown a:hover { color: var(--link); }
.main-nav__cta { margin-top: 1rem; width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; display: block; max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .main-nav__list { display: flex; align-items: center; gap: .25rem; }
  .main-nav__list > li { border: 0; position: relative; }
  .main-nav__link, .main-nav__trigger {
    padding: .5rem .8rem; border-radius: 999px; color: #fff; font-size: .96rem; width: auto;
  }
  .site-header.is-solid .main-nav__link, .site-header.is-solid .main-nav__trigger { color: var(--text); }
  .main-nav__link:hover, .main-nav__trigger:hover,
  .main-nav__trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
  .site-header.is-solid .main-nav__link:hover, .site-header.is-solid .main-nav__trigger:hover,
  .site-header.is-solid .main-nav__trigger[aria-expanded="true"] { background: rgba(62, 111, 158, .1); }

  .dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 270px;
    padding: .5rem; margin: 0; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--menu-bg);
    box-shadow: var(--shadow);
    display: block; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s, transform .18s var(--ease), visibility .18s;
  }
  .dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
  .dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
  .dropdown a { padding: .55rem .8rem; border-radius: var(--radius-sm); color: var(--text); font-size: .95rem; }
  .dropdown a:hover, .dropdown a:focus-visible { background: rgba(62, 111, 158, .1); color: var(--link); }
  .main-nav__cta { margin: 0 0 0 .6rem; width: auto; min-height: 42px; padding: .5rem 1.1rem; }
}

/* ---------- 5. Hero con video ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate;
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 72px;
  background: #2a3a4a url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hero__content { max-width: 760px; }
.hero__content h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__content .eyebrow { color: #fff; opacity: .9; }
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 620px; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero__chips { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__chips li {
  font-size: .85rem; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.video-toggle {
  position: absolute; right: 16px; top: calc(var(--header-h) + 16px); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* ---------- 6. Tarjetas y rejillas ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(62, 111, 158, .35); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(62, 111, 158, .12); color: var(--blue);
}
.card__icon svg { width: 28px; height: 28px; }
.card--green .card__icon { background: rgba(111, 154, 82, .14); color: var(--green); }
.card--gold .card__icon { background: rgba(184, 153, 94, .16); color: var(--gold); }
.card ul { margin: .4rem 0 0; color: var(--text-muted); font-size: .95rem; }
.card ul li { margin-bottom: .25rem; }

/* ---------- 7. Quiénes somos ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.about__visual {
  position: relative; border-radius: 24px; padding: 40px; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 25% 30%, rgba(111, 154, 82, .22), transparent 70%),
    radial-gradient(60% 60% at 75% 70%, rgba(62, 111, 158, .22), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.about__visual img { width: 80%; }
.pillars { display: grid; gap: 14px; margin-top: 1.8rem; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { padding: 18px 20px; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pillar:nth-child(2n) { border-left-color: var(--blue); }
.pillar h3 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: .3em; }
.pillar p { margin: 0; font-size: .95rem; color: var(--text-muted); }

/* ---------- 8. Público / proceso ---------- */
.audience { text-align: center; }
.audience .card__icon { margin-inline: auto; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 2rem; color: var(--gold); display: block; margin-bottom: .4rem;
}
.steps h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; }
.steps p { font-size: .95rem; color: var(--text-muted); margin: 0; }

/* ---------- 9. Profesionales ---------- */
.pro { text-align: center; }
.pro__avatar {
  width: 112px; height: 112px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 0 6px rgba(184, 153, 94, .18);
  overflow: hidden;
}
.pro__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro__role { color: var(--green-strong); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.pro p { font-size: .95rem; color: var(--text-muted); }

/* ---------- 10. Contacto ---------- */
.contact { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .card__icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.contact__list .card__icon svg { width: 22px; height: 22px; }
.contact__list strong { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.form { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--text);
  font: 1rem/1.4 var(--font-sans);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.form__note { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ---------- 11. Footer ---------- */
.site-footer { background: #17202a; color: #c9d1d9; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e6e9ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; }
.footer__brand img { width: 56px; }
.footer__brand span { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: .08em; }
.site-footer h2 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0c0; font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: #9fb0c0; }

/* ---------- 12. Botón flotante de WhatsApp ----------
   Va a la IZQUIERDA para no tapar la burbuja de Chatwoot (derecha). */
.wa-float {
  position: fixed; left: 16px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem; height: 56px; padding: 0 18px 0 16px;
  border-radius: 999px; background: #1f7a4d; color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22); transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { background: #18633e; transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float__label { display: none; }
@media (min-width: 640px) { .wa-float__label { display: inline; } }

/* ---------- 13. Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. Página 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.notfound img { width: 140px; margin: 0 auto 1.2rem; }
.notfound__code { font-family: var(--font-serif); font-size: clamp(4rem, 14vw, 7rem); color: var(--gold); line-height: 1; margin: 0; }

/* ==========================================================================
   v2 — Acrónimo, equipo destacado, etiquetas, mapa y redes
   ========================================================================== */

/* ---------- Acrónimo en el hero ---------- */
.hero__acronym {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 1.4rem 0 0; padding: 0; list-style: none;
  font-size: 1.02rem; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.hero__acronym b { font-family: var(--font-serif); font-weight: 400; font-size: 1.5em; margin-right: .03em; }

/* ---------- Sección "¿Qué significa KALMS?" ---------- */
.acronym { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .acronym { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acronym { grid-template-columns: repeat(5, 1fr); } }
.acronym__item {
  --c: var(--blue);
  position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  --bar: var(--c);
}
.acronym__item::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--bar);
}
.acronym__item:nth-child(1) { --c: var(--green); }
.acronym__item:nth-child(2) { --c: var(--gold); }
.acronym__item:nth-child(3) { --c: var(--blue); }
.acronym__item:nth-child(4) { --c: var(--accent-red); }
.acronym__item:nth-child(5) { --c: var(--s-from); --bar: linear-gradient(90deg, var(--s-from), var(--s-to)); }
.acronym__item:nth-child(5) .acronym__letter {
  background: linear-gradient(135deg, var(--s-from), var(--s-to)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acronym__letter { font-family: var(--font-serif); font-size: 3.4rem; line-height: 1; color: var(--c); }
.acronym__word { font-family: var(--font-serif); font-size: 1.35rem; margin: .35rem 0 .5rem; }
.acronym__item p { font-size: .95rem; color: var(--text-muted); margin-bottom: 1rem; }
.acronym__link { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; }
.acronym__link:hover { text-decoration: underline; }

/* ---------- Equipo ---------- */
.pro-lead {
  display: grid; gap: 24px; align-items: center; margin-bottom: 24px; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 768px) { .pro-lead { grid-template-columns: 200px 1fr; padding: 36px 40px; gap: 40px; } }
.pro-lead .pro__avatar { width: 180px; height: 180px; font-size: 3rem; margin: 0 auto; }
.pro-lead h3 { font-size: 1.7rem; margin-bottom: .2em; }
.pro__creds { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .3rem; font-size: .9rem; color: var(--text-muted); }
.pro__creds li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.pro .pro__creds { text-align: left; margin-top: .8rem; }
.pro__reg { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .6rem; }
.grid--team { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--team { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Etiquetas "Atendemos" en servicios ---------- */
.tags { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li {
  font-size: .78rem; padding: .2rem .6rem; border-radius: 999px;
  background: rgba(62, 111, 158, .1); color: var(--text); border: 1px solid var(--border);
}
.card--green .tags li { background: rgba(111, 154, 82, .12); }
.card--gold .tags li { background: rgba(184, 153, 94, .14); }

/* ---------- Mapa (se carga solo al pulsar) ---------- */
.map {
  position: relative; margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  border: 1px solid var(--border); display: grid; place-items: center; text-align: center; padding: 20px;
  background:
    radial-gradient(50% 60% at 30% 40%, rgba(111, 154, 82, .18), transparent 70%),
    radial-gradient(50% 60% at 70% 60%, rgba(62, 111, 158, .18), transparent 70%),
    var(--surface);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__note { font-size: .8rem; color: var(--text-muted); margin: .6rem 0 0; }

/* ---------- Redes sociales ---------- */
.social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.social a:hover { color: var(--link); border-color: var(--blue); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.site-footer .social a { border-color: rgba(255, 255, 255, .2); color: #e6e9ec; background: transparent; }
.site-footer .social a:hover { color: #fff; border-color: #fff; }
.site-footer .social { display: flex; }

/* ---------- Equipo: color por área (KALMS) y marco cuadrado redondeado ----------
   K verde · A dorado · L azul · M rojo · S degradado verde oscuro.
   El marco es el fondo del contenedor (padding) con el color al 35 %. */
:root { --ink-k: #446a30; --ink-a: #7a5f2c; --ink-l: #2d5680; --ink-m: #9a3f38; --ink-s: #2e5e43; }
@media (prefers-color-scheme: dark) {
  :root { --ink-k: #a3c78a; --ink-a: #d8bf8c; --ink-l: #9cc0e4; --ink-m: #e39a92; --ink-s: #8fc4a4; }
}
.pro--k { --area: 111, 154, 82; --ink: var(--ink-k); }
.pro--a { --area: 184, 153, 94; --ink: var(--ink-a); }
.pro--l { --area: 62, 111, 158; --ink: var(--ink-l); }
.pro--m { --area: 181, 82, 74;  --ink: var(--ink-m); }
.pro--s { --area: 46, 94, 67;   --ink: var(--ink-s); }
[class*="pro--"] { --frame: rgba(var(--area), .35); --solid: rgb(var(--area)); }
.pro--s { --frame: linear-gradient(135deg, rgba(46, 94, 67, .55), rgba(111, 154, 82, .3)); --solid: linear-gradient(135deg, var(--s-from), var(--s-to)); }

.pro__photo {
  position: relative; width: 180px; aspect-ratio: 4 / 5; margin: 4px auto 1.3rem; padding: 6px;
  border-radius: 20px; background: var(--frame, rgba(184, 153, 94, .35));
}
.pro__photo img { display: block; width: 100%; height: 100%; border-radius: 14px; object-fit: cover; object-position: 50% 20%; background: var(--bg-alt); }
.pro__photo--initials { display: grid; place-items: center; }
.pro__photo--initials::before {
  content: attr(data-initials); position: absolute; inset: 6px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 2.6rem; color: #fff;
  background: linear-gradient(135deg, rgba(var(--area), .9), rgba(var(--area), .6));
}
.pro__badge {
  position: absolute; right: -10px; bottom: -10px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.25rem/1 var(--font-serif); color: #fff;
  background: var(--solid); border: 3px solid var(--surface-solid);
}
.pro .pro__role, .pro-lead .pro__role { color: var(--ink, var(--green-strong)); }
.card.pro { position: relative; border-top: 0; }
.card.pro::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--solid); opacity: .7;
}

/* Glenda: tarjeta destacada, centrada (vértice de la pirámide) */
.pro-lead { max-width: 860px; margin-inline: auto; }
.pro-lead .pro__photo { width: 100%; max-width: 240px; margin: 0 auto; }
.pro-lead .pro__photo img { object-position: 50% 30%; }
.pro-lead .pro__badge { width: 46px; height: 46px; font-size: 1.4rem; }
/* Glenda lleva dos letras (A y S): la segunda insignia va a la izquierda de la primera */
.pro-lead .pro__badge--2 { right: 40px; }
@media (min-width: 768px) { .pro-lead { grid-template-columns: 240px 1fr; } }

/* Equipo 1 · 4: Glenda destacada arriba; debajo, 4 por fila en escritorio, 2×2 en tablet, 1 en móvil.
   Sin reglas por posición (:nth-child): si cambia el número de personas, la rejilla se adapta sola. */
@media (min-width: 640px) and (max-width: 1099.98px) {
  .grid--team > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
@media (min-width: 1100px) {
  .grid--team { grid-template-columns: repeat(4, 1fr); }
}

/* Leyenda de colores */
.team-legend { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.2rem; font-size: .9rem; color: var(--text-muted); }
.team-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.team-legend b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 400 .95rem/1 var(--font-serif); color: #fff; background: var(--solid);
}

/* ---------- Carrusel "Quiénes somos" (logo + fotos de actividades) ---------- */
.slideshow { padding: 0; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide--logo { display: grid; place-items: center; padding: 40px; }
.slide--logo img { width: 80%; height: auto; object-fit: contain; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 54px; color: #fff; font-size: .95rem; font-weight: 600;
  background: linear-gradient(to top, rgba(10, 15, 20, .72), transparent);
}
.slideshow__controls {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.slideshow__toggle {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(10, 15, 20, .35); color: #fff;
}
.slideshow__toggle svg { width: 14px; height: 14px; }
.slideshow__toggle .icon-play { display: none; }
.slideshow__toggle[aria-pressed="true"] .icon-play { display: block; }
.slideshow__toggle[aria-pressed="true"] .icon-pause { display: none; }
.slideshow__dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .25);
}
.slideshow__dot[aria-current="true"] { background: #fff; }
/* En la diapositiva del logo (fondo claro) los controles se oscurecen */
.slideshow.is-logo .slideshow__toggle { color: var(--text); border-color: var(--border); background: var(--surface); }
.slideshow.is-logo .slideshow__dot { border-color: var(--text-muted); background: transparent; }
.slideshow.is-logo .slideshow__dot[aria-current="true"] { background: var(--text-muted); }

/* Carrusel con bordes difuminados (efecto "sueño"): las fotos se funden con el fondo */
.about__visual.slideshow { background: none; border: 0; box-shadow: none; border-radius: 28px; }
.slide {
  /* Cuadrado con esquinas redondeadas y bordes sombreados (se funden con el fondo) */
  border-radius: 28px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
                      linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
                      linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-composite: intersect;
}
.slide figcaption {
  left: 0; right: 0; bottom: 17%; padding: 0 12%; background: none; text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 14px rgba(0, 0, 0, .55);
}
.slideshow__controls { justify-content: center; bottom: 6%; }
.slideshow__toggle { color: var(--text); border-color: var(--border); background: var(--surface); }
.slideshow__dot { border-color: var(--text-muted); background: transparent; }
.slideshow__dot[aria-current="true"] { background: var(--text-muted); }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; margin-inline: auto; max-width: 560px;
  display: grid; gap: .8rem; padding: 18px 20px; border-radius: var(--radius);
  background: var(--menu-bg); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .92rem;
}
.cookie-banner p { margin: 0; }
.cookie-banner__actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 42px; padding: .5rem 1.1rem; }

/* ---------- Página /gracias/ ---------- */
.thanks h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.thanks .lead { max-width: 560px; margin-inline: auto; }
.thanks__hours { font-size: .9rem; color: var(--text-muted); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.4rem; }

/* ===================== Páginas legales (privacidad / términos) ===================== */
.legal { padding: 48px 0 72px; }
.legal__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 0; border-bottom: 1px solid var(--border); }
.legal__top a { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--font-serif); font-size: 1.25rem; }
.legal__top img { width: 44px; height: auto; }
.legal__body { max-width: 760px; margin-inline: auto; }
.legal__body h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-top: .4em; }
.legal__body h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); margin-top: 2em; }
.legal__body h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal__body p, .legal__body li { line-height: 1.7; }
.legal__body ul { padding-left: 1.2rem; }
.legal__body li + li { margin-top: .35rem; }
.legal__meta { color: var(--text-muted); font-size: .92rem; }
.legal__box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin: 1.4rem 0; }
.legal__box p:last-child { margin-bottom: 0; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal__table th { font-weight: 600; background: var(--bg-alt); }
.legal__todo { background: #f3e2a6; color: #3d2f00; padding: 0 .25em; border-radius: 4px; }
.legal__foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .92rem; }

/* Enlaces "Más información" de las tarjetas de servicios de la portada */
.card__more { margin: .9rem 0 0; font-size: .92rem; }
.card__more a { font-weight: 600; }

/* ===================== Páginas de servicio y perfiles del equipo (.sp) =====================
   Cada página lleva la clase de su letra KALMS en <body> (.pro--k … .pro--s): de ahí salen
   --area (r, g, b), --ink (texto accesible) y --solid (color o degradado de la S). */
.sp .btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.sp-top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sp-top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 0; }
.sp-top__logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--font-serif); font-size: 1.25rem; }
.sp-top__logo img { width: 44px; height: auto; }
.sp-top__nav { display: flex; align-items: center; gap: 1.4rem; }
.sp-top__nav > a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sp-top__nav > a:not(.btn):hover { color: var(--link); }
.sp-top__nav .btn { min-height: 42px; padding: .5rem 1.1rem; }
@media (max-width: 640px) { .sp-top__nav > a:not(.btn) { display: none; } }

/* Cabecera: foto recortada (fondo transparente) sobre una franja del color de la letra */
.sp-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(var(--area), .30), rgba(var(--area), .08) 60%, rgba(var(--area), .02)), var(--bg-alt); }
.sp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--solid); }
.sp-hero__grid { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: 2.5rem; align-items: end; }
.sp-hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 100%; }
.sp-hero__letter { position: absolute; left: 0; top: 50%; transform: translate(-12%, -48%); font: 400 clamp(15rem, 28vw, 25rem)/1 var(--font-serif); color: rgba(var(--area), .20); user-select: none; pointer-events: none; }
.sp-hero__media img { position: relative; display: block; width: auto; height: auto; max-height: 520px; max-width: 100%; margin-top: 28px; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .22)); }
.sp-hero__text { align-self: center; padding: 48px 0 56px; }
.sp-hero__text h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; margin: .5rem 0 .9rem; }
.sp-hero--perfil h1 { text-transform: uppercase; letter-spacing: .02em; }
.sp-hero__lead { font-size: 1.1rem; line-height: 1.7; color: var(--text); max-width: 60ch; }
.sp-hero__rol { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin: 0 0 .4rem; }
.sp-hero__who { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .97rem; color: var(--text-muted); }
.sp-hero__who svg { width: 20px; height: 20px; color: var(--ink); }
.sp-hero__who a { color: var(--ink); }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.sp-reg { font-size: .88rem; color: var(--text-muted); margin: .2rem 0 0; }
.sp-crumbs { font-size: .86rem; color: var(--text-muted); margin-bottom: .9rem; }
.sp-crumbs a { color: inherit; }
.sp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink); background: rgba(var(--area), .14); border: 1px solid rgba(var(--area), .38); }
.sp-chip svg { width: 1.1em; height: 1.1em; }
.sp-chip b { font: 700 1.05rem/1 var(--font-serif); }
@media (max-width: 820px) {
  .sp-hero__grid { grid-template-columns: 1fr; gap: 0; }
  .sp-hero__text { order: -1; padding: 32px 0 8px; }
  .sp-hero__media img { max-height: 360px; }
  .sp-hero__letter { font-size: 15rem; }
}

/* Contenido */
.sp-main { padding: 8px 0 64px; }
.sp-sec { margin-top: 3.2rem; }
.sp-sec > h2 { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 0 0 1.2rem; }
.sp-sec > h2 svg { width: 30px; height: 30px; color: var(--ink); }
.sp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.sp-checks--1 { grid-template-columns: 1fr; max-width: 860px; }
.sp-checks li { display: flex; align-items: flex-start; gap: .75rem; padding: 13px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); line-height: 1.5; }
.sp-checks svg { flex-shrink: 0; width: 26px; height: 26px; padding: 4px; border-radius: 50%; color: var(--ink); background: rgba(var(--area), .16); }
.sp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sp-steps li { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sp-steps p { margin: .7rem 0 0; line-height: 1.55; }
.sp-steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--solid); color: #fff; font: 700 1.05rem/1 var(--font-serif); }

/* Lista de profesionales (como un directorio de especialistas) */
.sp-team { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.sp-card { border-radius: 18px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sp-card__photo { position: relative; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(circle at 50% 88%, rgba(var(--area), .38), rgba(var(--area), .10) 62%, rgba(var(--area), .04)), var(--bg-alt); }
.sp-card__photo img { position: relative; height: 92%; width: auto; max-width: 100%; object-fit: contain; transition: transform .25s ease; }
.sp-card:hover .sp-card__photo img { transform: scale(1.03); }
.sp-card__letter { position: absolute; left: 14px; top: 2px; font: 400 6.5rem/1 var(--font-serif); color: rgba(var(--area), .30); }
.sp-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sp-card__body h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.sp-card__body h3 a { color: var(--text); text-decoration: none; }
.sp-card__rol { margin: .35rem 0 1rem; color: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.sp-card__actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.sp-card__actions .btn { min-height: 40px; padding: .45rem .95rem; font-size: .9rem; }
.sp-card__actions .btn:first-child { border-color: rgba(var(--area), .55); color: var(--ink); }

.sp-info { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sp-info > div { display: flex; gap: .9rem; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sp-info svg { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--ink); background: rgba(var(--area), .16); }
.sp-info p { margin: 0; line-height: 1.6; }

.sp-faq { border-bottom: 1px solid var(--border); }
.sp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 600; list-style: none; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink); transition: transform .2s ease; }
.sp-faq[open] summary svg { transform: rotate(180deg); }
.sp-faq p { margin: 0 0 1rem; line-height: 1.65; color: var(--text-muted); }

.sp-cta { margin-top: 3.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 26px 28px; border-radius: 18px; background: linear-gradient(120deg, rgba(var(--area), .24), rgba(var(--area), .06)); border: 1px solid rgba(var(--area), .35); }
.sp-cta h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.sp-cta p { margin: 0; color: var(--text-muted); }

.sp-links { --area: 62, 111, 158; --ink: var(--link); list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.sp-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; background: rgba(var(--area), .08); border: 1px solid rgba(var(--area), .38); }
.sp-links a:hover { background: rgba(var(--area), .18); }
.sp-links svg { width: 1.15em; height: 1.15em; color: var(--ink); }

.sp-servs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sp-serv { display: flex; gap: .9rem; align-items: center; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--text); background: rgba(var(--area), .08); border: 1px solid rgba(var(--area), .35); }
.sp-serv:hover { background: rgba(var(--area), .16); }
.sp-serv svg { flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #fff; background: var(--solid); }
.sp-serv strong { display: block; color: var(--ink); }
.sp-serv span { font-size: .92rem; line-height: 1.45; }
.sp .legal__foot { margin-top: 3.5rem; }
.pro__more { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .92rem; color: var(--ink, var(--link)); }

/* Perfiles del equipo: fondo azul degradado (para diferenciarlos de las páginas de servicio)
   y bordes con el color de la letra del profesional */
.sp-perfil { --azul: 62, 111, 158; background:
  radial-gradient(900px 520px at 100% 420px, rgba(var(--azul), .26), transparent 70%),
  radial-gradient(760px 520px at 0 1100px, rgba(var(--azul), .20), transparent 70%),
  linear-gradient(180deg, var(--bg) 0, rgba(var(--azul), .13) 55%, var(--bg) 100%), var(--bg); }
.sp-perfil .sp-checks li,
.sp-perfil .sp-info > div { background: var(--surface-solid); border-color: rgba(var(--area), .30); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 26px rgba(var(--area), .12); }
.sp-perfil .sp-serv { border-color: rgba(var(--area), .45); box-shadow: 0 10px 26px rgba(var(--area), .16); }

/* Portada · equipo: botón "Ver perfil de …" (con el color de la letra de cada profesional) */
.pro__btn { margin-top: 1rem; min-height: 42px; padding: .5rem 1.1rem; font-size: .92rem; color: var(--ink); border-color: rgba(var(--area), .55); }
.pro__btn:hover { color: #fff; background: rgb(var(--area)); border-color: rgb(var(--area)); }
.pro .pro__reg, .pro-lead .pro__reg { color: var(--ink); font-weight: 600; }

/* Páginas de servicio: "¿Cómo trabajamos?" junto a un carrusel de fotos del servicio */
.sp-work { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .sp-work { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.sp-steps--v { grid-template-columns: 1fr; gap: .7rem; }
.sp-steps--v li { display: flex; gap: .9rem; align-items: center; padding: 12px 16px; }
.sp-steps--v p { margin: 0; }
.sp-steps--v .sp-steps__n { flex-shrink: 0; }
.sp-gal { width: 100%; max-width: 520px; justify-self: center; background: radial-gradient(closest-side, rgba(var(--area), .28), transparent) !important; }
.grid--team .pro { display: flex; flex-direction: column; align-items: center; }
.grid--team .pro__btn { margin-top: auto; }
.grid--team .pro__creds { margin-bottom: .4rem; }
.grid--team .pro > .pro__btn { align-self: center; }
.grid--team .pro__reg { margin-bottom: 1rem; }

/* ===================== Menú de páginas internas (servicios, perfiles, /equipo/) ===================== */
.sp-top__in { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.6rem; }
.sp-top__nav { justify-content: flex-end; gap: .3rem; }
.sp-top__nav > a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; }
.sp-top__nav > a:hover { color: var(--link); background: var(--bg-alt); }
.sp-top__nav > a[aria-current="page"] { color: var(--link); background: rgba(62, 111, 158, .14); }
.sp-top__cta { min-height: 42px; padding: .5rem 1.1rem; }
@media (max-width: 760px) {
  .sp-top__in { grid-template-columns: 1fr auto; padding-bottom: 6px; }
  .sp-top__nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; overflow-x: auto; gap: 0; margin: 0 -8px; }
  .sp-top__nav > a { display: inline-block !important; font-size: .88rem; padding: .4rem .6rem; white-space: nowrap; }
}

/* ===================== Tarjetas de profesionales con detalle (portada y /equipo/) ===================== */
.sp-card[hidden] { display: none; }
.sp-card__frase { margin: 0 0 .7rem; font-size: .93rem; line-height: 1.55; color: var(--text-muted); }
.sp-card__cred { display: flex; gap: .45rem; margin: 0 0 .5rem; font-size: .88rem; line-height: 1.45; }
.sp-card__cred svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--ink); margin-top: 1px; }
.sp-card__reg { display: inline-block; align-self: flex-start; margin: 0 0 1rem; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--ink); background: rgba(var(--area), .14); }
.sp-card__actions { flex-wrap: nowrap; }
.sp-card__actions .btn { flex: 1 1 auto; padding: .45rem .7rem; font-size: .86rem; gap: .35rem; }
.sp-team--home { margin-top: 2rem; }
.sp-team__all { text-align: center; margin: 2rem 0 0; }

/* ===================== /equipo/ : directorio con buscador ===================== */
.dir-hero { position: relative; padding: 40px 0 34px; background: linear-gradient(120deg, rgba(62, 111, 158, .30), rgba(62, 111, 158, .08) 60%, rgba(111, 154, 82, .10)), var(--bg-alt); }
.dir-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--green), var(--gold), var(--blue), var(--accent-red), var(--s-from)); }
.dir-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: .4rem 0 .6rem; }
/* Foto del equipo: en celular va debajo del título (completa, sin transparencia);
   en pantallas anchas pasa a la derecha, detrás del texto, y se desvanece hacia la izquierda sin tocar las caras */
.dir-hero__foto { margin: 1.1rem 0 .2rem; }
.dir-hero__foto img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
@media (min-width: 960px) {
  .dir-hero { overflow: hidden; padding: 56px 0 46px; }
  .dir-hero > .container { position: static; }
  .dir-hero > .container > :not(.dir-hero__foto) { position: relative; z-index: 1; max-width: 56%; }
  .dir-hero__foto { position: absolute; inset: 0 0 5px auto; width: min(54%, 820px); margin: 0; z-index: 0; }
  .dir-hero__foto img { height: 100%; object-fit: cover; object-position: 55% 32%; border-radius: 0; box-shadow: none; opacity: .94;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 10%, #000 24%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 10%, #000 24%); }
  /* leve sombra del color del encabezado sobre el borde, para que la foto «entre» detrás del texto */
  .dir-hero__foto::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(62, 111, 158, .22), transparent 30%), linear-gradient(0deg, rgba(0, 0, 0, .14), transparent 22%); }
}
.dir-tools { display: grid; gap: .8rem; margin-top: 1.4rem; max-width: 860px; }
.dir-search { display: flex; align-items: center; gap: .6rem; padding: 0 16px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); }
.dir-search svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.dir-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 1rem/1 var(--font-sans); padding: 14px 0; }
.dir-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62, 111, 158, .25); }
.dir-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.dir-chip { --area: 62, 111, 158; --ink: var(--link); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font: 600 .86rem/1.2 var(--font-sans); color: var(--text); background: var(--surface-solid); border: 1px solid rgba(var(--area), .45); }
.dir-chip b { font: 700 1rem/1 var(--font-serif); color: var(--ink); }
.dir-chip:hover { background: rgba(var(--area), .12); }
.dir-chip[aria-pressed="true"] { color: #fff; background: rgb(var(--area)); border-color: rgb(var(--area)); }
.dir-chip[aria-pressed="true"] b { color: #fff; }
.dir-count { margin: 1.6rem 0 1rem; color: var(--text-muted); font-weight: 600; }
.dir-empty { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border); text-align: center; }
.sp-team--home, .dir-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.sp-team--home .sp-card, .dir-grid .sp-card { flex: 0 1 330px; }

/* ===================== "Cómo trabajamos": tren por las 4 paradas ===================== */
.tren { --pos: 0; position: relative; }
.tren__via { position: relative; height: 54px; margin: 0 0 -8px; }
.tren__riel, .tren__avance { position: absolute; left: 12.5%; right: 12.5%; bottom: 6px; height: 6px; border-radius: 6px; }
.tren__riel { background: repeating-linear-gradient(90deg, var(--border) 0 14px, transparent 14px 22px), var(--bg-alt); border: 1px solid var(--border); }
.tren__avance { right: auto; width: calc(var(--pos) * 25%); background: linear-gradient(90deg, var(--green), var(--gold), var(--blue), var(--accent-red)); transition: width 1.4s cubic-bezier(.45, 0, .2, 1); }
.tren__loco { position: absolute; bottom: 9px; left: calc(12.5% + var(--pos) * 25%); transform: translateX(-50%); transition: left 1.4s cubic-bezier(.45, 0, .2, 1); color: var(--text); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.tren__loco svg { display: block; }
.tren.is-moving .tren__loco svg { animation: tren-bote .28s ease-in-out infinite alternate; }
.tren__humo { opacity: 0; }
.tren.is-moving .tren__humo { animation: tren-humo 1s ease-out infinite; }
@keyframes tren-bote { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes tren-humo { 0% { opacity: .8; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-8px, -6px) scale(1.6); } }

.tren__paradas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tren__parada { display: flex; justify-content: center; }
.tren__boton { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 6px 4px; background: none; border: 0; cursor: pointer; color: var(--text-muted); font: inherit; text-align: center; }
.tren__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 400 1.25rem/1 var(--font-serif); color: var(--text-muted); background: var(--surface-solid); border: 3px solid var(--border); transition: all .45s ease; }
.tren__titulo { font-weight: 600; font-size: .95rem; line-height: 1.3; max-width: 16ch; transition: color .45s ease; }
.tren__parada.is-done .tren__num { color: #fff; background: rgba(var(--area), .55); border-color: rgb(var(--area)); }
.tren__parada.is-on .tren__num { color: #fff; background: rgb(var(--area)); border-color: rgb(var(--area)); box-shadow: 0 0 0 7px rgba(var(--area), .25), 0 0 26px rgba(var(--area), .65); transform: scale(1.08); }
.tren__parada.is-on .tren__titulo, .tren__boton:hover .tren__titulo { color: var(--text); }
.tren__boton:focus-visible .tren__num { outline: 3px solid var(--blue); outline-offset: 3px; }

.tren__mensajes { margin-top: 1.4rem; min-height: 170px; }
.tren__panel { position: relative; margin: 0; padding: 22px 26px; border-radius: 18px; background: linear-gradient(120deg, rgba(var(--area), .20), rgba(var(--area), .05)), var(--surface-solid); border: 1px solid rgba(var(--area), .45); box-shadow: 0 14px 34px rgba(var(--area), .18); animation: tren-msg .5s ease both; }
.tren__panel::before { content: ""; position: absolute; top: -9px; left: calc(12.5% + var(--pos, 0) * 25%); width: 16px; height: 16px; transform: rotate(45deg); background: inherit; border-left: 1px solid rgba(var(--area), .45); border-top: 1px solid rgba(var(--area), .45); }
.tren__etapa { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tren__panel h3 { margin: .25rem 0 .4rem; font-size: 1.35rem; }
.tren__panel p { margin: 0 0 .5rem; color: var(--text-muted); line-height: 1.6; }
.tren__porque { margin: .7rem 0 0 !important; padding-top: .7rem; border-top: 1px dashed rgba(var(--area), .45); color: var(--text) !important; }
.tren__porque strong { color: var(--ink); }
@keyframes tren-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tren__panel[hidden] { display: none; }
.no-js .tren__panel[hidden] { display: block; margin-top: 1rem; }
@media (max-width: 640px) {
  .tren__num { width: 42px; height: 42px; font-size: 1.05rem; }
  .tren__titulo { font-size: .78rem; }
  .tren__loco svg { width: 48px; height: 30px; }
  .tren__panel { padding: 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tren__loco, .tren__avance, .tren__num { transition: none; }
  .tren__panel { animation: none; }
}

/* Tarjeta con dos letras (Glenda: S arriba a la izquierda, A abajo a la derecha) */
.sp-card--dual .sp-card__photo { background:
  radial-gradient(circle at 12% 10%, rgba(var(--area), .50), transparent 58%),
  radial-gradient(circle at 90% 94%, rgba(var(--area2), .50), transparent 58%),
  linear-gradient(135deg, rgba(var(--area), .16), rgba(var(--area2), .16)), var(--bg-alt); }
.sp-card__letter--2 { left: auto; top: auto; right: 14px; bottom: -8px; }
/* A quién atiende: etiqueta sobre la foto (diferencia, p. ej., adultos de niños) */
.sp-card__publico { position: absolute; z-index: 1; top: 12px; right: 12px; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(15, 20, 26, .55); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Portada · acentos de marca (regla 60-30-10: solo las letras KALMS, una línea fina y las etiquetas) */
.hero__line { display: block; width: 120px; height: 3px; margin: .9rem 0 .2rem; border-radius: 3px; background: linear-gradient(90deg, #8fb574, #cdb27c, #7ea7d1, #e39a92, #5f9a78); box-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.hero__acronym .hero-k b { color: #a3c78a; }
.hero__acronym .hero-a b { color: #d8bf8c; }
.hero__acronym .hero-l b { color: #9cc0e4; }
.hero__acronym .hero-m b { color: #e39a92; }
.hero__acronym .hero-s b { background: linear-gradient(135deg, #5f9a78, #a3c78a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__chips li { padding: 0; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.hero__chips a { display: block; padding: .35rem .85rem; color: #fff; text-decoration: none; }
.hero__chips li:hover, .hero__chips li:focus-within { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 14px rgba(255, 255, 255, .25); }

/* "¿Qué significa KALMS?" como piano: cada tarjeta se presiona y se enciende al pasar la mascota */
.acronym.has-piano { position: relative; }
.acronym.has-oso { margin-top: 90px; }
.has-piano .acronym__item { transition: transform .18s ease, box-shadow .5s ease, border-color .5s ease; }
.has-piano .acronym__item:not(.is-lit) .acronym__letter { filter: grayscale(1); opacity: .45; }
.has-piano .acronym__item:not(.is-lit)::before { opacity: .25; }
.acronym__letter, .acronym__item::before { transition: filter .5s ease, opacity .5s ease, transform .3s ease; }
.acronym__item.is-lit { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 14px 34px color-mix(in srgb, var(--c) 30%, transparent); }
.acronym__item.is-lit::before { height: 6px; }
.acronym__item.is-key { transform: translateY(6px); box-shadow: 0 0 0 2px var(--c), 0 0 36px color-mix(in srgb, var(--c) 65%, transparent); }
.acronym__item.is-key .acronym__letter { transform: scale(1.12); }
/* La mascota camina por encima de las tarjetas */
.acronym__oso { position: absolute; left: 0; top: 0; z-index: 3; width: 92px; height: auto; cursor: pointer; pointer-events: auto;
  transition: transform .62s cubic-bezier(.45, 0, .25, 1); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
/* Caminar: dos pasos por tecla (650 ms) — balanceo de lado a lado, rebote y un leve "aplastado" al pisar */
.acronym__oso.is-walking { animation: oso-paso .65s linear infinite; transform-origin: 50% 100%; }
.acronym__oso.is-happy { animation: oso-salto .5s ease 2; }
@keyframes oso-paso {
  0%   { margin-top: 0;     rotate: -7deg; scale: 1.04 .96; }
  25%  { margin-top: -12px; rotate: 0deg;  scale: .98 1.03; }
  50%  { margin-top: 0;     rotate: 7deg;  scale: 1.04 .96; }
  75%  { margin-top: -12px; rotate: 0deg;  scale: .98 1.03; }
  100% { margin-top: 0;     rotate: -7deg; scale: 1.04 .96; }
}
@keyframes oso-salto { 50% { margin-top: -16px; } }
/* Viaje hasta la burbuja de WhatsApp y descanso ahí (detrás del botón: z-index 89 < 90) */
.acronym__oso.is-volando { position: fixed; z-index: 89; transition: left 1.4s cubic-bezier(.45, 0, .25, 1), top 1.4s cubic-bezier(.5, -0.35, .3, 1), width 1.4s ease; }
.acronym__oso.is-en-wa { position: fixed; z-index: 89; left: 20px; bottom: 52px; top: auto; width: 66px; transform: none; animation: oso-respira 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes oso-respira { 0%, 100% { scale: 1 1; } 50% { scale: 1.02 1.04; } }
@media (max-width: 639px) { .acronym__oso.is-en-wa { width: 58px; bottom: 52px; } }
@media (max-width: 640px) { .acronym__oso { width: 70px; } .acronym.has-oso { margin-top: 70px; } }
.acronym.has-oso.is-columna { margin-top: 0; }
.acronym__oso.is-oculto { opacity: 0; transition: none; }

/* Reseñas reales de Google */
.rating { display: inline-flex; align-items: center; gap: .35rem; margin-right: .4rem; color: #e8b83a; }
.rating b { color: var(--text); font-size: 1.3rem; }
.rating svg, .review__stars svg { width: 18px; height: 18px; }
.reviews { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review { margin: 0; display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border); border-top: 4px solid rgb(var(--area)); box-shadow: var(--shadow); }
.review__stars { display: flex; gap: 2px; color: #e8b83a; }
.review blockquote { margin: .9rem 0 1.2rem; flex: 1; }
.review blockquote p { margin: 0; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: .7rem; }
.review__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 700; background: rgb(var(--area)); }
.review figcaption strong { display: block; }
.review figcaption small { color: var(--text-muted); }
.reviews__more { text-align: center; margin: 1.8rem 0 0; }

/* Preguntas frecuentes en portada */
.faq-home { max-width: 860px; }
.faq-home__list { border-top: 1px solid var(--border); }
.faq-home .sp-faq summary { font-size: 1.05rem; }

/* ---------- Convenios · Programa de Alianzas (flyer de portada + página /convenios/) ----------
   El video de talleres va desenfocado de origen (nadie es reconocible); encima, degradado para leer el texto. */
.alz-tag { display: inline-flex; align-items: center; gap: .45rem; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.alz-tag svg { width: 18px; height: 18px; }
.alz-home { padding-top: 0; }
.alz-flyer { position: relative; display: grid; align-items: center; min-height: 420px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); background: #24372b url("/assets/img/taller-poster.jpg") center / cover; }
.alz-flyer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(20, 38, 28, .86), rgba(20, 38, 28, .55) 100%); }
.alz-flyer__video, .alz-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.alz-flyer:hover .alz-flyer__video { transform: scale(1.09); }
.alz-flyer__text { display: grid; gap: .9rem; justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; padding: 44px 32px; }
.alz-flyer__title { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.alz-flyer__lead { font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.alz-flyer__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.alz-flyer__chips span { padding: 4px 11px; border-radius: 999px; font-size: .82rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); }
.alz-flyer__cta { margin-top: .3rem; transition: transform .3s var(--ease); }
.alz-flyer:hover .alz-flyer__cta, .alz-flyer:focus-visible .alz-flyer__cta { transform: translateY(-2px); }

.alz-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #24372b url("/assets/img/taller-poster.jpg") center / cover; }
.alz-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 38, 28, .93), rgba(20, 38, 28, .72) 55%, rgba(20, 38, 28, .35)); }
.alz-hero__in { padding: 56px 0 64px; max-width: 760px; margin-inline: 0; }
.alz-hero .container.alz-hero__in { margin-inline: auto; max-width: var(--container); }
.alz-hero__in > * { max-width: 720px; }
.alz-hero .sp-crumbs, .alz-hero .sp-crumbs a { color: rgba(255, 255, 255, .8); }
.alz-hero h1 { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; margin: 1rem 0 .8rem; color: #fff; }
.alz-hero__lead { font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.alz-ahorro { display: inline-block; margin: .4rem 0 0; padding: 10px 16px; border-radius: 12px; background: rgba(217, 182, 74, .2); border: 1px solid rgba(217, 182, 74, .6); }
.alz-ahorro b { color: #f3d98a; }
.alz-hero .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.alz-hero .btn--outline:hover { background: rgba(255, 255, 255, .16); }

.alz-frase p { margin: 0; max-width: 860px; font-family: var(--font-serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.45; padding-left: 18px; border-left: 4px solid rgba(var(--area), .7); }
.alz-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.alz-box { padding: 24px 24px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.alz-box h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-size: 1.2rem; }
.alz-box h3 svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--ink); background: rgba(var(--area), .16); flex-shrink: 0; }
.alz-destacado { margin: 0 0 .9rem; color: var(--text-muted); }
.alz-destacado b { color: var(--text); }
.alz-talleres { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.alz-talleres > div { padding: 12px 14px; border-radius: 12px; background: rgba(var(--area), .08); border: 1px solid rgba(var(--area), .22); }
.alz-talleres h4 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .98rem; }
.alz-talleres h4 svg { width: 18px; height: 18px; color: var(--ink); }
.alz-talleres ul { margin: 0; padding-left: 1.1rem; line-height: 1.55; font-size: .95rem; }
.alz-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.alz-lista li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.alz-lista svg { flex-shrink: 0; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--ink); background: rgba(var(--area), .16); }

@media (max-width: 720px) {
  /* En celular el flyer es vertical, como una historia de Instagram */
  .alz-flyer { min-height: 560px; align-items: end; }
  .alz-flyer::after { background: linear-gradient(0deg, rgba(20, 38, 28, .95) 0%, rgba(20, 38, 28, .8) 50%, rgba(20, 38, 28, .1) 100%); }
  .alz-flyer__text { padding: 26px 22px; }
  .alz-hero__in { padding: 36px 0 44px; }
  .alz-talleres { grid-template-columns: 1fr; }
  .alz-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .alz-flyer__video, .alz-hero__video { display: none; }
}

/* Flyer de convenios bajo «A quién atendemos» (sigue a Escuelas y Empresas) */
.alz-flyer--audiencia { margin-top: 24px; min-height: 340px; }
