/* PlazaOpo: hoja de estilos única de la web.
   Tipografías: Schibsted Grotesk (interfaz y titulares) y Source Serif 4 (artículos, citas y anotaciones).
   Paleta: azul del logotipo (#004AAD) y su versión oscura sobre blanco, cuadrícula azul de papel de examen y rojo solo para anotaciones. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2-variations");
}

:root {
  --ink: #142538;        /* texto principal */
  --ink-soft: #4A5B6E;   /* texto secundario */
  --navy: #0B2A5B;       /* azul oscuro, derivado del logotipo */
  --blue: #004AAD;       /* azul del logotipo */
  --grid: #CCDAEF;       /* líneas de cuadrícula */
  --wash: #EEF3FA;       /* fondo de secciones alternas */
  --paper: #FFFFFF;
  --red: #B23A36;        /* tinta de corrección: solo anotaciones y errores */
  --line: #D9E2EC;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 650 1rem/1.2 var(--sans);
  padding: 0.85em 1.35em;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  background: var(--navy); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--wash); border-color: var(--navy); color: var(--navy); }
.btn--small { padding: 0.55em 1em; font-size: 0.95rem; }

/* ---------- Cabecera ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
@media (max-width: 720px) { .brand-logo { height: 40px; } }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; }

/* Desplegable "Dónde preparo" */
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none; cursor: pointer; font-weight: 550; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.15s ease, margin 0.15s ease;
}
.nav-drop[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.nav-drop summary:hover, .nav-drop.is-current summary, .nav-drop[open] summary { color: var(--blue); }
.nav-drop ul {
  position: absolute; top: calc(100% + 16px); left: -18px; min-width: 230px;
  list-style: none; margin: 0; padding: 8px 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 32px -14px rgba(11, 42, 91, 0.35);
}
.site-nav .nav-drop li a { display: block; padding: 10px 18px; font-weight: 500; }
.site-nav .nav-drop li a:hover, .site-nav .nav-drop li a[aria-current="page"] { background: var(--wash); color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .nav-drop summary::after { transition: none; } }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    font: 600 0.95rem/1 var(--sans); color: var(--navy); padding: 10px 14px; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn), .nav-drop summary { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-drop summary { display: flex; justify-content: space-between; }
  .nav-drop ul { position: static; min-width: 0; padding: 4px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .site-nav .nav-drop li a { padding: 10px 0 10px 16px; }
  .site-nav .btn { margin-top: 16px; }
}

/* ---------- Portada (hero) ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 1.4em; font-size: 0.95rem; color: var(--ink-soft); }

/* La hoja de examen: el elemento distintivo de la web */
.sheet {
  position: relative;
  background-color: #fff;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 28px 34px 64px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(11, 42, 91, 0.35);
  transform: rotate(-1.4deg);
  font-family: var(--serif);
  color: var(--ink);
}
.sheet::before { /* margen rojo de la hoja */
  content: ""; position: absolute; top: 0; bottom: 0; left: 46px; width: 1.5px; background: rgba(178, 58, 54, 0.55);
}
.sheet-head { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; }
.sheet-q { font-weight: 600; font-size: 1.02rem; line-height: 1.45; margin-bottom: 14px; }
.sheet-math { font-size: 1.05rem; line-height: 2; margin: 0 0 6px; }
.sheet-math .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.25; margin: 0 0.15em; }
.sheet-math .frac span:first-child { border-bottom: 1.5px solid var(--ink); padding: 0 0.25em; }
.sheet-result { font-weight: 700; color: var(--navy); }
.sheet-result { position: relative; }
.sheet-mark { /* tick de corrección, en el margen a la altura del resultado */
  position: absolute; left: -54px; top: 50%; margin-top: -13px; width: 26px; height: 26px; color: var(--red);
}
.sheet-annot {
  margin: 18px 0 0 -10px;
  font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--red);
  max-width: 30ch;
  transform: rotate(-2deg); transform-origin: left top;
}
@media (prefers-reduced-motion: no-preference) {
  .sheet-annot, .sheet-mark { opacity: 0; animation: write-in 0.7s 0.9s ease-out forwards; }
  .sheet-mark { animation-delay: 0.6s; }
  @keyframes write-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sheet { transform: rotate(-0.8deg); max-width: 520px; }
}
@media (max-width: 420px) {
  .sheet { padding: 24px 18px 28px 52px; }
  .sheet::before { left: 38px; }
  .sheet-mark { left: -46px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--wash { background: var(--wash); }
.section-intro { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-intro p { color: var(--ink-soft); font-size: 1.1rem; }

/* 2027: tu año */
.year { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 72px); align-items: start; }
.year-number {
  font-weight: 850; font-size: clamp(5rem, 15vw, 10rem); line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 2px var(--blue);
}
@supports not (-webkit-text-stroke: 2px black) { .year-number { color: var(--blue); } }
.year-body h2 { margin-top: 0.15em; }
.year-body p { font-size: 1.1rem; max-width: 58ch; }
@media (max-width: 640px) { .year { grid-template-columns: 1fr; gap: 8px; } }

/* Índice de la preparación (con puntos guía, como el índice de un temario) */
.toc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.toc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.toc-item { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.toc-text { font-size: 1.1rem; font-weight: 550; color: var(--ink); }
.toc-dots { flex: 1; border-bottom: 2px dotted #9FB3C8; transform: translateY(-0.3em); min-width: 24px; }
.toc-part { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 640px) {
  .toc li { grid-template-columns: 1fr; gap: 2px; }
  .toc-dots { display: none; }
}

/* Testimonios */
.quotes { columns: 2 340px; column-gap: clamp(28px, 5vw, 56px); }
.quote { break-inside: avoid; margin: 0 0 clamp(28px, 4vw, 40px); padding-left: 20px; border-left: 3px solid var(--grid); }
.quote:first-child { border-left-color: var(--blue); }
.quote blockquote { margin: 0 0 10px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.quote:first-child blockquote { font-size: 1.3rem; line-height: 1.5; }
.quote figcaption { font-size: 0.95rem; color: var(--ink-soft); }
.quote figcaption strong { color: var(--navy); font-weight: 650; }

/* Formulario de contacto */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.signup-copy p { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.call { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.call p { font-size: 1rem; margin-bottom: 14px; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 34px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #B9C7D6; border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; min-height: 104px; display: block; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select[aria-invalid="true"] { border-color: var(--red); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.92rem; color: var(--ink-soft); margin: 6px 0 22px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.form .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-ok { color: #1E7145; font-weight: 600; }
.form-status.is-error { color: var(--red); font-weight: 600; }
.hp { display: none; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.page-head { padding: clamp(44px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 56ch; margin: 0; }
.page-body { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }

.pending {
  border: 1.5px dashed var(--red); border-radius: 8px; padding: 18px 20px; color: var(--red);
  background: #FDF4F3; font-size: 0.98rem; max-width: 64ch;
}

/* Quién soy (dirección /quienes-somos/) */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-copy p { font-size: 1.1rem; max-width: 60ch; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
/* Hoja de programación corregida (variante de la hoja de la portada) */
.sheet--about { transform: rotate(1.2deg); max-width: 460px; justify-self: end; }
.sheet-list { list-style: none; margin: 0 0 4px; padding: 0; font-size: 1rem; line-height: 1.5; }
.sheet-list li { position: relative; padding: 4px 0; }
.sheet-list .sheet-mark { left: -54px; top: 50%; }
.sheet-list--num { counter-reset: paso; }
.sheet-list--num li::before { counter-increment: paso; content: counter(paso) ". "; font-weight: 650; }
@media (max-width: 420px) { .sheet-list .sheet-mark { left: -46px; } }
.sheet-figure { position: relative; margin: 2px 0 4px; }
.sheet-figure .sheet-mark { left: -54px; top: 50%; }
.sheet-graph { display: block; width: 100%; max-width: 240px; height: auto; color: var(--navy); }
.sheet-graph text { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--ink); }
@media (max-width: 820px) { .sheet--about { justify-self: start; } }
@media (max-width: 420px) { .sheet-figure .sheet-mark { left: -46px; } }

/* Notas de la oposición, anotadas como en un examen corregido */
.grades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.grade h3 { margin: 18px 0 8px; }
.grade p { color: var(--ink-soft); margin: 0; }
.grade-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 76px; color: var(--red); }
.grade-mark span { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.6rem; line-height: 1; transform: rotate(-4deg); }
.grade-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.grade:nth-child(2) .grade-ring { transform: rotate(3deg) scaleX(-1); }
.grade:nth-child(3) .grade-ring { transform: rotate(-2deg); }
@media (max-width: 820px) { .grades { grid-template-columns: 1fr; } }
.closing { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--navy); margin: 1.4em 0 1.2em; }

/* Preguntas frecuentes (desplegables) */
.faq { max-width: 780px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 48px 20px 0;
  font-weight: 650; font-size: 1.15rem; line-height: 1.35; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 16px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 16px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; max-width: 64ch; }
.faq-answer p { margin: 0 0 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.call-faq { margin: 16px 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Selector de comunidades */
.regions { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.regions a {
  display: flex; align-items: baseline; gap: 14px; padding: 20px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.region-name { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 750; letter-spacing: -0.015em; color: var(--navy); white-space: nowrap; }
.region-hook { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--blue); text-align: right; }
.regions a:hover .region-name { color: var(--blue); }
.regions a:hover .toc-dots { border-color: var(--blue); }
@media (max-width: 640px) {
  .regions a { flex-direction: column; gap: 2px; }
  .regions .toc-dots { display: none; }
  .region-hook { text-align: left; }
}

/* Lo igual y lo que cambia */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.split h3 { padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 0; }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.split-note { margin: 32px 0 0; max-width: 64ch; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--navy); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Cómo es tu examen */
.exam { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.exam-copy p { font-size: 1.1rem; max-width: 60ch; }
.ficha { margin: 0; border-top: 2px solid var(--navy); }
.ficha div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ficha dt { font-weight: 600; }
.ficha dd { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--blue); text-align: right; white-space: nowrap; }
.ficha-src { margin: 12px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 820px) { .exam { grid-template-columns: 1fr; } }

/* Quién te prepara (resumen) y enlaces de "ver más" */
.bio { max-width: 64ch; }
.bio p { font-size: 1.1rem; }
.link-more { font-weight: 650; }
.more { margin: 28px 0 0; }
.porque p { font-size: 1.1rem; }

/* Artículos destacados */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 40px); }
.cards li { border-top: 2px solid var(--navy); padding-top: 18px; }
.cards h3 { font-size: 1.15rem; line-height: 1.3; }
.cards h3 a { color: var(--navy); text-decoration: none; }
.cards h3 a:hover { color: var(--blue); text-decoration: underline; }
.cards p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--blue); font-size: 0.82rem; font-weight: 650; }
.article-meta .tag { margin: 0 0 0 10px; }

/* Listado del blog */
.posts { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.posts li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.posts li:first-child { padding-top: 0; }
.posts h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-bottom: 0.4em; }
.posts h2 a { color: var(--navy); text-decoration: none; }
.posts h2 a:hover { color: var(--blue); text-decoration: underline; }
.posts p { color: var(--ink-soft); margin: 0; }

/* Artículo: lectura larga en serifa */
.article { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; max-width: 68ch; }
.article h2 { font-family: var(--sans); font-size: 1.5rem; margin: 1.8em 0 0.6em; }
.article h3 { font-family: var(--sans); margin: 1.5em 0 0.5em; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.8em; }
.article li::marker { color: var(--blue); }
.article figure { margin: 2em 0; }
.article figure img { width: 100%; height: auto; border-radius: 8px; }
.article figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }
.article strong { color: var(--navy); }
.article blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--blue); font-style: italic; }
.article-title { font-size: clamp(2rem, 4.2vw, 2.9rem); max-width: 26ch; }
.article-meta { font-size: 0.95rem; color: var(--ink-soft); margin-top: 14px; }
.article-cta { margin-top: 48px; padding: 26px 28px; background: var(--wash); border-radius: 8px; font-family: var(--sans); font-size: 1.05rem; line-height: 1.6; max-width: 68ch; }
.article-cta p { margin-bottom: 14px; }


/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: #D6E1EE; padding: 48px 0 40px; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.footer-logo { height: 40px; width: auto; }
.footer-brand p { margin: 10px 0 0; max-width: 34ch; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #A9BBD0; }
.footer-legal a { color: #D6E1EE; }
