*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.005em; font-optical-sizing: none; font-variation-settings: "opsz" 18; }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.sec-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
.sec-intro { color: var(--muted); margin-bottom: 2.25rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Íconos y botones */
.ico { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: .8rem 1.35rem; border-radius: 8px; text-decoration: none; border: 2px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: .01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark { width: 32px; height: 32px; flex: none; }
.nav-links { display: flex; flex: 1 1 auto; min-width: 0; gap: 1.25rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--muted); text-decoration: none; padding-block: .4rem; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.nav-cta { display: inline-flex; align-items: center; gap: .45rem; flex: none; font-family: var(--font-head); font-weight: 700; font-size: .95rem; background: var(--accent); color: var(--on-accent); text-decoration: none; padding: .45rem 1rem; border-radius: 8px; }
.nav-cta:hover { filter: brightness(1.1); }

/* Botones de ícono: tema (si hay JS) y hamburguesa (pantallas chicas) */
.icon-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .ico { width: 24px; height: 24px; }
.js .theme-toggle { display: inline-flex; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline-block; }
