/* Temarios para Oposiciones — web paraguas.
   Layout: bandas a todo el ancho con contenido centrado (max 1080px); texto corrido a ~68ch. */
:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #171a21;
  --muted: #5b6270;
  --line: #dde1e8;
  --amber: #b45309;
  --amber-strong: #b45309;
  --amber-soft: #fdf1e2;
  --slate: #1d2633;
  --on-slate: #f3f4f6;
  --on-slate-muted: #c3c8d1;
  --chip: rgba(255, 255, 255, 0.07);
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151b; --surface: #1a1e26; --ink: #eceef2; --muted: #a2a9b6; --line: #2c323d;
    --amber: #f0a43a; --amber-strong: #b45309; --amber-soft: #2e2416;
    --slate: #0b0e13; --on-slate: #eceef2; --on-slate-muted: #a2a9b6; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 68ch; display: grid; gap: 16px; }
.band { padding-block: clamp(40px, 7vw, 80px); }
.label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--amber); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; }

/* Cabecera */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-head nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }

/* Portada */
.hero { background: var(--slate); color: var(--on-slate); }
.hero .wrap { display: grid; gap: 22px; padding-block: clamp(40px, 8vw, 88px); }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.intro { max-width: 60ch; color: var(--on-slate-muted); font-size: 1.12rem; }
.search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 660px; }
.search input { flex: 1 1 260px; min-width: 0; font: inherit; padding: 14px 16px; border-radius: 8px; border: 1px solid transparent; background: var(--surface); color: var(--ink); }
.search button, .btn { font: inherit; font-weight: 700; padding: 13px 20px; border-radius: 8px; border: 0; background: var(--amber-strong); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.results { max-width: 660px; display: grid; gap: 6px; }
.results[hidden] { display: none; }
.results .status { color: var(--on-slate-muted); font-size: 0.95rem; }
.result { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--chip); color: var(--on-slate); text-decoration: none; }
.result:hover { background: rgba(255, 255, 255, 0.13); }
.result img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: rgba(255,255,255,0.08); }
.result .t { min-width: 0; display: grid; }
.result .t b { font-weight: 600; line-height: 1.3; }
.result .t small { color: var(--on-slate-muted); }
.result .shops { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.result .shop { font-size: 0.8rem; font-weight: 700; color: var(--amber); white-space: nowrap; text-decoration: none; padding: 3px 8px; border: 1px solid currentColor; border-radius: 6px; }
.result .shop:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 520px) { .result { grid-template-columns: 44px 1fr; } .result img { width: 44px; height: 44px; } .result .shops { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; } }
.results .empty { display: grid; gap: 10px; color: var(--on-slate-muted); }
.results .empty a { color: var(--amber); font-weight: 700; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); background: var(--surface); }
.pillars > div { padding: 28px clamp(16px, 3vw, 32px); display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.pillars > div:last-child { border-right: 0; }
.pillars .label { color: var(--muted); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillars > div { border-right: 0; border-bottom: 1px solid var(--line); } .pillars > div:last-child { border-bottom: 0; } }

.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.store .dom { font-weight: 700; font-size: 0.9rem; color: var(--amber); }
.store .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 640px) { .stores { grid-template-columns: 1fr; } }

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 26px; border: 1px solid var(--amber); background: var(--amber-soft); border-radius: 10px; }
.cta > div { min-width: 0; display: grid; gap: 4px; max-width: 60ch; }

/* Páginas interiores */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(32px, 6vw, 64px); display: grid; gap: 12px; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 3rem 1fr; gap: 8px 16px; }
.steps li::before { content: counter(paso); font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--amber); }
.steps li > div { display: grid; gap: 6px; max-width: 64ch; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.contact .big { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.35rem; margin-top: 12px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* Pie */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { padding-block: 28px; display: grid; gap: 12px; }
.site-foot .row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) { .result { transition: background 0.15s; } }
