/* ============================================================
   BIO SALUD · tokens — única fuente de verdad visual
   Derivado del Manual de Marca v1.0 (capítulo 10).
   ============================================================ */
:root {
  /* color */
  --teal: #2E7373;
  --bosque: #1B4D45;
  --aqua: #6FA8A3;
  --sol: #D89A4E;
  --sol-deep: #a86a1f;
  --niebla: #EDF1F0;
  --hueso: #FBFCFB;
  --tinta: #16302C;
  --teal-08: rgba(46, 115, 115, .08);
  --teal-14: rgba(46, 115, 115, .14);
  --sol-12: rgba(216, 154, 78, .14);
  --line: rgba(27, 77, 69, .12);
  --shadow-sm: 0 1px 2px rgba(22, 48, 44, .05), 0 4px 12px -8px rgba(22, 48, 44, .18);
  --shadow: 0 1px 2px rgba(22, 48, 44, .04), 0 18px 40px -18px rgba(22, 48, 44, .22);

  /* tipografía */
  /* Una sola familia para todo el sitio: Lexend, pensada para facilitar la
     lectura, con el 0 sin raya ni punto. Pesos cargados: 400, 500, 600.
     Títulos en 500 con tracking apenas cerrado; el cuerpo en 400. */
  --display: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Lexend', 'Segoe UI', system-ui, sans-serif;

  /* radios */
  --r: 20px;
  --r-sm: 13px;
  --r-lg: 28px;
  --maxw: 1180px;

  /* easing */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

/* ===== reset / base ===== */
* { box-sizing: border-box }

html { scroll-behavior: smooth; scroll-padding-top: 92px }

body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block }

p, li { text-wrap: pretty }

a {
  color: var(--teal);
  text-decoration: none;
  text-underline-offset: 3px
}

button { font-family: inherit }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px
}

.eyebrow {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}

.eyebrow .leaf {
  width: 13px;
  height: 13px;
  color: var(--aqua);
  flex: none
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.02em;
  font-synthesis: none;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--bosque);
  margin: 0
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bosque);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200
}

.skip:focus { left: 0 }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out),
    background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  will-change: transform;
}

.btn .leaf { width: 16px; height: 16px; flex: none }

.btn:active { transform: scale(.97) }

.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm) }

.btn-sol { background: var(--sol); color: #3a2608 }

.btn-ghost { background: transparent; color: var(--bosque); border-color: var(--line) }

.btn-white { background: #fff; color: var(--bosque); box-shadow: var(--shadow-sm) }

@media (hover:hover) and (pointer:fine) {
  .btn-primary:hover { background: var(--bosque) }
  .btn-sol:hover { background: #c98a3f }
  .btn-ghost:hover { border-color: var(--teal); background: var(--teal-08); color: var(--teal) }
  .btn-white:hover { transform: translateY(-2px) }
}

/* ============================================================
   TOPBAR
   ============================================================ */
/* Liquid glass: cápsula flotante que deja ver el contenido de atrás.
   main.js actualiza --p (0 arriba → 1 tras ~260px de scroll): a medida que
   se baja, el vidrio pierde tinte y desenfoque y se ve más el fondo.
   Sobre el hero (.on-dark) el vidrio se tiñe de bosque y el texto pasa a blanco. */
.topbar {
  --p: 0;
  --tint: 251, 252, 251;
  --tint-a: calc(.74 - .28 * var(--p));
  --blur: calc(18px - 6px * var(--p));
  --ink: var(--bosque);
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 24px), calc(var(--maxw) - 8px));
  transform: translateX(-50%);
  border-radius: 999px;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%),
    rgba(var(--tint), var(--tint-a));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.8) brightness(1.04);
  backdrop-filter: blur(var(--blur)) saturate(1.8) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -1px 0 rgba(255, 255, 255, .14),
    inset 0 0 18px rgba(255, 255, 255, .12),
    0 10px 30px -14px rgba(22, 48, 44, .32),
    0 2px 6px -2px rgba(22, 48, 44, .1);
  transition: background-color 320ms var(--ease-out), border-color 320ms var(--ease-out), color 320ms var(--ease-out);
}

/* Reflejo especular: un brillo curvo que recorre el borde superior */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 140% at 18% -40%, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(80% 120% at 92% 140%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: soft-light;
}

.topbar.on-dark {
  --tint: 27, 77, 69;
  --tint-a: calc(.42 - .2 * var(--p));
  --ink: #fff;
  border-color: rgba(255, 255, 255, .22);
}

.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 10px 0 22px;
}

/* Sin backdrop-filter: vidrio casi opaco para que el texto se siga leyendo */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { --tint-a: .95 }
  .topbar.on-dark { --tint-a: .92 }
}

.brand { display: flex; align-items: center; gap: 11px }

.brand img { width: 34px; height: 34px }

.brand img { transition: filter 320ms var(--ease-out) }

.brand .name {
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--ink);
  transition: color 320ms var(--ease-out);
}

.topbar.on-dark .brand img { filter: brightness(0) invert(1) }

nav.main { display: flex; align-items: center; gap: 4px }

nav.main a.link {
  font-size: .92rem;
  color: var(--bosque);
  padding: 8px 14px;
  border-radius: 10px;
  opacity: .78;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

@media (hover:hover) {
  nav.main a.link:hover { opacity: 1; background: var(--teal-08); color: var(--teal) }
}

nav.main a.link.active { opacity: 1; color: var(--teal); background: var(--teal-08) }

@media(min-width:921px) {
  .topbar.on-dark nav.main a.link { color: #fff; opacity: .86 }
  .topbar.on-dark nav.main a.link.active { opacity: 1; background: rgba(255, 255, 255, .14) }
  .topbar.on-dark .cta { background: #fff; color: var(--bosque) }
}

@media (hover:hover) and (min-width:921px) {
  .topbar.on-dark nav.main a.link:hover { opacity: 1; color: #fff; background: rgba(255, 255, 255, .14) }
  .topbar.on-dark .cta:hover { background: #eaf4f2 }
}

nav.main .cta { margin-left: 10px }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 9px;
  cursor: pointer;
  color: var(--ink)
}

.burger svg { width: 26px; height: 26px }

@media(max-width:920px) {
  nav.main {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(251, 252, 251, .9);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 26px;
    padding: 14px 16px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms var(--ease-out), opacity 240ms ease;
  }

  nav.main.open { transform: translateY(0); opacity: 1; pointer-events: auto }

  nav.main a.link { padding: 13px 14px; font-size: 1.02rem; opacity: .9 }

  nav.main .cta { margin: 10px 0 0 }

  nav.main .btn { justify-content: center; width: 100% }

  .burger { display: inline-flex }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #eaf4f2;
  background: radial-gradient(125% 95% at 82% -12%, #357f7f 0%, var(--teal) 40%, var(--bosque) 100%);
  padding: 110px 0 40px;
  min-height: max(600px, 100svh);
  display: flex;
  align-items: center;
}

/* Grilla de puntos estática */
.hero .dot-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: center;
}

/* Velo suave detrás del texto para que la grilla no ensucie la lectura */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 40% 36% at 50% 50%, rgba(27, 77, 69, .72) 0%, rgba(27, 77, 69, 0) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Baja el bloque para que el nombre quede centrado en la pantalla */
  padding-top: 100px;
}

@media(max-width:640px) { .hero .wrap { padding-top: 40px } }

/* Entrada escalonada con desenfoque */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: hero-enter 600ms cubic-bezier(.22, 1, .36, 1) both }
  .hero .wrap > :nth-child(2) { animation-delay: 80ms }
  .hero .wrap > :nth-child(3) { animation-delay: 160ms }
  .hero .wrap > :nth-child(4) { animation-delay: 240ms }
  .hero .wrap > :nth-child(5) { animation-delay: 320ms }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px) }
  to { opacity: 1; transform: none; filter: blur(0) }
}

/* Nombre gigante con el logo blanco de fondo, como marca de agua */
.hero-title {
  position: relative;
  isolation: isolate;
  margin: 6px 0 0;
}

.hero-mark {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: auto;
  height: 250%;
  max-height: 560px;
  transform: translate(-50%, -50%);
  opacity: .11;
  /* El PNG es de 150px: un desenfoque leve evita que se vea pixelado al agrandarlo */
  filter: blur(1.5px);
  pointer-events: none;
  user-select: none;
}

@media(max-width:640px) { .hero-mark { height: 340% } }

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .26em;
  color: #fff;
  font-size: clamp(3.6rem, 12.2vw, 10rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 18px 50px rgba(10, 36, 32, .28);
}

.hero .tagline {
  margin: 26px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
}

.hero .sub {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: #dceeeb
}

.hero .actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center }

.hero .meta {
  width: 100%;
  max-width: 1040px;
  justify-content: center;
  margin-top: 54px;
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 26px;
}

.hero .meta .k {
  font-size: .88rem;
  font-weight: 500;
  color: #a9d2cc
}

.hero .meta .v { color: #fff; font-weight: 500; margin-top: 5px; font-size: 1.02rem }

/* en escritorio, las tres en una fila */
@media(min-width:1100px) {
  .hero .meta { flex-wrap: nowrap; gap: 48px }
  .hero .meta .v { white-space: nowrap }
}

/* gotas ambiente */
.drops { position: absolute; inset: 0; z-index: 1; opacity: .12; pointer-events: none }

.drops .d { position: absolute; color: #fff }

.drops .d svg { width: 100%; height: 100%; display: block }

.d1 { top: 9%; left: 5%; width: 58px; animation: float 13s var(--ease-in-out) infinite }
.d2 { top: 64%; left: 11%; width: 32px; animation: float 17s var(--ease-in-out) infinite reverse }
.d3 { top: 21%; right: 8%; width: 46px; animation: float 15s var(--ease-in-out) infinite }
.d4 { top: 73%; right: 15%; width: 26px; animation: float 19s var(--ease-in-out) infinite reverse }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0) }
  50% { transform: translateY(-22px) rotate(6deg) }
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: 104px 0; position: relative }

.section + .section { border-top: 1px solid var(--line) }

.section.tight { padding: 84px 0 }

.section-head { max-width: 760px; margin-bottom: 52px }

.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em }

.section-head .lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(22, 48, 44, .74);
  margin-top: 18px
}

/* ----- dos mundos ----- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px }

@media(max-width:840px) { .duo { grid-template-columns: 1fr } }

/* Cartas con resplandor de color (estilo "gradient card"): fondo claro,
   brillo de marca desde abajo, badge con punto, ilustración arriba a la
   derecha y link con flecha. Teal = BIOS Salud, sol = Espacio BIOS. */
.world {
  --c1: 111, 168, 163;
  --c2: 46, 115, 115;
  --accent: var(--teal);
  --title: var(--bosque);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 36px 36px 30px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--tinta);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 280ms ease;
}

.world.espacio {
  --c1: 216, 154, 78;
  --c2: 242, 201, 143;
  --accent: #8a5414;
  --title: #5c3a10;
}

.world-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(95% 62% at 100% 108%, rgba(var(--c1), .42) 0%, rgba(var(--c1), 0) 70%),
    radial-gradient(70% 48% at -6% 104%, rgba(var(--c2), .26) 0%, rgba(var(--c2), 0) 72%),
    radial-gradient(60% 40% at 96% -4%, rgba(var(--c2), .12) 0%, rgba(var(--c2), 0) 70%);
  opacity: .85;
  transition: opacity 280ms var(--ease-out);
}

.world-art {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 128px;
  height: 128px;
  pointer-events: none;
  transition: transform 420ms var(--ease-out);
}

@media (hover:hover) and (pointer:fine) {
  .world:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--c1), .45);
    box-shadow: 0 1px 2px rgba(22, 48, 44, .04), 0 26px 50px -22px rgba(var(--c2), .45);
  }
  .world:hover .world-glow { opacity: 1 }
  .world:hover .world-art { transform: translateY(-6px) rotate(-5deg) }
  .world:hover .world-cta .arrow { transform: translateX(4px) }
}

.world .badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75);
  font-size: .86rem;
  font-weight: 600;
  color: rgba(22, 48, 44, .78);
}

.world .badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--c1));
  box-shadow: 0 0 0 3px rgba(var(--c1), .22);
}

.world h3 {
  margin-top: 40px;
  color: var(--title);
  font-size: 2.1rem;
  letter-spacing: -.02em;
  max-width: calc(100% - 120px);
}

.world p { margin: 14px 0 0; font-size: 1.04rem; color: rgba(22, 48, 44, .76); max-width: 46ch }

.world ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px }

.world ul li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .98rem;
  color: rgba(22, 48, 44, .84)
}

.world ul li .leaf { width: 15px; height: 15px; margin-top: 5px; flex: none; color: rgb(var(--c1)) }

.world-cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 28px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.world-cta .arrow { width: 18px; height: 18px; transition: transform 240ms var(--ease-out) }

.world-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px }

@media(max-width:520px) {
  .world { padding: 28px 24px 24px; min-height: 0 }
  .world-art { width: 92px; height: 92px; top: 18px; right: 16px }
  .world h3 { margin-top: 34px; max-width: calc(100% - 84px); font-size: 1.85rem }
}

/* ----- testimonios: reseñas reales de Google, en grilla fija ----- */
.t-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media(max-width:1023px) { .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media(max-width:700px) { .t-grid { grid-template-columns: 1fr } }

.t-card {
  --c: 46, 115, 115;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 30px 26px;
  box-shadow: 0 1px 2px rgba(22, 48, 44, .04), 0 18px 36px -22px rgba(var(--c), .38);
}

.t-card.espacio { --c: 168, 106, 31 }

.t-stars { margin: 0 0 14px; font-size: 1.1rem; letter-spacing: .12em; color: var(--sol-deep) }

.t-card blockquote {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.6;
  color: rgba(22, 48, 44, .86);
}

/* El autor queda abajo aunque las reseñas tengan largos distintos */
.t-who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px }

.t-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, var(--aqua), var(--teal));
}

.t-card.espacio .t-avatar { background: linear-gradient(145deg, #e6b373, var(--sol-deep)) }

.t-who b { display: block; font-weight: 600; color: var(--bosque); line-height: 1.3 }

.t-role { display: block; font-size: .9rem; color: rgba(22, 48, 44, .62); line-height: 1.3 }

/* Resumen de Google: puntaje grande y link a la ficha */
.t-summary {
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(150deg, var(--teal), var(--bosque));
}

.t-score { margin: 0; font-size: 3.4rem; font-weight: 600; line-height: 1 }
.t-summary .t-stars { margin: 10px 0 6px; color: var(--sol) }
.t-count { margin: 0 0 22px; color: rgba(255, 255, 255, .82) }

.t-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 0;
}

.t-link:hover { text-decoration-thickness: 2px }
.t-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px }

/* ----- equipo ----- */
.team-showcase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
}

@media(min-width:860px) {
  .team-showcase { flex-direction: row; gap: 108px }
}

/* Grilla de fotos: 7 fotos en una grilla de 5 col × 8 filas, con las filas
   alternando su desplazamiento (izq, centro-der, izq, centro) para el efecto escalonado */
.team-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 8px;
  flex: none;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 5 / 8;
}

@media(min-width:640px) { .team-photos { max-width: 540px; gap: 12px } }
@media(min-width:860px) { .team-photos { max-width: 560px; gap: 14px } }

.team-photo-1 { grid-column: 1 / 3; grid-row: 1 / 3 }
.team-photo-2 { grid-column: 3 / 5; grid-row: 1 / 3 }
.team-photo-3 { grid-column: 2 / 4; grid-row: 3 / 5 }
.team-photo-4 { grid-column: 4 / 6; grid-row: 3 / 5 }
.team-photo-5 { grid-column: 1 / 3; grid-row: 5 / 7 }
.team-photo-6 { grid-column: 3 / 5; grid-row: 5 / 7 }
.team-photo-7 { grid-column: 2 / 4; grid-row: 7 / 9 }

.team-photo {
  width: 100%; height: 100%;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--niebla);
  transition: opacity 380ms ease;
}

.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.8);
  transition: filter 460ms ease;
}

.team-photo.is-active img { filter: grayscale(0) brightness(1) }

/* Iniciales provisorias hasta tener los retratos: ocupan la misma celda que la
   foto y siguen el mismo apagado/encendido al pasar el mouse */
.team-initials {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(145deg, var(--aqua), var(--teal) 60%, var(--bosque));
  filter: saturate(.55) brightness(.95);
  transition: filter 460ms ease;
}

.team-photo.is-active .team-initials { filter: none }
.team-photo.is-dimmed { opacity: .6 }

/* name list */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 27px;
  flex: 1;
  width: 100%;
  padding-top: 6px;
}

@media(min-width:860px) { .team-list { padding-left: 28px } }


.team-row { cursor: pointer; transition: opacity 260ms ease }

.team-row.is-dimmed { opacity: .5 }

.row-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px }

.pill {
  width: 20px; height: 15px;
  border-radius: 6px;
  background: var(--line);
  flex: none;
  transition: all 260ms ease;
}

.team-row.is-active .pill { width: 26px; background: var(--teal) }

.row-head .name {
  font-family: var(--display);
  font-size: 1.35rem;
  white-space: nowrap;
  color: rgba(22, 48, 44, .8);
  transition: color 260ms ease;
}

.team-row.is-active .row-head .name { color: var(--bosque) }

/* Botones de contacto siempre visibles: WhatsApp en teal, Instagram en sol */
.row-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.row-social a {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, #3a8a88, var(--teal));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -6px rgba(46, 115, 115, .7);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms ease;
}

.row-social a svg { width: 17px; height: 17px }

.row-social a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px }

@media(hover:hover) {
  .row-social a:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.06) }
  .row-social a:active { transform: scale(.96) }
}

.team-row .role {
  margin: 4px 0 0 33px;
  font-size: 1rem;
  color: var(--teal);
}

/* ----- especialidades ----- */
/* Especialidades: cartas con foto (hover-reveal). Al pasar el mouse por la
   grilla, la carta señalada se agranda y las demás se atenúan y desenfocan. */
.spec-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

/* Seis cartas: dos filas de tres */
.spec-grid > .spec-card { grid-column: span 2 }

@media(max-width:1023px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .spec-grid > .spec-card { grid-column: auto }
  .spec-grid > .spec-card:last-child:nth-child(odd) { grid-column: 1 / -1 }
}

@media(max-width:600px) { .spec-grid { grid-template-columns: 1fr } }

.spec-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 460px;
  border-radius: var(--r-lg);
  background: var(--bosque);
  box-shadow: 0 1px 2px rgba(22, 48, 44, .06), 0 22px 44px -26px rgba(22, 48, 44, .55);
  display: flex;
  align-items: flex-end;
  transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out), filter 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}

@media(max-width:600px) { .spec-card { min-height: 400px } }

.spec-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.02);
  transition: transform 900ms var(--ease-out);
}

/* Degradado bosque desde abajo para que el texto se lea sobre cualquier foto */
.spec-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 38, 34, .94) 0%, rgba(20, 56, 50, .72) 38%, rgba(27, 77, 69, .18) 68%, rgba(27, 77, 69, 0) 100%);
}

.spec-body { width: 100%; padding: 24px 22px 26px; color: #fff }

.spec-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  white-space: nowrap;
  font-weight: 600;
  color: #bfe0db;
}

.spec-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol);
}

.spec-card h3 { margin-top: 8px; color: #fff; font-size: 1.6rem }

.spec-desc { margin: 10px 0 0; font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, .86) }

/* En 4 columnas reservo 5 líneas de descripción para que los títulos queden alineados */
@media(min-width:1024px) { .spec-desc { min-height: calc(1.55em * 5) } }

@media (hover:hover) and (pointer:fine) {
  .spec-grid:hover .spec-card { transform: scale(.97); opacity: .6; filter: blur(2px) }
  .spec-grid:hover .spec-card:hover {
    transform: scale(1.03);
    opacity: 1;
    filter: none;
    box-shadow: 0 1px 2px rgba(22, 48, 44, .06), 0 34px 60px -28px rgba(22, 48, 44, .7);
  }
  .spec-card:hover img { transform: scale(1.06) }
}

@media (prefers-reduced-motion: reduce) {
  .spec-card, .spec-card img { transition: opacity 200ms ease }
  .spec-grid:hover .spec-card, .spec-grid:hover .spec-card:hover, .spec-card:hover img { transform: none; filter: none }
}

/* ----- valores: un tallo que crece -----
   Una línea orgánica une los cuatro valores como un tallo; cada nudo tiene un
   brote que crece de uno a otro. El último (Aprendizaje) es de Espacio BIOS,
   por eso su brote es sol: los dos mundos en el mismo tallo. */
.values { background: var(--niebla) }

.values .section-head { margin-bottom: 44px }

.vstem { --gap: 28px; --node: 58px; position: relative }

.vstem-line {
  position: absolute;
  top: calc(var(--node) / 2 - 20px);
  left: calc(var(--node) / 2);
  width: calc(100% + var(--gap));
  height: 40px;
  overflow: visible;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 96%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 96%);
}

.vstem-line path {
  fill: none;
  stroke: var(--teal);
  stroke-opacity: .45;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.values-grid {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap)
}

.value { display: flex; flex-direction: column; align-items: flex-start }

.value .node {
  --leaf: var(--teal);
  --stalk: var(--bosque);
  /* El brote crece de un valor al siguiente */
  --grow: calc(.7 + var(--i, 0) * .16);
  position: relative;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.value .node svg {
  width: 36px;
  height: 36px;
  overflow: visible;
  transform: scale(var(--grow));
  transform-origin: 50% 92%;
}

.value .node .stalk { fill: none; stroke: var(--stalk); stroke-width: 1.8; stroke-linecap: round }
.value .node .leaf-r { fill: var(--leaf) }
.value .node .leaf-l { fill: var(--leaf); opacity: .62 }

.value.is-espacio .node {
  --leaf: var(--sol);
  --stalk: var(--sol-deep);
  background: #fff8ef;
  border-color: rgba(216, 154, 78, .35);
}

.value h3 {
  margin-top: 26px;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--bosque)
}

.value.is-espacio h3 { color: #5c3a10 }

.value p {
  margin: 10px 0 0;
  max-width: 28ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(22, 48, 44, .76)
}

/* El tallo se dibuja y los brotes asoman a su paso. Visible por defecto: sólo
   se esconde si el JS marcó la sección como pendiente de revelar. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .vstem:not(.in) .vstem-line path { stroke-dashoffset: 1 }
  .js-reveal .vstem:not(.in) .node svg { transform: scale(0); }

  .vstem .vstem-line path { transition: stroke-dashoffset 1600ms var(--ease-out) 150ms }

  .vstem .node svg {
    transition: transform 700ms cubic-bezier(.34, 1.4, .64, 1);
    transition-delay: calc(250ms + var(--i, 0) * 330ms)
  }

  @media (hover:hover) and (pointer:fine) {
    .value:hover .node svg .leaf-r { transform: rotate(-7deg) }
    .value:hover .node svg .leaf-l { transform: rotate(6deg) }
  }

  .value .node .leaf-r, .value .node .leaf-l {
    transform-box: fill-box;
    transition: transform 500ms var(--ease-out)
  }
  .value .node .leaf-r { transform-origin: 0% 100% }
  .value .node .leaf-l { transform-origin: 100% 100% }
}

/* Celular y tablet: el tallo pasa a ser vertical, a la izquierda */
@media(max-width:840px) {
  .vstem { --gap: 34px }
  .vstem-line { display: none }

  .values-grid { grid-template-columns: 1fr }

  .values-grid::before {
    content: "";
    position: absolute;
    left: calc(var(--node) / 2 - 1px);
    top: calc(var(--node) / 2);
    bottom: 40px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(var(--teal), rgba(46, 115, 115, 0));
    opacity: .4;
  }

  .value {
    display: grid;
    grid-template-columns: var(--node) 1fr;
    column-gap: 20px;
    align-items: start
  }

  .value .node { grid-row: span 2 }
  .value h3 { margin-top: 12px }
  .value p { max-width: 40ch }
}

/* ----- espacio bios: "una sala con luz de ventana" ----- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.espacio-x {
  --ink: #4a2f0c;
  --sun: 216, 154, 78;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0 112px;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(242, 201, 143, .55) 0%, rgba(242, 201, 143, 0) 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(var(--sun), .12) 0%, rgba(var(--sun), 0) 70%),
    linear-gradient(180deg, #FDF8F1 0%, #F8EDDD 100%);
}

/* Rayos de luz entrando por una ventana arriba a la derecha */
.ex-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden }

.ex-light .beam {
  position: absolute;
  top: -20%;
  height: 150%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 250, 240, .35) 45%, rgba(255, 255, 255, 0) 80%);
  transform: rotate(28deg);
  transform-origin: top center;
  filter: blur(10px);
  opacity: .7;
}
.ex-light .b1 { right: 12%; width: 110px }
.ex-light .b2 { right: 24%; width: 60px; opacity: .55 }
.ex-light .b3 { right: 31%; width: 160px; opacity: .45 }

@media (prefers-reduced-motion: no-preference) {
  .ex-light .beam { animation: ex-breathe 9s var(--ease-in-out) infinite }
  .ex-light .b2 { animation-delay: -3s }
  .ex-light .b3 { animation-delay: -6s }
}

@keyframes ex-breathe { 0%, 100% { opacity: .45 } 50% { opacity: .85 } }

.ex-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 64px;
  align-items: center;
}

@media(max-width:940px) { .ex-top { grid-template-columns: 1fr; gap: 44px } }

.ex-copy h2 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.ex-copy h2 > span[aria-hidden] { display: block }

/* Palabra que rota: una columna de palabras que sube de a una, con pausa en cada una */
.ex-rotator {
  display: block;
  height: 1.1em;
  overflow: hidden;
  color: var(--sol-deep);
}

.ex-words { display: flex; flex-direction: column }

.ex-words > span { display: block; height: 1.1em; line-height: 1.1em }

@media (prefers-reduced-motion: no-preference) {
  .ex-words { animation: ex-rotate 15s cubic-bezier(.65, 0, .35, 1) infinite }
}

@keyframes ex-rotate {
  0.00%, 13.67% { transform: translateY(-0.0em) }
  16.67%, 30.33% { transform: translateY(-1.1em) }
  33.33%, 47.00% { transform: translateY(-2.2em) }
  50.00%, 63.67% { transform: translateY(-3.3em) }
  66.67%, 80.33% { transform: translateY(-4.4em) }
  83.33%, 97.00% { transform: translateY(-5.5em) }
  100% { transform: translateY(-6.6em) }
}

.ex-copy .lead {
  margin-top: 26px;
  max-width: 54ch;
  font-size: 1.16rem;
  line-height: 1.6;
  color: rgba(74, 47, 12, .78);
}

.ex-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px }

.ex-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: #8a5414;
}

.ex-link svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out) }

@media (hover:hover) { .ex-link:hover svg { transform: translateX(4px) } }

/* Ficha de la sala */
.ex-card {
  position: relative;
  padding: 34px 34px 30px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(74, 47, 12, .05),
    0 30px 60px -30px rgba(var(--sun), .55);
}

.ex-sun { width: 104px; height: 104px; margin: -6px 0 6px -8px }

@media (prefers-reduced-motion: no-preference) {
  .ex-sun { animation: ex-float 7s var(--ease-in-out) infinite }
}

@keyframes ex-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

.ex-name { margin: 0; font-weight: 600; font-size: .95rem; color: #8a5414 }

.ex-quote {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 16ch;
}

.ex-tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }

.ex-tags li {
  font-size: .88rem;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sol-12);
  color: #8a5414;
  border: 1px solid rgba(216, 154, 78, .3);
}

.ex-addr {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(168, 106, 31, .16);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}

.ex-addr svg { width: 18px; height: 18px; color: var(--sol-deep); flex: none }

/* Cómo reservar: tres pasos unidos por una línea punteada */
.ex-steps {
  list-style: none;
  margin: 88px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  position: relative;
}

.ex-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc((100% - 72px) / 3 - 23px);
  border-top: 2px dashed rgba(168, 106, 31, .28);
}

.ex-steps li { position: relative }

.ex-steps .n {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6b373, var(--sol-deep));
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px #FAF1E4, 0 10px 20px -10px rgba(var(--sun), .8);
}

.ex-steps h3 { margin-top: 20px; font-size: 1.3rem; color: var(--ink) }

.ex-steps p { margin: 8px 0 0; font-size: 1rem; line-height: 1.6; color: rgba(74, 47, 12, .74); max-width: 34ch }

@media(max-width:760px) {
  .espacio-x { padding: 92px 0 84px }
  .ex-steps { grid-template-columns: 1fr; gap: 30px; margin-top: 64px; padding-left: 64px }
  .ex-steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; border-top: 0; border-left: 2px dashed rgba(168, 106, 31, .28) }
  .ex-steps .n { position: absolute; left: -64px; top: -4px }
  .ex-steps h3 { margin-top: 6px }
}


/* ----- agendar: pasos + agenda con el WhatsApp de cada profesional ----- */
.book {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.book-intro { margin-bottom: 0 }

.book-intro .lead { max-width: 34ch }

@media(min-width:961px) {
  .book-intro { position: sticky; top: 112px }
}

/* Pasos: misma gramática que los de Espacio BIOS, en teal (lado médico) */
.book-steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0 0 0 64px;
  display: grid;
  gap: 30px;
  position: relative;
}

.book-steps li { position: relative }

/* Tramo punteado de un número al siguiente (el último no lleva) */
.book-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 19px;
  bottom: -49px;
  left: -42px;
  border-left: 2px dashed rgba(46, 115, 115, .28);
}

.book-steps .n {
  position: absolute;
  left: -64px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--bosque));
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--niebla), 0 10px 20px -10px rgba(27, 77, 69, .7);
}

.book-steps h3 { margin-top: 6px; font-size: 1.2rem }

.book-steps p { margin: 6px 0 0; font-size: 1rem; line-height: 1.6; color: rgba(22, 48, 44, .74); max-width: 36ch }

.book-steps b { color: var(--bosque); font-weight: 600 }

/* Agenda */
.book-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.book-head { padding: 28px 32px 22px }

.book-head h3 { font-size: 1.25rem }

.book-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }

.book-filter {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--teal-14);
  background: var(--teal-08);
  color: var(--bosque);
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}

.book-filter:active { transform: scale(.97) }

.book-filter[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff }

@media (hover:hover) and (pointer:fine) {
  .book-filter[aria-pressed="false"]:hover { border-color: var(--teal); color: var(--teal) }
}

.book-list { list-style: none; margin: 0; padding: 0 }

.book-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  transition: background 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

/* Filtro: la fila que coincide se marca; las demás bajan la foto y el botón,
   pero el texto conserva su contraste */
.book-row.is-match { background: var(--teal-08); box-shadow: inset 0 0 0 1px rgba(46, 115, 115, .32) }

.book-row.is-dimmed .book-ph { opacity: .45; filter: grayscale(1) }

.book-row.is-dimmed .book-wa {
  background: transparent;
  color: var(--bosque);
  border-color: var(--line);
  box-shadow: none;
}

.book-ph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--niebla);
  transition: opacity 320ms var(--ease-out), filter 320ms var(--ease-out);
}

.book-ini {
  flex: none;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, var(--aqua), var(--teal));
}

.book-name { margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--bosque); line-height: 1.3 }

.book-esp { margin: 3px 0 0; font-size: .92rem; line-height: 1.45; color: rgba(22, 48, 44, .7) }

.book-num {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
}

.book-num svg { width: 14px; height: 14px; flex: none }

.book-tel { font-variant-numeric: tabular-nums; user-select: all }

.book-wa { white-space: nowrap; padding: 13px 22px; min-height: 48px }

.book-wa svg { width: 18px; height: 18px; flex: none }

.book-soon {
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 32px 20px;
  border-top: 1px solid var(--line);
  background: var(--teal-08);
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(22, 48, 44, .72);
}

.book-soon svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--teal) }

.book-soon b { color: #8a5414; font-weight: 600 }

@media(max-width:960px) {
  .book { grid-template-columns: 1fr; gap: 40px }
  .book-intro .lead { max-width: 52ch }
}

@media(max-width:600px) {
  .book-head { padding: 22px 20px 18px }
  .book-row { grid-template-columns: 52px minmax(0, 1fr); gap: 14px 16px; padding: 18px 20px }
  .book-ph { width: 52px; height: 52px }
  .book-wa { grid-column: 1 / -1; justify-content: center }
  .book-soon { padding: 16px 20px 18px }
}

@media (prefers-reduced-motion: reduce) {
  .book-row, .book-ph { transition: none }
}

/* ----- sumate al staff ----- */
.staff-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px;
}

@media(max-width:640px) { .staff-panel { padding: 30px 24px } }

.staff-intro { max-width: 520px; margin: 0 0 30px }

.staff-intro .ic {
  width: 42px; height: 42px;
  color: var(--teal);
  margin: 0 0 16px;
}

.staff-intro .ic svg { width: 100%; height: 100% }

.staff-intro h2 { font-size: 1.6rem; letter-spacing: -.02em }

.staff-intro p { margin: 12px 0 0; color: rgba(22, 48, 44, .72) }

.staff-form { display: flex; flex-direction: column; gap: 20px; margin-top: 8px }

.field-row { display: flex; flex-wrap: wrap; gap: 20px }

.field-row .field { flex: 1 1 220px }

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

.field label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--bosque);
}

.field label span { color: var(--sol-deep) }

.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--tinta);
  background: var(--hueso);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color 160ms ease, background 160ms ease;
}

.field textarea { min-height: 112px; resize: vertical; font-family: var(--sans) }

.field input:hover, .field textarea:hover { border-color: var(--aqua) }

.field input:focus, .field textarea:focus {
  border-color: var(--teal);
  background: #fff;
}

.staff-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.req-note { font-size: .82rem; color: rgba(22, 48, 44, .55) }

/* Honeypot: fuera de pantalla (no display:none, algunos bots lo detectan) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

.field-error { margin: 0; min-height: 0; font-size: .82rem; color: #a3342b }
.field-error:empty { display: none }

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a3342b }

.form-status { margin: 0; font-size: .9rem; color: var(--bosque) }
.form-status:empty { display: none }
.form-status.is-error { color: #a3342b }

.staff-form button[disabled] { opacity: .55; cursor: not-allowed }

/* ----- ubicación -----
   La gota de la marca hace de pin. La dirección es una sola puerta para los
   dos mundos: los puntos teal (consultorio) y sol (Espacio BIOS) lo dicen. */
.loc { overflow: hidden }

/* Grilla de puntos del hero, apenas visible detrás del mapa */
.loc-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(46, 115, 115, .2) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 46% 60% at 74% 52%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 60% at 74% 52%, #000 0%, transparent 100%);
}

.loc .wrap { position: relative }

.loc-block {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: stretch
}

.loc-info .section-head { margin-bottom: 36px }

.loc-addr { display: flex; gap: 18px; align-items: center }

.loc-drop { width: 52px; height: 65px; flex: none; overflow: visible }

.loc-street {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--bosque);
}

.loc-city { margin: 6px 0 0; color: rgba(22, 48, 44, .68); font-size: 1rem }

/* La gota cae y se asienta cuando la sección entra en pantalla */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .loc-addr .loc-drop-body { transform-box: fill-box; transform-origin: 50% 100% }
  .js-reveal .loc-addr.in .loc-drop-body { animation: loc-drop-in 900ms var(--ease-out) 120ms both }
  .js-reveal .loc-addr.in .loc-drop-shadow {
    transform-box: fill-box;
    transform-origin: center;
    animation: loc-shadow-in 900ms var(--ease-out) 120ms both
  }
}

@keyframes loc-drop-in {
  0% { transform: translateY(-22px); opacity: 0 }
  55% { transform: translateY(0) scale(1.04, .95); opacity: 1 }
  100% { transform: none }
}

@keyframes loc-shadow-in {
  0% { transform: scale(.4); opacity: 0 }
  100% { transform: none; opacity: .2 }
}

.loc-worlds {
  list-style: none;
  padding: 0;
  margin: 22px 0 0 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.loc-worlds li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(22, 48, 44, .8);
}

.loc-worlds .dot { width: 8px; height: 8px; border-radius: 50% }
.loc-worlds .is-salud .dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(46, 115, 115, .2) }
.loc-worlds .is-espacio .dot { background: var(--sol); box-shadow: 0 0 0 3px rgba(216, 154, 78, .26) }

.loc-hours {
  margin-top: 32px;
  padding: 20px 24px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.loc-hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px
}

.loc-hours-head h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--bosque) }

.loc-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(22, 48, 44, .7)
}

.loc-status .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #93a5a1 }
.loc-status.is-open { color: var(--teal) }
.loc-status.is-open .dot { background: var(--teal) }

@media (prefers-reduced-motion: no-preference) {
  .loc-status.is-open .dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--teal);
    animation: loc-pulse 2.4s var(--ease-out) infinite
  }
}

@keyframes loc-pulse {
  from { transform: scale(1); opacity: .5 }
  to { transform: scale(3); opacity: 0 }
}

.hours { list-style: none; padding: 0; margin: 0 }

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem
}

.hours li:last-child { border-bottom: 0 }

.hours li > span:first-child { color: var(--bosque); font-weight: 500 }

.hours li > span:last-child { color: rgba(22, 48, 44, .7); font-variant-numeric: tabular-nums }

/* El día de hoy se resalta como una pastilla teal suave */
.hours li.is-today {
  margin: 0 -12px;
  padding: 13px 12px;
  border-radius: 12px;
  border-bottom-color: transparent;
  background: var(--teal-08)
}

.hours li.is-today > span:last-child { color: var(--teal); font-weight: 600 }

.hours .today-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  vertical-align: 2px
}

.loc-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px }

/* Mapa enmarcado como una foto: borde blanco, esquinas concéntricas */
.loc-map {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.map {
  position: relative;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  background: var(--niebla);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.92)
}

.loc-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 10px 6px;
  font-size: .94rem;
  color: rgba(22, 48, 44, .72)
}

.loc-cap-brand { display: inline-flex; align-items: center; gap: 10px }
.loc-cap-brand img { width: 26px; height: 26px }
.loc-cap-brand b { color: var(--bosque); font-weight: 600 }

.loc-cap a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(46, 115, 115, .3);
  transition: text-decoration-color 200ms ease
}

.loc-cap a svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out) }

@media (hover:hover) and (pointer:fine) {
  .loc-cap a:hover { text-decoration-color: currentColor }
  .loc-cap a:hover svg { transform: translate(2px, -2px) }
}

@media(max-width:900px) {
  .loc-block { grid-template-columns: 1fr; gap: 40px }
  .map { min-height: 360px }
  .loc-dots { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 80% 40% at 50% 78%, #000 0%, transparent 100%) }
}

@media(max-width:520px) {
  .loc-worlds { margin-left: 0 }
  .loc-actions .btn { flex: 1 1 auto; justify-content: center }
  .loc-hours { padding: 16px 18px 8px }
}

/* ----- contacto + sumate al staff: dos columnas casi a todo el ancho ----- */
.wrap-wide { max-width: 1440px; padding: 0 24px }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

@media(max-width:980px) { .contact-grid { grid-template-columns: 1fr } }

@media(max-width:640px) { .wrap-wide { padding: 0 16px } }

/* ----- contacto ----- */
.contact {
  background: radial-gradient(120% 120% at 50% -20%, var(--teal) 0%, var(--bosque) 100%);
  color: #eaf4f2;
  border-radius: var(--r-lg);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media(max-width:640px) { .contact { padding: 44px 26px } }

.contact h2 { position: relative; z-index: 2; color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 16ch }

.contact p { position: relative; z-index: 2; max-width: 440px; margin: 18px 0 34px; color: #dceeeb; font-size: 1.12rem }

.contact .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2
}

.contact .bgleaf {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 300px;
  opacity: .08;
  color: #fff
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bosque);
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 40px;
  font-size: .94rem
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

@media(max-width:760px) { .foot-top { grid-template-columns: 1fr; gap: 30px } }

.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px }

.foot-brand img { width: 38px; height: 38px }

.foot-brand .name { font-family: var(--display); font-size: 1.3rem; color: #fff }

.foot-col h5 {
  font-size: .95rem;
  color: #a9d2cc;
  margin: 0 0 14px;
  font-weight: 600
}

.foot-col a,
.foot-col p { display: block; color: rgba(255, 255, 255, .74); margin: 0 0 11px }

.foot-addr { font-style: normal }

.foot-col a { padding: 4px 0; margin: 0 0 7px; transition: color 160ms ease }

@media(hover:hover) { .foot-col a:hover { color: #fff } }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  color: rgba(255, 255, 255, .5);
  font-size: .84rem
}


/* ============================================================
   REVEAL on scroll
   ============================================================ */
.reveal {
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out)
}

/* Hidden-before-reveal state is opt-in via .js-reveal, added by main.js only
   for elements it has successfully queued in an IntersectionObserver. If the
   script never runs (blocked, offline, disabled), content stays visible. */
.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in { opacity: 1; transform: none }

.reveal[data-d="1"] { transition-delay: 60ms }
.reveal[data-d="2"] { transition-delay: 120ms }
.reveal[data-d="3"] { transition-delay: 180ms }

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto }
  * { animation: none !important }
  .reveal { opacity: 1 !important; transform: none !important; transition: none }
  .drops .d { animation: none !important }
  .btn, .world, .btn-white:hover {
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease
  }
}
