:root {
  --bg: #ffffff;
  --bg-alt: #eef4ff;
  --navy: #0f2a4a;
  --teal: #0b7a75;
  --teal-soft: #e6f5f3;
  --ink: #111827;
  --ink-soft: #5b6472;
  --line: #e5e7eb;
  --accent: #1d4ed8;
  --accent-dark: #1e3fae;
  --focus: #d97706;
  --radius: 10px;
  --fs: 1.0625rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
html[data-fs="-1"] { font-size: 93.75%; }
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Verdana, sans-serif;
  font-size: var(--fs); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1100px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 3rem); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .8rem 1.2rem; z-index: 100; }
.skip:focus { left: 0; }

/* Top bar */
.topbar { background: var(--navy); font-size: .85rem; color: #c8d6ea; }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact { margin: 0; }
.tools { display: flex; gap: .4rem; flex-wrap: wrap; }
.tool { font: inherit; font-size: .78rem; background: transparent; color: #dbe6f5; border: 1px solid #3d5c85; border-radius: 6px; padding: .1rem .6rem; cursor: pointer; min-height: 1.8rem; }
.tool:hover { border-color: #fff; color: #fff; }
.tool[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.logo { display: block; flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; }
.nav a { display: inline-block; padding: .35rem 0; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .93rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav a.btn { color: #fff; padding: .45rem 1.1rem; }
.menu-btn { display: none; font: inherit; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .9rem; cursor: pointer; min-height: 2.5rem; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.center-row { justify-content: center; }
.btn { display: inline-block; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; padding: .8rem 1.5rem; border-radius: 8px; border: 1px solid var(--accent); min-height: 3rem; }
.btn-sm { padding: .45rem 1.1rem; min-height: 0; font-size: .92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent-dark); border-color: #b9ccf5; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(180deg, #e8f0ff 0%, #f6f9ff 70%, #fff 100%); }
.hero-grid { display: grid; gap: 4rem; grid-template-columns: 1.15fr .85fr; align-items: center; }
.lead-sm { color: var(--ink-soft); max-width: 58ch; }
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, #e8f0ff 0%, #f6f9ff 100%); border-bottom: 1px solid #d6e2fa; }
.page-hero h1 { max-width: 20ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--teal); margin-bottom: .9rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.hero + .section, .page-hero + .section { border-top: 0; }
.section.alt { background: var(--bg-alt); border-top-color: #d6e2fa; }
.contact { background: var(--teal-soft); border-top-color: #c3e6e1; }
.two-col { display: grid; gap: 4rem; grid-template-columns: 1fr 1fr; align-items: start; }
.prose p { max-width: 62ch; }
.band { padding: 0 0 clamp(3rem, 7vw, 5.5rem); }

/* Photos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: 50% 45%; }
.photo figcaption { padding: .9rem 1.1rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.photo.wide { width: min(1000px, 100% - 3rem); margin-inline: auto; }
.photo.wide img { max-height: 520px; object-position: 50% 55%; }

/* Cards */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1.8rem 0; }
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.6rem; }
.cards .card:nth-child(3n+2) { border-top-color: var(--teal); }
.cards .card:nth-child(3n) { border-top-color: #5b6ee1; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card-link:hover { box-shadow: 0 8px 24px rgba(15,42,74,.12); color: var(--ink); }
.more { color: var(--accent); font-weight: 500; font-size: .95rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); background: #e8f0ff; border-radius: 999px; padding: .1rem .65rem; margin-bottom: .8rem; }
.accent-card { background: var(--teal-soft); border-top-color: var(--teal); }
.people { display: grid; gap: 1.2rem; }
.person p:last-child { margin-bottom: 0; }
.avatar { display: block; width: 100%; max-height: 300px; object-fit: cover; object-position: 50% 30%; border-radius: 8px; margin-bottom: .5rem; }
.credit { font-size: .78rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.2rem 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { border-top: 3px solid var(--teal); padding-top: 1rem; }
.steps .num { display: block; font-size: .85rem; font-weight: 700; color: var(--teal); letter-spacing: .1em; margin-bottom: .6rem; }
.steps p { color: var(--ink-soft); margin-bottom: 0; }

/* Notices */
.notice { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding-right: 1.3rem; padding-top: .9rem; padding-bottom: .9rem; padding-left: 1.3rem; margin: 2rem 0; }
.notice h3 { margin-bottom: .3em; }
.notice p:last-child { margin-bottom: 0; }
.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: .5rem; }
.small { font-size: .9rem; color: var(--ink-soft); }

/* FAQ / articles */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.1rem .2rem; font-weight: 500; list-style-position: inside; }
summary:hover { color: var(--accent); }
details[open] > summary { color: var(--accent-dark); }
details p { padding: 0 .2rem; color: var(--ink-soft); }
details[open] summary { margin-bottom: .4rem; }
.art h4 { margin: 1rem .2rem .3rem; font-size: 1rem; }
.art details ul { margin: 0 0 1rem 1.2rem; color: var(--ink-soft); }
.art details p.small { padding-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c9df; padding: 3.5rem 0 2rem; }
.site-footer a { color: #d6e4fa; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr; }
.foot-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; font-size: 1.05rem; }
.foot-note { border-top: 1px solid #2c4a70; padding-top: 1.2rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .foot-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .header-row { gap: .5rem .6rem; }
  .brand { font-size: 1rem; }
  .menu-btn { display: inline-block; margin-left: auto; }
  .nav { display: none; flex-basis: 100%; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; }
  .nav a { padding: .6rem 0; }
  .page-hero h1 { max-width: none; }
}

/* Índice de artículos */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.5rem 0 0; }
.chips a { display: inline-block; padding: .4rem 1rem; border-radius: 999px; background: #fff; border: 1px solid #b9ccf5; color: var(--accent-dark); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chips a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.art ul { margin: 0 0 1rem 1.2rem; color: var(--ink-soft); }
.art ul li { margin-bottom: .4rem; }
