@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fuentes/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fuentes/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fuentes/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cirílico (ucraniano y ruso): mismas familias, otras fuentes solo para esas letras */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600 800; font-display: swap; src: url("../fuentes/manrope-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fuentes/noto-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fuentes/noto-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Rumano y otras letras latinas con signos (ș, ț...) */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("../fuentes/bricolage-grotesque-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fuentes/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fuentes/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fuentes/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Árabe */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600 800; font-display: swap; src: url("../fuentes/noto-sans-arabic-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fuentes/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fuentes/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }


:root {
  --papel: #eef4ee; --papel-hondo: #e1eae3; --tarjeta: #ffffff; --tinta: #14261e; --tinta-suave: #4f6b5e;
  --verde: #1f5a45; --linea: rgba(22, 38, 31, 0.14);
}
@media (prefers-color-scheme: dark) {
  /* Los mismos colores que el tema Noche de la app */
  :root {
    --papel: #0e1814; --papel-hondo: #24362c; --tarjeta: #16231c; --tinta: #e4ede7; --tinta-suave: #9db3a6;
    --verde: #c6de6a; --linea: #3a5243;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 18px/1.6 "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--verde); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }
.ancho { max-width: 760px; margin-inline: auto; padding-inline: 24px; }

.barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font: 800 24px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.03em; }
.marca img { width: 34px; height: 34px; display: block; }

main { padding-top: 24px; padding-bottom: 64px; }
h1, h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.035em; }
h2 { font-size: 24px; line-height: 1.2; margin: 44px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, li { margin: 0 0 12px; }
.fecha { color: var(--tinta-suave); margin-bottom: 28px; }
.resumen, .contacto { margin-top: 24px; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 18px; padding: 20px 22px; }
.resumen p:last-child, .contacto p:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--linea); padding: 28px 0 48px; color: var(--tinta-suave); font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--tinta-suave); }

/* Página no encontrada */
.no-encontrada { text-align: center; padding-top: 72px; }
.no-encontrada p { color: var(--tinta-suave); margin-bottom: 28px; }
.boton { display: inline-block; background: var(--verde); color: var(--papel); text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; }

/* Selector de idioma */
.idioma { position: relative; }
.idioma summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--tinta-suave); font-weight: 700; font-size: 16px; padding: 6px 12px; border: 1px solid var(--linea); border-radius: 999px; }
.idioma summary::-webkit-details-marker { display: none; }
.idioma summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.idioma[open] summary::after { transform: translateY(2px) rotate(225deg); }
.idioma ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; list-style: none; margin: 0; padding: 8px; min-width: 190px; background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(15, 43, 33, .45); }
.idioma li { margin: 0; }
.idioma li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--tinta); text-decoration: none; }
.idioma li a:hover { background: var(--papel-hondo); }
.idioma li a[aria-current="true"] { font-weight: 700; color: var(--verde); }

/* Árabe: de derecha a izquierda, sin espaciado entre letras (rompe la escritura) */
:root[dir="rtl"] * { letter-spacing: 0 !important; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2 { line-height: 1.3; }

/* Aviso de idioma (js/idioma.js): sugiere la versión en el idioma del navegador */
.aviso-idioma { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding-block: 12px; padding-inline: 20px 56px; position: relative; background: var(--verde); color: var(--papel); font-size: 16px; line-height: 1.4; }
.aviso-idioma p { margin: 0; }
.aviso-idioma-ir { display: inline-block; background: var(--papel); color: var(--tinta); font-weight: 700; text-decoration: none; padding: 8px 18px; border-radius: 999px; }
.aviso-idioma-ir:hover { text-decoration: underline; }
.aviso-idioma-cerrar { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 400 28px/1 system-ui, sans-serif; cursor: pointer; }
.aviso-idioma-cerrar:hover { background: rgba(255, 255, 255, .15); }
.aviso-idioma :focus-visible { outline-color: var(--papel); }
