/* ==========================================================================
   Academia Ítaca — itaca-pages.css · estilo «Tinta»
   Mini-landings de universidades (/universidades/) y zonas (/clases-particulares-madrid/)
   y la 404. Carga después de css/itaca.css y usa SOLO sus tokens:
   papel (--paper, --white, --paper-2), líneas (--line-c), tinta (--ink, --ink-2, --ink-3).
   El verde de WhatsApp y el azul de llamar los pone la regla global de itaca.css
   (a.btn[href^="https://wa.me"], a.btn[href^="tel:"]): aquí no se repinta ningún CTA.
   Tipos: Fraunces (titulares), Marcellus (rótulos), Hanken Grotesk (cuerpo).
   Marcado que añade tools/tinta_paginas.py: em.ink-word + svg.brush en el H1,
   .page-hero-seal en el hero y svg.icon en los botones de contacto.
   ========================================================================== */

main#contenido { counter-reset: sec; }

/* ----- Rótulo (kicker) y migas ----- */
.page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.page-breadcrumbs a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-c);
  transition: border-color var(--step) ease, color var(--step) ease;
}
.page-breadcrumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.page-breadcrumbs .sep { color: var(--ink-3); }
.page-breadcrumbs .current { color: var(--ink); font-weight: 600; }

.kicker-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
}
.kicker-chip::before {
  content: "";
  flex: none;
  width: 36px;
  height: 0;
  margin-top: 0.72em;
  border-top: var(--line);
}

/* ----- Hero ----- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(1.75rem, 5vw, 3.75rem)) 0 clamp(2.75rem, 6vw, 5rem);
  background: var(--paper);
  border-bottom: var(--line);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.page-hero-grid > * { min-width: 0; }

.page-hero h1 {
  max-width: 15ch;
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

/* Palabra clave: negrita con trazo de pincel que se «pinta» al cargar */
.ink-word {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-weight: 640;
  white-space: nowrap;
  padding-right: 0.06em;
}
.ink-word .brush {
  position: absolute;
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
  fill: none;
}
.ink-word .brush path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.ink-word .brush path:first-child { stroke-width: 5; }
.ink-word .brush path:last-child { stroke-width: 2; opacity: 0.7; }
html.js-motion .ink-word .brush path { animation: brush-paint 900ms var(--ease) 350ms both; }
html.js-motion .ink-word .brush path:last-child { animation-delay: 800ms; animation-duration: 700ms; }
@keyframes brush-paint {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.page-hero-lede {
  max-width: 58ch;
  margin: 0 0 24px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
}

/* Prueba social: ★ 5,0 en Google, en tinta */
.social-proof-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-self: start;
  gap: 4px 10px;
  margin: 0 0 26px;
  padding: 8px 18px 8px 10px;
  border: var(--line-thin);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}
.social-proof-badge .stars {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}
.social-proof-badge .score {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.social-proof-badge .reviews { color: var(--ink-2); font-weight: 500; }

/* CTAs del hero (color: regla global de itaca.css) */
.hero-cta-group,
.final-cta-actions,
.page-404-actions {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  gap: 12px 14px;
}
.hero-cta-group { margin: 0 0 26px; }
.hero-cta-group .btn,
.final-cta-actions .btn,
.mid-cta-card .btn,
.page-404-actions .btn {
  min-height: 56px;
  padding: 14px 24px;
  font-size: 1.0625rem;
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn .icon-wa { fill: currentColor; }
.btn .icon-call { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pills de confianza: ✓ en tinta */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}
.trust-pills li { display: inline-flex; align-items: center; gap: 8px; }
.trust-pills .check,
.page-prose ul li::before,
.why-us-box li::before {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

/* Portátiles de poca altura (1280×720, 1366×768): hero compacto, CTA sobre el pliegue */
@media (min-width: 980px) and (max-height: 920px) {
  .page-hero { padding-top: calc(var(--nav-h) + 1.25rem); padding-bottom: 2.5rem; }
  .page-breadcrumbs { margin-bottom: 14px; }
  .page-hero .kicker-chip { margin-bottom: 12px; }
  .page-hero h1 { font-size: clamp(2.5rem, min(6.4vw, 8.4vh), 5rem); margin-bottom: 14px; }
  .page-hero-lede { margin-bottom: 16px; line-height: 1.5; }
  .social-proof-badge { margin-bottom: 16px; }
  .hero-cta-group { margin-bottom: 18px; }
  .page-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr) clamp(240px, 21vw, 330px); }
}
/* En escritorio los dos CTA van siempre en una fila: el largo parte su texto en dos líneas */
@media (min-width: 980px) {
  .hero-cta-group { flex-wrap: nowrap; }
}

/* Sello decorativo con anillo de texto giratorio (solo escritorio) */
.page-hero-seal { display: none; }
@media (min-width: 980px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 330px);
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }
  .page-hero-grid > * { grid-column: 1; }
  .page-hero-grid > .page-hero-seal {
    grid-column: 2;
    grid-row: 1 / span 8;
    align-self: center;
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
  }
}
.seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.seal-ring,
.seal-ring path { fill: none; }
.seal-ring circle { fill: none; stroke: var(--ink); }
.seal-ring circle:first-of-type { stroke-width: 1.5; }
.seal-ring circle:last-of-type { stroke-width: 0.75; }
.seal-ring text {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.32em;
  fill: var(--ink);
}
.page-hero-seal img {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: auto;
  aspect-ratio: 800 / 772;
  object-fit: contain;
}
html.js-motion .seal-ring { animation: seal-spin 48s linear infinite; transform-origin: 50% 50%; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ----- Contenido ----- */
.page-content-wrap { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
/* Un solo borde izquierdo en toda la página: el del .container (igual que el hero y
   «Otras universidades»). La medida de lectura se limita en los párrafos, no en el bloque. */
.page-prose { max-width: none; margin: 0; }
.page-prose > p,
.page-prose > ul,
.page-prose > ol,
.page-prose > h2,
.page-prose > h3 { max-width: 760px; }
.page-prose > h2 { max-width: 22ch; }

/* Cabeceras de sección numeradas en Marcellus */
.page-prose h2,
.cross-links-section h2 {
  counter-increment: sec;
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.875rem);
  font-weight: 500;
  font-variation-settings: "opsz" 120;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.page-prose h2::before,
.cross-links-section h2::before {
  content: "§ " counter(sec, decimal-leading-zero);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: var(--track-label);
  color: var(--ink-3);
}
.page-prose > h2:first-child,
.page-prose > .faq-section:first-child h2 { margin-top: 0; }
.page-content-wrap > .container > .page-prose:first-child > h2:first-child { margin-top: 0; }

.page-prose h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.page-prose p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.page-prose strong { color: var(--ink); font-weight: 700; }
.page-prose p a,
.page-prose li a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-prose p a:hover,
.page-prose li a:hover { text-decoration-thickness: 2px; }

.page-prose ul {
  display: grid;
  gap: 12px;
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
}
.page-prose li {
  position: relative;
  padding-left: 36px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.page-prose ul li::before,
.why-us-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
}

/* Cita destacada */
.article-highlight,
.content-highlight {
  margin: 2.25rem 0;
  padding: 22px 26px 22px 28px;
  border: var(--line-thin);
  border-left: 4px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
}
.article-highlight p,
.content-highlight p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ¿Por qué Ítaca?: ficha con doble filete, eco del sello */
.why-us-box {
  margin: clamp(3rem, 6vw, 4.5rem) 0;
  padding: clamp(26px, 4vw, 40px);
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--ink);
}
.why-us-box h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
}
.why-us-box ul { gap: 14px; margin: 0; }

/* ----- Tarjetas de grados / asignaturas: línea fina y número en doble anillo ----- */
.cards-grid {
  counter-reset: card;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  margin: 1.75rem 0 2.5rem;
}
.feature-card,
.index-card {
  counter-increment: card;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--step) var(--ease), box-shadow var(--step) var(--ease);
}
.feature-card::before,
.index-card::before {
  content: counter(card, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 4px 0 8px 4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--ink);
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: background-color var(--step) ease, color var(--step) ease;
}
.feature-card:hover,
.index-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card:hover::before,
.index-card:hover::before { background: var(--ink); color: var(--paper); }

.feature-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.feature-card p {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.feature-card a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Tarjetas de los índices (universidades / zonas) */
.index-card { padding: 30px 28px 28px; gap: 12px; }
.index-card::before { position: absolute; top: 24px; right: 24px; margin: 0; }
.index-card .card-kicker {
  padding-right: 60px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.index-card h2,
.index-card h3 {
  margin: 0;
  padding-right: 60px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.index-card p {
  flex: 1;
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.index-card .btn { align-self: flex-start; }

/* Botones de tinta (los que no son WhatsApp ni llamar) */
.page-hero .btn-ink,
.page-content-wrap .btn-ink,
.cross-banner .btn:not([href^="https://wa.me"]):not([href^="tel:"]),
.page-404-actions .btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.page-content-wrap .btn-ink:hover,
.cross-banner .btn:not([href^="https://wa.me"]):not([href^="tel:"]):hover,
.page-404-actions .btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }

/* ----- CTA intermedio: banda invertida en tinta, a sangre ----- */
.mid-cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  margin: clamp(3rem, 6vw, 4.5rem) calc(50% - 50vw);
  /* contenido alineado con el borde del .container */
  padding: clamp(2.75rem, 6vw, 4rem) max(var(--gutter), calc(50vw - var(--container) / 2 + var(--gutter)));
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.mid-cta-card::before,
.mid-cta-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.mid-cta-card::before {
  width: 360px;
  height: 360px;
  right: max(-120px, calc(50vw - 660px));
  top: 50%;
  translate: 0 -50%;
  border: 1px solid var(--ink-2);
  box-shadow: 0 0 0 10px var(--ink), 0 0 0 11px var(--ink-2);
}
.mid-cta-card::after {
  width: 200px;
  height: 200px;
  right: max(40px, calc(50vw - 500px));
  top: 50%;
  translate: 0 -50%;
  border: 1px dashed var(--ink-2);
}
.mid-cta-body { max-width: 34em; }
.mid-cta-body::before {
  content: "Habla con nosotros";
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--line-c);
}
.mid-cta-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.008em;
  color: var(--paper);
}
.mid-cta-body p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--line-c);
}
.mid-cta-card .btn { justify-self: start; box-shadow: 3px 3px 0 var(--paper); }
@media (min-width: 760px) {
  .mid-cta-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; }
}

/* ----- FAQ: acordeón con filetes ----- */
.faq-section { margin: clamp(3rem, 6vw, 4.5rem) 0 1rem; }
.faq-section .faq-list { display: block; border-top: var(--line); }
.faq-section .faq-item {
  margin: 0;
  border: 0;
  border-bottom: var(--line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.faq-section .faq-item:last-child { border-bottom: var(--line); }
.faq-section .faq-item[open] { background: transparent; box-shadow: none; }
.faq-section .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 5px 22px 0; /* el doble anillo del «+» no sobresale de la línea */
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.faq-section .faq-item summary::-webkit-details-marker { display: none; }
.faq-section .faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--step) var(--ease), background-color var(--step) ease, color var(--step) ease;
}
.faq-section .faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
}
.faq-section .faq-item summary:hover::after { background: var(--ink); color: var(--paper); }
.faq-section .faq-answer {
  max-width: 64ch;
  padding: 0 58px 24px 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-section .faq-answer p { margin: 0; }
.faq-section .faq-answer p + p { margin-top: 10px; }
html.js-motion .faq-section .faq-item[open] .faq-answer { animation: faq-reveal 320ms var(--ease); }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ----- Enlaces cruzados (otras universidades / zonas) ----- */
.cross-links-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--white);
  border-top: var(--line);
}
.cross-links-section h2 { margin-top: 0; margin-bottom: 10px; }
.cross-links-section .cross-lede {
  max-width: 60ch;
  margin: 0 0 28px;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}
.cross-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 14px 14px 14px 20px;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--step) ease, color var(--step) ease, transform var(--step) var(--ease);
}
.cross-card .arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform var(--step) var(--ease);
}
.cross-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.cross-card:hover .arrow { transform: translateX(3px); }

.cross-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 28px;
  padding: clamp(22px, 3.5vw, 32px);
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--ink);
}
.cross-banner-text { flex: 1 1 22em; }
.cross-banner-text h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  color: var(--ink);
}
.cross-banner-text p { margin: 0; font-size: 1rem; color: var(--ink-2); }

/* ----- CTA final: bloque de tinta ----- */
.final-cta-section {
  position: relative;
  isolation: isolate;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  overflow: hidden;
}
/* El doble anillo vive a la derecha, detrás del espacio libre: no cruza texto ni botones */
.final-cta-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: auto;
  right: max(-220px, calc(50vw - var(--container) / 2 - 260px));
  top: 50%;
  width: 560px;
  aspect-ratio: 1;
  translate: 0 -50%;
  border: 1px solid var(--ink-2);
  border-radius: 50%;
  box-shadow: 0 0 0 14px var(--ink), 0 0 0 15px var(--ink-2);
  pointer-events: none;
}
.final-cta-section h2 { max-width: 19ch; margin-inline: 0; }
.final-cta-inner::before {
  content: "Academia Ítaca · Madrid";
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--line-c);
}
.final-cta-section h2,
.final-cta-section h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}
.final-cta-section p {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--line-c);
}
.final-cta-actions { justify-content: flex-start; margin-bottom: 26px; }
.final-cta-actions .btn { box-shadow: 3px 3px 0 var(--paper); }
.final-cta-actions .btn-secondary:not([href^="tel:"]):not([href^="https://wa.me"]) {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: none;
}
.final-cta-actions .btn-secondary:not([href^="tel:"]):not([href^="https://wa.me"]):hover { background: var(--paper); color: var(--ink); }
.final-reassurance {
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--line-c);
  max-width: 54em;
}
@media (max-width: 899px) { .final-cta-section::before { display: none; } }
/* En móvil cada garantía va en su línea: sin puntos colgando al principio o al final */
@media (max-width: 639px) {
  .final-reassurance .sep { display: block; height: 0; overflow: hidden; }
}

/* ----- 404 ----- */
.page-404-wrap {
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.page-404-inner { max-width: 720px; margin: 0 auto; }
.badge-404 {
  display: inline-grid;
  place-items: center;
  width: clamp(180px, 34vw, 240px);
  aspect-ratio: 1;
  margin: 10px 0 32px;
  border: var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 11vw, 5.25rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-404-inner h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-404-inner > p {
  margin: 0 auto 30px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.page-404-actions { justify-content: center; margin-bottom: 48px; }
.page-404-links {
  padding: clamp(22px, 4vw, 32px);
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--ink);
  text-align: left;
}
.page-404-links h3 {
  margin: 0 0 16px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.page-404-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
.page-404-links-grid a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--step) ease, color var(--step) ease;
}
.page-404-links-grid a:hover { background: var(--ink); color: var(--paper); }

/* ----- Móvil ----- */
@media (max-width: 640px) {
  .page-hero h1 { font-size: clamp(2.35rem, 11.2vw, 3.1rem); }
  .cross-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cross-card { min-height: 58px; padding: 12px 10px 12px 14px; font-size: 1rem; gap: 8px; }
  .cross-card .arrow { width: 28px; height: 28px; font-size: 0.875rem; }
  .hero-cta-group,
  .final-cta-actions,
  .page-404-actions { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn,
  .final-cta-actions .btn,
  .page-404-actions .btn { width: 100%; }
  .mid-cta-card .btn { justify-self: stretch; }
  .faq-section .faq-answer { padding-right: 0; }
  .index-card::before { top: 20px; right: 20px; }
}

/* ----- Sin movimiento: ?static y prefers-reduced-motion ----- */
html.is-static .seal-ring,
html.is-static .ink-word .brush path,
html.is-static .faq-section .faq-item[open] .faq-answer { animation: none; }
html.is-static .feature-card:hover,
html.is-static .index-card:hover,
html.is-static .cross-card:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .seal-ring,
  .ink-word .brush path,
  .faq-section .faq-item[open] .faq-answer { animation: none !important; }
  .feature-card,
  .index-card,
  .cross-card,
  .cross-card .arrow,
  .faq-section .faq-item summary::after { transition: none; }
}
@media print {
  .page-hero-seal,
  .mid-cta-card::before,
  .mid-cta-card::after,
  .final-cta-section::before { display: none; }
}

/* ----- Sellos («circulitos») del hero (ronda 2): solo escritorio, alrededor del sello ----- */
.page-stickers .sticker { display: none; }
@media (min-width: 980px) {
  .page-hero.has-stickers > .container { position: relative; z-index: 1; }
  .page-hero .page-stickers { z-index: 2; } /* por encima del sello del hero */
  .page-stickers .sticker { display: grid; }
  .page-stickers .p1 { top: 16%; right: calc(max(0px, (100% - var(--container)) / 2) + clamp(250px, 23vw, 320px)); }
  .page-stickers .p2 { bottom: 9%; right: calc(max(0px, (100% - var(--container)) / 2) + 10px); }
  .page-stickers .p3 { display: none; }
}
@media (min-width: 1320px) {
  .page-stickers .p3 { display: grid; top: 44%; right: max(6px, calc((100% - var(--container)) / 4 - 32px)); }
}
