.gp-runtime-content-page {
  padding: 0 0 6rem;
}

/* 7rem a 1707px reproduce el padding-top de 112px de la preview aprobada. */
.gp-runtime-page-hero {
  background: var(--gp-black);
  color: var(--gp-white);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.gp-runtime-page-hero h1 {
  color: var(--gp-white);
  font-size: clamp(3rem, 8vw, 6.5rem);
  max-width: 60rem;
}

/*
 * Editorial.php renders the excerpt as `.gp-editorial-hero__excerpt`, while
 * contact/legal surfaces use `.gp-runtime-page-hero__intro`. Both represent
 * the same approved intro and therefore share the exact typography.
 */
.gp-runtime-page-hero__intro,
.gp-runtime-page-hero__intro p,
.gp-runtime-page-hero .gp-editorial-hero__excerpt,
.gp-runtime-page-hero .gp-editorial-hero__excerpt p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 48rem;
}

.gp-runtime-page-body {
  padding-top: 5rem;
}

/*
 * Legal pages use native Gutenberg blocks while the approved preview groups
 * each section in an article. Recreate the preview's outer rhythm without
 * changing, wrapping or duplicating the stored legal content.
 */
.gp-runtime-content-page[data-gp-page-type="legal"] {
  padding-bottom: 0;
}

.gp-runtime-content-page[data-gp-page-type="legal"] .gp-preview-policy-notice h2 {
  margin-top: 2rem;
}

.gp-runtime-content-page[data-gp-page-type="legal"] .gp-preview-policy-notice + .gp-legal-layout {
  margin-top: 1.25rem;
}

.gp-runtime-content-page[data-gp-page-type="legal"] .gp-legal-navigation a {
  display: inline-block;
}

.gp-runtime-content-page[data-gp-page-type="legal"] .gp-entry-content--legal > p,
.gp-runtime-content-page[data-gp-page-type="legal"] .gp-entry-content--legal > ul {
  margin-top: 1rem;
}

.gp-runtime-content-page[data-gp-page-type="legal"] .gp-runtime-page-footer {
  margin-top: 9rem;
}

.gp-runtime-content-page[data-gp-page-type="legal"] .gp-runtime-page-footer strong {
  display: inline;
}

.gp-preview-state-card {
  background: var(--gp-white);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.gp-preview-state-card summary {
  cursor: pointer;
  font-weight: 900;
}

.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-runtime-page-hero {
  background: radial-gradient(circle at 78% 28%, #353535 0, transparent 31%), #0b0b0b;
}

.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-hero {
  min-height: 0;
}

.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-hero__content {
  max-width: none;
  padding-bottom: 0;
  padding-top: 0;
}

.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-entry-content--editorial {
  margin-top: 0;
}

/*
 * La preview deja 5rem bajo el grid antes del footer de página. En la plantilla
 * nativa el footer vive dentro del contenedor, por lo que ese espacio se suma a
 * sus 4rem: 9.25rem alinea además los 4px residuales del shell desktop. El
 * breakpoint móvil conserva su regla posterior ya validada.
 */
.gp-runtime-content-page[data-gp-page-slug="nosotros"] {
  padding-bottom: 0;
}

.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-runtime-page-footer {
  margin-top: 9.25rem;
}

/*
 * Gutenberg block groups inherit `margin: 2rem 0` from the generic entry
 * content layer. Inside the approved editorial grid those margins duplicate
 * the grid gap and also push the first card down. The preview has no such
 * margins, so the grid owns all separation.
 */
.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-entry-content--editorial > .gp-editorial-section,
.gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-entry-content--faq > .gp-faq-group {
  margin-block: 0 !important;
}

/*
 * Keep the native Gutenberg Details markup, but let the approved FAQ rhythm
 * own its heading, item and paragraph spacing in both contractual viewports.
 */
.gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-faq-group h2 {
  margin: 2rem 0 1rem;
}

.gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-faq-group details {
  margin: 0;
}

.gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-faq-group details > p {
  line-height: 1.7;
  margin-top: 1rem;
}

@media (min-width: 761px) {
  /* The approved desktop FAQ owns 9rem between the groups and page footer. */
  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] {
    padding-bottom: 0;
  }

  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-runtime-page-footer {
    margin-top: 9rem;
  }
}

/* The approved first editorial card is #111, not the generic theme black. */
.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-section:first-child {
  background: #111;
}

/*
 * `.gp-entry-content h2 { margin-top: 2rem; }` appears after the editorial
 * component in components.css and shortened cards 02/03. Reassert the approved
 * editorial rhythm after that generic rule.
 */
.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-section h2 {
  margin: clamp(4rem, 10vw, 9rem) 0 1.5rem;
}

.gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-section:first-child h2 {
  margin-top: clamp(7rem, 13vw, 12rem);
}

.gp-runtime-page-footer {
  align-items: center;
  border-top: 1px solid var(--gp-line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
}

.gp-runtime-page-footer strong {
  display: block;
  max-width: 42rem;
}

.gp-runtime-blog__intro {
  border-bottom: 1px solid var(--gp-line);
  padding-bottom: 2.5rem;
}

.gp-runtime-blog__intro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-top: 2rem;
}

.gp-runtime-blog__intro p {
  color: var(--gp-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.gp-runtime-blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.gp-runtime-blog-card {
  background: var(--gp-white);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius);
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.gp-runtime-blog-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.03;
  margin: 0.8rem 0 1rem;
}

.gp-runtime-blog-card__excerpt,
.gp-runtime-blog-card details p,
.gp-runtime-blog-card details li {
  color: var(--gp-muted);
  line-height: 1.7;
}

.gp-runtime-blog-card details {
  border-bottom: 1px solid var(--gp-line);
  border-top: 1px solid var(--gp-line);
  margin-top: 1.25rem;
  padding: 1rem 0;
}

.gp-runtime-blog-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  list-style: none;
  min-height: 3rem;
  padding: 0.65rem 2rem 0.65rem 0;
  position: relative;
}

.gp-runtime-blog-card summary::-webkit-details-marker {
  display: none;
}

.gp-runtime-blog-card summary::after {
  content: "+";
  position: absolute;
  right: 0;
}

.gp-runtime-blog-card details[open] summary::after {
  content: "−";
}

.gp-runtime-blog-card details h2 {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.gp-runtime-blog-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.gp-runtime-blog-card__links .gp-button {
  font-size: 0.78rem;
  padding: 0.75rem 1rem;
}

.gp-runtime-blog {
  padding-bottom: 0;
}

.gp-runtime-blog .gp-runtime-page-footer {
  margin-top: 9rem;
}

/*
 * Contact keeps the native secure POST flow, but its visible labels and direct
 * contact rows follow the approved preview exactly. The old theme used stacked
 * uppercase labels, which produced a different dark-card rhythm.
 */
.gp-runtime-content-page[data-gp-page-slug="contacto"] {
  padding-bottom: 0;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-runtime-page-footer {
  margin-top: 9rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form-card,
.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form-card h2,
.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details h2 {
  margin-top: 2rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form {
  gap: 1rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form p {
  font-size: 1rem;
  line-height: 1.5;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form label {
  font-size: 0.85rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-privacy {
  height: 2.75rem;
  min-height: 2.75rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form input[type="text"],
.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form input[type="email"],
.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form input[type="tel"],
.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form select,
.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-form textarea {
  border-radius: 0.7rem;
  min-height: 3rem;
  padding: 0.75rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details .gp-eyebrow {
  color: var(--gp-volt);
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details__row {
  border-top: 1px solid #303030;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  padding-top: 1rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details__row + .gp-contact-details__row {
  margin-top: 1rem;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details__row strong {
  color: var(--gp-white);
  font-weight: 800;
}

.gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details__row a {
  color: var(--gp-volt);
  font-weight: 850;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

  .gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-layout {
    grid-template-columns: 1fr;
  }

  .gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-contact-details {
    align-self: start;
  }
}

@media (max-width: 760px) {
  /*
   * The compact default remains useful for ordinary content pages. Blog,
   * Nosotros, FAQ, Contacto and legal pages retain the approved 4rem/5rem
   * geometry explicitly below.
   */
  .gp-runtime-page-hero {
    padding: 3.25rem 0;
  }

  .gp-runtime-page-body {
    padding-top: 3rem;
  }

  .gp-runtime-blog .gp-runtime-page-hero,
  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-runtime-page-hero,
  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-runtime-page-hero,
  .gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-runtime-page-hero,
  .gp-runtime-content-page[data-gp-page-type="legal"] .gp-runtime-page-hero {
    padding: clamp(4rem, 8vw, 7rem) 0;
  }

  .gp-runtime-blog .gp-runtime-page-body,
  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-runtime-page-body,
  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-runtime-page-body,
  .gp-runtime-content-page[data-gp-page-slug="contacto"] .gp-runtime-page-body,
  .gp-runtime-content-page[data-gp-page-type="legal"] .gp-runtime-page-body {
    padding-top: 5rem;
  }

  /*
   * Gutenberg adds flow margins and a tighter paragraph line-height to its
   * native Details blocks.  Keep the semantic/open FAQ markup, but restore
   * the approved mobile rhythm owned by the preview.
   */
  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-faq-group h2 {
    margin: 2rem 0 1rem;
  }

  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-faq-group details {
    margin: 0;
  }

  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] .gp-faq-group details > p {
    line-height: 1.7;
    margin-top: 1rem;
  }

  .gp-runtime-content-page[data-gp-page-slug="preguntas-frecuentes"] {
    padding-bottom: 5rem;
  }

  /*
   * The approved Nosotros body owns 5rem above and below its card grid. Native
   * Gutenberg paragraphs otherwise add 20px flow margins and advance each
   * heading by 6px, so reproduce the approved card rhythm without changing the
   * stored editorial copy.
   */
  .gp-runtime-content-page[data-gp-page-slug="nosotros"] {
    padding-bottom: 0;
  }

  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-runtime-page-body {
    padding-bottom: 0;
  }

  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-runtime-page-footer {
    margin-top: 9rem;
  }

  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-section h2 {
    margin-top: 4.375rem;
  }

  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-section:first-child h2 {
    margin-top: 7.375rem;
  }

  .gp-runtime-content-page[data-gp-page-slug="nosotros"] .gp-editorial-section p:not(:first-child) {
    margin-top: 1rem;
  }

  .gp-runtime-page-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gp-runtime-page-footer .gp-button {
    width: 100%;
  }
}
