:root {
  --ink: #1D1D2B;
  --ink-soft: #55556A;
  --paper: #FFFFFF;
  --plaster: #F6F4EF;
  --line: #E2DFD8;
  --coral: #EF5B4C;
  --amarillo: #F5CD3A;
  --verde: #2FA66B;
  --azul: #2F7DE1;
  --azul-osc: #1F5FB8;
  --violeta: #7A55C7;
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--azul-osc); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Cabecera */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: "Rubik", var(--font); font-weight: 800; font-size: 1.4rem; line-height: 1; text-decoration: none; letter-spacing: -0.03em; display: flex; gap: 6px; align-items: center; color: var(--ink); }
.brand-icon { width: 38px; height: 33px; margin-right: 4px; }
.brand-ya { color: #fff; background: var(--coral); border-radius: 6px; padding: 2px 7px 4px; }
.top-cta { text-decoration: none; font-weight: 700; font-size: .95rem; background: var(--coral); color: #fff; padding: 10px 16px; border-radius: 6px; white-space: nowrap; }
.top-cta:hover { background: #D8463A; }

/* Franja de carta de colores bajo la cabecera */
.chips-line { height: 6px; background: linear-gradient(90deg, var(--coral) 0 20%, var(--amarillo) 20% 40%, var(--verde) 40% 60%, var(--azul) 60% 80%, var(--violeta) 80%); }

/* Portada de página */
.page-hero { background: var(--plaster); padding: 72px 0 60px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); line-height: .98; letter-spacing: -0.04em; font-weight: 800; max-width: 16ch; }
.page-hero .lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 20px; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 800; font-size: 1.05rem; padding: 15px 24px; border-radius: 6px; border: 0; background: var(--coral); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: #D8463A; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 600; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Contenido */
.content { padding: 72px 0; }
.content h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 56px 0 16px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 28px 0 8px; }
.content p { margin-bottom: 14px; max-width: 65ch; }
.content ul, .content ol { margin: 0 0 16px 22px; max-width: 62ch; }
.content li { margin-bottom: 8px; }
.content li::marker { color: var(--coral); font-weight: 800; }

.incl { list-style: none; margin: 20px 0 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); max-width: none !important; }
.incl li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.incl li:nth-child(odd) { border-right: 1px solid var(--line); }
.incl li:nth-child(even) { padding-left: 20px; }
.incl b { display: block; font-size: 1.08rem; }
.incl span { color: var(--ink-soft); }

.note { background: var(--plaster); border-radius: 8px; padding: 18px 20px; margin: 20px 0; max-width: 65ch; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 760px; }
details:first-of-type { border-top: 1.5px solid var(--ink); }
summary { font-weight: 800; cursor: pointer; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin-top: 10px; }

/* Páginas legales */
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal p, .legal li { color: #33334A; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--plaster); }
.table-wrap { overflow-x: auto; }
.updated { color: var(--ink-soft); font-size: .95rem; }

/* Cierre */
.cta { background: var(--ink); color: #fff; padding: 72px 0; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; max-width: 18ch; }
.cta p { color: #C9C9D6; margin: 16px 0 28px; font-size: 1.1rem; max-width: 46ch; }

footer { padding: 30px 0 40px; font-size: .9rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: inherit; }

@media (max-width: 720px) {
  .top-cta { padding: 9px 12px; font-size: .88rem; }
  .brand { font-size: 1.2rem; }
  .brand-icon { width: 32px; height: 28px; }
  .page-hero { padding: 48px 0 44px; }
  .content { padding: 52px 0; }
  .incl { grid-template-columns: 1fr; }
  .incl li, .incl li:nth-child(even) { padding: 16px 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
