/* ==========================================================================
   TOKENS — única fuente de verdad del sistema visual.
   Cambiá colores, radios o tipografías acá y se actualiza todo el sitio.
   ========================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  /* Marca: el celeste manda; fucsia y amarillo son acentos */
  --teal: #1AB5C7;          /* identidad: superficies, botones, detalles estructurales */
  --pink: #E81F76;          /* acento: indicadores, íconos, detalles */
  --yellow: #FFC83D;        /* acento puntual: "hoy", "nuevo", resaltados */

  /* Tonos derivados (accesibles). Sobre --teal el texto va en --teal-deep (5,6:1). */
  --teal-hover: #3FC4D4;    /* hover de superficies celestes */
  --teal-deep: #06323A;     /* texto sobre celeste, pie y barra inferior */
  --teal-text: #08707D;     /* texto/bordes celestes sobre fondo claro (5,3:1) */
  --pink-fill: #D6196A;     /* fucsia con texto blanco (5:1) */
  --pink-fill-hover: #B9135A;
  --pink-text: #C4135F;     /* texto fucsia sobre fondo claro */

  /* Tintes */
  --teal-50: #E7F7F9;
  --teal-100: #C6EBF0;
  --pink-50: #FDE9F2;
  --pink-100: #F1C9DA;
  --yellow-50: #FFF5D6;

  /* Neutros */
  --bg: #F8F2F2;
  --surface: #FFFFFF;
  --rule: #D8CECE;          /* líneas finas de separación */
  --ink: #2E3236;
  --ink-2: #5A6066;
  --ink-3: #666D73;         /* placeholders */
  --focus: #0B4F5A;
  --ink-rgb: 46, 50, 54;    /* para sombras tintadas */

  /* Tipografía */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.0625rem;
  --fs-xl: clamp(1.125rem, 1rem + .55vw, 1.35rem);
  --fs-2xl: clamp(1.35rem, 1.05rem + 1.2vw, 2.05rem);
  --fs-hero: clamp(2rem, 1.25rem + 3.8vw, 3.6rem);

  /* Espaciado (base 4) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.35rem;
  --sp-6: 1.8rem; --sp-7: 2.7rem; --sp-8: 4rem;
  --gutter: clamp(1rem, 4.5vw, 2rem);

  /* Formas: radios variados; la esquina "firma" (inferior izquierda más cerrada) da carácter */
  --r-xs: 10px; --r-sm: 14px; --r-md: 18px; --r-lg: 24px; --r-xl: 34px; --r-pill: 999px;
  --r-card: 28px 28px 28px 8px;
  --r-card-b: 8px 28px 28px 28px;
  --r-img: 26px 26px 26px 6px;

  /* Profundidad: sombras suaves teñidas con el tono de la tinta */
  --sh-1: 0 1px 2px rgba(var(--ink-rgb),.06), 0 8px 18px -10px rgba(var(--ink-rgb),.22);
  --sh-2: 0 2px 4px rgba(var(--ink-rgb),.06), 0 18px 34px -16px rgba(var(--ink-rgb),.3);
  --sh-teal: 0 18px 34px -18px color-mix(in srgb, var(--teal) 70%, black);
  --sh-pink: 0 18px 34px -18px color-mix(in srgb, var(--pink) 80%, black);

  /* Texturas: solo CSS, sin imágenes */
  --dots-light: radial-gradient(rgba(255,255,255,.28) 1.4px, transparent 1.6px) 0 0 / 18px 18px;
  --dots-teal: radial-gradient(color-mix(in srgb, var(--teal) 28%, transparent) 1.4px, transparent 1.6px) 0 0 / 18px 18px;
  --lines-light: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 14px);
  --lines-ink: repeating-linear-gradient(135deg, rgba(var(--ink-rgb),.05) 0 1.5px, transparent 1.5px 12px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s;
  --t-med: .25s;

  /* Layout */
  --container: 1120px;
  --header-h: 68px;
  --tabbar-h: 62px;
}
@media (min-width: 960px) { :root { --header-h: 68px; } }
@media (prefers-reduced-motion: reduce) { :root { --t-fast: .01ms; --t-med: .01ms; } }

/* Reset + base tipográfica y accesibilidad */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; width: 1.25rem; height: 1.25rem; }
a { color: var(--teal-text); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.005em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--sp-4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: var(--sp-4); }

.lead { font-size: var(--fs-lg); margin-bottom: var(--sp-5); }
.muted { color: var(--ink-2); }
.fine { margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--ink-2); }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.link:hover { color: var(--ink); }
body.menu-open { overflow: hidden; }

/* Fondo general con textura casi imperceptible */
body { background-color: var(--bg); background-image: radial-gradient(rgba(var(--ink-rgb),.045) 1px, transparent 1.2px); background-size: 22px 22px; }
::selection { background: var(--yellow); color: var(--ink); }
h1 { font-weight: 800; }

/* Aparición al hacer scroll (solo si hay JS; boot.js la retira si algo falla) */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }
.hero :focus-visible, .band :focus-visible { outline-color: var(--teal-deep); }

/* Estructura: contenedor, cabecera, menú, barra inferior móvil, pie, composición de páginas */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 44rem; }
.stack > * + * { margin-top: var(--sp-7); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); padding-top: env(safe-area-inset-top); box-shadow: 0 1px 0 rgba(var(--ink-rgb),.06); transition: box-shadow var(--t-med); }
.site-header.is-scrolled { box-shadow: 0 12px 28px -16px rgba(var(--ink-rgb),.35); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.brand { display: inline-flex; flex: none; min-height: 44px; align-items: center; }
.brand img { height: 44px; width: auto; transition: transform var(--t-med) var(--ease); }
.brand:hover img { transform: scale(1.04) rotate(-1.5deg); }
.menu-btn { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 14px; margin-right: calc(var(--sp-3) * -1); border-radius: var(--r-pill); background: var(--teal-50); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); transition: background var(--t-fast); }
.menu-btn:hover { background: var(--teal-100); }
.menu-btn svg { width: 20px; height: 20px; }

/* Menú: panel a pantalla completa en celular, barra horizontal en escritorio */
.nav { display: none; }
.nav.is-open { display: flex; flex-direction: column; gap: var(--sp-2); position: fixed; z-index: 39; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0; padding: var(--sp-5) var(--gutter) calc(var(--sp-6) + var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); background: var(--bg); background-image: var(--dots-teal); overflow-y: auto; }
.nav a { display: flex; align-items: center; min-height: 58px; padding: 0 var(--sp-5); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); font-size: var(--fs-xl); font-weight: 700; }
.nav a[aria-current="page"] { background: var(--teal); color: var(--teal-deep); }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav, .nav.is-open { display: flex; flex-direction: row; position: static; inset: auto; padding: 0; background: none; overflow: visible; gap: var(--sp-1); }
  .nav a { min-height: 44px; padding: 0 1.05rem; border-radius: var(--r-pill); background: transparent; box-shadow: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
  .nav a:hover { background: var(--teal-50); color: var(--teal-text); }
  .nav a[aria-current="page"] { background: var(--teal); color: var(--teal-deep); }
}

/* ---------- Barra inferior flotante (celular / tablet) ---------- */
.tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--tabbar-h); padding: 6px; background: var(--teal-deep); border-radius: var(--r-xl); box-shadow: 0 18px 36px -12px rgba(var(--ink-rgb),.6); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; max-width: 520px; margin-inline: auto; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border-radius: var(--r-lg); font-size: .72rem; white-space: nowrap; font-weight: 600; color: var(--teal-50); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.tabbar a:active { transform: scale(.96); }
.tabbar svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 359px) { .tabbar { left: 6px; right: 6px; padding: 4px 3px; gap: 0; } .tabbar a { font-size: .56rem; letter-spacing: -.02em; } .tabbar svg { width: 22px; height: 22px; } }
.tabbar a[aria-current="page"] { background: var(--teal); color: var(--teal-deep); font-weight: 800; }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; top: 5px; right: 24%; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
@media (min-width: 960px) { .tabbar { display: none; } }
@media (max-width: 959px) { .site-footer { padding-bottom: calc(var(--sp-6) + var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); } }

/* ---------- Pie en capas ---------- */
.site-footer { position: relative; margin-top: -44px; background: var(--teal-deep) var(--lines-light); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-block: calc(var(--sp-7) + 24px) var(--sp-6); box-shadow: 0 -18px 30px -24px rgba(var(--ink-rgb),.5); }
.site-footer::before { content: ""; position: absolute; left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); top: 0; width: 84px; height: 6px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--teal) 0 33%, var(--pink) 33% 66%, var(--yellow) 66%); }
.site-footer a { color: #fff; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__inner { display: grid; gap: var(--sp-6); }
.site-footer__id { display: grid; gap: var(--sp-4); align-content: start; }
.site-footer__id img { width: 120px; height: auto; }
.site-footer address { line-height: 1.7; }
.site-footer address a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.site-footer address svg { width: 16px; height: 16px; }
.site-footer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-5); }
.site-footer__links a, .site-footer__social a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-weight: 600; }
.site-footer__social { display: grid; align-content: start; }
@media (min-width: 960px) {
  .site-footer__inner { grid-template-columns: 1.1fr 1.3fr .8fr; gap: var(--sp-7); }
  .site-footer__links a, .site-footer__social a { min-height: 36px; }
}

/* ---------- Banda de título de las páginas interiores ---------- */
.phead { position: relative; overflow: hidden; background: var(--teal) var(--dots-light); color: var(--teal-deep); border-radius: 0 0 var(--r-xl) 12px; padding-block: var(--sp-3) var(--sp-6); }
.phead::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.1); pointer-events: none; }
.phead--pink { border-radius: 0 0 12px var(--r-xl); }
.phead--pink::after { border-color: color-mix(in srgb, var(--pink) 30%, transparent); right: auto; left: -70px; top: auto; bottom: -90px; }
.phead .container { position: relative; z-index: 1; }
.phead .back { color: var(--teal-deep); }
.page-head { display: grid; gap: var(--sp-3); justify-items: start; }
.page-head__sub { color: var(--teal-deep); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: var(--fs-sm); }
.page-head__sub strong { color: inherit; }
@media (min-width: 960px) { .phead { padding-block: var(--sp-4) var(--sp-7); } .phead::after { width: 340px; height: 340px; right: 4%; top: -120px; } }

/* ---------- Páginas interiores ---------- */
.page { padding-block: var(--sp-6) calc(var(--sp-7) + 44px); }
.phead ~ .page .page-head { margin-bottom: 0; }
@media (min-width: 960px) { .page { padding-block: var(--sp-7) calc(var(--sp-8) + 44px); } }

.split { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-8); } }
@media (min-width: 960px) { .sticky { position: sticky; top: calc(var(--header-h) + var(--sp-5)); } }
.more { margin-top: var(--sp-4); }
.cta { margin-top: var(--sp-7); }

#main { min-height: 50vh; }

/* ==========================================================================
   COMPONENTES — formas con radios variados, sombras suaves y detalles gráficos.
   ========================================================================== */

/* Título de página: grande, sobre la banda de color */
.badge-title { display: block; max-width: 100%; margin: 0; padding: 0; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; color: var(--teal-deep); text-wrap: balance; }
.badge-title::after { content: ""; display: block; width: 64px; height: 6px; margin-top: var(--sp-3); border-radius: var(--r-pill); background: var(--yellow); }
.badge-title--pink::after { background: var(--pink); }
@media (min-width: 960px) { .badge-title { font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3rem); } }

/* Título de sección con marca de color */
.section-title { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.005em; margin-bottom: var(--sp-5); }
.section-title::before { content: ""; flex: none; width: 10px; height: 1.3em; border-radius: var(--r-pill) var(--r-pill) var(--r-pill) 3px; background: linear-gradient(var(--teal) 0 60%, var(--yellow) 60%); }
.section-title--pink::before { background: linear-gradient(var(--pink) 0 60%, var(--yellow) 60%); }

/* Volver */
.back { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; margin-bottom: var(--sp-2); color: var(--teal-text); font-weight: 700; font-size: var(--fs-sm); }
.back svg { width: 24px; height: 24px; transition: transform var(--t-med) var(--ease); }
.back:hover svg { transform: translateX(-4px); }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 47px; padding: .65rem 1.4rem; border-radius: var(--r-pill); background: var(--teal); color: var(--teal-deep); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .05em; text-transform: uppercase; text-align: center; line-height: 1.25; box-shadow: var(--sh-teal); transition: background var(--t-fast), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.btn:hover { background: var(--teal-hover); transform: translateY(-2px); }
.btn:active { background: var(--teal-hover); transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; transition: transform var(--t-med) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--pink { background: var(--pink-fill); color: #fff; box-shadow: var(--sh-pink); } .btn--pink:hover, .btn--pink:active { background: var(--pink-fill-hover); }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: var(--surface); color: var(--teal-text); box-shadow: inset 0 0 0 2px var(--teal-text); }
.btn--ghost:hover { background: var(--teal-50); }
.btn--sm { min-height: 44px; padding: .5rem 1.1rem; }
.btn-row { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 560px) { .btn-row { flex-direction: row; flex-wrap: wrap; } .btn-row .btn { min-width: 11rem; } }

/* Acceso destacado (tile): cada tono con su propia forma */
.tile { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 88px; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.tile::after { content: ""; position: absolute; right: -28px; bottom: -34px; width: 110px; height: 110px; border-radius: 50%; border: 18px solid currentColor; opacity: .06; pointer-events: none; }
.tile__text { position: relative; display: grid; gap: 2px; }
.tile__text strong { font-size: var(--fs-lg); font-weight: 800; }
.tile__text > span { font-size: var(--fs-sm); font-weight: 500; opacity: .92; }
.tile__go { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; transition: transform var(--t-med) var(--ease); }
.tile__go svg { width: 20px; height: 20px; }
.tile:hover .tile__go { transform: translateX(4px) scale(1.06); }
.tile--teal { background: var(--teal-deep); color: #fff; border-radius: var(--r-card-b); }
.tile--teal .tile__go { background: var(--teal); color: var(--teal-deep); }
.tile--yellow { background: var(--yellow-50); color: var(--ink); border-radius: 28px 8px 28px 28px; }
.tile--white .tile__text strong { color: var(--teal-text); }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); } }

/* Día de acto */
.days { display: grid; gap: var(--sp-3); }
.daycard { display: flex; align-items: center; gap: var(--sp-4); min-height: 76px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md) var(--r-md) var(--r-md) 8px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.daycard__date { flex: none; display: grid; place-items: center; align-content: center; width: 58px; height: 58px; border-radius: 18px 18px 18px 6px; background: var(--teal-50); color: var(--teal-text); line-height: 1; transition: background var(--t-fast); }
.daycard__date b { font-size: 1.5rem; font-weight: 800; }
.daycard__date i { font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.daycard__date--day b { font-size: 1rem; text-transform: uppercase; }
.daycard__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.daycard__text strong { font-size: var(--fs-lg); font-weight: 800; }
.daycard__text > span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.daycard__text em { font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: var(--pink-text); }
.daycard__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink-50); color: var(--pink-text); transition: transform var(--t-med) var(--ease), background var(--t-fast), color var(--t-fast); }
.daycard__go svg { width: 18px; height: 18px; }
.daycard:hover .daycard__go { background: var(--pink-fill); color: #fff; transform: translateX(4px); }
.daycard.is-today { background: var(--yellow-50); }
.daycard.is-today .daycard__date { background: var(--yellow); color: var(--ink); }
@media (hover: hover) { .daycard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); } .daycard:hover .daycard__date { background: var(--teal-100); } }
.today { display: inline-block; margin-left: var(--sp-2); padding: 2px 10px; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle; text-transform: uppercase; }

/* Lista de verificación */
.checks { display: grid; gap: var(--sp-3); }
.check { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); font-weight: 600; }
.check:nth-child(even) { border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; }
.check svg { flex: none; box-sizing: content-box; width: 16px; height: 16px; margin-top: 0; padding: 5px; border-radius: 50%; background: var(--teal-50); color: var(--teal-text); stroke-width: 3; }

/* Bloque lateral */
.aside { position: relative; overflow: hidden; padding: var(--sp-6) var(--sp-5); background: var(--teal) var(--dots-light); color: var(--teal-deep); display: grid; gap: var(--sp-4); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 10px; box-shadow: var(--sh-teal); }
.aside::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255,255,255,.1); pointer-events: none; }
.aside > * { position: relative; z-index: 1; }
.aside h2 { font-size: var(--fs-xl); }
.aside .btn--pink { background: #fff; color: var(--pink-text); box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); } .aside .btn--pink:hover { background: var(--yellow-50); }
.aside .check { background: rgba(255,255,255,.55); box-shadow: none; color: var(--ink); }
.aside .check svg { background: #fff; color: var(--teal-text); }

/* Cargos de un acto */
.cargos { display: grid; gap: var(--sp-3); }
.cargo { display: grid; gap: 2px; padding: var(--sp-4); border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; background: var(--surface); box-shadow: var(--sh-1); }
.cargo__school { color: var(--pink-text); font-weight: 800; font-size: var(--fs-lg); }
.cargo__role { text-transform: uppercase; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); }
.cargo__date { justify-self: start; margin-top: var(--sp-1); padding: 3px 12px; border-radius: var(--r-pill); background: var(--yellow-50); font-size: var(--fs-xs); font-weight: 700; }
@media (min-width: 640px) { .cargo { grid-template-columns: 9rem 1fr auto; align-items: baseline; gap: var(--sp-4); } .cargo__date { margin: 0; } }

/* Navegación entre días */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); transition: background var(--t-fast), transform var(--t-med) var(--ease); }
.chip:hover { background: var(--teal-50); color: var(--teal-text); transform: translateY(-2px); }
.chip[aria-current="page"] { background: var(--teal); color: var(--teal-deep); }

/* Avisos */
.callout { margin-bottom: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; background: var(--teal-50); font-weight: 600; }
.callout--note { background: var(--yellow-50); font-size: var(--fs-sm); }
.empty { padding: var(--sp-4) 0; color: var(--ink-2); }

/* Formularios */
.field { display: grid; gap: var(--sp-2); }
.field > label, .field > .label { font-weight: 700; color: var(--ink-2); font-size: var(--fs-sm); }
.input { width: 100%; min-height: 56px; padding: .8rem 1.2rem; border-radius: var(--r-md); border: 2px solid transparent; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--ink-2); color: var(--ink); font-weight: 600; transition: box-shadow var(--t-fast); }
.input::placeholder { color: var(--ink-3); font-weight: 500; }
.input:focus { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: var(--sh-1), inset 0 0 0 2px var(--ink); }

.search-form { display: grid; gap: var(--sp-3); }
.search-form .input { font-size: var(--fs-lg); letter-spacing: .02em; border-radius: var(--r-pill); padding-inline: 1.5rem; }
.search-form .input::placeholder { font-size: var(--fs-md); letter-spacing: 0; }
@media (min-width: 560px) { .search-form { grid-template-columns: 1fr auto; } }

/* Resultado de puntaje */
.results { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.result { position: relative; overflow: hidden; padding: var(--sp-5); border-radius: var(--r-card); background: #fff var(--dots-teal); color: var(--ink); box-shadow: var(--sh-2); animation: pop .5s var(--ease) both; }
.result::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(var(--teal) 0 50%, var(--pink) 50% 80%, var(--yellow) 80%); }
.result > * { padding-left: 8px; position: relative; }
.result__label { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: var(--fs-xs); color: var(--ink-2); }
.result__score { display: inline-block; margin-block: var(--sp-1); font-size: clamp(2.75rem, 2rem + 4vw, 4rem); font-weight: 800; line-height: 1.1; color: var(--teal-text); font-variant-numeric: tabular-nums; box-shadow: inset 0 -.16em 0 var(--yellow); }
.result__rank { font-size: var(--fs-md); color: var(--ink-2); } .result__rank strong { color: var(--ink); }
#puntaje-resultado .empty { margin-top: var(--sp-3); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Selector de localidad */
.select { position: relative; }
.select__btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: .8rem 1.2rem; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--ink-2); text-align: left; font-weight: 600; }
.select__btn[aria-expanded="true"] { box-shadow: var(--sh-1), inset 0 0 0 2px var(--ink); }
.select__btn svg { color: var(--teal-text); transition: transform var(--t-med) var(--ease); }
.select__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.select__value.is-placeholder { color: var(--ink-3); font-weight: 500; }
.select__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; padding: 6px; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-2), 0 0 0 1.5px var(--rule); }
.select__list[hidden] { display: none; }
.select__opt { display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-4); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; }
.select__opt:hover, .select__opt.is-active { background: var(--teal-50); }
.select__opt[aria-selected="true"] { color: var(--teal-text); font-weight: 800; }

/* Centros de formación */
.cfl { display: grid; gap: var(--sp-3); }
.cfl__item { border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.cfl__btn { display: flex; align-items: flex-start; gap: var(--sp-3); width: 100%; min-height: 56px; padding: var(--sp-3) var(--sp-4); text-align: left; font-weight: 500; transition: background var(--t-fast); }
.cfl__btn svg { margin-top: 3px; color: var(--pink-text); }
.cfl__btn strong { font-weight: 800; }
.cfl__btn:hover, .cfl__btn[aria-pressed="true"] { background: var(--teal-50); }
.cfl__btn[aria-pressed="true"] { box-shadow: inset 5px 0 0 var(--pink); }
.cfl__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--sp-4) 0 calc(var(--sp-4) + 20px + var(--sp-3)); font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cfl__go svg { width: 16px; height: 16px; }
.map-frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-50); max-width: 100%; border-radius: var(--r-img); box-shadow: var(--sh-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.address { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); font-weight: 700; }
.address svg { color: var(--pink-text); }

/* Preguntas frecuentes */
.acc { display: grid; gap: var(--sp-3); }
.acc__item { border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); transition: box-shadow var(--t-med); }
.acc__item:nth-child(3n+2) { border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; }
.acc__item[open] { box-shadow: var(--sh-2); }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; padding: var(--sp-3) var(--sp-5); list-style: none; cursor: pointer; border-radius: inherit; }
.acc__btn::-webkit-details-marker { display: none; }
.acc__btn h2 { font-size: var(--fs-md); font-weight: 700; line-height: 1.35; }
.acc__btn svg { flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: 5px; border-radius: 50%; background: var(--pink-50); color: var(--pink-text); transition: transform var(--t-med) var(--ease); }
.acc__item[open] > .acc__btn svg { transform: rotate(180deg); }
.acc__btn:hover h2 { color: var(--teal-text); }
.acc__panel { padding: 0 var(--sp-5) var(--sp-5); max-width: 40rem; }
.acc__panel p.is-pending { color: var(--ink-2); font-style: italic; }
.acc__panel a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Novedades: plugin de página de Facebook (iframe) y tarjeta del canal de WhatsApp */
.feed-lead { max-width: 40rem; }
.feed { position: relative; overflow: hidden; padding: var(--sp-4); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 10px; background: var(--surface); box-shadow: var(--sh-2); }
.feed::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg, var(--teal) 0 40%, var(--pink) 40% 75%, var(--yellow) 75%); }
.feed__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) var(--sp-4); }
.feed__title { font-size: var(--fs-xl); }
.feed__title span { display: inline-block; margin-left: var(--sp-2); padding: 2px 12px; border-radius: var(--r-pill); background: var(--pink-50); color: var(--pink-text); font-size: var(--fs-sm); font-weight: 700; vertical-align: middle; }
.feed__frame { min-height: 320px; border-radius: var(--r-md); }
.feed__iframe { display: block; width: 100%; max-width: 500px; height: 700px; margin-inline: auto; border: 0; border-radius: var(--r-md); background: var(--teal-50); }
.wa-card { margin-bottom: var(--sp-5); padding: var(--sp-4); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 10px; background: var(--teal-50); display: grid; gap: var(--sp-3); justify-items: start; }
.wa-card__title { font-size: var(--fs-xl); }
@media (min-width: 960px) { .feed { padding: var(--sp-5); } }

/* Caja de novedades del inicio */
.newsbox { position: relative; overflow: hidden; align-self: start; display: grid; gap: var(--sp-4); padding: var(--sp-6) var(--sp-5); border-radius: var(--r-card-b); background: var(--teal-100) var(--dots-teal); color: var(--ink); box-shadow: var(--sh-1); }
.newsbox::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; border: 24px solid color-mix(in srgb, var(--pink) 14%, transparent); pointer-events: none; }
.newsbox > * { position: relative; z-index: 1; }
.newsbox__title { font-size: var(--fs-2xl); color: var(--teal-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover, .tile:hover, .daycard:hover, .chip:hover { transform: none; }
}

/* Enlaces sueltos (fuera de un párrafo): área táctil cómoda */
.more .link { display: inline-flex; align-items: center; min-height: 44px; }

/* Fecha del acto público (sobre fondo claro) */
.acto-date { display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); padding: .55rem 1.1rem; border-radius: var(--r-pill); background: var(--teal-50); box-shadow: inset 0 0 0 1.5px var(--teal-100); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .02em; text-transform: uppercase; }
.acto-date svg { color: var(--teal-text); }
.acto-date strong { color: var(--teal-deep); font-weight: 800; }

/* Ajustes propios de cada página */

/* Inicio */
.hero { position: relative; overflow: hidden; background: var(--teal) var(--dots-light); color: var(--teal-deep); border-radius: 0 0 clamp(36px, 7vw, 80px) 14px; padding-block: var(--sp-7) calc(var(--sp-7) + 8px); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--lines-light); -webkit-mask: linear-gradient(100deg, transparent 45%, #000); mask: linear-gradient(100deg, transparent 45%, #000); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(255,255,255,.22); pointer-events: none; }
.hero__in { position: relative; z-index: 1; display: grid; gap: var(--sp-6); align-items: center; }
.eyebrow { display: inline-block; margin-bottom: var(--sp-4); padding: 6px 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--teal-deep) 14%, transparent); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); font-weight: 700; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; margin-bottom: var(--sp-4); text-wrap: balance; }
.hl { padding-inline: .12em; margin-inline: -.12em; white-space: nowrap; background: linear-gradient(transparent 56%, var(--yellow) 56% 90%, transparent 90%); border-radius: 4px; }
.hero__lead { font-size: var(--fs-lg); max-width: 30rem; }
.hero__form { padding: var(--sp-4); border-radius: var(--r-card); background: rgba(255,255,255,.3); backdrop-filter: blur(2px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.hero .empty { color: var(--teal-deep); }
.hero .result { color: var(--ink); }
@media (min-width: 960px) { .hero { padding-block: var(--sp-8) calc(var(--sp-8) + 8px); } .hero__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-8); } .hero__form { padding: var(--sp-5); } }

.home { padding-block: var(--sp-7) 0; }
.home__cols { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .home__cols { grid-template-columns: 1.1fr .9fr; gap: var(--sp-8); } }

/* Banda de trámites: fondo propio, borde superior redondeado y detalle geométrico */
.band { position: relative; overflow: hidden; margin-top: var(--sp-7); padding-block: var(--sp-7) calc(var(--sp-7) + 44px); background: var(--teal) var(--lines-light); color: var(--teal-deep); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.band::before { content: ""; position: absolute; left: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(255,255,255,.1); pointer-events: none; }
.band .container { position: relative; }
.band__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
.band__rows { display: grid; gap: var(--sp-3); }
@media (min-width: 960px) { .band__rows { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

/* Cursos */
.courses { display: grid; gap: var(--sp-3); }
.courses li { position: relative; padding: var(--sp-4) var(--sp-5) var(--sp-4) calc(var(--sp-5) + 16px); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); font-weight: 600; }
.courses li::before { content: ""; position: absolute; left: var(--sp-4); top: 1.4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-50); }
.courses li:nth-child(3n+2) { border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; }
.courses li:nth-child(3n) { border-radius: 6px var(--r-md) var(--r-md) var(--r-md); }
@media (min-width: 720px) { .courses { grid-template-columns: 1fr 1fr; gap: var(--sp-4); } }

/* Pantallas muy angostas (320 px) */
@media (max-width: 360px) {
  .tile__text strong, .daycard__text strong { font-size: var(--fs-md); }
  .tabbar a { font-size: .6875rem; }
  .hero__form { padding: var(--sp-3); }
}

/* Páginas de texto (privacidad, accesibilidad) */
.legal h2 { margin-top: var(--sp-6); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: var(--sp-3); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: var(--sp-2); }
.site-footer__legal { grid-column: 1 / -1; display: grid; gap: var(--sp-2); font-size: var(--fs-sm, .875rem); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.legal h2[id] { scroll-margin-top: 6rem; }

/* ---- Contenido largo: puntaje, pasos, derechos, escuelas, Consejo ---- */
[hidden] { display: none !important; }
.page > section.measure, .page > .measure + .measure { margin-top: var(--sp-8); }
.stack--lg > * + * { margin-top: var(--sp-8); }
.rubros { display: grid; gap: var(--sp-4); }
.rubro, .derecho { padding: var(--sp-5); border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; background: var(--surface); box-shadow: var(--sh-1); }
.rubro h3, .derecho h3 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--sp-2); }
.rubro__nota { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.rubro ul, .notas, .acc__list { display: grid; gap: var(--sp-2); padding-left: 1.2em; }
.calc__nota { margin-top: var(--sp-4); font-weight: 600; }
.steps { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.steps li { display: grid; gap: 2px; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md) var(--r-md) var(--r-md) 6px; background: var(--surface); box-shadow: var(--sh-1); }
.steps strong { font-weight: 800; color: var(--pink-text); }
.notas { margin-top: var(--sp-5); }
.derechos { display: grid; gap: var(--sp-4); }
.derecho p + p { margin-top: var(--sp-2); }
.acc__art { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-2); }
.tabla { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.tabla div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--teal-50); }
.tabla dt { font-weight: 600; } .tabla dd { font-weight: 800; }
.acc__btn h3 { font-size: var(--fs-lg); font-weight: 700; flex: 1; }
.esc-filtros { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (min-width: 640px) { .esc-filtros { grid-template-columns: 2fr 1fr; } }
.esc-cuenta { margin-bottom: var(--sp-4); font-weight: 600; }
.esc-mas { margin-top: var(--sp-4); }
.consejo__p + .consejo__p { margin-top: var(--sp-2); }

/* Menú de escritorio con más secciones: sin cortes de línea y con menos aire entre enlaces */
@media (min-width: 960px) { .nav a { white-space: nowrap; padding: 0 .45rem; } }
@media (min-width: 1100px) { .nav a { padding: 0 .7rem; } }
@media (min-width: 1280px) { .nav a { padding: 0 .95rem; } }

/* ---- Instalar como app (Inicio) ---- */
.btn--yellow { background: var(--yellow); color: var(--teal-deep); } .btn--yellow:hover, .btn--yellow:active { background: #FFD66B; }
.install { margin-block: var(--sp-8) var(--sp-7); }
.install__card { position: relative; overflow: hidden; padding: var(--sp-6) var(--sp-5) var(--sp-5); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 12px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #F0407F 0%, transparent 55%), linear-gradient(160deg, var(--pink-fill) 0%, #A5104F 100%); box-shadow: 0 28px 50px -26px rgba(165,16,79,.8); }
.install__card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; border: 34px solid rgba(255,200,61,.22); pointer-events: none; }
.install__card > * { position: relative; z-index: 1; }
.install__top { display: grid; gap: var(--sp-5); justify-items: center; text-align: center; }
.install__phone { width: 150px; filter: drop-shadow(0 18px 22px rgba(60,0,25,.45)); }
.install__phone svg { display: block; width: 100%; height: auto; overflow: visible; }
.ph-body { fill: var(--teal-deep); } .ph-screen { fill: var(--teal-50); } .ph-dock { fill: var(--teal-100); }
.ph-i1 { fill: var(--yellow-50); } .ph-i2 { fill: var(--pink-100); } .ph-i3 { fill: var(--teal-100); }
.ph-celp { fill: var(--teal); } .ph-txt { fill: #fff; font: 800 11px var(--font); }
.ph-ring { fill: none; stroke: var(--yellow); stroke-width: 4; opacity: 0; }
.ph-star { fill: var(--yellow); opacity: 0; }
.ph-app, .ph-ring, .ph-star { transform-box: fill-box; transform-origin: center; }
.install__eyebrow { display: inline-block; margin-bottom: var(--sp-3); padding: 6px 14px; border-radius: var(--r-pill); background: var(--yellow); color: var(--teal-deep); font-size: var(--fs-xs, .8rem); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.install__title { font-size: clamp(1.5rem, 5.8vw, 2.3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.015em; margin-bottom: var(--sp-3); }
.install__lead { max-width: 34rem; margin-inline: auto; font-size: var(--fs-lg, 1.1rem); line-height: 1.5; }
.install__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.install__perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); font-weight: 700; font-size: var(--fs-sm); }
.install__perks svg { width: 16px; height: 16px; stroke: var(--yellow); }
.install__tabs { display: none; justify-content: center; gap: var(--sp-2); margin: var(--sp-6) 0 var(--sp-4); padding: 5px; width: fit-content; margin-inline: auto; border-radius: var(--r-pill); background: rgba(0,0,0,.22); }
.install.is-tabs .install__tabs { display: flex; }
.install__tab { min-height: 48px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: transparent; color: #fff; font: 800 var(--fs-sm) var(--font); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.install__tab[aria-selected="true"] { background: var(--yellow); color: var(--teal-deep); }
.install__sub { margin: var(--sp-6) 0 var(--sp-3); font-size: var(--fs-xl); font-weight: 800; } .install.is-tabs .install__sub { display: none; }
.install__panel { margin-top: var(--sp-4); }
.inst-steps { display: grid; gap: var(--sp-3); counter-reset: none; }
.inst-step { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px; background: #fff; color: var(--ink); box-shadow: 0 12px 24px -14px rgba(60,0,25,.6); }
.inst-step__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pink-fill); color: #fff; font-weight: 800; }
.inst-step__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-50); color: var(--teal-text); }
.inst-step__ico svg { width: 26px; height: 26px; }
.inst-step__txt { display: grid; gap: 2px; line-height: 1.3; min-width: 0; }
.inst-step__txt strong { font-size: var(--fs-md, 1rem); font-weight: 800; color: var(--teal-deep); }
.inst-step__txt span { font-size: var(--fs-sm); color: var(--ink-2); }
.install__now { display: flex; justify-content: center; margin-top: var(--sp-5); }
.install__done { margin-top: var(--sp-5); text-align: center; font-weight: 700; }
@media (min-width: 720px) {
  .install__card { padding: var(--sp-7) var(--sp-7) var(--sp-6); }
  .install__top { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: var(--sp-7); align-items: center; }
  .install__phone { width: 190px; } .install__lead { margin-inline: 0; } .install__perks { justify-content: flex-start; }
  .inst-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .inst-steps { grid-template-columns: repeat(4, 1fr); align-items: stretch; } .inst-step { grid-template-columns: auto 1fr; align-items: start; align-content: start; padding: var(--sp-4); } .inst-step__ico { grid-column: 2; grid-row: 1; justify-self: end; } .inst-step__n { grid-column: 1; grid-row: 1; } .inst-step__txt { grid-column: 1 / -1; } }
/* Movimiento: el ícono "cae" en la pantalla del celular y los pasos aparecen de a uno */
@media (prefers-reduced-motion: no-preference) {
  .install.is-in .ph-app { animation: ph-pop 4.2s var(--ease) infinite; }
  .install.is-in .ph-ring { animation: ph-ring 4.2s ease-out infinite; }
  .install.is-in .ph-star--a { animation: ph-star 4.2s ease-in-out infinite .15s; } .install.is-in .ph-star--b { animation: ph-star 4.2s ease-in-out infinite .45s; }
  .install.is-in .inst-step { animation: inst-in .6s var(--ease) both; }
  .install.is-in .inst-step:nth-child(2) { animation-delay: .12s; } .install.is-in .inst-step:nth-child(3) { animation-delay: .24s; } .install.is-in .inst-step:nth-child(4) { animation-delay: .36s; }
  .install.is-in .install__tab[aria-selected="true"] { animation: inst-tab 2.6s ease-in-out infinite; }
  .install__phone { animation: ph-float 5s ease-in-out infinite; }
}
@keyframes ph-pop { 0% { transform: translateY(-46px) scale(.3); opacity: 0; } 12% { transform: translateY(0) scale(1.22); opacity: 1; } 20%, 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ph-ring { 0%, 12% { transform: scale(.5); opacity: 0; } 14% { opacity: .95; } 40% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
@keyframes ph-star { 0%, 14% { transform: scale(0) rotate(0); opacity: 0; } 24% { transform: scale(1.2) rotate(25deg); opacity: 1; } 40%, 100% { transform: scale(0) rotate(60deg); opacity: 0; } }
@keyframes ph-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes inst-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes inst-tab { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,61,.55); } 50% { box-shadow: 0 0 0 8px rgba(255,200,61,0); } }
@media (max-width: 400px) {
  .install__card { padding: var(--sp-5) var(--sp-3) var(--sp-4); }
  .inst-step { grid-template-columns: auto 1fr; gap: var(--sp-3); padding: var(--sp-3); }
  .inst-step__ico { width: 44px; height: 44px; margin: 4px 0 0 4px; }
  .inst-step__n { position: absolute; left: 6px; top: 6px; z-index: 2; width: 22px; height: 22px; font-size: .75rem; box-shadow: 0 0 0 2px #fff; }
}

/* ---- Aviso urgente (se muestra solo si hay uno vigente en la planilla) ---- */
.aviso-slot { grid-column: 1 / -1; }
.aviso-slot[hidden] { display: none; }
.aviso { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 12px 14px; background: var(--yellow-50); border: 2px solid var(--yellow); border-radius: var(--r-md); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(6, 50, 58, .55); animation: aviso-in .45s var(--ease) both; }
.aviso__tag { flex: none; margin-top: 2px; padding: 4px 9px; border-radius: 999px; background: var(--pink-fill); color: #fff; font-weight: 800; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.aviso__msg { margin: 0; font-weight: 700; font-size: .92rem; line-height: 1.4; }
.aviso__link { color: var(--pink-text); font-weight: 800; white-space: nowrap; text-decoration: none; }
.aviso__link:hover { text-decoration: underline; }
.aviso__fine { margin: 3px 0 0; font-size: .74rem; color: var(--ink-2); }
.page > .aviso-slot { margin-bottom: var(--sp-5); }
@keyframes aviso-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aviso { animation: none; } }
