/* =============================================================================
   TenmaHealth · prototipo v2 · dirección de arte «Humana y multiespecialidad»
   Capa de marca sobre ../../_kit/tenma-kit.css (el kit NO se modifica).
   Cada sobrescritura del kit va marcada con «KIT ›» y se explica en README §2.
   ============================================================================= */

/* 1. Tokens (contraste AA verificado, ver README §6) */
:root {
  --fondo: #FBFAF7;            /* papel cálido */
  --papel2: #F2EEE6;
  --tinta: #14232E;
  --texto: #2F3E48;
  --suave: #55636C;
  --linea: #E4DED3;
  --linea-fuerte: #C9C0B1;
  --acento: #0B7277;           /* texto y botones: 5,5:1 sobre --fondo */
  --acento-vivo: #0E8C8F;      /* solo formas grandes */
  --sobre-acento: #FFFFFF;
  --bloque: #0B6E73;           /* blanco encima 6,0:1 */
  --sobre-bloque: #FFFFFF;
  --sobre-bloque-suave: #D7ECEA;
  --resalte: #E8674A;          /* coral: solo detalle sobre fondo claro; nunca sobre el bloque */
  --sobre-resalte: #14232E;
  --pie: #14232E;
  --fuente: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-titulos: var(--fuente);
  --mono: var(--fuente);       /* KIT › sin monoespaciada: más humana y 2 fuentes menos */
  --peso-titulos: 600;
  --radio: 20px;
  --radio-sm: 14px;
  --t1: clamp(2.45rem, 1.05rem + 5.1vw, 5.5rem);
}

/* 2. KIT › etiquetas y títulos pequeños: sin mono, en el acento y con un punto coral (el único detalle cálido) */
.etiqueta { font: 600 .78rem/1.25 var(--fuente); letter-spacing: .1em; color: var(--acento); }
.etiqueta::before { width: .5em; height: .5em; border-radius: 50%; background: var(--resalte); }
.seccion--bloque .etiqueta::before { background: currentColor; }
.mega__titulo, .pie__titulo, .pie__eco strong, .barra-eco__marcas > span { font-family: var(--fuente); font-weight: 600; letter-spacing: .1em; }
.paso__n { font-weight: 700; color: var(--acento); font-variant-numeric: tabular-nums; }
.paso__t { font-weight: 600; }
.numero-gigante { color: var(--acento-vivo); font-weight: 300; }
strong, b { font-weight: 700; }

/* 3. Logo: núcleo (punto) rodeado de módulos (arcos) */
.logo { font-weight: 700; letter-spacing: -.035em; gap: .55rem; }
.logo svg { width: 36px; height: 36px; }
.logo__h { color: var(--acento); }

/* 4. Barra superior: idioma */
.idioma { display: inline-flex; align-items: center; gap: .35rem; }
.idioma > span[aria-hidden] { opacity: .45; }
.barra-eco__util { gap: 1.25rem; }

/* 5. Cabecera y menú */
.menu__item { font-weight: 600; }
.menu__item[aria-current="true"] { color: var(--acento); }
.mega__enlace:has(> svg) { grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: .8rem; align-items: start; }
.mega__enlace > svg { grid-row: 1 / span 2; width: 2.1rem; height: 2.1rem; padding: .3rem; border-radius: 10px; background: color-mix(in srgb, var(--acento) 9%, transparent); color: var(--acento); transition: background-color .25s, color .25s, rotate .35s var(--ease-out); }
.mega__enlace:hover > svg, .mega__enlace:focus-visible > svg { background: var(--acento); color: #fff; rotate: -6deg; }
.mega__enlace[aria-current="page"] { background: var(--papel2); }
.mega__enlace .externo { display: inline-block; margin-inline-start: .3em; color: var(--acento); font-weight: 600; }
.mega__destacado { border-radius: var(--radio); }
.mega__destacado .boton { justify-self: start; margin-top: .4rem; }
@media (max-width: 420px) {
  /* Para que quepa el botón principal se oculta el nombre del logo (TenmaHealth sigue visible en la barra del
     ecosistema) y se compacta el botón; «Menú» conserva su texto */
  .cabecera__accion .boton { display: inline-flex; padding: .5rem .85rem; font-size: .84rem; }
  .cabecera .logo__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .boton-menu { padding-inline: .8rem; }
}
.cajon__grupo { margin: .4rem 0 .25rem; font: 600 .72rem/1.2 var(--fuente); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.cajon__util { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 1.1rem 0 0; font-size: .95rem; }
.cajon__util a { color: var(--acento); font-weight: 600; }

/* 6. Utilidades de marca */
.enlace-flecha { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--acento); }
.enlace-flecha svg { width: 1.1em; height: 1.1em; transition: translate .3s var(--ease-out); }
.enlace-flecha:hover svg, .enlace-flecha:focus-visible svg { translate: 4px 0; }
.enlace-flecha:hover { text-decoration: underline; }
.centro { text-align: center; margin-inline: auto; }
.ico { width: 1.5rem; height: 1.5rem; flex: none; }
.nota-ficticia { font-size: .8rem; color: var(--suave); }
.seccion--bloque .nota-ficticia { color: var(--sobre-bloque-suave); }

/* 7. Portada · hero centrado con titular enorme */
.hero { position: relative; isolation: isolate; padding-block: clamp(2rem, 1.2rem + 2.6vw, 3.4rem) clamp(1.5rem, 1rem + 1.2vw, 2.25rem); text-align: center; }
.hero h1 { margin-bottom: .3em; }
.hero .entrada { margin: 0 auto 1.5rem; max-width: 60ch; }
.hero .acciones { justify-content: center; }
.garantias { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.4rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--suave); }
.garantias--izq { justify-content: flex-start; }
.garantias li { display: inline-flex; align-items: center; gap: .5rem; }
.garantias li::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--acento-vivo); }
.subrayado { position: relative; display: inline-block; }
.subrayado svg { position: absolute; left: -1%; bottom: -.04em; width: 102%; height: .2em; overflow: visible; pointer-events: none; }
.subrayado path { fill: none; stroke: var(--resalte); stroke-width: 4.5; stroke-linecap: round; }
.formas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.forma { position: absolute; display: block; }
.forma--cuarto { left: 7%; top: 16%; width: 64px; height: 64px; border-top-left-radius: 100%; background: var(--resalte); }
.forma--anillo { right: 6%; top: 22%; width: 132px; height: 132px; border: 2px solid var(--acento-vivo); border-radius: 50%; }
.forma--anillo::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: color-mix(in srgb, var(--acento-vivo) 14%, transparent); }
.forma--media { left: 11%; bottom: 6%; width: 96px; height: 48px; border-radius: 96px 96px 0 0; border: 2px solid var(--linea-fuerte); border-bottom: 0; }
.forma--puntos { right: 13%; bottom: 10%; width: 72px; height: 48px; background: radial-gradient(circle, var(--linea-fuerte) 2px, transparent 2.5px) 0 0 / 12px 12px; }
@media (max-width: 760px) { .forma--anillo, .forma--puntos, .forma--media { display: none; } .forma--cuarto { left: 4%; top: 3%; width: 34px; height: 34px; } }

/* 8. Selector de especialidad (pestañas del kit con iconos) */
.selector { padding-block: 0 clamp(4rem, 3rem + 4vw, 7rem); }
.selector__cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.1rem; }
.selector__titulo { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); letter-spacing: -.02em; }
.selector__pista { margin: 0; font-size: .9rem; color: var(--suave); }
.selector__grupos { display: none; }
.selector .pestanas__lista { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.selector .pestana {
  position: relative; flex-direction: column; justify-content: center; gap: .55rem; min-height: 108px; padding: 1rem .45rem .85rem;
  border: 1px solid var(--linea); border-radius: var(--radio-sm); background: #fff; color: var(--tinta);
  font: 600 .88rem/1.2 var(--fuente); text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.selector .pestana svg { width: 34px; height: 34px; color: var(--acento); transition: color .3s, scale .4s var(--ease-out); }
.selector .pestana:hover { translate: 0 -3px; border-color: var(--acento); box-shadow: 0 16px 30px -22px color-mix(in srgb, var(--tinta) 60%, transparent); }
.selector .pestana:hover svg { scale: 1.08; }
/* KIT › la pestaña elegida usa el acento (no la tinta) y el icono en blanco: el coral nunca va sobre color oscuro */
.selector .pestana[aria-selected="true"] { background: var(--acento); border-color: var(--acento); color: #fff; box-shadow: 0 18px 32px -20px color-mix(in srgb, var(--acento) 80%, transparent); }
.selector .pestana[aria-selected="true"] svg { color: #fff; }
.selector .pestana[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--acento); rotate: 45deg; translate: -50% 0; border-radius: 2px; }
.selector .pestanas__panel { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding: clamp(1.5rem, 1rem + 2.2vw, 3.25rem); border-radius: var(--radio); background: var(--papel2); }
.selector .pestanas__panel[hidden] { display: none; }
.selector .pestanas__panel:focus-visible { outline-offset: 4px; }
.panel__tipo { margin: 0 0 .6rem; }
.panel__titulo { margin: 0 0 .5rem; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); letter-spacing: -.035em; }
.panel__lead { max-width: 52ch; margin-bottom: 1.4rem; font-size: 1.08rem; }
.funciones { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px dashed var(--linea-fuerte); counter-reset: fn; }
.funciones li { counter-increment: fn; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .15rem .75rem; padding: .9rem 0; border-bottom: 1px dashed var(--linea-fuerte); }
.funciones li::before { content: counter(fn, decimal-leading-zero); grid-row: span 2; font-weight: 700; font-size: .9rem; color: var(--acento); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.funciones strong { color: var(--tinta); font-size: 1.02rem; }
.funciones span { color: var(--texto); font-size: .95rem; }
.panel__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 360px); margin-inline: auto; }
.panel__visual::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 54%, transparent 54.4%), conic-gradient(from 200deg, color-mix(in srgb, var(--acento-vivo) 22%, transparent), transparent 40%); }
.panel__visual .anillo-panel { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--acento-vivo); }
.panel__icono { position: relative; width: 44%; height: 44%; color: var(--acento); stroke-width: 1.4; }
.panel__nucleo { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; gap: .35rem; flex-wrap: nowrap; }
.panel__nucleo span { padding: .3rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--linea); color: var(--tinta); font-size: .76rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 18px -14px rgb(0 0 0 / .4); }
.panel__nota { margin: 1rem 0 0; font-size: .9rem; color: var(--suave); }
@media (min-width: 640px) {
  .selector .pestanas__lista { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .selector .pestanas__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}
@media (min-width: 1180px) {
  .selector__grupos, .selector .pestanas__lista { grid-template-columns: repeat(6, minmax(0, 1fr)) .9rem repeat(4, minmax(0, 1fr)); }
  .selector__grupos { display: grid; gap: .6rem; margin-bottom: .55rem; }
  .selector__grupos span { display: flex; align-items: center; gap: .6rem; font: 600 .72rem/1 var(--fuente); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
  .selector__grupos span::after { content: ""; flex: 1; height: 1px; background: var(--linea-fuerte); }
  .selector__grupos span:first-child { grid-column: 1 / 7; }
  .selector__grupos span:last-child { grid-column: 8 / 12; }
  .selector .pestana:nth-of-type(7) { grid-column-start: 8; }
}
@media (max-width: 639px) {
  /* Móvil: tira horizontal con imán; el foco por flechas la desplaza sola */
  .selector .pestanas__lista { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: .5rem; margin-inline: calc(var(--margen) * -1); padding: .35rem var(--margen) 1rem; scroll-padding-inline: var(--margen); scrollbar-width: none; }
  .selector .pestanas__lista::-webkit-scrollbar { display: none; }
  .selector .pestana { flex: 0 0 96px; min-height: 92px; scroll-snap-align: start; font-size: .8rem; }
  .selector .pestana svg { width: 28px; height: 28px; }
  .panel__visual { width: min(70%, 240px); }
  .panel__nucleo { display: none; }
}
html:not(.js) .selector__grupos { display: none; }
html:not(.js) .selector .pestanas__panel + .pestanas__panel { margin-top: 1rem; }

/* 9. Núcleo común + módulos (anillos concéntricos) */
.nucleo { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 960px) { .nucleo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.nucleo__figura { margin: 0; }
.nucleo__figura svg { width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.anillo { fill: none; stroke: var(--linea-fuerte); stroke-width: 1.5; transition: stroke .35s, stroke-width .35s, opacity .35s; }
.disco-nucleo { fill: var(--acento); transition: fill .35s, scale .5s var(--ease-out); transform-origin: 280px 280px; }
.texto-nucleo { fill: #fff; font: 700 21px/1 var(--fuente); text-anchor: middle; letter-spacing: -.02em; }
.texto-nucleo--peq { font-size: 13px; font-weight: 500; fill: var(--sobre-bloque-suave); letter-spacing: .02em; }
.insignia circle { fill: #fff; stroke: var(--linea-fuerte); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.insignia use { color: var(--acento); transition: color .3s; }
.insignia:hover circle { stroke: var(--acento); }
.conexion circle { fill: var(--fondo); stroke: var(--acento-vivo); stroke-width: 1.5; }
.conexion text { fill: var(--tinta); font: 600 14px/1 var(--fuente); text-anchor: middle; }
.capas { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.capa { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.15rem 1.25rem; border: 1px solid var(--linea); border-radius: var(--radio-sm); background: #fff; transition: border-color .3s, box-shadow .3s, translate .35s var(--ease-out); }
.capa::before { content: ""; grid-row: span 3; width: 1.1rem; height: 1.1rem; margin-top: .2rem; border-radius: 50%; border: 2px solid var(--acento); }
.capa--nucleo::before { background: var(--acento); }
.capa--modulos::before { border-style: solid; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px color-mix(in srgb, var(--acento) 25%, transparent); }
.capa--conexiones::before { border-style: dashed; }
.capa h3 { margin: 0; font-size: 1.15rem; }
.capa p { margin: 0; font-size: .95rem; }
.capa a { font-size: .92rem; font-weight: 700; color: var(--acento); }
.capa:hover, .capa:focus-within { border-color: var(--acento); translate: 4px 0; box-shadow: 0 16px 30px -24px color-mix(in srgb, var(--tinta) 60%, transparent); }
.nucleo:has(.capa--nucleo:is(:hover, :focus-within)) .disco-nucleo { fill: var(--acento-vivo); scale: 1.06; }
.nucleo:has(.capa--modulos:is(:hover, :focus-within)) .anillo--modulos,
.nucleo:has(.capa--conexiones:is(:hover, :focus-within)) .anillo--conexiones { stroke: var(--acento); stroke-width: 3; }
.nucleo:has(.capa--modulos:is(:hover, :focus-within)) .insignia circle { stroke: var(--acento); fill: color-mix(in srgb, var(--acento) 8%, #fff); }
.nucleo:has(.capa--conexiones:is(:hover, :focus-within)) .conexion circle { fill: var(--acento-vivo); }
.nucleo:has(.capa:is(:hover, :focus-within)) .anillo:not(.anillo--modulos, .anillo--conexiones) { opacity: .4; }
@media (max-width: 640px) { .conexion text { font-size: 19px; } .texto-nucleo { font-size: 25px; } .texto-nucleo--peq { font-size: 16px; } }

/* 10. Tarjetas de especialidad y centro */
.faceta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.75rem 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--linea-fuerte); }
.faceta:first-of-type { margin-top: 0; }
.faceta h3 { margin: 0; font-size: var(--t3); }
.faceta p { margin: 0; font-size: .92rem; color: var(--suave); }
.tarjeta--esp { background: #fff; border-color: transparent; border-radius: var(--radio); padding: 1.5rem 1.5rem 1.35rem; }
.tarjeta--esp .icono-linea { width: 52px; height: 52px; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--acento) 9%, transparent); transition: background-color .3s, color .3s, rotate .45s var(--ease-out); }
a.tarjeta--esp:hover .icono-linea, a.tarjeta--esp:focus-visible .icono-linea { background: var(--acento); color: #fff; rotate: -8deg; }
.tarjeta--esp :is(h3, h4) { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.tarjeta--esp p { font-size: .95rem; }
.tarjeta--cta { border-radius: var(--radio); }
.tarjeta--cta h4 { color: var(--sobre-bloque); font-size: 1.3rem; margin: 0; }
.tarjeta--cta p { color: var(--sobre-bloque-suave); }
.tarjeta--cta .tarjeta__flecha { color: #fff; }
.cruces { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.cruces > span { margin-inline-end: .4rem; font-weight: 700; color: var(--tinta); }
.cruces a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1px solid var(--linea-fuerte); border-radius: 999px; background: #fff; color: var(--tinta); font-size: .92rem; font-weight: 600; text-decoration: none; transition: border-color .25s, color .25s, background-color .25s; }
.cruces a svg { width: 1.1rem; height: 1.1rem; color: var(--acento); }
.cruces a:hover, .cruces a:focus-visible { border-color: var(--acento); color: var(--acento); }

/* 11. Bloque a sangre con 4 beneficios e iconos geométricos */
.beneficios { display: grid; gap: 2.5rem 0; margin: 0; padding: 0; list-style: none; }
.beneficio { display: flex; flex-direction: column; gap: 1.25rem; padding: 0 0 2rem; border-bottom: 1px solid rgb(255 255 255 / .25); }
.beneficio h3 { margin: 0 0 .7rem; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); line-height: 1.1; letter-spacing: -.03em; }
.beneficio p { margin: 0; color: var(--sobre-bloque-suave); max-width: 34ch; }
.geo { width: 76px; height: 76px; color: #fff; flex: none; }
.geo .relleno { fill: #fff; stroke: none; }
.geo .trazo { stroke: currentColor; stroke-width: 1.5; }
@media (min-width: 640px) { .beneficios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (min-width: 1040px) {
  .beneficios { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .beneficio { justify-content: space-between; min-height: 25rem; padding: 0 1.75rem; border-bottom: 0; border-inline-start: 1px solid rgb(255 255 255 / .25); }
  .beneficio:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .beneficio:nth-child(even) .geo { order: 2; }
}
.bloque__cabeza { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* 12. Plataforma: lista de módulos + maqueta de agenda multiespecialidad */
.modulos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.modulos a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .1rem 1rem; padding: 1rem .75rem; margin-inline: -.75rem; border-bottom: 1px solid var(--linea); border-radius: 0; color: var(--tinta); text-decoration: none; transition: background-color .25s, padding .35s var(--ease-out); }
.modulos strong { font-size: 1.08rem; }
.modulos span { grid-column: 1; font-size: .92rem; color: var(--suave); }
.modulos svg { grid-row: 1 / span 2; grid-column: 2; width: 1.2rem; height: 1.2rem; color: var(--acento); transition: translate .3s var(--ease-out); }
.modulos a:hover, .modulos a:focus-visible { background: #fff; padding-inline-start: 1.25rem; }
.modulos a:hover svg, .modulos a:focus-visible svg { translate: 5px 0; }
.modulos__grupo { margin: 1.75rem 0 .5rem; }
.agenda { font-size: .9rem; }
.agenda__cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem .5rem; }
.agenda__cab strong { color: var(--tinta); font-size: 1.05rem; }
.agenda__lista { list-style: none; margin: 0; padding: .25rem .75rem 1rem; display: grid; gap: .45rem; }
.agenda__fila { display: grid; grid-template-columns: 3.2rem 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .7rem .75rem; border-radius: 12px; background: var(--papel2); transition: background-color .25s, translate .35s var(--ease-out); }
.agenda__fila:hover { background: color-mix(in srgb, var(--acento) 10%, var(--papel2)); translate: 4px 0; }
.agenda__hora { font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; }
.agenda__fila > svg { width: 2.25rem; height: 2.25rem; padding: .4rem; border-radius: 10px; background: #fff; color: var(--acento); }
.agenda__fila b { display: block; color: var(--tinta); font-weight: 600; }
.agenda__fila small { color: var(--suave); font-size: .8rem; }
.estado { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 999px; background: #fff; color: var(--tinta); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.estado::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--acento-vivo); }
.estado--aviso::before { background: var(--resalte); }
.agenda__pie { margin: 0; padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--linea); }
@media (max-width: 520px) { .agenda__fila { grid-template-columns: 2.8rem minmax(0, 1fr); } .agenda__fila > svg, .agenda__fila .estado { display: none; } }

/* 13. Países y facturación */
.paises { width: 100%; border-collapse: collapse; font-size: 1rem; }
.paises caption { text-align: start; padding-bottom: .75rem; color: var(--suave); font-size: .92rem; }
.paises th, .paises td { padding: 1.05rem .75rem; text-align: start; border-bottom: 1px dashed var(--linea-fuerte); vertical-align: middle; }
.paises thead th { font: 600 .74rem/1.2 var(--fuente); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); border-bottom: 1px solid var(--linea-fuerte); }
.paises tbody th { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 600; color: var(--tinta); letter-spacing: -.02em; }
.paises tbody tr { transition: background-color .25s; }
.paises tbody tr:hover, .paises tbody tr:focus-within { background: #fff; }
.paises td:last-child { text-align: end; }
@media (max-width: 640px) { .paises thead { display: none; } .paises tr { display: grid; grid-template-columns: 1fr auto; padding: .75rem 0; border-bottom: 1px dashed var(--linea-fuerte); } .paises th, .paises td { padding: .2rem 0; border: 0; } .paises td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--suave); } .paises td:last-child { grid-row: 1 / span 2; grid-column: 2; align-self: center; } }
.vocabulario { margin-top: 1.5rem; }
.cinta-estandares { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--linea); }
.cinta-estandares .cinta__grupo li { color: var(--tinta); }
.cinta-estandares .cinta__grupo li::after { content: ""; width: .45rem; height: .45rem; margin-inline-start: 3rem; border-radius: 50%; background: var(--acento-vivo); }

/* 14. Ecosistema */
.tarjeta--eco { border-radius: var(--radio); background: #fff; }
.tarjeta--eco .icono-linea { width: 44px; height: 44px; }
.tarjeta--eco .chip { align-self: start; background: var(--papel2); }
.tarjeta--eco[aria-current] { border-color: var(--acento); }

/* 15. Preguntas y cierre */
.faq summary { font-weight: 600; }
.faq details[open] summary { color: var(--acento); }
.cierre__titulo { max-width: 13ch; }
.editorial__lateral .t2 { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.75rem); }
.cierre .entrada { margin: 0 auto; text-align: center; }

/* 16. Pie */
.pie__marca { display: grid; gap: .85rem; max-width: 30rem; margin-bottom: 3rem; }
.pie__marca .logo { color: #fff; }
.pie__marca .logo__h { color: var(--sobre-bloque-suave); }
.pie__marca p { margin: 0; }
.pie__rejilla { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pie__rejilla ul { gap: .5rem; }
.pie__eco a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.pie__sub { margin: 1.1rem 0 .6rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: .55; }

/* 17. Interior de especialidad (odontología) */
.hero-esp { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.hero-esp .dos-columnas { align-items: center; }
.hero-esp h1 { font-size: clamp(2.5rem, 1.35rem + 4.1vw, 4.9rem); line-height: .98; letter-spacing: -.045em; }
.hero-esp .entrada { margin-bottom: 1.75rem; }
.odonto { container-type: inline-size; }
.odonto__cuerpo { padding: 1.1rem 1.25rem 1.25rem; }
.odonto__cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.odonto__cab strong { color: var(--tinta); }
.odonto svg.odontograma { width: 100%; height: auto; overflow: visible; }
.nota-svg { fill: var(--suave); font: 500 9px/1 var(--fuente); letter-spacing: .06em; text-transform: uppercase; }
.pieza { cursor: pointer; outline: none; }
.pieza .cara { fill: #fff; stroke: var(--linea-fuerte); stroke-width: 1; transition: fill .2s, stroke .2s; }
.pieza .num { fill: var(--suave); font: 600 10px/1 var(--fuente); text-anchor: middle; transition: fill .2s; }
.pieza .caries { fill: var(--resalte); }
.pieza .tratado { fill: var(--acento-vivo); }
.pieza .corona { fill: none; stroke: var(--acento); stroke-width: 2; }
.pieza .ausente { stroke: var(--suave); stroke-width: 1.6; stroke-linecap: round; }
.pieza .plan { fill: none; stroke: var(--resalte); stroke-width: 1.6; stroke-dasharray: 3 2.5; }
.pieza .marco { fill: none; stroke: transparent; stroke-width: 2; rx: 6; transition: stroke .2s, fill .2s; }
.pieza:hover .marco, .pieza:focus-visible .marco, .pieza.activa .marco { stroke: var(--acento); fill: color-mix(in srgb, var(--acento) 10%, transparent); }
.pieza:hover .num, .pieza:focus-visible .num, .pieza.activa .num { fill: var(--acento); }
.pieza:focus-visible .marco { stroke-width: 3; }
.odonto:has(.fase[data-fase="1"]:hover) .pieza[data-fase="1"] .marco,
.odonto:has(.fase[data-fase="2"]:hover) .pieza[data-fase="2"] .marco,
.odonto:has(.fase[data-fase="3"]:hover) .pieza[data-fase="3"] .marco { stroke: var(--resalte); fill: color-mix(in srgb, var(--resalte) 12%, transparent); }
.odonto__info { min-height: 3.2rem; margin: .5rem 0 .9rem; padding: .7rem .9rem; border-radius: 12px; background: var(--papel2); font-size: .9rem; color: var(--texto); }
.odonto__info b { color: var(--tinta); }
.leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .78rem; color: var(--suave); }
.leyenda li { display: inline-flex; align-items: center; gap: .4rem; }
.leyenda i { width: .8rem; height: .8rem; border-radius: 3px; background: var(--resalte); }
.leyenda .l-tratado { background: var(--acento-vivo); }
.leyenda .l-corona { background: none; border: 2px solid var(--acento); border-radius: 50%; }
.leyenda .l-plan { background: none; border: 1.6px dashed var(--resalte); }
.leyenda .l-ausente { background: linear-gradient(45deg, transparent 44%, var(--suave) 44% 56%, transparent 56%); }
.fases { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fase { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--linea); border-radius: 12px; font-size: .86rem; transition: border-color .2s, background-color .2s; }
.fase:hover { border-color: var(--resalte); background: #fff; }
.fase b { color: var(--tinta); }
.situaciones { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .situaciones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.situacion { display: grid; gap: .9rem; align-content: start; padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border-radius: var(--radio); background: #fff; border: 1px solid var(--linea); }
.situacion h3 { margin: 0; font-size: 1.3rem; }
.situacion dl { margin: 0; display: grid; gap: .8rem; }
.situacion dt { font: 600 .72rem/1.2 var(--fuente); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.situacion dd { margin: .2rem 0 0; }
.situacion .cambia { padding-top: .8rem; border-top: 1px dashed var(--linea-fuerte); }
.situacion .cambia dd { color: var(--tinta); font-weight: 700; }
.funciones-esp { counter-reset: f; }
.funcion { display: grid; gap: .6rem; align-content: start; padding: 1.5rem; border-radius: var(--radio); background: var(--fondo); border: 1px solid var(--linea); transition: border-color .3s, translate .4s var(--ease-out); }
.funcion:hover { border-color: var(--acento); translate: 0 -4px; }
.funcion h3 { margin: 0; font-size: 1.15rem; }
.funcion p { margin: 0; font-size: .95rem; }
.funcion svg { width: 40px; height: 40px; color: var(--acento); }
.nucleo-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.nucleo-chips a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .35); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .25s, color .25s; }
.nucleo-chips a:hover, .nucleo-chips a:focus-visible { background: #fff; color: var(--bloque); }

/* 18. Movimiento propio de la marca (todo dentro de «sin reducir movimiento») */
@keyframes th-dibuja { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes th-gira { from { rotate: -70deg; } }
@keyframes th-subraya { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@keyframes th-entra-escala { from { opacity: 0; scale: .6; } }
@media (prefers-reduced-motion: no-preference) {
  /* sin pathLength: con preserveAspectRatio="none" Chrome mide el trazo normalizado en otra escala y lo dejaría a medias */
  .subrayado path { stroke-dasharray: 1200; animation: th-subraya 1.1s var(--ease-out) 1.05s both; }
  .js .selector .pestanas__panel:not([hidden]) .panel__icono { stroke-dasharray: 1; animation: th-dibuja 1.15s var(--ease-out) .05s backwards; }
  .js .selector .pestanas__panel:not([hidden]) .anillo-panel circle { stroke-dasharray: 1; animation: th-dibuja 1.3s var(--ease-out) backwards; }
  .js .selector .pestanas__panel:not([hidden]) .anillo-panel g { transform-origin: 50% 50%; transform-box: view-box; animation: th-gira 1.4s var(--ease-out) backwards; }
  .js .selector .pestanas__panel:not([hidden]) .funciones li { animation: tk-aparece .6s var(--ease-out) backwards; }
  .js .selector .pestanas__panel:not([hidden]) .funciones li:nth-child(2) { animation-delay: .07s; }
  .js .selector .pestanas__panel:not([hidden]) .funciones li:nth-child(3) { animation-delay: .14s; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .disco-nucleo { animation: th-entra-escala linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .selector .pestana, .capa, .funcion, .agenda__fila { transition: none; }
}

/* 19. KIT › la escalera de pasos y el cierre que crece se mueven sin bajar la opacidad: el texto mantiene su
   contraste AA en todo momento (el kit parte de opacidad .2 y .15 y la auditoría de contraste lo marca como fallo) */
@keyframes tk-escalon { from { translate: calc(var(--i, 0) * 5vw + 2rem) 0; } }
@keyframes tk-crece { from { scale: .5; } }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .tk-io .pasos--escalera .paso { opacity: 1; }
}
