@import url('../fonts/plus-jakarta-sans/plus-jakarta-sans.css');
/* Área de accionistas: una columna estrecha; colores heredados de grandtibidabo.com. */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --fg: #22252f;
  --muted: #5d6475;
  --line: #dde0e8;
  --brand: #3f5b8c;
  --brand-fg: #ffffff;
  --accent: #f0a556;
  --warn-bg: #fff4e3;
  --warn-fg: #7a4a0c;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14151d; --surface: #1d1f2b; --fg: #eceef4; --muted: #a0a6b8; --line: #2f3243;
    --brand: #8aa6d8; --brand-fg: #14151d; --accent: #f0a556; --warn-bg: #2c2314; --warn-fg: #f3c98f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14151d; --surface: #1d1f2b; --fg: #eceef4; --muted: #a0a6b8; --line: #2f3243;
  --brand: #8aa6d8; --brand-fg: #14151d; --accent: #f0a556; --warn-bg: #2c2314; --warn-fg: #f3c98f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.55; padding-block: 24px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.top strong { color: var(--fg); font-size: 15px; }
.ver { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: 15px; margin: 0; letter-spacing: .02em; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
label { font-weight: 600; font-size: 14px; }
input { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button.primary { font: inherit; font-weight: 700; background: var(--brand); color: var(--brand-fg); border: 0; border-radius: 8px; padding: 12px 18px; cursor: pointer; }
button.link { font: inherit; background: none; border: 0; color: var(--brand); cursor: pointer; text-decoration: underline; padding: 0; }
.err { color: #b3261e; font-size: 14px; min-height: 1.3em; }
:root[data-theme="dark"] .err { color: #ffb4ab; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ffb4ab; } }
.nota { background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.grupo { display: flex; flex-direction: column; gap: 8px; }
.grupo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; text-decoration: none; color: var(--fg); min-width: 0; }
.doc span { min-width: 0; overflow-wrap: anywhere; }
.doc small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; background: var(--warn-bg); color: var(--warn-fg); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
footer { font-size: 12px; color: var(--muted); text-align: center; }

.fila { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:baseline; }
.salir { color: var(--brand); }

/* Encabezado de sección (Documentos / Juntas de Accionistas) */
h2.seccion { font-size: 20px; letter-spacing: 0; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }

/* Comunicados de Juntas de Accionistas: texto completo */
.seccion-juntas { gap: 28px; }
.junta { display: flex; flex-direction: column; gap: 12px; }
.junta + .junta { padding-top: 24px; border-top: 1px solid var(--line); }
.junta h3 { font-size: 17px; line-height: 1.3; margin: 0; }
.junta h3 .meta { font-weight: 400; font-size: 13px; color: var(--muted); white-space: normal; }
.junta h4 { font-size: 15px; margin: 4px 0 0; }
.junta p { margin: 0; }
.junta a { color: var(--brand); }
.junta ol, .junta ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.junta blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.junta blockquote ol { gap: 4px; }
