/* =========================================================
   JM Argentina — estilos del sitio
   Paleta y tipografía según el Manual del Símbolo (julio 2024)
   ========================================================= */

:root {
  /* Paleta oficial */
  --azul: #205487;
  --celeste: #8AC0E4;
  --amarillo: #FEC45E;
  --noche: #1B1F4F;

  /* Derivados */
  --noche-2: #262B63;
  --noche-3: #3A4185;
  --tinta: #1B1F4F;
  --tinta-2: #2E3A5E;
  --gris: #4B5677;
  --linea: #DDE6F0;
  --linea-2: #C9D9EA;
  --celeste-suave: #EEF5FB;
  --celeste-medio: #DCEBF7;
  --amarillo-suave: #FFF4DC;
  --amarillo-texto: #5C4300;
  --fondo: #FFFFFF;
  --fondo-2: #F5F8FC;
  --texto-claro: #C5CCE6;

  --radio: 14px;
  --radio-lg: 20px;
  --ancho: 1200px;
  --fuente: 'Montserrat', 'Gotham', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
a:hover { color: var(--noche); }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0; font-weight: 800; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--amarillo); color: var(--noche); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1280px; }

/* ---------- Encabezado ---------- */
.stripe { height: 6px; display: grid; grid-template-columns: repeat(3, 1fr); }
.stripe span:nth-child(odd) { background: var(--celeste); }
.stripe span:nth-child(2) { background: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--linea); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 60px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--azul); letter-spacing: 0.01em; }
.brand-lema { font-size: 12px; color: var(--azul); }

.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--tinta); }
.nav a:hover { background: var(--fondo-2); }
.nav a[aria-current="page"] { background: var(--celeste-suave); color: var(--azul); font-weight: 700; }
.nav-toggle { display: none; min-height: 44px; padding: 8px 14px; border: 2px solid var(--linea-2); border-radius: 10px; background: #fff; color: var(--azul); font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; padding-top: 8px; }
  .nav.is-open { display: flex; }
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azul); }
.eyebrow--sun { color: var(--amarillo); }
.eyebrow--celeste { color: var(--celeste); }
.h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(28px, 3.4vw, 36px); }
.h3 { font-size: 22px; }
.lead { font-size: 18px; color: var(--gris); max-width: 680px; }
.muted { color: var(--gris); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; align-items: flex-end; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--tint { background: var(--fondo-2); }
.section--celeste { background: var(--celeste-suave); }
.section--navy { background: var(--noche); color: #fff; }
.section--azul { background: var(--azul); color: #fff; }
.section--navy .lead, .section--azul .lead { color: var(--texto-claro); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .grow { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radio); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: #18456f; color: #fff; }
.btn--sun { background: var(--amarillo); color: var(--noche); font-weight: 800; }
.btn--sun:hover { background: #f5b640; color: var(--noche); }
.btn--outline { border-color: var(--azul); color: var(--azul); background: #fff; }
.btn--ghost { border-color: var(--celeste); color: #fff; background: transparent; }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Pastillas seleccionables */
.pill { min-height: 44px; padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; color: var(--azul); border: 2px solid var(--linea-2); }
.pill[aria-checked="true"], .pill[aria-selected="true"], .pill.is-active { background: var(--azul); color: #fff; border-color: var(--azul); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px; background: var(--celeste-suave); color: var(--azul); border: 0; text-decoration: none; cursor: pointer; text-align: left; }
.chip.is-active { background: var(--amarillo); color: var(--noche); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag--azul { background: var(--azul); color: #fff; }
.tag--celeste { background: var(--celeste-medio); color: var(--azul); }
.tag--sun { background: var(--amarillo); color: var(--noche); }
.tag--suave { background: var(--celeste-suave); color: var(--azul); }
.tag--verde { background: #E2F0E8; color: #1F5C3B; }
.tag--crema { background: var(--amarillo-suave); color: var(--amarillo-texto); }
.tag--lila { background: #F2EEF7; color: #4A3A6B; }
.tag--rojo { background: #FCE8E4; color: #8A2D1A; }

/* ---------- Tarjetas ---------- */
.card { background: #fff; border: 2px solid var(--linea); border-radius: var(--radio-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--tinta); }
a.card:hover { border-color: var(--celeste); color: var(--tinta); }
.card--tint { background: var(--celeste-suave); border-color: transparent; }
.card--sun { background: var(--amarillo-suave); border-color: transparent; }
.card--navy { background: var(--noche); color: #fff; border-color: transparent; }
.card--navy2 { background: var(--noche-2); color: #fff; border-color: var(--noche-3); }
.card--dashed { border-style: dashed; border-color: var(--linea-2); }
.card h3 { font-size: 22px; }
.card .num { font-size: 13px; font-weight: 800; color: var(--azul); letter-spacing: .1em; }
.list-plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list-plain li { padding: 11px 14px; background: var(--celeste-suave); border-radius: 12px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 24px; }
.hero-symbol { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; padding: 24px; }
.hero-symbol img { width: 300px; }
.lockup-name { font-weight: 800; font-size: 30px; color: var(--azul); letter-spacing: .01em; line-height: 1.1; }
.lockup-lema { font-size: 18px; color: var(--azul); line-height: 1.3; }
.waves { display: block; width: 100%; height: 96px; }
.waves path { fill: var(--celeste); }

.stage-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stage-picker a { padding: 14px 16px; border-radius: var(--radio); border: 2px solid var(--linea-2); text-decoration: none; color: var(--tinta); display: flex; flex-direction: column; gap: 2px; }
.stage-picker a:hover { border-color: var(--azul); }
.stage-picker span { font-size: 12px; font-weight: 700; color: var(--azul); }
.stage-picker strong { font-size: 15px; }

.search { display: flex; flex-wrap: wrap; gap: 8px; }
.input { flex: 1 1 300px; min-width: 0; height: 54px; padding: 0 18px; font: inherit; font-size: 16px; border: 2px solid var(--linea-2); border-radius: var(--radio); background: #fff; color: var(--tinta); }
.input:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px var(--celeste-medio); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }

/* ---------- Pasos / etapas ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { border-top: 4px solid var(--celeste); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps li.is-sun { border-top-color: var(--amarillo); }
.steps .label { font-size: 13px; font-weight: 700; color: var(--celeste); }
.steps li.is-sun .label { color: var(--amarillo); }
.steps strong { font-size: 20px; font-weight: 800; }
.steps p { color: var(--texto-claro); font-size: 15px; }

.stage-card { text-decoration: none; color: var(--tinta); border-radius: 18px; padding: 20px; border-top: 5px solid var(--celeste); background: var(--fondo-2); display: flex; flex-direction: column; gap: 6px; }
.stage-card.is-sun { border-top-color: var(--amarillo); }
.stage-card span { font-size: 13px; font-weight: 700; color: var(--azul); }
.stage-card strong { font-size: 19px; }
.stage-card em { font-style: normal; font-size: 14px; color: var(--gris); }

/* ---------- Diagnóstico ---------- */
.diag { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.diag-form { flex: 999 1 560px; min-width: 0; }
.diag-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
@media (max-width: 960px) { .diag-side { position: static; } }
.question { padding: 14px 0; border-top: 1px solid #EEF2F7; display: flex; flex-direction: column; gap: 8px; border-left: 0; border-right: 0; border-bottom: 0; margin: 0; }
.question legend { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.question legend b { flex: 0 0 auto; font-size: 12px; color: var(--azul); }
.question legend + * { clear: both; }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--noche-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.result-goal { padding: 14px 16px; border-radius: var(--radio); background: var(--amarillo); color: var(--noche); display: flex; flex-direction: column; gap: 2px; }
.result-goal small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.mat-card { background: #fff; border: 2px solid var(--linea); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.mat-card .kind { font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.mat-card strong { font-size: 16px; line-height: 1.3; }
.mat-card p { color: var(--tinta-2); font-size: 14px; }
.mat-card .btn { align-self: flex-start; margin-top: auto; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 10px 18px; border-radius: 12px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; background: #fff; color: var(--noche); border: 2px solid var(--linea-2); }
.tab[aria-selected="true"] { background: var(--noche); color: #fff; border-color: var(--noche); }

/* ---------- Texto largo ---------- */
.reading { display: flex; flex-wrap: wrap; gap: 48px; }
.reading aside { flex: 1 1 240px; min-width: 0; max-width: 280px; display: flex; flex-direction: column; gap: 10px; align-self: flex-start; position: sticky; top: 16px; }
@media (max-width: 860px) { .reading aside { position: static; max-width: none; } }
.reading aside nav { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.reading aside nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.reading aside nav a:hover { background: var(--celeste-suave); }
.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.75; display: flex; flex-direction: column; gap: 18px; }
.prose h3 { margin-top: 16px; font-size: 24px; color: var(--azul); scroll-margin-top: 20px; }
.prose p { scroll-margin-top: 20px; }
.prose blockquote { margin: 0; padding: 16px 20px; border-radius: var(--radio); background: var(--celeste-suave); font-style: italic; }
.prose mark { background: #FFE3A3; color: var(--noche); padding: 0 3px; border-radius: 4px; }

/* ---------- Biblioteca ---------- */
.lib { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.lib-index { flex: 1 1 280px; min-width: 0; max-width: 340px; background: #fff; border: 2px solid var(--linea); border-radius: var(--radio-lg); padding: 14px; font-size: 14px; }
@media (max-width: 860px) { .lib-index { max-width: none; } }
.lib-index button { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; min-height: 40px; align-items: center; margin-top: 2px; padding: 8px 10px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; background: transparent; color: var(--tinta-2); }
.lib-index button:hover { background: var(--fondo-2); }
.lib-index button.lvl-1 { font-weight: 800; font-size: 15px; color: var(--tinta); }
.lib-index button.in-branch { background: var(--celeste-suave); font-weight: 700; color: var(--tinta); }
.lib-index button[aria-current="true"] { background: var(--azul); color: #fff; font-weight: 700; }
.lib-index .count { font-weight: 600; opacity: .75; flex: 0 0 auto; }
.lib-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lib-list { background: #fff; border: 2px solid var(--linea); border-radius: var(--radio-lg); overflow: hidden; }
.lib-row { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 14px 20px; border-top: 1px solid #EEF2F7; align-items: center; }
.lib-row:first-child { border-top: 0; }
.lib-ext { flex: 0 0 48px; height: 40px; border-radius: 10px; background: var(--celeste-suave); color: var(--azul); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lib-title { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-title strong { font-size: 15px; }
.lib-title span { font-size: 12px; color: var(--gris); }
.lib-empty { padding: 28px 22px; color: var(--gris); }

/* ---------- Historia ---------- */
.timeline { margin: 8px 0 0 10px; padding: 0; list-style: none; border-left: 4px solid var(--celeste); }
.timeline li { position: relative; padding: 0 0 28px 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.timeline li::before { content: ""; position: absolute; left: -14px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 4px solid #fff; background: var(--azul); }
.timeline li.is-key::before { background: var(--amarillo); }
.timeline .year { flex: 0 0 132px; font-weight: 800; font-size: 18px; color: var(--azul); }
.timeline .body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline .body strong { font-size: 18px; font-weight: 700; }
.timeline .body p { color: var(--gris); font-size: 15px; }
.morph { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.morph-img { flex: 1 1 380px; min-width: 0; background: #fff; border: 2px solid var(--linea); border-radius: 24px; padding: 32px; display: flex; align-items: center; justify-content: center; }
.morph-img img { width: 360px; }
.morph-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.morph-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.swatch { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 10px; border: 2px solid var(--linea); border-radius: var(--radio); font-size: 13px; line-height: 1.3; }
.swatch i { width: 36px; height: 36px; border-radius: 10px; display: block; }
.prayer { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.6; font-weight: 500; font-style: italic; text-align: center; display: flex; flex-direction: column; gap: 22px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--azul); color: #fff; }
.site-footer .container { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; font-weight: 600; font-size: 14px; }
.site-footer .brand-name, .site-footer .brand-lema { color: #fff; }
.site-footer .brand-lema { color: var(--celeste-medio); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Itinerario: texto justificado + herramienta lateral ---------- */
.prose p, .prose blockquote { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.reading--3 { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.reading--3 .prose { max-width: 760px; }
.reading--3 aside { max-width: none; }
.side-tool { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.side-result { padding: 12px 14px; border-radius: 12px; background: var(--noche-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.side-result strong { color: var(--amarillo); }
.fab { display: none; }
@media (max-width: 1100px) {
  .reading--3 { grid-template-columns: 1fr; gap: 28px; }
  .reading--3 aside { position: static; }
  .side-tool { display: none; }
  .fab { display: inline-flex; position: fixed; left: 16px; bottom: 16px; z-index: 30; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 0; background: var(--amarillo); color: var(--noche); font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(27, 31, 79, .28); cursor: pointer; }
}
@media print { .side-tool, .fab, .reading aside { display: none !important; } .reading--3 { display: block; } }

/* ---------- Ventana modal ---------- */
.modal { width: min(1200px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--fondo-2); color: var(--tinta); box-shadow: 0 24px 64px rgba(27, 31, 79, .35); }
.modal::backdrop { background: rgba(27, 31, 79, .55); }
.modal-inner { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 600px) { .modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; } .modal-inner { padding: 20px 16px; } }
.modal-close { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--linea-2); background: #fff; color: var(--noche); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; flex: 0 0 auto; }
.modal-close:hover { background: var(--celeste-suave); }
body.has-modal { overflow: hidden; }
.modal .container { padding: 0; max-width: none; }

/* ---------- Historia: oración, fichas y estrategias ---------- */
.prayer-card { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 8px 0; }
.prayer strong { font-style: normal; font-weight: 800; color: var(--amarillo); }
.prayer-amen { font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 16px; color: var(--celeste); }
.prayer-card::after { content: ""; width: 80px; height: 3px; border-radius: 3px; background: var(--amarillo); }

.hito-btn { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; margin: -10px -14px; border-radius: 14px; transition: background .15s ease; }
.hito-btn:hover { background: var(--celeste-suave); }
.hito-btn:focus-visible { outline: 3px solid var(--amarillo); }
.hito-btn strong { font-size: 18px; font-weight: 700; }
.hito-resumen { color: var(--gris); font-size: 15px; }
.hito-mas { font-size: 13px; font-weight: 700; color: var(--azul); }

.modal--ficha { width: min(760px, calc(100vw - 24px)); background: #fff; }
.ficha-anio { font-weight: 800; font-size: 18px; color: var(--azul); }
.ficha-body { max-width: none; font-size: 16px; gap: 14px; }
.ficha-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.ficha-bloque { padding: 14px 16px; border-radius: var(--radio); background: var(--fondo-2); display: flex; flex-direction: column; gap: 6px; }
.ficha-bloque strong { color: var(--azul); }
.ficha-nav { border-top: 1px solid var(--linea); padding-top: 16px; gap: 10px; }
.ficha-nav .btn { max-width: 48%; white-space: normal; text-align: center; }
.ficha-nav .btn:disabled { opacity: .35; cursor: default; transform: none; }

.estrategias { display: flex; flex-direction: column; gap: 12px; }
.estrategia { border-radius: var(--radio-lg); background: var(--noche); border: 2px solid transparent; }
.estrategia[open] { border-color: var(--amarillo); }
.estrategia summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.estrategia summary::-webkit-details-marker { display: none; }
.estrategia summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 700; color: var(--amarillo); line-height: 1; }
.estrategia[open] summary::after { content: "–"; }
.est-num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--amarillo); color: var(--noche); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.est-head { display: flex; flex-direction: column; }
.est-head strong { font-size: 20px; }
.est-head span { color: var(--texto-claro); font-size: 15px; font-style: italic; }
.est-body { padding: 0 22px 22px 82px; display: flex; flex-direction: column; gap: 12px; color: #fff; font-size: 15px; }
.est-body blockquote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--amarillo); background: var(--noche-2); border-radius: 0 12px 12px 0; font-style: italic; }
.est-body p + p { margin-top: 10px; }
.est-body ul { margin: 0; padding-left: 20px; }
.est-body a { color: var(--amarillo); font-weight: 700; }
@media (max-width: 600px) { .est-body { padding: 0 18px 18px; } .estrategia summary { padding: 16px 18px; } }

/* ---------- Inicio: funciones, pasos, origen ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: #fff; border: 2px solid var(--linea); border-radius: var(--radio-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--tinta); transition: border-color .15s ease, transform .15s ease; }
.feature:hover { border-color: var(--azul); transform: translateY(-2px); color: var(--tinta); }
.feature h3 { font-size: 21px; }
.feature p { font-size: 15px; color: var(--tinta-2); }
.feature-num { font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--azul); }
.feature-go { margin-top: auto; font-weight: 700; color: var(--azul); font-size: 15px; }
.feature--main { grid-column: 1 / -1; background: var(--azul); border-color: var(--azul); color: #fff; }
.feature--main:hover { color: #fff; border-color: var(--amarillo); }
.feature--main p { color: var(--celeste-medio); max-width: 760px; font-size: 16px; }
.feature--main .feature-num, .feature--main .feature-go { color: var(--amarillo); }
.feature--main h3 { font-size: 28px; }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: none; }
.how li { position: relative; padding: 24px 20px 20px; border-radius: var(--radio-lg); background: var(--fondo-2); display: flex; flex-direction: column; gap: 6px; }
.how li > span { width: 40px; height: 40px; border-radius: 50%; background: var(--amarillo); color: var(--noche); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.how strong { font-size: 18px; }
.how p { font-size: 15px; color: var(--gris); }
.how a { margin-top: auto; font-weight: 700; font-size: 14px; }

.origin { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 760px; }
.origin > div { border-top: 3px solid var(--celeste); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.origin strong { font-size: 17px; }
.origin p { font-size: 15px; color: var(--texto-claro); }

/* ---------- Recorrido guiado ---------- */
.tour { position: fixed; inset: 0; z-index: 200; }
.tour[hidden] { display: none; }
.tour-spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 4px var(--amarillo), 0 0 0 9999px rgba(27, 31, 79, .62); transition: all .3s ease; pointer-events: none; }
.tour-pop { position: absolute; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--tinta); border-radius: 18px; padding: 20px; box-shadow: 0 18px 48px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 8px; transition: top .3s ease, left .3s ease; }
.tour-pop strong { font-size: 19px; }
.tour-pop p { font-size: 15px; color: var(--tinta-2); }
.tour-toast { position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: 340px; background: var(--noche); color: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

/* ---------- Asistente ---------- */
.asis { display: flex; flex-direction: column; gap: 28px; }
.asis-flow { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.asis-card { flex: 999 1 560px; min-width: 0; gap: 14px; }
.asis-card[hidden] { display: none; }
.asis-card h2:focus { outline: none; }
.asis-progress { width: 140px; height: 6px; border-radius: 999px; background: var(--celeste-medio); overflow: hidden; }
.asis-progress span { display: block; height: 100%; background: var(--azul); transition: width .3s ease; }
.asis-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.asis-opt { min-height: 56px; padding: 12px 16px; border-radius: var(--radio); border: 2px solid var(--linea-2); background: #fff; color: var(--tinta); font: inherit; font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; }
.asis-opt:hover { border-color: var(--azul); }
.asis-opt[aria-checked="true"], .asis-opt[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.asis-answers { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.asis-answers[hidden] { display: none; }
.asis-ans { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--linea); }
.asis-ans:hover { border-color: var(--azul); }
.asis-ans:focus-visible { outline: 3px solid var(--amarillo); }
.asis-ans span { font-size: 12px; color: var(--gris); font-weight: 600; }
.asis-ans strong { font-size: 15px; color: var(--azul); }
.asis-results { display: flex; flex-direction: column; gap: 18px; }
.asis-results[hidden] { display: none; }
.asis-nb { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.asis-nb[hidden] { display: none; }
.asis-prompt { padding: 12px 14px; border-radius: 12px; background: var(--noche-2); font-size: 14px; font-style: italic; color: #fff; }
.asis-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.asis-item { background: #fff; border: 2px solid var(--linea); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.asis-item.is-top { border-color: var(--amarillo); }
.asis-item .kind { font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.asis-title { font-size: 17px; line-height: 1.3; }
.asis-item p { font-size: 14px; color: var(--tinta-2); }
.asis-why { margin: 0; padding-left: 18px; font-size: 13px; color: var(--gris); display: flex; flex-direction: column; gap: 2px; }
[hidden] { display: none !important; }
.asis-card[hidden] + .asis-answers { flex-direction: row; flex-wrap: wrap; } .asis-card[hidden] + .asis-answers .asis-ans { flex: 1 1 220px; }
/* ---------- Ventanas (dialog) ---------- */
.dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radio-lg); color: var(--tinta); box-shadow: 0 24px 64px rgba(27,31,79,.28); }
.dlg::backdrop { background: rgba(27,31,79,.55); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 24px; background: #fff; border-bottom: 1px solid var(--linea); }
.dlg-head h2 { font-size: 20px; }
.dlg-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.dlg-close { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--linea-2); background: #fff; color: var(--noche); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.dlg-close:hover { border-color: var(--azul); }
.dlg--sm { width: min(480px, calc(100vw - 24px)); }

/* ---------- Formularios ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--gris); }
.field .input { flex: none; width: 100%; height: 48px; }
.field textarea.input { height: auto; min-height: 96px; }
.field select.input { padding-right: 10px; }
.req { color: #8A2D1A; }
.form-msg { font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 12px; }
.form-msg--error { background: #FCE8E4; color: #8A2D1A; }
.form-msg--ok { background: #E2F0E8; color: #1F5C3B; }
.flyer-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 16px; border: 2px dashed var(--linea-2); border-radius: var(--radio); background: var(--fondo-2); text-align: center; cursor: pointer; font-size: 14px; color: var(--gris); }
.flyer-drop:hover, .flyer-drop:focus-within { border-color: var(--azul); }
.flyer-drop img { max-height: 220px; width: auto; border-radius: 10px; }

/* ---------- Sesión ---------- */
.session { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--noche-3); font-size: 14px; font-weight: 600; }
.user-chip img, .user-chip .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--celeste); color: var(--noche); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.demo-bar { background: var(--amarillo-suave); color: var(--amarillo-texto); border-bottom: 1px solid #F3DDA8; font-size: 14px; }
.demo-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
.demo-bar select { font: inherit; font-weight: 700; padding: 6px 8px; border-radius: 8px; border: 1px solid #E6C77D; background: #fff; color: var(--noche); }

/* ---------- Calendario ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h2 { font-size: 26px; min-width: 210px; text-transform: capitalize; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--linea-2); background: #fff; color: var(--azul); font: inherit; font-size: 20px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--azul); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select { height: 44px; padding: 0 10px; font: inherit; font-size: 14px; font-weight: 600; border: 2px solid var(--linea-2); border-radius: 12px; background: #fff; color: var(--tinta); }
.cal { background: #fff; border: 2px solid var(--linea); border-radius: var(--radio-lg); overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 10px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); background: var(--fondo-2); text-align: center; }
.cal-day { min-height: 116px; padding: 6px; border-top: 1px solid #EEF2F7; border-left: 1px solid #EEF2F7; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n+1) { border-left: 0; }
.cal-day.is-out { background: #FBFCFE; }
.cal-day.is-out .cal-num { color: #A9B3C9; }
.cal-num { font-size: 13px; font-weight: 700; color: var(--tinta-2); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--amarillo); color: var(--noche); font-weight: 800; }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--azul); border-radius: 6px; padding: 4px 6px; background: var(--celeste-suave); color: var(--noche); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.25; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: var(--celeste-medio); }
.cal-ev.t-nacional { border-left-color: var(--amarillo); background: var(--amarillo-suave); }
.cal-ev.t-regional { border-left-color: var(--celeste); }
.cal-more { font-size: 12px; font-weight: 700; color: var(--azul); background: none; border: 0; padding: 2px 6px; text-align: left; cursor: pointer; }
@media (max-width: 760px) {
  .cal-day { min-height: 54px; padding: 4px 2px; align-items: center; }
  .cal-day .cal-ev, .cal-day .cal-more { display: none; }
  .cal-day.has-ev { cursor: pointer; }
  .cal-dots { display: flex; gap: 3px; }
  .cal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--azul); }
  .cal-dots i.t-nacional { background: var(--amarillo); }
  .cal-day.is-selected { background: var(--celeste-suave); }
}
@media (min-width: 761px) { .cal-dots { display: none; } }

.ev-list { display: flex; flex-direction: column; gap: 12px; }
.ev-card { display: flex; gap: 16px; align-items: stretch; width: 100%; text-align: left; padding: 14px; border: 2px solid var(--linea); border-radius: var(--radio-lg); background: #fff; color: var(--tinta); font: inherit; cursor: pointer; }
.ev-card:hover { border-color: var(--celeste); }
.ev-date { flex: 0 0 68px; border-radius: 14px; background: var(--azul); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; line-height: 1.05; }
.ev-date b { font-size: 26px; font-weight: 800; }
.ev-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--celeste-medio); }
.ev-card.t-nacional .ev-date { background: var(--amarillo); color: var(--noche); }
.ev-card.t-nacional .ev-date span { color: var(--amarillo-texto); }
.ev-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-info strong { font-size: 17px; line-height: 1.3; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--gris); }
.ev-thumb { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--fondo-2); }
@media (max-width: 520px) { .ev-thumb { width: 64px; height: 64px; } }
.ev-detail-flyer { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radio); background: var(--fondo-2); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; }
.kv dt { font-weight: 700; color: var(--gris); }
.kv dd { margin: 0; }
.empty-box { padding: 28px; border: 2px dashed var(--linea-2); border-radius: var(--radio-lg); color: var(--gris); text-align: center; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid #EEF2F7; }
.admin-row:first-child { border-top: 0; }
.admin-row .who { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.admin-row .who span { font-size: 13px; color: var(--gris); overflow-wrap: anywhere; }
.admin-row select { height: 40px; font: inherit; font-size: 14px; border: 2px solid var(--linea-2); border-radius: 10px; padding: 0 8px; background: #fff; }

/* ---------- Ramas y mapa ---------- */
.map-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.map-wrap { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
#mapa { height: min(72vh, 680px); min-height: 420px; border-radius: var(--radio-lg); border: 2px solid var(--linea); background: var(--celeste-suave); z-index: 1; }
.map-side { flex: 1 1 340px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 960px) { .map-side { max-width: none; } }
.prov-list { background: #fff; border: 2px solid var(--linea); border-radius: var(--radio-lg); padding: 8px; max-height: 520px; overflow: auto; }
.prov-list details { border-top: 1px solid #EEF2F7; }
.prov-list details:first-child { border-top: 0; }
.prov-list summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.prov-list summary::-webkit-details-marker { display: none; }
.prov-list summary:hover { background: var(--fondo-2); }
.prov-list summary .count { font-size: 12px; font-weight: 700; color: var(--gris); }
.prov-list button { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 1px; padding: 8px 10px 8px 22px; border: 0; border-radius: 10px; background: transparent; color: var(--tinta); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.prov-list button span { font-size: 12px; font-weight: 500; color: var(--gris); }
.prov-list button:hover { background: var(--celeste-suave); }
.prov-list button[aria-current="true"] { background: var(--azul); color: #fff; }
.prov-list button[aria-current="true"] span { color: var(--celeste-medio); }
.sant-panel { background: var(--celeste-suave); border-radius: var(--radio-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sant-panel h2 { font-size: 22px; }
.rama-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 2px solid var(--linea); border-radius: var(--radio); background: #fff; color: var(--tinta); font: inherit; cursor: pointer; }
.rama-card:hover { border-color: var(--azul); }
.rama-card .rama-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--azul); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.rama-card strong { display: block; font-size: 15px; }
.rama-card span { font-size: 12px; color: var(--gris); }
.jm-pin { width: 30px; height: 38px; filter: drop-shadow(0 2px 3px rgba(27,31,79,.35)); }
.jm-pin.is-active { width: 40px; height: 50px; }
.leaflet-container { font-family: var(--fuente); }
.leaflet-tooltip.jm-tip { font-family: var(--fuente); font-weight: 700; font-size: 13px; color: var(--noche); border: 0; border-radius: 8px; box-shadow: 0 4px 14px rgba(27,31,79,.2); }
.pending { display: inline-block; align-self: flex-start; width: fit-content; padding: 2px 10px; border-radius: 999px; background: var(--amarillo-suave); color: var(--amarillo-texto); font-size: 12px; font-weight: 700; }
.ficha-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid #EEF2F7; }
.ficha-sec h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--azul); }
.ficha-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ficha-fotos img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }
.ficha-fotos .ph { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--linea-2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--gris); text-align: center; padding: 8px; }
.video-box { position: relative; padding-top: 56.25%; border-radius: var(--radio); overflow: hidden; background: var(--fondo-2); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .cal-nav { flex-wrap: wrap; width: 100%; }
  .cal-nav h2 { min-width: 0; flex: 1 1 auto; font-size: 22px; order: -1; width: 100%; }
  .filters select { flex: 1 1 140px; min-width: 0; }
  .filters { width: 100%; }
  .demo-bar .demo-txt { display: none; }
  .ev-date { flex-basis: 56px; }
}


/* ---------- Chat del asistente ---------- */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 10px 18px 10px 12px; border: 0; border-radius: 999px; background: var(--azul); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 10px 28px rgba(27, 31, 79, .32); transition: transform .15s ease; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab img { background: #fff; border-radius: 50%; padding: 5px 3px; width: 40px; height: 40px; object-fit: contain; }
.chat-open .chat-fab { display: none; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 130; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 36px)); background: #fff; border-radius: 22px; box-shadow: 0 24px 64px rgba(27, 31, 79, .35); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 600px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } .chat-fab span { display: none; } .chat-fab { padding: 8px; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--azul); color: #fff; }
.chat-head img { background: #fff; border-radius: 50%; padding: 6px 4px; width: 42px; height: 42px; object-fit: contain; }
.chat-head-text { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.chat-head-text span { font-size: 13px; color: var(--celeste-medio); }
.chat-head button { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.chat-head button:hover { background: rgba(255,255,255,.22); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--fondo-2); }
.msg { max-width: 92%; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--linea); border-radius: 4px 16px 16px 16px; padding: 10px 12px; }
.msg--yo { align-self: flex-end; background: var(--azul); color: #fff; border-radius: 16px 4px 16px 16px; padding: 8px 12px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { padding: 8px 12px; border-radius: 999px; border: 2px solid var(--linea-2); background: #fff; color: var(--azul); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-align: left; }
.chat-chip:hover { border-color: var(--azul); }
.chat-chip[aria-pressed="true"] { background: var(--azul); color: #fff; border-color: var(--azul); }
.chat-chip.is-primary { background: var(--amarillo); border-color: var(--amarillo); color: var(--noche); }
.chat-mats { display: flex; flex-direction: column; gap: 8px; }
.chat-mat { border: 1px solid var(--linea); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; background: var(--fondo-2); }
.chat-mat-top { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.chat-nivel { color: var(--azul); white-space: nowrap; }
.chat-mat strong { font-size: 14px; line-height: 1.3; }
.chat-mat p { font-size: 13px; color: var(--tinta-2); }
.chat-mat small { font-size: 12px; color: var(--gris); }
.chat-mat-btn { align-self: flex-start; display: inline-flex; padding: 6px 12px; border-radius: 10px; background: var(--azul); color: #fff; font: inherit; font-weight: 700; font-size: 13px; text-decoration: none; border: 2px solid var(--azul); cursor: pointer; margin-top: 4px; }
.chat-mat-btn:hover { color: #fff; background: #18456f; }
.chat-mat-btn--alt { background: #fff; color: var(--azul); }
.chat-mat-btn--alt:hover { background: var(--celeste-suave); color: var(--azul); }
.chat-prompt { padding: 10px; border-radius: 10px; background: var(--celeste-suave); font-size: 13px; font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--linea); background: #fff; }
.chat-input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 2px solid var(--linea-2); border-radius: 12px; font: inherit; font-size: 15px; }
.chat-input:focus { border-color: var(--azul); outline: none; }
.chat-send { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--amarillo); color: var(--noche); font-size: 18px; cursor: pointer; }

/* ---------- Formularios de acciones ---------- */
.modal--form { width: min(560px, calc(100vw - 24px)); background: #fff; }
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.acc-field .input { flex: 0 0 auto; height: auto; min-height: 48px; padding: 10px 14px; font-weight: 500; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.acc-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.acc-error { color: #8A2D1A; font-weight: 700; font-size: 14px; }
.acc-error:empty { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--azul); text-decoration: underline; cursor: pointer; }
.chat-log { position: relative; }
