/* =====================================================================
   «Qué incluye» (/formulas-matematicas-ii-pau): the SEO content page.
   Mobile first. Colours, type and spacing are tokens (brand/tokens.css);
   the frame, header, footer, buttons and the fan of sheets come from
   css/app.css. No inline styles anywhere (strict CSP).
   ===================================================================== */

/* A wider reading column than the 440px wizard. */
.seo { max-width: 46rem; }
.seo .ct { padding-bottom: var(--anm-esp-7); }
.seo-art { display: flex; flex-direction: column; gap: var(--anm-esp-7); padding-top: var(--anm-esp-1); }
.seo-art b { font-weight: 700; }
.seo-art ul, .seo-art h3 { margin: 0; }
.nw { white-space: nowrap; }
.seo .no {
  background: var(--anm-color-fosforito); color: var(--anm-color-tinta); padding: 0 0.12em;
  border-radius: var(--anm-radio-fosforito); font-weight: 700;
}

/* Links in the text: same language as the rest of the site. */
.seo-art p a, .migas a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.seo-art p a { font-weight: var(--anm-peso-texto-fuerte); }
@media (hover: hover) {
  .seo-art p a:hover, .migas a:hover { background: var(--anm-color-fosforito); color: var(--anm-color-tinta); }
}
.seo-art p a:active, .migas a:active { background: var(--anm-color-fosforito); color: var(--anm-color-tinta); }

/* Breadcrumb, close to the title */
.migas { margin-bottom: calc(var(--anm-esp-3) - var(--anm-esp-7)); }
.migas ol {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--anm-esp-2);
  font-size: var(--anm-web-legal); line-height: 1.5; color: var(--anm-texto-secundario);
}
.migas li + li::before { content: "›"; margin-right: var(--anm-esp-2); }
.migas a { display: inline-block; padding: 2px 0; color: var(--anm-texto-secundario); }

/* Hero: title, lede and the first call to action */
.seo-hero { display: flex; flex-direction: column; gap: var(--anm-esp-4); }
.seo-h1 { max-width: 20ch; }
.seo-lede { font-size: 1.125rem; line-height: 1.5; max-width: var(--anm-ancho-lectura); }

/* Call to action: the button and, glued under it, the condition (Legal §10.7). */
.seo-cta { display: flex; flex-direction: column; gap: var(--anm-esp-2); max-width: 24rem; }
.seo-cta-hero { margin-top: var(--anm-esp-2); }
.seo-cta-legal { text-wrap: pretty; }

/* Sections */
.seo-sec { display: flex; flex-direction: column; gap: var(--anm-esp-4); }
.seo-cab { display: flex; flex-direction: column; gap: var(--anm-esp-3); }
.seo-sec h2 {
  font-family: var(--anm-fuente-titular); font-stretch: 112.5%; font-weight: var(--anm-peso-titular);
  font-size: var(--anm-tam-xl); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance;
}
.seo-sec h3 { font: 700 var(--anm-web-texto)/1.25 var(--anm-fuente-titular); }
.seo-sec p { max-width: var(--anm-ancho-lectura); }
.seo-etiqueta, .seo-meta, .fx-bloque, .fx-idea b {
  font-family: var(--anm-fuente-titular); font-weight: var(--anm-peso-etiqueta); font-size: var(--anm-tam-xs);
  line-height: 1.3; text-transform: uppercase; letter-spacing: var(--anm-espaciado-etiqueta);
}
.seo-card {
  position: relative; display: flex; flex-direction: column; gap: var(--anm-esp-2);
  padding: var(--anm-esp-4); border: var(--anm-borde-grosor) solid var(--anm-borde); background: var(--anm-color-papel);
}

/* Two PDFs: the fan of blurred sheets and the two cards */
.seo-fan { margin: 0 0 var(--anm-esp-3); justify-content: flex-start; gap: var(--anm-esp-4); }
.seo-pdfs { list-style: none; padding: 0; display: grid; gap: var(--anm-esp-5); }
.seo-pdf { gap: var(--anm-esp-2); padding-top: var(--anm-esp-5); }
.seo-meta { color: var(--anm-texto-secundario); }
.seo-pdf p:last-child { font-size: var(--anm-web-pequeno); line-height: 1.5; }

/* Topics, block by block */
.seo-bloques { display: grid; gap: var(--anm-esp-4); }
.seo-bloque ul { padding-left: 1.15em; display: grid; gap: var(--anm-esp-1); font-size: var(--anm-web-pequeno); line-height: 1.45; }
.seo-bloque li::marker { color: var(--anm-color-rosa-tinta); }

/* Four formulas, with their «why». The formulas are HTML (no JavaScript);
   fractions, roots and integrals are drawn with borders. ∫ √ ≠ ≤ come from
   the self-hosted STIX subset, π σ μ from Literata's Greek subset (always
   upright: there is no italic Greek file, and <i> would fall to Georgia). */
.fx-lista { list-style: none; padding: 0; display: grid; gap: var(--anm-esp-5); }
.fx-card { gap: var(--anm-esp-3); }
.fx-bloque { color: var(--anm-texto-secundario); }
.fx-card h3 { margin-top: calc(-1 * var(--anm-esp-2)); }
.fx {
  font-family: var(--anm-fuente-texto); font-size: 1.3125rem; line-height: 1.35; text-align: center;
  white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: var(--anm-esp-4) var(--anm-esp-2);
  background: var(--anm-color-fosforito-suave);
}
.fx i, .fx-cond i { font-style: italic; }
.fx sub, .fx sup, .fx-cond sub { font-size: 0.66em; line-height: 0; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 0.1em; }
.fr-n { padding: 0 0.25em 0.14em; border-bottom: 1.5px solid currentColor; }
.fr-d { padding: 0.14em 0.25em 0; }
.raiz { display: inline-flex; align-items: flex-start; }
.raiz-s { line-height: 1.2; margin-right: -0.02em; }
.raiz-r { margin-top: 0.12em; padding: 0.04em 0.1em 0; border-top: 1.5px solid currentColor; line-height: 1.1; }
.int { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 0.08em; }
.int-s { font-size: 1.6em; line-height: 1; }
.int-l { display: inline-flex; flex-direction: column; justify-content: space-between; height: 2.3em; margin-left: 0.04em; font-size: 0.66em; line-height: 1; }
.fx-cond { font-size: var(--anm-web-pequeno); line-height: 1.5; }
/* «La idea»: the founder's voice, handwritten in pink as in the annotated PDF.
   Greek letters fall back to Literata (self-hosted), not to a system font. */
.fx-idea { font-family: "Kalam", var(--anm-fuente-texto); font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--anm-nota); }
.fx-idea b { display: block; margin-bottom: 2px; }
.fx-ej { padding-top: var(--anm-esp-3); border-top: 1px solid var(--anm-color-linea); font-size: var(--anm-web-pequeno); line-height: 1.5; color: var(--anm-texto-secundario); }
.fx-ej b { color: var(--anm-texto); font-family: var(--anm-fuente-titular); margin-right: 0.2em; }
.fx-lista + .seo-cta { margin-top: var(--anm-esp-3); }

/* How it is made, and who made it */
.seo-hecha, .seo-cred { list-style: none; padding: 0; display: grid; gap: var(--anm-esp-4); }
.seo-hecha li, .seo-cred li { display: flex; gap: var(--anm-esp-3); align-items: flex-start; }
.seo-hecha h3 { margin-bottom: var(--anm-esp-1); }
.seo-hecha p { font-size: var(--anm-web-pequeno); line-height: 1.5; }
.seo-ic { width: 22px; height: 22px; margin-top: 2px; }
.seo-quien { display: flex; gap: var(--anm-esp-4); align-items: center; }
.seo-avatar { flex: none; width: 72px; height: 72px; border-radius: var(--anm-radio-avatar); }
.seo-cred { gap: var(--anm-esp-2); }
.seo-cred li { line-height: 1.45; }
.seo-redes { font-size: var(--anm-web-pequeno); }

/* Frequently asked questions: always visible (the JSON-LD repeats them) */
.seo-faq { display: grid; gap: var(--anm-esp-4); }
.faq { display: flex; flex-direction: column; gap: var(--anm-esp-2); padding-top: var(--anm-esp-4); border-top: 1px solid var(--anm-color-linea); }
.faq p { font-size: var(--anm-web-pequeno); line-height: 1.55; }

/* Last call to action, in a box with a fosforito shadow */
.seo-cierre {
  padding: var(--anm-esp-5) var(--anm-esp-4); border: var(--anm-borde-grosor) solid var(--anm-borde);
  background: var(--anm-color-papel); box-shadow: 6px 6px 0 var(--anm-color-fosforito); margin-right: 6px;
}

/* Tablet and desktop: two columns for the cards */
@media (min-width: 48rem) {
  .seo-art { gap: var(--anm-esp-8); }
  .migas { margin-bottom: calc(var(--anm-esp-3) - var(--anm-esp-8)); }
  .seo-h1 { font-size: 2.5rem; line-height: 1.08; max-width: 24ch; }
  .seo-cta { max-width: 26rem; }
  .seo-lede { font-size: 1.25rem; }
  .seo-pdfs, .seo-bloques, .fx-lista { grid-template-columns: 1fr 1fr; }
  .seo-hecha { grid-template-columns: repeat(3, 1fr); gap: var(--anm-esp-5); }
  .seo-hecha li { flex-direction: column; gap: var(--anm-esp-2); }
  .seo-cierre { padding: var(--anm-esp-6); }
}

/* Small phones (≤ 370px): the fan and the formulas shrink a little */
@media (max-width: 370px) {
  .fx { font-size: 1.1875rem; }
  .seo-lede { font-size: 1.0625rem; }
}
