/* CMS-065 · Sitio con vida. Piezas que se encienden por sitio (línea «Vida:»
   de la identidad) con clases en <body>: vida-brillo, vida-eclipse,
   vida-noticias-foco|carrusel, vida-clima y vida-con-agua (con vida-fondo-manto|tela).
   Reglas: solo transform y opacity en lo que se mueve; todo se detiene con
   movimiento reducido, con «Pausar animaciones» (html.vida-quieto), con la
   pestaña oculta (html.vida-oculta) y fuera de pantalla (.vida-fuera). */

/* ── 1. Reflejo que pasa por las tarjetas de trámites ─────────────────────── */
.vida-brillo .vida-brillable {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.vida-brillo .vida-brillable::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Ronda 3 (Lumen): el reflejo pasa por detrás del texto y los íconos, sobre
     el fondo de la tarjeta (la tarjeta aísla su propio apilamiento): nunca
     aclara ni tiñe las letras. */
  z-index: -1;
  pointer-events: none;
  /* El reflejo toma el color del borde de cada tarjeta (--c). */
  background: linear-gradient(
    105deg,
    transparent 0 32%,
    color-mix(in srgb, var(--c, var(--site)) 16%, transparent) 42%,
    color-mix(in srgb, var(--c, var(--site)) 38%, white 30%) 50%,
    color-mix(in srgb, var(--c, var(--site)) 16%, transparent) 58%,
    transparent 68% 100%
  );
  opacity: 0;
  transform: translateX(-105%);
}
.vida-brillo .vida-brillable.vida-brilla::after {
  animation: vida-brillo 1.15s cubic-bezier(0.45, 0, 0.25, 1) both;
}
/* En la ola cada tarjeta pasa un poco más rápido: se lee como un solo gesto. */
.vida-brillo .vida-brillable.vida-ola::after { animation-duration: 0.95s; }
@keyframes vida-brillo {
  0% { opacity: 0; transform: translateX(-105%); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(105%); }
}

/* ── 2. Corona del eclipse: respira, gira y destella ─────────────────────── */
/* Ronda 2 (Francisco: «descuadrado, corrido a la derecha; poca vida»): la
   corona usa exactamente la misma caja que el arte del eclipse en cada ancho
   del panel (incluida la regla de ≥900 px que antes le faltaba), y suma dos
   capas de rayos que giran en sentidos opuestos y un destello periódico. */
.vida-corona { display: none; }
.vida-eclipse .vida-corona {
  display: block;
  position: absolute;
  top: 50%;
  left: 72%;
  z-index: 1;
  width: 58%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.vida-eclipse .vida-corona-sol { width: 34%; }
@container evento-panel (min-width: 520px) {
  .vida-eclipse .vida-corona { top: 58%; left: 62%; width: 76%; }
  .vida-eclipse .vida-corona-sol { top: 56%; left: 52%; width: 52%; }
}
@container evento-panel (min-width: 900px) {
  .vida-eclipse .vida-corona:not(.vida-corona-sol) { left: 58%; width: 70%; }
}
/* Las tres capas comparten centro: el anillo (la corona misma) y dos
   pseudo-elementos con rayos finos, recortados a una banda justo fuera del
   disco. */
.vida-eclipse .vida-corona,
.vida-eclipse .vida-corona::before,
.vida-eclipse .vida-corona::after {
  border-radius: 50%;
}
.vida-eclipse .vida-corona {
  background: radial-gradient(
    circle closest-side,
    transparent 0 55%,
    rgb(255 214 140 / 0.7) 60.5%,
    rgb(255 150 60 / 0.5) 65%,
    rgb(255 110 30 / 0.18) 76%,
    transparent 90%
  );
  opacity: 0.35;
}
.vida-eclipse .vida-corona::before,
.vida-eclipse .vida-corona::after {
  content: "";
  position: absolute;
  inset: -6%;
  -webkit-mask: radial-gradient(circle closest-side, transparent 54%, #000 60%, rgb(0 0 0 / 0.5) 74%, transparent 96%);
  mask: radial-gradient(circle closest-side, transparent 54%, #000 60%, rgb(0 0 0 / 0.5) 74%, transparent 96%);
}
.vida-eclipse .vida-corona::before {
  background:
    radial-gradient(
      circle closest-side,
      transparent 0 52%,
      rgb(255 214 140 / 0.7) 57%,
      rgb(255 150 60 / 0.5) 61%,
      rgb(255 110 30 / 0.18) 72%,
      transparent 86%
    ),
    repeating-conic-gradient(
      from 0deg,
      rgb(255 205 130 / 0.55) 0deg 2.5deg,
      transparent 2.5deg 11deg,
      rgb(255 160 70 / 0.35) 11deg 13deg,
      transparent 13deg 23deg
    );
}
.vida-eclipse .vida-corona::after {
  background: repeating-conic-gradient(
    from 7deg,
    rgb(255 235 190 / 0.4) 0deg 1.5deg,
    transparent 1.5deg 17deg,
    rgb(255 140 50 / 0.3) 17deg 20deg,
    transparent 20deg 31deg
  );
  opacity: 0.8;
}
/* Lumen r2 P3: en celular, rayos más cortos y suaves; respira sin destello. */
@container evento-panel (max-width: 519px) {
  .vida-eclipse .vida-corona::before,
  .vida-eclipse .vida-corona::after {
    inset: -2%;
    opacity: 0.55;
    -webkit-mask: radial-gradient(circle closest-side, transparent 56%, #000 61%, rgb(0 0 0 / 0.35) 70%, transparent 84%);
    mask: radial-gradient(circle closest-side, transparent 56%, #000 61%, rgb(0 0 0 / 0.35) 70%, transparent 84%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @container evento-panel (max-width: 519px) {
    .vida-eclipse .vida-corona::before { animation-name: vida-gira, vida-corona-suave; }
    .vida-eclipse .vida-corona::after { animation-name: vida-gira, vida-corona-suave; }
  }
}
@keyframes vida-corona-suave {
  0%, 100% { scale: 0.96; opacity: 0.5; }
  50% { scale: 1.06; opacity: 0.85; }
}
.vida-eclipse .vida-corona-sol::before,
.vida-eclipse .vida-corona-sol::after { display: none; }
/* Ronda 3 · CPU: la corona respiraba (escala y opacidad) con los rayos girando
   adentro; esa combinación obliga a Chrome a recalcular en el hilo principal
   cada cuadro (~8 % en escritorio). Ahora la corona de afuera queda quieta y
   cada capa de rayos gira y respira por su cuenta (propiedades `rotate` y
   `scale` separadas): el compositor lo hace solo (0,4 %), igual a la vista. */
@media (prefers-reduced-motion: no-preference) {
  .vida-eclipse .vida-corona::before {
    animation: vida-gira 80s linear infinite, vida-corona 6.4s ease-in-out infinite;
  }
  .vida-eclipse .vida-corona::after {
    animation: vida-gira 56s linear infinite reverse, vida-corona 6.4s ease-in-out infinite;
  }
  /* El arte del sol no tiene rayos: ahí respira la corona misma. */
  .vida-eclipse .vida-corona-sol { animation: vida-corona 6.4s ease-in-out infinite; }
}
/* Respira (crece y se recoge) y una vez por ciclo destella. */
@keyframes vida-corona {
  0% { scale: 0.95; opacity: 0.45; }
  42% { scale: 1.07; opacity: 0.85; }
  50% { scale: 1.1; opacity: 0.95; }
  58% { scale: 1.07; opacity: 0.82; }
  100% { scale: 0.95; opacity: 0.45; }
}
@keyframes vida-gira { to { rotate: 360deg; } }

/* ── 3. Noticias: control, foco (A) y carrusel (B) ───────────────────────── */
[data-vida-lead],
[data-vida-card] {
  position: relative;
}
/* Borde de color que marca la misma noticia arriba y abajo (A). */
.vida-noticias-foco :is([data-vida-lead], [data-vida-card])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 4px solid var(--c, var(--site));
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.vida-noticias-foco [data-vida-lead]::after,
.vida-noticias-foco [data-vida-card].vida-foco::after {
  opacity: 1;
}
/* Alto fijo de la noticia grande: cambiar de noticia no mueve la página. */
@media (min-width: 768px) {
  .news-lead[data-vida-lead] { height: 330px; }
  .news-lead[data-vida-lead] img { min-height: 0; max-height: none; height: 100%; }
  .news-lead[data-vida-lead] .news-lead-body { min-height: 0; overflow: hidden; }
  [data-vida-lead] .news-lead-body strong,
  [data-vida-lead] .hb-lead-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-lead[data-vida-lead] .news-summary { -webkit-line-clamp: 3; }
}
[data-vida-card] strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* «Mostrando arriba»: la noticia marcada se reconoce sin depender del color. */
.vida-arriba {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c, var(--site));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.25);
}
@media (max-width: 767px) {
  .news-card .vida-arriba { top: 10px; left: 4px; }
}
/* Cambio de contenido: la foto y el texto se funden. */
:is([data-vida-lead], [data-vida-card]) :is(img, time, strong, .news-summary) {
  transition: opacity 0.42s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vida-sale :is(img, time, strong, .news-summary),
.vida-oculto :is(img, time, strong, .news-summary) {
  opacity: 0;
}
.vida-oculto img { transition: none; }
.vida-sale img { transform: scale(1.03); }
/* Clon de la foto que viaja en el carrusel (B). */
.vida-clon {
  position: absolute;
  z-index: 40;
  margin: 0;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 10px 24px -14px rgb(10 30 40 / 0.4);
}

/* Ronda 3 · Control dentro de la noticia grande (antes era una fila aparte que
   empujaba todo hacia abajo y descuadraba «Melinka, hoy»). La caja ocupa el
   lugar de la noticia; el control flota sobre la foto, arriba a la izquierda. */
.vida-lead-box {
  position: relative;
  min-width: 0;
}
.hb-top > .vida-lead-box { grid-column: span 8; display: grid; }
.hb-top-full > .vida-lead-box { grid-column: 1 / -1; }
.vida-lead-box > .hb-lead { grid-column: auto; }
@media (max-width: 900px) {
  .hb-top > .vida-lead-box { grid-column: 1 / -1; }
}
.vida-control {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 41; /* sobre las fotos que viajan */
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px 6px 2px 2px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 4px 14px -6px rgb(10 30 40 / 0.35);
  color: var(--ink, #13262b);
}
@supports (backdrop-filter: blur(6px)) {
  .vida-control { background: rgb(255 255 255 / 0.78); backdrop-filter: blur(6px); }
}
.vida-control[hidden] { display: none; }
.vida-pausa {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.vida-pausa:hover { background: rgb(0 0 0 / 0.06); }
.vida-pausa:focus-visible,
.vida-puntos button:focus-visible {
  outline: 3px solid var(--link, #145c72);
  outline-offset: 1px;
}
/* Ícono pausa (dos barras) o reanudar (triángulo), dibujado con CSS. */
.vida-pausa-icono {
  width: 10px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 3.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 6.5px 0 / 3.5px 100% no-repeat;
}
.vida-pausa[aria-pressed="true"] .vida-pausa-icono {
  background: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}
.vida-puntos {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vida-puntos button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.vida-punto-barra {
  position: relative;
  display: block;
  width: 22px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink, #13262b) 20%, transparent);
}
.vida-punto-barra::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--link, #145c72);
  transform: scaleX(0);
  transform-origin: left;
}
.vida-puntos [aria-current="true"] .vida-punto-barra::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: no-preference) {
  .vida-puntos [aria-current="true"] .vida-punto-barra::after {
    animation: vida-progreso var(--vida-ms, 8s) linear both;
  }
  .vida-detenido .vida-puntos [aria-current="true"] .vida-punto-barra::after {
    animation-play-state: paused;
  }
}
@keyframes vida-progreso {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 767px) {
  .vida-control { top: 8px; left: 8px; }
}

/* ── 5. Fondo: manto (ronda 2) o bandera (ronda 3) ───────────────────────── */
/* Mismo marcado para los dos: dos sistemas (.vida-manto-1 y -2), cada uno con
   sombra (color del sitio) y luz (blanco) recortadas por vida-manto.svg, que
   se repite sin costura. Solo se anima transform/translate: lo mueve el
   compositor sin repintar la página. Cada sitio elige en su línea `Vida:`:
   sin nada, el manto de la ronda 2; con «fondo bandera», la bandera. */
.vida-agua {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.vida-manto {
  position: absolute;
  will-change: transform;
}
.vida-manto i {
  position: absolute;
  inset: 0;
  -webkit-mask: url(vida-manto.svg) 0 0 / var(--w) var(--h) repeat;
  mask: url(vida-manto.svg) 0 0 / var(--w) var(--h) repeat;
}
.vida-manto-sombra {
  background: color-mix(in srgb, var(--link, #145c72) 60%, var(--ink, #13262b));
}
.vida-manto-luz { background: #fff; }
.vida-manto-1 { --w: 1400px; --h: 1200px; }
.vida-manto-2 { --w: 1960px; --h: 1680px; }
.vida-manto-2 .vida-manto-luz { opacity: 0.32; }
/* Celular y tablet: un solo sistema (el segundo, grande, se apaga). */
@media (max-width: 1180px) {
  .vida-manto-2 { display: none; }
}
/* En celular el fondo queda quieto (se ve, sin costo): Lumen r2 P2 y r3 P5. */
@media (max-width: 767px) {
  .vida-agua :is(.vida-manto, .vida-manto i) { animation: none !important; }
}

/* Manto · ronda 2 (Francisco: «no veo la ola; quiero un manto como una tela
   que ondule y que oscurezca y aclare en degradé»). Los pliegues viajan a lo
   largo de la tela y suben y bajan como oleaje; un segundo sistema más grande
   cruza en otro ángulo y más lento: al cruzarse parece tela, no rayas. */
.vida-fondo-manto .vida-manto {
  top: -45%;
  bottom: -45%;
  left: -35%;
  width: calc(170% + var(--w));
}
.vida-fondo-manto .vida-manto-1 { transform: rotate(-9deg); }
.vida-fondo-manto .vida-manto-2 { transform: rotate(6deg); }
.vida-fondo-manto .vida-manto-sombra { opacity: 0.14; }
.vida-fondo-manto .vida-manto-luz {
  opacity: 0.7;
  /* Lumen r2 P1: la luz va pegada a la sombra (cresta y valle del mismo pliegue). */
  -webkit-mask-position: 0 calc(var(--h) * -0.055);
  mask-position: 0 calc(var(--h) * -0.055);
}
.vida-fondo-manto .vida-manto-2 .vida-manto-luz { opacity: 0.32; }

/* Bandera · ronda 3 (Francisco eligió para Palena, 14-11, a +50 % de los
   prototipos): pliegues que corren en una dirección y la tela que se curva
   apenas (±1°) con el viento. Lumen r3: la velocidad acelera solo el viaje;
   el vaivén y el flameo conservan su cadencia. */
.vida-fondo-tela .vida-manto {
  top: -30%;
  bottom: -30%;
  left: -20%;
  width: calc(140% + var(--w));
}
.vida-fondo-tela .vida-manto-1 { transform: rotate(-9deg); }
.vida-fondo-tela .vida-manto-2 { transform: rotate(6deg); }
.vida-fondo-tela .vida-manto-1 i { transform-origin: 0 50%; }
.vida-fondo-tela .vida-manto-1 .vida-manto-sombra { opacity: 0.16; }
.vida-fondo-tela .vida-manto-1 .vida-manto-luz {
  opacity: 0.75;
  -webkit-mask-position: 0 -66px;
  mask-position: 0 -66px;
}

/* Oleaje · Guaitecas (rondas 3 y 4; Francisco: las cáusticas «parecen
   piscina, no océano»; quiere olas, más calmas y azules). El mar visto en perspectiva:
   el plano se inclina (rotateX) bajo un horizonte que queda sobre la
   pantalla, así las crestas se juntan hacia arriba como en mar abierto, y
   avanzan hacia quien mira. Espuma cortada en tramos (no cintas), un valle
   oscuro detrás de cada cresta, un leve vaivén de marejada y destellos de sol
   que titilan. Todo es transform/opacity (compositor). */
.vida-fondo-olas {
  /* «Mar calmo» (variante B, elegida por Francisco el 19-11): velocidad
     original del oleaje, espuma suave y agua azul de mar. */
  --olas-vel: 24s;
  --olas-vaiven: 9s;
  --olas-mar: color-mix(in srgb, var(--link, #145c72) 20%, #1170b3);
  --olas-tinte: 22%;
  --olas-sombra: 0.34;
  --olas-espuma: #e9f4fb;
  --olas-cresta: 0.55;
  --olas-destellos: 0.55;
}
.vida-fondo-olas .vida-agua {
  --mar: var(--olas-mar);
  perspective: 700px;
  perspective-origin: 50% -20vh;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--mar) var(--olas-tinte), transparent));
}
.vida-fondo-olas .vida-manto {
  --w: 1600px;
  --h: 640px;
  top: auto;
  bottom: -2px;
  left: -100%;
  width: 300%;
  height: 2400px;
  transform-origin: 50% 100%;
  transform: rotateX(58deg);
  /* El horizonte se esfuma: arriba casi no se ve, abajo el mar entero. */
  -webkit-mask: linear-gradient(0deg, #000 30%, transparent 62%);
  mask: linear-gradient(0deg, #000 30%, transparent 62%);
}
.vida-fondo-olas .vida-manto-2 { opacity: var(--olas-destellos); }
.vida-fondo-olas .vida-manto-sombra {
  background: var(--mar);
  opacity: var(--olas-sombra);
  -webkit-mask: url(vida-olas-valle.svg) 0 0 / var(--w) var(--h) repeat;
  mask: url(vida-olas-valle.svg) 0 0 / var(--w) var(--h) repeat;
}
.vida-fondo-olas .vida-manto-1 .vida-manto-luz {
  background: var(--olas-espuma);
  opacity: var(--olas-cresta);
  -webkit-mask: url(vida-olas-cresta.svg) 0 0 / var(--w) var(--h) repeat;
  mask: url(vida-olas-cresta.svg) 0 0 / var(--w) var(--h) repeat;
}
.vida-fondo-olas .vida-manto-2 .vida-manto-luz {
  opacity: 0.9;
  -webkit-mask: url(vida-olas-destellos.svg) 0 0 / var(--w) var(--h) repeat;
  mask: url(vida-olas-destellos.svg) 0 0 / var(--w) var(--h) repeat;
}
@media (prefers-reduced-motion: no-preference) {
  /* Una baldosa (640 px del plano, ocho crestas) cada --olas-vel. */
  .vida-fondo-olas .vida-manto { animation: vida-olas var(--olas-vel) linear infinite, vida-marejada var(--olas-vaiven) ease-in-out infinite alternate; }
  .vida-fondo-olas .vida-manto-2 .vida-manto-luz { animation: vida-titila 2.8s ease-in-out infinite alternate; }
}
@keyframes vida-olas {
  from { transform: rotateX(58deg) translateY(0); }
  to { transform: rotateX(58deg) translateY(640px); }
}
@keyframes vida-marejada {
  from { translate: 0 -8px; }
  to { translate: 0 8px; }
}
@keyframes vida-titila {
  0% { opacity: 0.15; }
  55% { opacity: 0.4; }
  100% { opacity: 0.95; }
}

@media (prefers-reduced-motion: no-preference) {
  .vida-fondo-manto .vida-manto-1 { animation: vida-manto-1 52s linear infinite, vida-oleaje 7s ease-in-out infinite alternate; }
  .vida-fondo-manto .vida-manto-2 { animation: vida-manto-2 90s linear infinite, vida-oleaje 11s ease-in-out infinite alternate-reverse; }
  /* Bandera: 30 s → 20 s y 60 s → 40 s (+50 %). */
  .vida-fondo-tela .vida-manto-1 { animation: vida-manto-1 20s linear infinite; }
  .vida-fondo-tela .vida-manto-1 i { animation: vida-flamea 4.6s ease-in-out infinite alternate; }
  .vida-fondo-tela .vida-manto-2 { animation: vida-manto-2 40s linear infinite, vida-vaiven 7s ease-in-out infinite alternate; }
}
@keyframes vida-manto-1 {
  from { transform: rotate(-9deg) translateX(0); }
  to { transform: rotate(-9deg) translateX(-1400px); }
}
@keyframes vida-manto-2 {
  from { transform: rotate(6deg) translateX(-1960px); }
  to { transform: rotate(6deg) translateX(0); }
}
@keyframes vida-oleaje {
  from { translate: 0 -30px; }
  to { translate: 0 30px; }
}
@keyframes vida-vaiven {
  from { translate: 0 -22px; }
  to { translate: 0 22px; }
}
/* Lumen r3 P3: curva contenida y poco estiramiento. */
@keyframes vida-flamea {
  from { transform: skewY(-1deg) scaleY(0.99); }
  to { transform: skewY(1deg) scaleY(1.015); }
}

/* ── 6. Más abajo y en las páginas internas ──────────────────────────────── */
/* Hilo de luz que recorre la franja de colores (arriba y en el pie). */
.vida :is(.civic-bar) {
  position: relative;
  overflow: hidden;
}
.vida .civic-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.85), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .vida .civic-bar::after { animation: vida-hilo 9s cubic-bezier(0.5, 0, 0.3, 1) infinite 2s; }
  .vida .site-footer .civic-bar::after { animation-delay: 5s; }
}
@keyframes vida-hilo {
  0% { transform: translateX(-120%); }
  32%, 100% { transform: translateX(560%); }
}
/* La foto del destacado grande se acerca muy despacio (como respirando). */
.vida .capsule-big img {
  transform-origin: 50% 40%;
}
@media (prefers-reduced-motion: no-preference) {
  .vida .capsule-big img { animation: vida-acerca 24s ease-in-out infinite alternate; }
}
@keyframes vida-acerca {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.vida .capsule-big { overflow: hidden; }
/* Barra de lectura en noticias y páginas (nativa, por scroll). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body.vida:is([data-view="news"], [data-view="page"])::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      z-index: 60;
      height: 4px;
      background: var(--link, #145c72);
      transform-origin: 0 50%;
      pointer-events: none;
      animation: vida-lectura linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes vida-lectura {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── Pausa general ───────────────────────────────────────────────────────── */
/* (Un pseudo-elemento no puede ir dentro de :is(): van aparte.) */
:is(html.vida-quieto, html.vida-oculta) :is(.vida-manto, .vida-manto i, .vida-corona, .clima-arte *, .capsule-big img),
:is(html.vida-quieto, html.vida-oculta) .vida-corona::before,
:is(html.vida-quieto, html.vida-oculta) .vida-corona::after,
:is(html.vida-quieto, html.vida-oculta) .vida-brilla::after,
:is(html.vida-quieto, html.vida-oculta) .civic-bar::after,
.vida-fuera :is(.vida-corona, .clima-arte *, .capsule-big img),
.vida-fuera .vida-corona::before,
.vida-fuera .vida-corona::after,
.vida-fuera.civic-bar::after,
.vida-fuera .civic-bar::after,
.vida-agua.vida-fuera :is(.vida-manto, .vida-manto i) {
  animation-play-state: paused !important;
}
.vida-mov {
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.vida-mov:focus-visible { outline: 3px solid var(--link, #145c72); outline-offset: 2px; }
.vida-mov[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .vida-mov { display: none; }
  :is([data-vida-lead], [data-vida-card]) :is(img, time, strong, .news-summary) { transition: none; }
}

/* Celular: las noticias de abajo son filas sin borde; el marco se redondea. */
@media (max-width: 767px) {
  .vida-noticias-foco .news-card[data-vida-card]::after {
    inset: 2px -8px;
    border-width: 3px;
    border-radius: 14px;
  }
}
/* Celular: alto estable al cambiar de noticia (sin saltos de diseño). */
@media (max-width: 767px) {
  [data-vida-lead] .news-lead-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-lead[data-vida-lead] .news-lead-body { min-height: 118px; box-sizing: border-box; }
  .news-card[data-vida-card] .news-card-body { min-height: 82px; }
}
