/* ==========================================================================
   GP SmartGrowth · tema propio · assets/css/components.css
   Componentes con prefijo gp-. Sin selectores de plugin y sin hex: los valores
   salen de los tokens del tema (--wp--custom--gp--*).
   ========================================================================== */

/* ---------- gp-header ---------- */
/* A keyboard user must never focus an element hidden by a scroll reveal. */
.js [data-gp-reveal]:focus-within {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

/* WordPress applies block gap to structural siblings, exposing the body background. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-block-post-content > .gp-section {
  margin-block: 0;
}

/* Asegurar que el contenedor template-part de WordPress sea sticky y no corte */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 999;
}

.gp-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(22, 27, 34, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gp-on-ink);
  border-bottom: 1px solid var(--gp-hairline-ink);
  transition: background-color var(--gp-dur) var(--gp-ease), border-color var(--gp-dur) var(--gp-ease);
}

.gp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--custom--gp--space-5);
  min-height: var(--wp--custom--gp--header-height);
  padding-block: var(--wp--custom--gp--space-2);
}

.gp-header__brand {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--gp--space-3);
  flex: 0 0 auto;
  text-decoration: none;
}

.gp-header__brand .wp-block-site-title,
.gp-header__brand .wp-block-site-title a {
  margin: 0;
  color: var(--gp-on-ink);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-ui);
  font-weight: var(--wp--custom--gp--weight-display);
  letter-spacing: var(--wp--custom--gp--tracking-display);
  text-decoration: none;
}

.gp-header__brand .wp-block-site-logo img {
  max-height: 34px;
  width: auto;
}

/* gp-nav — envuelve el bloque core/navigation */
.gp-nav {
  margin-left: auto;
  font-family: var(--wp--custom--gp--font-body);
  font-size: var(--wp--custom--gp--size-ui);
}

.gp-nav .wp-block-navigation__container {
  gap: var(--wp--custom--gp--space-5);
}

/* el blockGap de WordPress añadía 4px de margen superior desde el 2.º enlace */
.gp-nav .wp-block-navigation-item {
  margin-block: 0;
}

.gp-nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: var(--wp--custom--gp--tap-target);
  color: var(--wp--custom--gp--text-nav-on-sheet);
  font-weight: var(--wp--custom--gp--weight-body-medium);
  text-decoration: none;
  transition: color var(--gp-dur) var(--gp-ease);
}

.gp-nav .wp-block-navigation-item__content:hover,
.gp-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--gp-on-ink);
}

.gp-nav .wp-block-navigation__responsive-container-open,
.gp-nav .wp-block-navigation__responsive-container-close {
  min-width: var(--wp--custom--gp--tap-target);
  min-height: var(--wp--custom--gp--tap-target);
  color: var(--gp-on-ink);
}

.gp-header__sheet {
  flex: 0 0 auto;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation-sm);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-on-ink-muted);
}

/* el CTA del header nunca se parte en varias líneas */
.gp-header .wp-block-button__link {
  white-space: nowrap;
}

@media (max-width: 781px) {
  .gp-header__inner {
    gap: var(--wp--custom--gp--space-3);
  }

  .gp-header__sheet {
    display: none;
  }

  .gp-header .wp-block-button__link {
    padding-inline: var(--wp--custom--gp--space-3);
    font-size: var(--wp--custom--gp--size-annotation);
  }
}

/* a 390 el CTA no cabe junto a marca + navegación: se colapsa al menú */
@media (max-width: 560px) {
  /* el contenedor entero: si no, su gap deja un hueco de 16px junto a la hamburguesa */
  .gp-header .wp-block-buttons {
    display: none;
  }

  .gp-header__inner {
    flex-wrap: nowrap;
    gap: var(--wp--custom--gp--space-2);
  }

  .gp-header__brand .wp-block-site-title,
  .gp-header__brand .wp-block-site-title a {
    font-size: var(--wp--custom--gp--size-meta);
  }
}

/* Collapse before the desktop navigation runs out of room. A backdrop filter
   would also confine WordPress's fixed overlay to the header. */
@media (max-width: 1100px) {
  .gp-header {
    background-color: var(--gp-ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .gp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  .gp-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .gp-nav .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    background-color: var(--gp-ink);
    color: var(--gp-on-ink);
  }

  .gp-nav .is-menu-open .wp-block-navigation-item__content,
  .gp-nav .is-menu-open .wp-block-navigation__responsive-container-close {
    color: var(--gp-on-ink);
  }
}

/* ---------- gp-hero ---------- */
.gp-hero {
  position: relative;
  background-color: var(--wp--custom--gp--surface-sheet);
  color: var(--gp-on-ink);
  padding-block: var(--wp--custom--gp--section-space);
  overflow: clip;
}

/* superficie refinada sin falso grid wireframe */
.gp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
}

.gp-hero > * {
  position: relative;
}

.gp-hero h1 {
  color: var(--gp-on-ink);
  max-width: var(--wp--custom--gp--measure-lede);
}

.gp-hero p {
  color: var(--gp-on-ink-muted);
  font-size: var(--wp--custom--gp--size-lede);
  line-height: var(--wp--custom--gp--lh-lede);
  max-width: var(--wp--custom--gp--measure-lede);
}

.gp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--custom--gp--space-3);
  margin-top: var(--wp--custom--gp--space-5);
}

/* ---------- gp-kicker ---------- */
.gp-kicker {
  display: inline-block;
  margin-bottom: var(--wp--custom--gp--space-4);
  padding: 6px 10px;
  border: 1px solid var(--gp-hairline-ink);
  border-radius: var(--wp--custom--gp--radius-base);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-marker);
}

.gp-section--paper .gp-kicker,
.gp-section--paper-2 .gp-kicker {
  border-color: var(--gp-hairline-strong);
  color: var(--gp-marker-text);
}

/* ---------- gp-section (título y lede) ---------- */
.gp-section__head {
  margin-bottom: var(--wp--custom--gp--space-6);
  max-width: var(--wp--custom--gp--measure-prose);
}

.gp-section__title {
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-2);
  line-height: var(--wp--custom--gp--lh-display-2);
  letter-spacing: var(--wp--custom--gp--tracking-display-2);
  margin: 0 0 var(--wp--custom--gp--space-2);
}

.gp-section__lede {
  font-size: var(--wp--custom--gp--size-lede);
  line-height: var(--wp--custom--gp--lh-lede);
  color: var(--gp-muted);
  max-width: var(--wp--custom--gp--measure-lede);
  margin: 0;
}

.gp-section--sheet .gp-section__lede {
  color: var(--gp-on-ink-muted);
}

/* ---------- gp-btn ---------- */
.gp-btn,
.gp-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--custom--gp--space-2);
  min-height: var(--wp--custom--gp--control-height);
  padding: 0 var(--wp--custom--gp--space-5);
  border: 1px solid transparent;
  border-radius: var(--wp--custom--gp--radius-base);
  background-color: var(--gp-route);
  color: var(--gp-on-route);
  font-family: var(--wp--custom--gp--font-body);
  font-size: var(--wp--custom--gp--size-ui);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  line-height: var(--wp--custom--gp--lh-ui);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--gp-dur) var(--gp-ease),
    color var(--gp-dur) var(--gp-ease),
    border-color var(--gp-dur) var(--gp-ease);
}

.gp-btn:hover,
.gp-btn:focus-visible {
  background-color: var(--gp-route-hover);
  color: var(--gp-on-route);
}

.gp-btn--ghost {
  background-color: transparent;
  border-color: var(--gp-hairline-ink);
  color: var(--gp-on-ink);
}

.gp-btn--ghost:hover,
.gp-btn--ghost:focus-visible {
  border-color: var(--gp-marker);
  background-color: transparent;
  color: var(--gp-on-ink);
}

.gp-section--paper .gp-btn--ghost,
.gp-section--paper-2 .gp-btn--ghost {
  border-color: var(--gp-hairline-strong);
  color: var(--gp-body);
}

.gp-btn--marker {
  background-color: var(--gp-marker);
  color: var(--wp--custom--gp--accent-route-ink);
}

.gp-btn--marker:hover,
.gp-btn--marker:focus-visible {
  background-color: var(--wp--custom--gp--accent-marker-deep);
  color: var(--wp--custom--gp--accent-route-ink);
}

/* A core/button puts its class on the wrapper; the link is the control. */
.wp-block-button.gp-btn {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.wp-block-button.gp-btn--marker .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wp--custom--gp--control-height);
  padding: 0 var(--wp--custom--gp--space-5);
  border-radius: var(--wp--custom--gp--radius-base);
  background-color: var(--gp-marker);
  color: var(--wp--custom--gp--accent-route-ink);
}

.wp-block-button.gp-btn--marker .wp-block-button__link:hover,
.wp-block-button.gp-btn--marker .wp-block-button__link:focus-visible {
  background-color: var(--wp--custom--gp--accent-marker-deep);
  color: var(--wp--custom--gp--accent-route-ink);
}

/* Bloque core/button alineado con gp-btn cuando se use el estilo del tema. */
.wp-block-button.is-style-gp-btn .wp-block-button__link {
  border-radius: var(--wp--custom--gp--radius-base);
  background-color: var(--gp-route);
  color: var(--gp-on-route);
  font-size: var(--wp--custom--gp--size-ui);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  min-height: var(--wp--custom--gp--control-height);
  display: inline-flex;
  align-items: center;
}

.wp-block-button.is-style-gp-btn-ghost .wp-block-button__link {
  background-color: transparent;
  border: 1px solid var(--gp-hairline-ink);
  border-radius: var(--wp--custom--gp--radius-base);
  color: var(--gp-on-ink);
}

/* ---------- gp-card ---------- */
.gp-card {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--gp--space-3);
  padding: var(--wp--custom--gp--space-5);
  border: 1px solid var(--gp-hairline);
  border-radius: var(--wp--custom--gp--radius-card);
  background-color: var(--wp--custom--gp--surface-field);
}

.gp-card__title {
  margin: 0;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  line-height: var(--wp--custom--gp--lh-display-3);
}

.gp-card__text {
  margin: 0;
  color: var(--gp-muted);
  font-size: var(--wp--custom--gp--size-body);
}

.gp-card__meta {
  margin-top: auto;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-card--sheet {
  border-color: var(--gp-hairline-ink);
  background-color: var(--wp--custom--gp--surface-sheet-3);
}

.gp-card--sheet .gp-card__title {
  color: var(--gp-on-ink);
}

.gp-card--sheet .gp-card__text {
  color: var(--gp-on-ink-muted);
}

.gp-grid {
  display: grid;
  gap: var(--wp--custom--gp--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- gp-faq ---------- */
.gp-faq {
  border-top: 1px solid var(--gp-hairline);
}

.gp-faq__item {
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--custom--gp--space-4);
  min-height: var(--wp--custom--gp--tap-target);
  padding-block: var(--wp--custom--gp--space-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  line-height: 1.25;
}

.gp-faq__q::-webkit-details-marker {
  display: none;
}

.gp-faq__q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-body);
  color: var(--gp-route-deep);
}

.gp-faq__item[open] > .gp-faq__q::after {
  content: "−";
}

.gp-faq__a {
  margin: 0 0 var(--wp--custom--gp--space-4);
  color: var(--gp-muted);
  max-width: var(--wp--custom--gp--measure-prose);
}

.gp-section--sheet .gp-faq,
.gp-section--sheet .gp-faq__item {
  border-color: var(--gp-hairline-ink);
}

.gp-section--sheet .gp-faq__q {
  color: var(--gp-on-ink);
}

.gp-section--sheet .gp-faq__a {
  color: var(--gp-on-ink-muted);
}

/* ---------- formularios de plano ---------- */
.gp-field {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--gp--space-2);
}

.gp-field label {
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-field input,
.gp-field select,
.gp-field textarea,
.wp-block-post-content input[type="text"],
.wp-block-post-content input[type="email"],
.wp-block-post-content textarea {
  min-height: var(--wp--custom--gp--field-height);
  padding: var(--wp--custom--gp--space-2) var(--wp--custom--gp--space-3);
  border: 1px solid var(--gp-field-line);
  border-radius: var(--wp--custom--gp--radius-base);
  background-color: var(--wp--custom--gp--surface-field);
  color: var(--gp-body);
  font-family: var(--wp--custom--gp--font-body);
  font-size: var(--wp--custom--gp--size-body);
}

/* ---------- gp-article · entrada individual ---------- */
.gp-article {
  display: block;
  padding-bottom: var(--wp--custom--gp--space-8);
}

/* la cabecera de página reutilizada se abre a una columna en artículos */
.gp-page-head.gp-article__head {
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--wp--custom--gp--space-4);
  padding-bottom: var(--wp--custom--gp--space-6);
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-article__head .gp-page-head__title {
  max-width: 26ch;
  margin: 0;
}

.gp-article__meta,
.gp-page-head__copy > .gp-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--custom--gp--space-3);
  margin-block: var(--wp--custom--gp--space-4) 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-article__meta > * {
  margin: 0;
}

.gp-article__meta a {
  color: var(--gp-route-deep);
  text-decoration: none;
}

.gp-article__meta a:hover,
.gp-article__meta a:focus-visible {
  color: var(--gp-body);
  text-decoration: underline;
}

.gp-article__foot {
  max-width: var(--wp--custom--gp--measure-prose);
  margin-top: var(--wp--custom--gp--space-7);
  padding-top: var(--wp--custom--gp--space-4);
  border-top: 1px solid var(--gp-hairline);
}

.gp-article__foot p {
  margin: 0;
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

/* ---------- prosa de artículo / legal ---------- */
.gp-prose {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: var(--wp--custom--gp--measure-prose);
  font-family: var(--wp--custom--gp--font-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.1875rem);
  line-height: 1.72;
  color: var(--gp-body);
}

.gp-prose > * {
  max-width: var(--wp--custom--gp--measure-prose);
}

.gp-prose p {
  margin-block: 0 var(--wp--custom--gp--space-4);
}

.gp-prose h2 {
  margin-top: var(--wp--custom--gp--space-7);
  margin-bottom: var(--wp--custom--gp--space-3);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  line-height: var(--wp--custom--gp--lh-display-3);
  letter-spacing: var(--wp--custom--gp--tracking-display);
}

.gp-prose h3 {
  margin-top: var(--wp--custom--gp--space-6);
  margin-bottom: var(--wp--custom--gp--space-2);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-lede);
  line-height: var(--wp--custom--gp--lh-lede);
  letter-spacing: var(--wp--custom--gp--tracking-display-2);
}

.gp-prose h4 {
  margin-top: var(--wp--custom--gp--space-5);
  margin-bottom: var(--wp--custom--gp--space-2);
  font-family: var(--wp--custom--gp--font-body);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  font-size: var(--wp--custom--gp--size-lede);
}

.gp-prose ul,
.gp-prose ol {
  margin-block: 0 var(--wp--custom--gp--space-4);
  padding-inline-start: 1.35em;
}

.gp-prose li {
  margin-block: 0.4em;
  line-height: 1.65;
}

.gp-prose li::marker {
  color: var(--gp-route-deep);
}

.gp-prose a {
  color: var(--gp-route-deep);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.gp-prose a:hover,
.gp-prose a:focus-visible {
  color: var(--gp-body);
}

.gp-prose strong {
  font-weight: var(--wp--custom--gp--weight-body-strong);
  color: var(--gp-body);
}

.gp-prose blockquote {
  margin: var(--wp--custom--gp--space-5) 0;
  padding-inline-start: var(--wp--custom--gp--space-4);
  border-inline-start: 2px solid var(--gp-route-deep);
  font-family: var(--wp--custom--gp--font-display);
  color: var(--gp-muted);
}

.gp-prose hr {
  margin-block: var(--wp--custom--gp--space-6);
  border: 0;
  border-top: 1px solid var(--gp-hairline);
}

/* imágenes: nunca desbordan la columna de lectura */
.gp-prose img,
.gp-prose figure img,
.gp-prose .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--wp--custom--gp--radius-card);
}

.gp-prose figure,
.gp-prose .wp-block-image {
  max-width: 100%;
  margin-block: var(--wp--custom--gp--space-5);
  margin-inline: 0;
}

.gp-prose figcaption,
.gp-prose .wp-element-caption {
  margin-top: var(--wp--custom--gp--space-2);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  line-height: 1.5;
  text-transform: none;
  color: var(--gp-muted);
  text-align: start;
}

/* en pantallas estrechas la tabla hace scroll propio en vez de ensanchar la página */
@media (max-width: 600px) {
  .gp-prose table {
    display: block;
    overflow-x: auto;
  }
}

.gp-prose p,
.gp-prose li {
  overflow-wrap: anywhere;
}

/* tablas importadas de producción */
.gp-prose table {
  width: 100%;
  max-width: 100%;
  margin-block: var(--wp--custom--gp--space-5);
  border-collapse: collapse;
  font-size: 0.95em;
  line-height: 1.5;
}

.gp-prose th,
.gp-prose td {
  padding: var(--wp--custom--gp--space-2) var(--wp--custom--gp--space-3);
  border: 1px solid var(--gp-hairline);
  text-align: start;
  vertical-align: top;
}

.gp-prose th {
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  background: var(--wp--custom--gp--surface-paper-2);
}

.gp-prose code {
  padding: 0.1em 0.35em;
  border-radius: var(--wp--custom--gp--radius-base);
  background: var(--wp--custom--gp--surface-paper-2);
  font-family: var(--gp-mono);
  font-size: 0.92em;
}

/* ---------- gp-article-meta ---------- */
.gp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--custom--gp--space-3);
  margin-bottom: var(--wp--custom--gp--space-5);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

/* ---------- gp-footer ---------- */
.gp-footer {
  background-color: var(--wp--custom--gp--surface-sheet-2);
  color: var(--gp-on-ink);
  padding-block: var(--wp--custom--gp--section-space-sm);
}

/* Ronda 1 · contraste AA sobre la placa oscura: el título del sitio heredaba
   el color de enlace y el mono el color de texto apagado (1,32:1 y 2,76:1). */
.gp-footer .wp-block-site-title,
.gp-footer .wp-block-site-title a {
  color: var(--gp-on-ink);
  text-decoration: none;
}

.gp-footer .wp-mono,
.gp-footer .gp-mono {
  color: var(--gp-on-ink-muted);
}

.gp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--wp--custom--gp--space-6);
}

.gp-footer .wp-block-navigation-item__content {
  min-height: var(--wp--custom--gp--tap-target);
  display: inline-flex;
  align-items: center;
  color: var(--gp-on-ink-muted);
  font-size: var(--wp--custom--gp--size-ui);
  text-decoration: none;
}

.gp-footer .wp-block-navigation-item__content:hover {
  color: var(--gp-on-ink);
}

.gp-footer__legal {
  margin-top: var(--wp--custom--gp--space-5);
  padding-top: var(--wp--custom--gp--space-4);
  border-top: 1px solid var(--gp-hairline-ink);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation-sm);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--wp--custom--gp--text-muted-on-sheet-soft);
}

/* ==========================================================================
   G3b · secciones de la home (método · zonas · casos · espécimen · cta · pie)
   Paridad con el mockup aprobado (site/), reescrito contra los tokens del
   tema. Sin hex, sin selectores del plugin.
   ========================================================================== */

/* ---------- gp-method · estaciones del método (riel de 4 paradas) ---------- */
.gp-method__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(18px, 3.4vw, 56px);
  align-items: end;
  margin-bottom: clamp(26px, 3.6vw, 48px);
}

.gp-method__head > * {
  margin-block: 0;
}

/* El riel: una línea superior con las 4 estaciones colgando de ella. */
.gp-method__stations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gp-hairline);
}

.gp-method__stations::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gp-route) 0%, var(--gp-route) 88%, transparent 100%);
}

.gp-method__station {
  position: relative;
  margin: 0;
  padding: 28px clamp(14px, 2.2vw, 26px) 10px 0;
  border-right: 1px solid var(--gp-hairline);
}

.gp-method__station + .gp-method__station {
  padding-left: clamp(14px, 2.2vw, 26px);
}

.gp-method__station:last-child {
  border-right: 0;
  padding-right: 0;
}

/* Parada: punto relleno + halo de ruta. */
.gp-method__station::before {
  content: "";
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--wp--custom--gp--radius-pill);
  background-color: var(--gp-marker);
  box-shadow: 0 0 0 4px var(--wp--custom--gp--overlay-route-tint);
}

.gp-method__station + .gp-method__station::before {
  left: clamp(14px, 2.2vw, 26px);
}

.gp-method__no {
  display: inline-flex;
  align-items: center;
  min-height: var(--wp--custom--gp--space-5);
  margin: 0 0 14px;
  padding: 0 var(--wp--custom--gp--space-2);
  border: 1px solid var(--gp-hairline-strong);
  border-radius: var(--wp--custom--gp--radius-base);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-route-deep);
}

.gp-method__title {
  margin: 0 0 var(--wp--custom--gp--space-2);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-display);
  line-height: var(--wp--custom--gp--lh-display-3);
  color: var(--gp-body);
}

.gp-method__body {
  margin: 0 0 14px;
  max-width: var(--wp--custom--gp--measure-lede);
  font-size: var(--wp--custom--gp--size-ui);
  line-height: 1.55;
  color: var(--gp-muted);
}

.gp-method__deliverables {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-method__deliverables > li {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.45;
  color: var(--gp-body);
}

.gp-method__deliverables > li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gp-route);
}

@media (max-width: 1024px) {
  .gp-method__stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-method__station:nth-child(2n) {
    border-right: 0;
  }

  .gp-method__station:nth-child(n + 3) {
    border-top: 1px solid var(--gp-hairline);
    padding-top: 28px;
  }

  .gp-method__station:nth-child(n + 3)::before {
    top: 23.5px;
  }
}

@media (max-width: 900px) {
  .gp-method__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .gp-method__stations {
    grid-template-columns: 1fr;
  }

  .gp-method__station,
  .gp-method__station + .gp-method__station {
    padding: 24px 0 8px;
    border-right: 0;
    border-bottom: 1px solid var(--gp-hairline);
  }

  .gp-method__station:last-child {
    border-bottom: 0;
  }

  .gp-method__station:nth-child(n + 3) {
    border-top: 0;
  }

  .gp-method__station::before,
  .gp-method__station:nth-child(n + 3)::before {
    top: 19.5px;
    left: 0;
  }
}

/* ---------- gp-specimen · lo que recibes (hoja de informe) ---------- */
.gp-specimen {
  display: grid;
  row-gap: clamp(18px, 3vw, 30px);
  background-color: var(--gp-paper);
}

.gp-specimen > * {
  margin-block: 0;
}

.gp-specimen__head {
  display: grid;
  gap: var(--wp--custom--gp--space-3);
  max-width: var(--wp--custom--gp--measure-prose);
}

.gp-specimen__head .gp-section__title,
.gp-specimen__head .gp-section__lede {
  margin: 0;
}

.gp-specimen__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 28px;
  align-items: start;
  margin-top: clamp(8px, 1.6vw, 16px);
}

.gp-specimen__principles {
  display: grid;
  gap: 0;
  counter-reset: gp-principle;
}

.gp-specimen__principle {
  position: relative;
  padding: 0 0 18px 42px;
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-specimen__principle + .gp-specimen__principle {
  padding-top: 18px;
}

.gp-specimen__principle:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.gp-specimen__principle::before {
  counter-increment: gp-principle;
  content: "P-0" counter(gp-principle);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  color: var(--gp-route-deep);
}

.gp-specimen__principle + .gp-specimen__principle::before {
  top: 18px;
}

.gp-specimen__principle-title {
  margin: 0 0 6px;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  line-height: 1.3;
  color: var(--gp-body);
}

.gp-specimen__principle-body {
  margin: 0;
  max-width: var(--wp--custom--gp--measure-lede);
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.55;
  color: var(--gp-muted);
}

.gp-specimen__sheet {
  display: grid;
  overflow: hidden;
  background-color: var(--wp--custom--gp--surface-field);
  border: 1px solid var(--gp-hairline-strong);
  border-radius: var(--wp--custom--gp--radius-card);
}

.gp-specimen__sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  padding: var(--wp--custom--gp--space-3) var(--wp--custom--gp--space-4);
  border-bottom: 1px solid var(--gp-hairline-strong);
  background-color: var(--wp--custom--gp--surface-paper-2);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
}

.gp-specimen__sheet-title {
  margin: 0;
  color: var(--gp-body);
}

.gp-specimen__sheet-week {
  margin: 0;
  color: var(--gp-muted);
}

/* La figura es el contenedor con scroll: el anillo va por dentro para que el
   `overflow: hidden` de la hoja no lo corte a la mitad. */
.gp-specimen__table {
  margin: 0;
  overflow-x: auto;
}

.gp-specimen__table:focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: -2px;
}

.gp-specimen__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wp--custom--gp--size-meta);
  font-variant-numeric: tabular-nums;
}

.gp-specimen__th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gp-muted);
  background-color: var(--gp-paper);
  border-bottom: 1px solid var(--gp-hairline-strong);
}

.gp-specimen__row td {
  padding: 10px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-specimen__row:last-child td {
  border-bottom: 0;
}

.gp-specimen__metric {
  font-weight: var(--wp--custom--gp--weight-body-strong);
  color: var(--gp-body);
}

.gp-specimen__target,
.gp-specimen__actual {
  color: var(--gp-body);
}

.gp-specimen__status {
  font-weight: var(--wp--custom--gp--weight-body-strong);
  color: var(--gp-route-deep);
}

.gp-specimen__note {
  margin: 0;
  padding: var(--wp--custom--gp--space-3) var(--wp--custom--gp--space-4);
  border-top: 1px solid var(--gp-hairline);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gp-muted);
}

@media (max-width: 900px) {
  .gp-specimen__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- gp-zones · zonas de servicio ---------- */
.gp-zones__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(18px, 3.4vw, 56px);
  align-items: end;
  margin-bottom: clamp(26px, 3.6vw, 48px);
}

.gp-zones__head > * {
  margin-block: 0;
}

.gp-zones__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: stretch;
  margin: 0;
}

.gp-zones__featured,
.gp-zones__side {
  min-width: 0;
  margin: 0;
}

.gp-zones__side {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
}

.gp-zones__side > .gp-zone-sheet {
  margin: 0;
}

.gp-zones__featured > .gp-zone-sheet {
  height: 100%;
  margin: 0;
}

/* ---------- gp-zone-sheet · tarjeta de zona ---------- */
.gp-zone-sheet {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: var(--wp--custom--gp--space-2);
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--gp-hairline);
  border-radius: var(--wp--custom--gp--radius-card);
  background-color: var(--wp--custom--gp--surface-paper-2);
}

.gp-zone-sheet > * {
  margin-block: 0;
}

.gp-zone-sheet--featured {
  background-color: var(--gp-ink);
  border-color: var(--gp-hairline-ink);
  color: var(--gp-on-ink);
}

.gp-zone-sheet--featured .gp-zone-sheet__title {
  color: var(--gp-on-ink);
}

.gp-zone-sheet__tag {
  margin: 0 0 var(--wp--custom--gp--space-4);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-zone-sheet--featured .gp-zone-sheet__tag {
  color: var(--gp-marker);
}

.gp-zone-sheet__title {
  margin: 0 0 10px;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-display);
  line-height: var(--wp--custom--gp--lh-display-3);
  color: var(--gp-body);
  text-wrap: balance;
}

.gp-zone-sheet--featured .gp-zone-sheet__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.gp-zone-sheet__body {
  margin: 0 0 18px;
  max-width: var(--wp--custom--gp--measure-lede);
  font-size: var(--wp--custom--gp--size-ui);
  line-height: 1.6;
  color: var(--gp-muted);
}

.gp-zone-sheet--featured .gp-zone-sheet__body {
  color: var(--gp-on-ink-muted);
}

.gp-zone-sheet__deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.gp-zone-sheet__deliverables > li {
  position: relative;
  margin: 0;
  padding-left: 15px;
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.45;
  color: var(--gp-body);
}

.gp-zone-sheet__deliverables > li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--gp-route);
}

.gp-zone-sheet--featured .gp-zone-sheet__deliverables > li {
  color: var(--gp-on-ink-muted);
}

.gp-zone-sheet--featured .gp-zone-sheet__deliverables > li::before {
  background-color: var(--gp-marker);
}

.gp-zone-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--custom--gp--space-3);
  margin-top: auto;
}

.gp-zone-sheet__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--wp--custom--gp--tap-target);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  color: var(--gp-route-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gp-hairline-strong);
}

.gp-zone-sheet__link:hover,
.gp-zone-sheet__link:focus-visible {
  color: var(--gp-body);
}

.gp-zone-sheet--featured .gp-zone-sheet__link {
  color: var(--gp-marker);
  border-bottom-color: var(--gp-hairline-ink);
}

.gp-zone-sheet--featured .gp-zone-sheet__link:hover,
.gp-zone-sheet--featured .gp-zone-sheet__link:focus-visible {
  color: var(--gp-on-ink);
}

@media (max-width: 900px) {
  .gp-zones__head,
  .gp-zones__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .gp-zone-sheet__deliverables {
    grid-template-columns: 1fr;
  }
}

/* ---------- gp-cases · casos ilustrativos ---------- */
.gp-cases {
  display: grid;
  row-gap: clamp(20px, 3vw, 34px);
  background-color: var(--gp-paper);
}

.gp-cases > * {
  margin-block: 0;
}

.gp-cases__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: var(--wp--custom--gp--space-4);
  align-items: end;
}

.gp-cases__intro > * {
  margin-block: 0;
}

.gp-cases__intro .gp-section__title {
  margin-bottom: var(--wp--custom--gp--space-4);
}

.gp-cases__disclaimer {
  align-self: end;
  margin: 0;
  padding: 10px var(--wp--custom--gp--space-4);
  border: 1px solid var(--gp-hairline-strong);
  background-color: var(--wp--custom--gp--surface-paper-2);
  border-radius: var(--wp--custom--gp--radius-plate);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-cases__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(16px, 2.4vw, 24px);
  align-items: stretch;
  margin: 0;
}

.gp-cases__featured,
.gp-cases__side {
  min-width: 0;
}

.gp-cases__side {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  align-content: start;
}

.gp-cases__case {
  display: grid;
  align-content: start;
  gap: var(--wp--custom--gp--space-3);
  margin: 0;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--gp-hairline);
  border-radius: var(--wp--custom--gp--radius-card);
  background-color: var(--wp--custom--gp--surface-field);
}

.gp-cases__case--featured {
  background-color: var(--gp-ink);
  border-color: var(--gp-hairline-ink);
  color: var(--gp-on-ink);
}

.gp-cases__case--side {
  background-color: var(--wp--custom--gp--surface-paper-2);
}

.gp-cases__tag {
  margin: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-route-deep);
}

.gp-cases__case--featured .gp-cases__tag {
  color: var(--gp-marker);
}

.gp-cases__metric {
  display: grid;
  gap: 2px;
  margin: 0;
}

.gp-cases__metric-value {
  margin: 0;
  font-family: var(--wp--custom--gp--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: var(--wp--custom--gp--weight-display-strong);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gp-body);
  font-variant-numeric: tabular-nums;
}

.gp-cases__case--featured .gp-cases__metric-value {
  color: var(--gp-marker);
}

.gp-cases__metric-note {
  margin: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-cases__case--featured .gp-cases__metric-note {
  color: var(--gp-on-ink-muted);
}

.gp-cases__title {
  margin: 0;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-display);
  line-height: var(--wp--custom--gp--lh-display-3);
  color: var(--gp-body);
  text-wrap: balance;
}

.gp-cases__case--featured .gp-cases__title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  color: var(--gp-on-ink);
}

.gp-cases__context {
  margin: 0;
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.6;
  color: var(--gp-muted);
}

.gp-cases__case--featured .gp-cases__context {
  color: var(--gp-on-ink-muted);
}

.gp-cases__outcome {
  margin: 0;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--gp-route);
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.55;
  color: var(--gp-body);
}

.gp-cases__case--featured .gp-cases__outcome {
  border-inline-start-color: var(--gp-marker);
  color: var(--gp-on-ink);
}

@media (max-width: 900px) {
  .gp-cases__head,
  .gp-cases__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- gp-faq · dos columnas (intro + lista de details) ---------- */
.gp-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 72px);
  align-items: start;
}

.gp-faq__intro > * {
  margin-block: 0;
}

.gp-faq__intro .gp-section__title {
  margin-bottom: var(--wp--custom--gp--space-4);
}

.gp-faq__intro .gp-section__lede {
  margin-bottom: 22px;
}

.gp-faq__cta {
  margin: 0;
  font-weight: var(--wp--custom--gp--weight-body-strong);
}

.gp-faq__cta a {
  display: inline-flex;
  align-items: center;
  min-height: var(--wp--custom--gp--tap-target);
  color: var(--gp-route-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gp-hairline-strong);
}

.gp-faq__cta a:hover,
.gp-faq__cta a:focus-visible {
  color: var(--gp-body);
}

@media (max-width: 900px) {
  .gp-faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- gp-cta · llamada final (placa oscura centrada) ---------- */
.gp-cta {
  background-color: var(--gp-ink);
  color: var(--gp-on-ink);
  border: 1px solid var(--gp-hairline-ink);
  border-radius: var(--wp--custom--gp--radius-plate);
  padding: clamp(32px, 5vw, var(--wp--custom--gp--section-space-sm));
  text-align: center;
}

.gp-cta__title {
  margin: 0 auto var(--wp--custom--gp--space-4);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-2);
  line-height: var(--wp--custom--gp--lh-display-2);
  letter-spacing: var(--wp--custom--gp--tracking-display-2);
  color: var(--gp-on-ink);
  max-width: 22ch;
}

.gp-cta__body {
  margin: 0 auto var(--wp--custom--gp--space-5);
  max-width: var(--wp--custom--gp--measure-lede);
  font-size: var(--wp--custom--gp--size-body);
  line-height: var(--wp--custom--gp--lh-body);
  color: var(--gp-on-ink-muted);
}

.gp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wp--custom--gp--space-3);
}

/* ---------- gp-footer · pie a columnas ---------- */
.gp-footer__tagline {
  margin: 0;
  max-width: var(--wp--custom--gp--measure-lede);
  font-size: var(--wp--custom--gp--size-ui);
  line-height: 1.6;
  color: var(--gp-on-ink-muted);
}

.gp-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(var(--wp--custom--gp--gutter), 4vw, 48px);
  margin: 0;
}

.gp-footer__col {
  min-width: 0;
}

.gp-footer__title {
  margin: 0 0 var(--wp--custom--gp--space-3);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-annotation);
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gp-on-ink);
}

.gp-footer__link {
  margin: 0 0 var(--wp--custom--gp--space-2);
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.5;
}

.gp-footer__link a {
  color: var(--gp-on-ink-muted);
  text-decoration: none;
}

.gp-footer__link a:hover,
.gp-footer__link a:focus-visible {
  color: var(--gp-on-ink);
}

.gp-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--custom--gp--space-3) var(--wp--custom--gp--space-5);
  margin-top: var(--wp--custom--gp--space-4);
  padding-top: var(--wp--custom--gp--space-4);
  border-top: 1px solid var(--gp-hairline-ink);
}

.gp-footer__copyright {
  margin: var(--wp--custom--gp--space-3) 0 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation-sm);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--wp--custom--gp--text-muted-on-sheet-soft);
}

@media (max-width: 900px) {
  .gp-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gp-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- variantes estructurales de bloques core ----------
   wp:table y wp:details no permiten clase por celda ni por <summary>, así que
   las hojas se pintan por estructura dentro del contenedor con clase. */

.gp-specimen__table thead th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gp-muted);
  background-color: var(--gp-paper);
  border-bottom: 1px solid var(--gp-hairline-strong);
}

.gp-specimen__table tbody td {
  padding: 10px 14px;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-specimen__table tbody tr:last-child td {
  border-bottom: 0;
}

.gp-specimen__table tbody td:first-child {
  font-weight: var(--wp--custom--gp--weight-body-strong);
  color: var(--gp-body);
}

.gp-specimen__table tbody td:last-child {
  font-weight: var(--wp--custom--gp--weight-body-strong);
  color: var(--gp-route-deep);
}

/* gp-faq: la clase vive en wp:details, el estilo en su <summary>. */
.gp-faq__list {
  border-top: 1px solid var(--gp-hairline);
}

.gp-faq__list .wp-block-details {
  margin: 0;
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--wp--custom--gp--tap-target);
  padding: var(--wp--custom--gp--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  line-height: 1.3;
  color: var(--gp-body);
}

.gp-faq__item > summary::-webkit-details-marker {
  display: none;
}

.gp-faq__item > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-body);
  color: var(--gp-route-deep);
}

.gp-faq__item[open] > summary::after {
  content: "−";
}

.gp-faq__item .wp-block-details__content p {
  max-width: var(--wp--custom--gp--measure-prose);
  color: var(--gp-muted);
  font-size: var(--wp--custom--gp--size-ui);
  line-height: 1.6;
}

/* ---------- gp-rows · filas de artículos (paridad bw-article-rows) ---------- */
.gp-rows__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--wp--custom--gp--space-5);
  margin-bottom: clamp(18px, 2.6vw, 34px);
}

.gp-rows__head > * {
  margin-block: 0;
}

.gp-rows__cta {
  flex: none;
  margin: 0;
}

.gp-rows__cta a {
  display: inline-flex;
  align-items: center;
  min-height: var(--wp--custom--gp--tap-target);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  text-decoration: none;
}

.gp-rows__list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gp-hairline);
  counter-reset: gp-row;
}

.gp-rows__row {
  display: grid;
  grid-template-columns: 64px 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid var(--gp-hairline);
  transition: background-color var(--wp--custom--gp--duration-fast) var(--wp--custom--gp--easing-standard);
}

.gp-rows__row::before {
  counter-increment: gp-row;
  content: "A-" counter(gp-row, decimal-leading-zero);
  align-self: start;
  padding-top: 4px;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation-sm);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  color: var(--gp-muted);
}

.gp-rows__row::after {
  content: "\2192";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gp-muted);
}

.gp-rows__row:hover {
  background-color: var(--wp--custom--gp--surface-paper-2);
}

.gp-rows__row:hover::after {
  color: var(--gp-route);
}

.gp-rows__date {
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation-sm);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-rows__title {
  margin: 0 0 var(--wp--custom--gp--space-2);
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  line-height: var(--wp--custom--gp--lh-display-3);
  font-weight: var(--wp--custom--gp--weight-display);
}

.gp-rows__title a {
  text-decoration: none;
}

.gp-rows__excerpt {
  margin: 0;
  max-width: var(--wp--custom--gp--measure-body);
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.55;
  color: var(--gp-muted);
}

@media (max-width: 900px) {
  .gp-rows__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--wp--custom--gp--space-3);
  }

  .gp-rows__row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    row-gap: var(--wp--custom--gp--space-2);
  }

  .gp-rows__date {
    grid-column: 2;
    grid-row: 1;
  }

  .gp-rows__body {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .gp-rows__row::after {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ---------- gp-page-head · cabecera de página interior ---------- */
/* The service and contact sheets use the dark title block from the design. */
.gp-head-ink {
  --gp-page-title-size: clamp(2.25rem, 4.167vw, 3.75rem);
  background: var(--gp-ink);
  color: var(--gp-on-ink);
  padding-block: clamp(40px, 4.45vw, 64px);
}

.gp-head-ink.gp-head-amazon {
  --gp-page-title-size: clamp(2.25rem, 3.75vw, 3.375rem);
}

.gp-head-ink:is(.gp-head-services, .gp-head-contact) {
  --gp-page-title-size: clamp(2.5rem, 4.445vw, 4rem);
}

.gp-head-ink .gp-page-head {
  padding-top: 0;
}

.gp-head-ink .gp-page-head__title {
  color: var(--gp-on-ink);
  font-size: var(--gp-page-title-size);
  line-height: 1.02;
}

.gp-head-ink :is(.gp-page-head__lede, .gp-page-head__row-label, .gp-page-head__crumb) {
  color: var(--gp-on-ink-muted);
}

.gp-head-ink :is(.gp-page-head__crumb--current, .gp-page-head__row-value) {
  color: var(--gp-on-ink);
}

.gp-head-ink .gp-page-head__crumb a {
  color: var(--gp-on-ink-muted);
}

.gp-head-ink .gp-page-head__crumb a:is(:hover, :focus-visible) {
  color: var(--gp-on-ink);
}

.gp-head-ink .gp-page-head__crumb + .gp-page-head__crumb::before {
  color: var(--gp-on-ink-muted);
}

.gp-head-ink :focus-visible {
  outline-color: var(--gp-focus-ink);
}

.gp-head-ink :is(.gp-page-head__crumbs, .gp-page-head__row, .gp-page-head__meta) {
  border-color: var(--gp-hairline-ink);
}

.gp-head-ink .gp-page-head__copy .gp-kicker {
  color: var(--gp-marker);
  border-color: var(--gp-hairline-ink);
}

.gp-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: var(--wp--custom--gp--space-6);
  align-items: start;
  padding-top: clamp(24px, 3.4vw, 48px);
}

.gp-page-head__crumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--custom--gp--space-2);
  padding-bottom: var(--wp--custom--gp--space-4);
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-page-head__crumb {
  margin: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-page-head__crumb + .gp-page-head__crumb::before {
  content: "/";
  margin-inline-end: var(--wp--custom--gp--space-2);
  color: var(--gp-hairline-strong);
}

.gp-page-head__crumb a {
  color: var(--gp-route-deep);
  text-decoration: none;
}

.gp-page-head__crumb a:hover,
.gp-page-head__crumb a:focus-visible {
  color: var(--gp-body);
  text-decoration: underline;
}

.gp-page-head__crumb--current {
  color: var(--gp-body);
}

.gp-page-head__copy > * {
  margin-block: 0;
}

.gp-page-head__title {
  margin: 0 0 var(--wp--custom--gp--space-4);
  max-width: 30ch;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-2);
  line-height: var(--wp--custom--gp--lh-display-2);
  letter-spacing: var(--wp--custom--gp--tracking-display-2);
  color: var(--gp-body);
  text-wrap: balance;
}

.gp-page-head__lede {
  margin: 0;
  max-width: var(--wp--custom--gp--measure-lede);
  font-size: var(--wp--custom--gp--size-lede);
  line-height: var(--wp--custom--gp--lh-lede);
  color: var(--gp-muted);
}

.gp-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--custom--gp--space-3);
  margin-top: var(--wp--custom--gp--space-5);
}

/* Cabecera sin título visible (H1 solo para lectores de pantalla): el chip necesita aire. */
.gp-page-head__copy > .screen-reader-text + .gp-page-head__lede {
  margin-top: var(--wp--custom--gp--space-4);
}

.gp-page-head__meta {
  display: grid;
  align-content: start;
  gap: 0;
  padding-top: var(--wp--custom--gp--space-2);
  border-top: 1px solid var(--gp-hairline-strong);
}

/* Cabecera con datos largos: la tabla se desplaza a la izquierda (columna más ancha)
   para que valores como «Consultoría y servicios complementarios» quepan en una línea.
   Solo en escritorio: por debajo de 900 px la cabecera se apila en una columna. */
@media (min-width: 901px) {
  .gp-head-meta-wide .gp-page-head {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  }
}

.gp-page-head__row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: var(--wp--custom--gp--space-3);
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-page-head__row-label {
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-page-head__row-value {
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.45;
  color: var(--gp-body);
}

@media (max-width: 900px) {
  .gp-page-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .gp-page-head__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gp-page-head__actions .wp-block-button,
  .gp-page-head__actions .wp-block-button__link {
    width: 100%;
  }
}

/* ---------- gp-steps · proceso numerado ---------- */
.gp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gp-hairline);
  counter-reset: gp-step;
}

.gp-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3.6rem) minmax(0, 1fr);
  column-gap: clamp(12px, 2.4vw, 32px);
  row-gap: var(--wp--custom--gp--space-2);
  align-items: start;
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--gp-hairline);
  counter-increment: gp-step;
}

.gp-steps > li::before {
  content: counter(gp-step, decimal-leading-zero);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-meta);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  line-height: 1.5;
  color: var(--gp-route-deep);
  font-variant-numeric: tabular-nums;
  grid-column: 1;
  grid-row: 1;
}

.gp-steps > li > * {
  min-width: 0;
  margin-block: 0;
  grid-column: 2;
}

.gp-steps__title {
  margin: 0 0 var(--wp--custom--gp--space-2) 0;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-display-3);
  font-weight: var(--wp--custom--gp--weight-display);
  line-height: var(--wp--custom--gp--lh-display-3);
  color: var(--gp-body);
}

.gp-steps__body {
  margin: 0;
  max-width: var(--wp--custom--gp--measure-body);
  font-size: var(--wp--custom--gp--size-ui);
  line-height: 1.6;
  color: var(--gp-muted);
}

.gp-steps__note {
  margin: var(--wp--custom--gp--space-4) 0 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

@media (max-width: 600px) {
  .gp-steps > li {
    grid-template-columns: 1fr;
    gap: var(--wp--custom--gp--space-2);
  }

  .gp-steps > li > * {
    grid-column: 1;
  }
}

/* ---------- gp-features · rejilla de características ---------- */
.gp-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin: 0;
}

.gp-features__grid > * {
  margin-block: 0;
}

.gp-feature {
  display: grid;
  align-content: start;
  gap: var(--wp--custom--gp--space-2);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--gp-hairline);
  border-radius: var(--wp--custom--gp--radius-card);
  background-color: var(--wp--custom--gp--surface-field);
}

.gp-feature > * {
  margin-block: 0;
}

.gp-feature__mark {
  margin: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-route-deep);
}

.gp-feature__title {
  margin: 0;
  font-family: var(--wp--custom--gp--font-display);
  font-size: var(--wp--custom--gp--size-body);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  line-height: 1.3;
  color: var(--gp-body);
  text-wrap: balance;
}

.gp-feature__text {
  margin: 0;
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.55;
  color: var(--gp-muted);
}

@media (max-width: 1024px) {
  .gp-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gp-features__grid {
    grid-template-columns: 1fr;
  }
}

/* Variante de dos columnas: cuatro tarjetas en 2 × 2, sin hueco final. */
.gp-features__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .gp-features__grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- gp-two-col · dos columnas de texto ---------- */
.gp-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 56px);
  align-items: start;
}

.gp-two-col > * {
  margin-block: 0;
}

.gp-two-col__item {
  min-width: 0;
  padding-top: var(--wp--custom--gp--space-4);
  border-top: 1px solid var(--gp-hairline);
}

.gp-two-col__item > * {
  margin-block: 0;
}

.gp-two-col__item p + p {
  margin-top: var(--wp--custom--gp--space-3);
}

@media (max-width: 900px) {
  .gp-two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- gp-fit · encaja / no encaja ---------- */
.gp-fit__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: var(--wp--custom--gp--space-4);
  align-items: end;
  margin-bottom: var(--wp--custom--gp--space-6);
}

.gp-fit__head > * {
  margin-block: 0;
}

.gp-fit__tag {
  justify-self: end;
  margin: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-fit__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
}

.gp-fit__cols > * {
  margin-block: 0;
}

.gp-fit__col {
  display: grid;
  align-content: start;
  gap: var(--wp--custom--gp--space-4);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--gp-hairline);
  border-radius: var(--wp--custom--gp--radius-card);
  background-color: var(--wp--custom--gp--surface-paper-2);
}

.gp-fit__col--yes {
  border-color: var(--gp-route-deep);
  box-shadow: inset 0 0 0 1px var(--gp-route-deep);
}

.gp-fit__col--no {
  border-color: var(--gp-hairline-strong);
}

.gp-fit__col > * {
  margin-block: 0;
}

.gp-fit__label {
  margin: 0;
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  font-weight: var(--wp--custom--gp--weight-mono);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-body);
}

.gp-fit__col--no .gp-fit__label {
  color: var(--gp-danger);
}

.gp-fit__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.gp-fit__items > li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.55;
  color: var(--gp-body);
}

.gp-fit__items > li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  background-color: var(--gp-route);
}

.gp-fit__col--no .gp-fit__items > li::before {
  background-color: var(--gp-danger);
}

@media (max-width: 900px) {
  .gp-fit__head,
  .gp-fit__cols {
    grid-template-columns: 1fr;
  }

  .gp-fit__tag {
    justify-self: start;
  }
}

/* ---------- gp-form · formulario incrustado (CF7) ---------- */
.gp-form {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(20px, 3.4vw, 56px);
  row-gap: var(--wp--custom--gp--space-6);
  align-items: start;
}

.gp-form > * {
  margin-block: 0;
}

.gp-form__intro {
  display: grid;
  align-content: start;
  gap: var(--wp--custom--gp--space-3);
}

.gp-form__intro > * {
  margin-block: 0;
}

.gp-form__card {
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid var(--gp-hairline);
  border-radius: var(--wp--custom--gp--radius-card);
  background-color: var(--wp--custom--gp--surface-field);
  box-shadow: var(--wp--custom--gp--shadow-form);
}

.gp-form__card > * {
  margin-block: 0;
}

.gp-form__card .wpcf7-form p,
.gp-form__card .wpcf7-form .gp-field {
  margin: 0 0 var(--wp--custom--gp--space-4);
}

.gp-form__card label,
.gp-form__card .wpcf7-form label {
  display: block;
  margin: 0 0 var(--wp--custom--gp--space-2);
  font-family: var(--gp-mono);
  font-size: var(--wp--custom--gp--size-annotation);
  letter-spacing: var(--wp--custom--gp--tracking-annotation);
  text-transform: uppercase;
  color: var(--gp-muted);
}

.gp-form__card input[type="text"],
.gp-form__card input[type="email"],
.gp-form__card input[type="tel"],
.gp-form__card input[type="url"],
.gp-form__card select,
.gp-form__card textarea {
  width: 100%;
  min-height: var(--wp--custom--gp--field-height);
  padding: var(--wp--custom--gp--space-2) var(--wp--custom--gp--space-3);
  border: 1px solid var(--gp-field-line);
  border-radius: var(--wp--custom--gp--radius-base);
  background-color: var(--wp--custom--gp--surface-paper);
  color: var(--gp-body);
  font-family: var(--wp--custom--gp--font-body);
  font-size: var(--wp--custom--gp--size-body);
}

.gp-form__card textarea {
  min-height: calc(var(--wp--custom--gp--field-height) * 2.6);
  resize: vertical;
}

.gp-form__card input:focus-visible,
.gp-form__card select:focus-visible,
.gp-form__card textarea:focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: 2px;
}

.gp-form__card input[type="submit"],
.gp-form__card .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wp--custom--gp--tap-target);
  padding: var(--wp--custom--gp--space-3) var(--wp--custom--gp--space-5);
  border: 1px solid var(--gp-route);
  border-radius: var(--wp--custom--gp--radius-base);
  background-color: var(--gp-route);
  color: var(--gp-on-route);
  font-family: var(--wp--custom--gp--font-body);
  font-size: var(--wp--custom--gp--size-body);
  font-weight: var(--wp--custom--gp--weight-body-strong);
  cursor: pointer;
  transition: background-color var(--gp-dur) var(--gp-ease), color var(--gp-dur) var(--gp-ease);
}

.gp-form__card input[type="submit"]:hover,
.gp-form__card input[type="submit"]:focus-visible,
.gp-form__card .wpcf7-submit:hover,
.gp-form__card .wpcf7-submit:focus-visible {
  background-color: var(--gp-route-hover);
  color: var(--gp-on-route);
}

.gp-form__card .wpcf7-not-valid-tip {
  margin-top: var(--wp--custom--gp--space-1);
  font-size: var(--wp--custom--gp--size-meta);
  color: var(--gp-danger);
}

.gp-form__card .wpcf7-response-output,
.gp-form__note {
  margin: var(--wp--custom--gp--space-4) 0 0;
  padding: var(--wp--custom--gp--space-3) var(--wp--custom--gp--space-4);
  border: 1px solid var(--gp-hairline-strong);
  border-radius: var(--wp--custom--gp--radius-plate);
  font-size: var(--wp--custom--gp--size-meta);
  line-height: 1.55;
  color: var(--gp-muted);
}

.gp-form__card .wpcf7-spinner {
  margin-inline-start: var(--wp--custom--gp--space-3);
}

.gp-form__note a {
  color: var(--gp-route-deep);
}

@media (max-width: 900px) {
  .gp-form {
    grid-template-columns: 1fr;
  }
}

/* gp-cta con formulario: centrado solo en el titular, campos alineados a la izquierda */
.gp-cta--form {
  text-align: start;
}

.gp-cta--form .gp-cta__title,
.gp-cta--form .gp-cta__body {
  margin-inline: auto;
  text-align: center;
}

.gp-cta--form .gp-form__card {
  margin-top: var(--wp--custom--gp--space-6);
  text-align: start;
}

/* En móvil la placa recorta demasiado el formulario (campos de 204 px):
   se reduce el relleno para acercarlo al de /contacto/ sin perder el marco oscuro. */
@media (max-width: 600px) {
  .gp-cta--form {
    padding: 24px 8px;
  }

  .gp-cta--form .gp-form__card {
    padding: 16px;
  }
}

.gp-form__card .wpcf7-form-control-wrap,
.gp-form__card .wpcf7-list-item-label {
  display: block;
}

.gp-form__card .wpcf7-list-item {
  margin: 0;
}

.gp-form__card .wpcf7-form .wpcf7-list-item > label {
  display: inline-flex;
  gap: var(--wp--custom--gp--space-2);
  align-items: start;
  margin: 0;
}

.gp-form__card p,
.gp-form__card .wpcf7-form p {
  max-width: none;
}

/* ==========================================================================
   Interacción G2 — estados reales sobre los componentes gp-.
   Solo color, borde, sombra y outline (cero movimiento de layout, cero CLS).
   Complementa el reveal de theme.css/motion.js; el contrato de motion y las
   duraciones viven en los tokens --wp--custom--gp--duration-*.
   ========================================================================== */

/* ---------- gp-btn · hover / focus-visible / active ---------- */
.gp-btn,
.wp-block-button.is-style-gp-btn .wp-block-button__link,
.wp-block-button.is-style-gp-btn-ghost .wp-block-button__link {
  transition:
    background-color var(--gp-dur) var(--gp-ease),
    border-color var(--gp-dur) var(--gp-ease),
    color var(--gp-dur) var(--gp-ease),
    box-shadow var(--gp-dur) var(--gp-ease);
}

.wp-block-button.is-style-gp-btn .wp-block-button__link:hover,
.wp-block-button.is-style-gp-btn .wp-block-button__link:focus-visible {
  background-color: var(--gp-route-hover);
  color: var(--gp-on-route);
}

.wp-block-button.is-style-gp-btn-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-gp-btn-ghost .wp-block-button__link:focus-visible {
  background-color: transparent;
  border-color: var(--gp-marker);
  color: var(--gp-on-ink);
}

/* Pulsado: un paso más oscuro + sombra interior. Sin desplazamiento. */
.gp-btn:active,
.wp-block-button.is-style-gp-btn .wp-block-button__link:active {
  background-color: var(--wp--custom--gp--accent-route-deep);
  color: var(--gp-on-route);
  box-shadow: inset 0 1px 2px rgba(10, 29, 38, 0.28);
}

.wp-block-button.is-style-gp-btn-ghost .wp-block-button__link:active,
.gp-btn--ghost:active {
  border-color: var(--gp-marker);
  box-shadow: inset 0 1px 2px rgba(10, 29, 38, 0.28);
}

.gp-btn--marker:active {
  background-color: var(--wp--custom--gp--accent-marker-deep);
  color: var(--wp--custom--gp--accent-route-ink);
  box-shadow: inset 0 1px 2px rgba(10, 29, 38, 0.24);
}

/* Foco visible: 2 px + separación, ≥3:1 sobre el fondo de su superficie. */
.gp-btn:focus-visible,
.wp-block-button.is-style-gp-btn .wp-block-button__link:focus-visible,
.wp-block-button.is-style-gp-btn-ghost .wp-block-button__link:focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: 3px;
}

/* Sobre superficie tinta el anillo cambia al foco de hoja. */
.gp-hero .gp-btn:focus-visible,
.gp-hero .wp-block-button__link:focus-visible,
.gp-header .gp-btn:focus-visible,
.gp-header .wp-block-button__link:focus-visible,
.gp-section--sheet .gp-btn:focus-visible,
.gp-section--sheet .wp-block-button__link:focus-visible,
.gp-zone-sheet--featured .gp-btn:focus-visible,
.gp-cases__case--featured .gp-btn:focus-visible {
  outline-color: var(--gp-focus-ink);
}

/* ---------- gp-card · gp-zone-sheet · gp-cases: hover / focus-within ---------- */
.gp-card,
.gp-zone-sheet,
.gp-cases__case,
.gp-feature {
  transition:
    border-color var(--gp-dur) var(--gp-ease),
    box-shadow var(--gp-dur) var(--gp-ease);
}

.gp-card:hover,
.gp-card:focus-within,
.gp-zone-sheet:hover,
.gp-zone-sheet:focus-within,
.gp-cases__case:hover,
.gp-cases__case:focus-within,
.gp-feature:hover,
.gp-feature:focus-within {
  border-color: var(--wp--custom--gp--line-hairline-strong);
  box-shadow: var(--wp--custom--gp--shadow-panel);
}

.gp-zone-sheet--featured:hover,
.gp-zone-sheet--featured:focus-within,
.gp-cases__case--featured:hover,
.gp-cases__case--featured:focus-within {
  border-color: var(--wp--custom--gp--line-hairline-on-sheet-strong);
  box-shadow: var(--wp--custom--gp--shadow-panel);
}

/* ---------- gp-faq · details[open] ---------- */
.gp-faq__item > summary {
  transition: color var(--gp-dur) var(--gp-ease);
}

.gp-faq__item > summary::after {
  transition:
    color var(--gp-dur) var(--gp-ease),
    transform var(--gp-dur) var(--gp-ease);
}

.gp-faq__item > summary:hover,
.gp-faq__item > summary:focus-visible,
.gp-faq__item[open] > summary {
  color: var(--gp-route-deep);
}

.gp-faq__item > summary:hover::after,
.gp-faq__item > summary:focus-visible::after {
  transform: scale(1.18);
}

.gp-faq__item > summary:focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: 2px;
  border-radius: var(--wp--custom--gp--radius-base);
}

/* El indicador pasó de "+" a "−" (no se rota un signo: se escala y oscurece). */
.gp-faq__item[open] > summary::after {
  color: var(--gp-body);
  transform: scale(1.06);
}

/* Apertura suave del panel: opacity + 2 px. La altura la pone el navegador de
   golpe (details nativo), así que no hay animación de layout ni CLS. */
@keyframes gp-faq-open {
  from {
    opacity: 0.4;
    transform: translateY(-2px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.gp-faq__item[open] > :not(summary) {
  animation: gp-faq-open var(--wp--custom--gp--duration-slow) var(--gp-ease) both;
}

/* ---------- gp-nav · hover + foco visible ---------- */
.gp-nav .wp-block-navigation-item__content:hover,
.gp-nav .wp-block-navigation-item__content:focus-visible {
  color: var(--gp-on-ink);
}

.gp-nav .wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--gp-focus-ink);
  outline-offset: 2px;
  border-radius: var(--wp--custom--gp--radius-base);
}

/* ---------- enlaces sueltos de sección: mismo foco en ambas superficies ---------- */
.gp-section--sheet :focus-visible:not(.wp-block-button__link),
.gp-hero :focus-visible:not(.wp-block-button__link) {
  outline-color: var(--gp-focus-ink);
}
/* Motion proposal: preserve readable content while tracing the actual theme's rail. */
.js [data-gp-reveal], .js [data-gp-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}
.gp-hero > .gp-wrap > *, .gp-page-head > *, .gp-article__head > * {
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 1025px) {
    .gp-method__stations.gp-motion-ready::before {
      transform-origin: left center;
      transform: scaleX(var(--gp-route-progress, 1));
      transition: transform 180ms linear;
    }
    .gp-method__no {
      transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease;
    }
    .gp-method__station.gp-motion-current .gp-method__no {
      color: var(--gp-paper);
      background-color: var(--gp-route-deep);
      border-color: var(--gp-route-deep);
    }
  }
  .gp-page-head__meta {
    position: relative;
  }
  .gp-page-head__meta::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--gp-route);
    transform-origin: left;
    animation: gp-motion-trace 1s cubic-bezier(.22, 1, .36, 1) both;
    pointer-events: none;
  }
  @keyframes gp-motion-trace {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  .gp-zone-sheet__link, .gp-card__title a {
    transition: color 220ms ease, text-underline-offset 220ms ease;
  }
  .gp-zone-sheet__link:where(:hover, :focus-visible),
  .gp-card__title a:where(:hover, :focus-visible) {
    text-underline-offset: .24em;
  }
}

/* Home: plano de operación. El contenido del hero es independiente del motion. */
.gp-plan-hero {
  background: var(--gp-ink);
  color: var(--gp-on-ink);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 6rem);
}
.gp-plan-hero__titleblock {
  display: grid;
  grid-template-columns: 1.45fr 1.05fr 1fr .9fr;
  border: 1px solid var(--gp-hairline-ink);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gp-plan-hero__titleblock p {
  margin: 0;
  padding: .65rem .85rem;
  border-right: 1px solid var(--gp-hairline-ink);
  color: #a6b7b8;
  font-family: var(--gp-mono);
  font-size: .7rem;
  line-height: 1.5;
}
.gp-plan-hero__titleblock p:last-child { border-right: 0; }
.gp-plan-hero__titleblock strong { color: var(--gp-on-ink); font-weight: 500; }
.gp-plan-hero__layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.gp-plan-hero__copy h1 { margin: 0; color: var(--gp-on-ink); font-family: var(--wp--custom--gp--font-display); font-size: clamp(2.6rem, 5vw, 4.55rem); line-height: 1.1; letter-spacing: -.025em; }
.gp-plan-hero__copy > p:not(.gp-plan-hero__note) { color: var(--gp-on-ink-muted); font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.6; max-width: 43rem; margin: 1.6rem 0 0; }
.gp-plan-hero__actions { gap: .8rem; margin-top: 1.8rem; }
.gp-plan-hero__note { color: var(--gp-on-ink-muted); font-size: .9rem; margin-top: 1rem; }
.gp-plan-figure { border: 1px solid var(--gp-hairline-ink); background: rgba(255,255,255,.035); }
.gp-plan-figure__head, .gp-plan-figure__foot { width: 100%; max-width: none; margin: 0; padding: .8rem 1rem; font-family: var(--gp-mono); font-size: .73rem; line-height: 1.5; color: var(--gp-on-ink-muted); }
.gp-plan-figure__head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--gp-hairline-ink); }
.gp-plan-figure__body { position: relative; padding: 1rem 1rem 1rem 3.2rem; counter-reset: gp-stage; }
.gp-plan-figure__body::before { content: ''; position: absolute; left: 1.5rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--gp-route); transform-origin: top; }
.gp-plan-figure__station { counter-increment: gp-stage; position: relative; border: 1px solid rgba(246,243,234,.16); background: rgba(255,255,255,.025); padding: .85rem 1rem .85rem 3.8rem; }
.gp-plan-figure__station + .gp-plan-figure__station { margin-top: .65rem; }
.gp-plan-figure__station::before { content: counter(gp-stage, decimal-leading-zero); position: absolute; top: 1rem; left: .9rem; color: var(--gp-marker); border: 1px solid rgba(163,230,53,.45); padding: .2rem .4rem; font-family: var(--gp-mono); font-size: .72rem; }
.gp-plan-figure__station p { margin: 0; color: var(--gp-on-ink-muted); font-size: .85rem; line-height: 1.5; }
.gp-plan-figure__station strong { color: var(--gp-on-ink); font-family: var(--wp--custom--gp--font-display); font-size: 1rem; }
.gp-plan-figure__foot { border-top: 1px solid var(--gp-hairline-ink); }
.gp-plan-hero__footer { width: 100%; max-width: none; border-top: 1px solid var(--gp-hairline-ink); margin: 3rem 0 0; padding-top: 1rem; text-align: right; font: .75rem/1.5 var(--gp-mono); }
.gp-plan-hero__footer a { color: var(--gp-on-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .gp-plan-figure__body::before { animation: gp-plan-trace 1.7s cubic-bezier(.22,1,.36,1) both; }
  .gp-plan-figure__station { animation: gp-plan-station .6s cubic-bezier(.22,1,.36,1) backwards; }
  .gp-plan-figure__station:nth-child(1) { animation-delay: .15s; }
  .gp-plan-figure__station:nth-child(2) { animation-delay: .39s; }
  .gp-plan-figure__station:nth-child(3) { animation-delay: .63s; }
  .gp-plan-figure__station:nth-child(4) { animation-delay: .87s; }
  @keyframes gp-plan-trace { from { transform: scaleY(.03); } to { transform: scaleY(1); } }
  @keyframes gp-plan-station { from { background-color: rgba(20,184,166,.18); border-color: rgba(20,184,166,.7); } to { background-color: rgba(255,255,255,.025); border-color: rgba(246,243,234,.16); } }
}
@media (max-width: 781px) {
  .gp-plan-hero__titleblock { grid-template-columns: 1fr 1fr; }
  .gp-plan-hero__titleblock p:nth-child(2) { border-right: 0; }
  .gp-plan-hero__titleblock p:nth-child(-n+2) { border-bottom: 1px solid var(--gp-hairline-ink); }
  .gp-plan-hero__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .gp-plan-hero__copy h1 { font-size: clamp(2.55rem, 9vw, 4rem); }
}

/* Los artículos siguen siendo entradas reales; la imagen solo aparece si existe. */
.gp-card__image { overflow: hidden; }
.gp-card__image img { display: block; width: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .gp-card__image img { transition: transform .65s cubic-bezier(.22,1,.36,1); }
  .gp-card:where(:hover, :focus-within) .gp-card__image img { transform: scale(1.035); }
}

/* Minimum target height for standalone identity and hero links. */
.gp-header__brand .wp-block-site-title a, .gp-plan-hero__footer a { display: inline-flex; align-items: center; min-height: 24px; }
/* Blog: editorial rows and an ink title sheet, scoped to the posts template. */
.gp-blog > .gp-section {
  margin-block: 0;
}

.gp-blog__hero {
  padding-block: clamp(48px, 5.5vw, 80px);
}

.gp-blog__intro {
  max-width: 760px;
}

.gp-blog__intro > * {
  margin-block: 0;
}

.gp-blog__intro .gp-kicker {
  margin-bottom: var(--wp--custom--gp--space-4);
}

.gp-blog__intro h1 {
  color: var(--gp-on-ink);
  font-size: clamp(2.5rem, 4.445vw, 4rem);
  line-height: 1.02;
  letter-spacing: var(--wp--custom--gp--tracking-display-2);
  text-wrap: balance;
}

.gp-blog__intro .gp-section__lede {
  max-width: var(--wp--custom--gp--measure-lede);
  margin-top: var(--wp--custom--gp--space-5);
  color: var(--gp-on-ink-muted);
}

.gp-blog__articles .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gp-hairline);
}

.gp-blog__articles .wp-block-post-template > li {
  margin: 0;
  border-bottom: 1px solid var(--gp-hairline);
}

.gp-blog__articles .gp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wp--custom--gp--space-2);
  padding: clamp(20px, 2.5vw, 32px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gp-blog__articles .gp-card > * {
  min-width: 0;
  margin: 0;
}

.gp-blog__articles .gp-card:has(.gp-card__image) {
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  column-gap: clamp(20px, 2.5vw, 32px);
}

.gp-blog__articles .gp-card__image {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
}

.gp-blog__articles .gp-card:has(.gp-card__image) :is(.gp-card__meta, .gp-card__title, .gp-card__text) {
  grid-column: 2;
}

.gp-blog__articles .gp-card__meta {
  grid-row: 1;
  color: var(--gp-route-deep);
}

.gp-blog__articles .gp-card__title {
  grid-row: 2;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.gp-blog__articles .gp-card__title a {
  color: var(--gp-body);
  text-decoration: none;
}

.gp-blog__articles .gp-card__title a:is(:hover, :focus-visible) {
  color: var(--gp-route-deep);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.gp-blog__articles .gp-card__text {
  grid-row: 3;
  max-width: var(--wp--custom--gp--measure-body);
}

.gp-blog__articles .gp-card__text p {
  margin: 0;
}

.gp-blog__articles .wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--wp--custom--gp--space-4);
  margin-top: var(--wp--custom--gp--space-6);
}

.gp-blog__articles .wp-block-query-pagination a {
  color: var(--gp-route-deep);
  text-underline-offset: .18em;
}

@media (min-width: 782px) {
  body:not(.paged) .gp-blog__articles .wp-block-post-template > li:first-child .gp-card {
    padding-block: clamp(32px, 4vw, 56px);
  }

  body:not(.paged) .gp-blog__articles .wp-block-post-template > li:first-child .gp-card:has(.gp-card__image) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body:not(.paged) .gp-blog__articles .wp-block-post-template > li:first-child .gp-card__title {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
  }
}

@media (max-width: 600px) {
  .gp-blog__articles .gp-card:has(.gp-card__image) {
    grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
    column-gap: var(--wp--custom--gp--space-4);
  }
}

/* 320px (reflujo WCAG): el título largo y el botón del formulario no deben ensanchar la página */
@media (max-width: 360px) {
  .gp-page-head__title {
    font-size: 1.85rem;
    overflow-wrap: break-word;
  }

  .gp-form__card .wpcf7-submit {
    max-width: 100%;
    padding-inline: var(--wp--custom--gp--space-3);
  }
}

/* ---------- aviso de cookies (plugin): estilos en línea sustituidos por los del tema ---------- */
#gdpr-cookie-consent-bar.gdpr-banner {
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(16px, 2.4vw, 28px) !important;
  border: 1px solid var(--gp-hairline) !important;
  border-radius: var(--wp--custom--gp--radius-card) !important;
  background: var(--wp--custom--gp--surface-field) !important;
  box-shadow: var(--wp--custom--gp--shadow-form) !important;
  z-index: 1000;
}

#gdpr-cookie-consent-bar p {
  color: var(--gp-body) !important;
  text-align: start !important;
  font-size: var(--wp--custom--gp--size-body) !important;
  line-height: 1.5;
}

#gdpr-cookie-consent-bar #cookie_action_link {
  color: var(--gp-route-deep) !important;
  text-decoration: underline !important;
}

#gdpr-cookie-consent-bar .gdpr_action_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wp--custom--gp--tap-target);
  border-color: var(--gp-field-line) !important;
  border-radius: var(--wp--custom--gp--radius-base) !important;
  background: transparent !important;
  color: var(--gp-body) !important;
  font-weight: var(--wp--custom--gp--weight-body-strong) !important;
  text-decoration: none;
}

#gdpr-cookie-consent-bar #cookie_action_accept_all {
  border-color: var(--gp-route) !important;
  background: var(--gp-route) !important;
  color: var(--gp-on-route) !important;
}

#gdpr-cookie-consent-bar #cookie_action_accept_all:hover {
  background: var(--gp-route-hover) !important;
}

#gdpr-cookie-consent-bar .gdpr_action_button:focus-visible,
#gdpr-cookie-consent-bar #cookie_action_link:focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  #gdpr-cookie-consent-bar .cookie_notice_buttons,
  #gdpr-cookie-consent-bar .left_buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* etiquetas de hoja: en una rejilla se estiraban a todo el ancho; en la CTA centrada se quedaban a la izquierda */
.gp-form__intro > .gp-kicker {
  justify-self: start;
}

.gp-cta--form > .gp-kicker {
  display: table;
  margin-inline: auto;
}

#cookie-banner-cancle-img {
  color: var(--gp-body) !important;
}

/* ---------- Correos en la columna del formulario ---------- */
/* Permiten salto de línea: sin esto, la dirección más larga fija el ancho
   mínimo de la columna y provoca desbordamiento horizontal en móvil. */
.gp-form__intro a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
/* En móvil, el dominio baja a la línea siguiente tras la @ para no cortarlo. */
@media (max-width: 600px) {
  .gp-form__intro .gp-form__mail-host {
    display: block;
  }
}

/* ---------- Cabecera de Contacto: tabla de cuatro filas iguales ---------- */
/* El valor de SIGUIENTE PASO es largo: sin ensanchar la tabla ocupa dos líneas
   y esa fila crece. Solo en escritorio; por debajo la cabecera se apila. */
@media (min-width: 901px) {
  .gp-head-contact .gp-page-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .gp-head-contact .gp-page-head__row {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  }
}

/* En móvil la tabla de Contacto deja la etiqueta encima del valor: con dos
   columnas, SIGUIENTE PASO se parte y deja el valor en 176 px. */
@media (max-width: 600px) {
  .gp-head-contact .gp-page-head__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
}
