/* FAQ page: same look as /noticias/ (colour tokens and header copied from ../styles.css, self-contained so the
   public /faq/ path does not depend on the news stylesheet) */
:root {
  color-scheme: dark;
  --bg: #06100e; --panel: #0d1c19; --panel2: #10231f; --line: #1b3a33; --line2: #24493f;
  --text: #eef3f1; --muted: #8fa8a1; --dim: #5f7a73;
  --accent: #1fd69f; --accent-soft: rgba(31, 214, 159, .12);
  --condensed: "Bahnschrift Condensed", "Bahnschrift SemiBold Condensed", Bahnschrift, "Arial Narrow", Impact, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100%; color: var(--text); font-family: Bahnschrift, "Segoe UI", Arial, sans-serif; font-size: 14px;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(31, 214, 159, .05) 62% 66%, transparent 66% 70%, rgba(31, 214, 159, .035) 70% 72%, transparent 72%),
    radial-gradient(1200px 600px at 85% -10%, rgba(18, 184, 134, .16), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #04120d; }
a { color: var(--accent); }
.accent { color: var(--accent); }
.eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; }

/* header */
.header { position: sticky; top: 0; z-index: 5; min-height: 68px; padding: 12px 4%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(6, 16, 14, .92); border-bottom: 1px solid var(--line); }
.header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 180px; height: 2px; background: var(--accent); }
.brand { display: flex; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.brand-mark { margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--line2); font-family: var(--condensed); font-size: 32px; font-weight: 800; font-style: italic; letter-spacing: -1px; white-space: nowrap; }
.brand-mark span { color: var(--accent); margin-left: 2px; }
.brand-name { font-family: var(--condensed); font-size: 19px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--accent); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; padding: 8px 12px; border: 1px solid rgba(31, 214, 159, .35); border-radius: 2px; white-space: nowrap; }
.nav-link:hover { background: var(--accent-soft); }
.lang { display: flex; border: 1px solid var(--line2); }
.lang button { padding: 7px 10px; background: transparent; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: #04120d; }
.button { border: 1px solid var(--line2); border-radius: 2px; background: #0f201c; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.button:hover { background: #163029; border-color: var(--accent); }
.button.small { padding: 7px 12px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.main { max-width: 980px; margin: 0 auto; padding: 26px 4% 70px; }

/* hero with the search box */
.hero { position: relative; padding: 38px 40px 34px; background: linear-gradient(120deg, #0b1d18 0%, #07120f 60%); border: 1px solid var(--line2); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 0 58%, rgba(31, 214, 159, .14) 58% 63%, transparent 63% 66%, rgba(31, 214, 159, .08) 66% 68%, transparent 68%); }
.hero::after { content: "FAQ"; position: absolute; right: 10px; bottom: -46px; pointer-events: none; font-family: var(--condensed); font-weight: 900; font-size: 170px; letter-spacing: 2px;
  color: transparent; -webkit-text-stroke: 1px rgba(31, 214, 159, .12); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin: 10px 0 8px; font-family: var(--condensed); font-size: 42px; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.hero-sub { margin: 0 0 22px; color: #c4d3ce; line-height: 1.7; max-width: 560px; }
.search { position: relative; max-width: 560px; }
.search input { width: 100%; padding: 13px 14px 13px 42px; background: rgba(4, 12, 10, .85); border: 1px solid var(--line2); border-radius: 2px; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--accent); outline: none; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%) rotate(-45deg); color: var(--accent); font-size: 18px; }
.corner { position: absolute; z-index: 2; color: var(--accent); font-size: 15px; line-height: 1; opacity: .85; }
.corner.tl { top: 8px; left: 10px; } .corner.tr { top: 8px; right: 10px; } .corner.bl { bottom: 8px; left: 10px; } .corner.br { bottom: 8px; right: 10px; }

/* category filters + expand / collapse */
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.toolbar-right { display: flex; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 6px 14px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.filter .n { margin-left: 6px; color: var(--accent); font-family: Consolas, monospace; font-size: 11px; }
.feedback { min-height: 18px; margin: 10px 0 8px; color: var(--dim); font-size: 11px; }

/* groups and questions */
.group { margin-bottom: 26px; }
.group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--condensed); font-size: 24px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.group h2::before { content: ""; width: 26px; height: 3px; background: var(--accent); }
.qa { margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line2); transition: border-color .15s; }
.qa[open] { border-left-color: var(--accent); background: var(--panel2); }
.qa.target { animation: flash 1.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 2px var(--accent); } to { box-shadow: 0 0 0 2px transparent; } }
.qa summary { display: flex; align-items: center; gap: 12px; padding: 15px 16px 15px 18px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #fff; }
.qa summary .q { flex: 1; min-width: 0; overflow-wrap: break-word; }
.qa summary .chev { flex: 0 0 auto; color: var(--accent); font-size: 18px; transition: transform .2s; }
.qa[open] summary .chev { transform: rotate(90deg); }
.answer { padding: 0 18px 16px 18px; color: #c4d3ce; line-height: 1.8; overflow-wrap: break-word; }
.answer p { margin: 0 0 10px; }
.answer ul, .answer ol { margin: 0 0 10px; padding-left: 22px; }
.answer li { margin-bottom: 4px; }
.answer code { padding: 1px 6px; background: rgba(4, 12, 10, .8); border: 1px solid var(--line); font-family: Consolas, monospace; font-size: 12.5px; color: var(--text); }
.answer strong { color: var(--text); }
.answer img { display: block; max-width: 100%; margin: 6px 0 12px; border: 1px solid var(--line2); }
.answer mark, .qa summary mark { background: rgba(31, 214, 159, .28); color: inherit; padding: 0 1px; }
/* "importante": true in faq.json */
/* gold (owner: «como doraditos») */
.qa.important { position: relative; overflow: hidden; border: 1px solid rgba(242, 193, 78, .6); border-left: 4px solid #f2c14e;
  background: linear-gradient(100deg, rgba(242, 193, 78, .16), rgba(242, 193, 78, .04) 55%, #14130c 100%);
  box-shadow: 0 0 20px rgba(242, 193, 78, .16), inset 0 0 0 1px rgba(255, 224, 140, .07); }
.qa.important[open] { background: linear-gradient(100deg, rgba(242, 193, 78, .2), rgba(242, 193, 78, .05) 55%, #17150d 100%); }
.qa.important::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 230, 160, .13), transparent); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.qa.important summary { font-size: 16px; color: #ffe9a8; }
.qa.important summary:hover { color: #fff3cf; }
.qa.important summary .chev { color: #f2c14e; }
.qa.important .answer strong { color: #ffe9a8; }
.badge { flex: 0 0 auto; padding: 3px 12px 3px 8px; background: linear-gradient(135deg, #fff0b3 0%, #f2c14e 45%, #b8860b 100%); color: #2a1d00;
  font-family: var(--condensed); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.badge::before { content: "\2605  "; }
@media (prefers-reduced-motion: reduce) { .qa.important::after { animation: none; display: none; } }
.qa-foot { display: flex; justify-content: flex-end; padding: 0 18px 12px; }
.copy { padding: 5px 10px; background: transparent; border: 1px solid var(--line2); color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--accent); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; background: var(--accent); color: #04120d; font-weight: 700; font-size: 13px; z-index: 10; }

@media (max-width: 640px) {
  .header { padding: 10px 16px; }
  .brand-mark { font-size: 26px; margin-right: 10px; padding-right: 10px; }
  .brand-name { font-size: 16px; }
  .nav-link { padding: 7px 9px; }
  .main { padding: 18px 16px 50px; }
  .hero { padding: 28px 20px 24px; }
  .hero h1 { font-size: 32px; }
  .qa summary { font-size: 14px; padding: 13px 12px 13px 14px; }
  .answer { padding: 0 14px 14px; }
}
