
/* ──────────────────────────────────────────────────────────────────────────
   GeneratePress: liberar TODOS los wrappers para ancho completo.
   separate-containers añade padding:40px a .inside-article y margin:20px a
   .site-main; además .entry-content puede tener padding propio. Se fuerzan
   a 0 con !important para superar la especificidad del CSS dinámico de GP.
   ────────────────────────────────────────────────────────────────────────── */
.site-content:has(#gpm-page),
.content-area:has(#gpm-page)           { padding:0 !important; margin:0 !important;
                                          max-width:none !important; width:100% !important; }
.site-main:has(#gpm-page)              { padding:0 !important; margin:0 !important;
                                          max-width:none !important; width:100% !important; }
.inside-article:has(#gpm-page)         { padding:0 !important; margin:0 !important; }
.entry-content:has(#gpm-page)          { padding:0 !important; margin:0 !important; }

/* ──────────────────────────────────────────────────────────────────────────
   Tokens de diseño — idénticos a pagina-historia para coherencia visual
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --gpm-bg:            #FFFFFF;
  --gpm-surface:       #FBFCF9;
  --gpm-surface-hi:    #FFFFFF;
  --gpm-ink:           #1E231D;
  --gpm-ink-soft:      #6B7268;
  --gpm-line:          #DDE3D8;
  --gpm-accent:        #33513B;
  --gpm-accent-soft:   #E3EAE0;
  --gpm-accent-ink:    #FFFFFF;
  --gpm-pop:           #D9A441;
  --gpm-radius:        8px;
  --gpm-shadow:        0 2px 12px rgba(0,0,0,0.08);
  --f-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-body:    'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

/* ──────────────────────────────────────────────────────────────────────────
   Base
   ────────────────────────────────────────────────────────────────────────── */
/* overflow en body para que alignfull con márgenes negativos no genere scroll */
body:has(#gpm-page) { overflow-x: hidden; }

.gpm-page {
  background: var(--gpm-bg);
}
.gpm-page *,
.gpm-page *::before,
.gpm-page *::after { box-sizing: border-box; }
.gpm-page img      { max-width: 100%; display: block; }
.gpm-page a        { color: inherit; }
.gpm-page h1,
.gpm-page h2,
.gpm-page p        { margin: 0; }

/* ──────────────────────────────────────────────────────────────────────────
   Separador — hilo gráfico (línea + diamante dorado)
   ────────────────────────────────────────────────────────────────────────── */
.gpm-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 0;
}
.gpm-sep-l {
  width: 1px;
  height: 36px;
  background: var(--gpm-line);
  flex-shrink: 0;
}
.gpm-sep-l--tall { height: 56px; }
.gpm-sep-d {
  width: 7px;
  height: 7px;
  background: var(--gpm-pop);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin: 4px 0;
}
.gpm-sep-d--lg {
  width: 11px;
  height: 11px;
}
.gpm-sep--lg  { padding: 8px 0; }
.gpm-sep--cierre { padding: 0 0 40px; }

/* ──────────────────────────────────────────────────────────────────────────
   1. HERO (Apertura)
   ────────────────────────────────────────────────────────────────────────── */
.gpm-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.gpm-hero-frame {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.gpm-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.04) 0%,
    rgba(30,35,29,0.52) 100%
  );
}
.gpm-hero-content {
  position: relative; z-index: 1;
  padding: 40px clamp(20px,6vw,80px) clamp(64px,12vh,130px) 24px;
  width: 100%;
  color: var(--gpm-accent-ink);
}
.gpm-hero-text-wrap {
  display: block;
  max-width: clamp(300px, 52%, 640px);
  background: rgba(30,35,29,0.58);
  padding: 20px 28px 24px;
}
.gpm-hero-rule {
  border: none;
  margin: 0;
}
.gpm-hero-rule--main {
  border-top: 1px solid rgba(255,255,255,0.45);
  margin: 18px 0 16px;
}
.gpm-hero-rule--small {
  border-top: 1px solid rgba(255,255,255,0.25);
  width: 48px;
  margin: 14px 0;
}

.gpm-hero-lede-word {
  color: var(--gpm-pop);
  font-style: normal;
}

.gpm-eyebrow-hero {
  font: 700 11px/1 var(--f-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.gpm-hero-title {
  font: 600 clamp(28px,4.8vw,64px)/1.05 var(--f-display);
  font-style: italic;
  color: #fff;
  white-space: nowrap;
  margin-bottom: 22px;
}
.gpm-hero-lede {
  font: 600 clamp(22px,3vw,34px)/1.35 var(--f-display);
  font-style: italic;
  color: #fff;
  margin-bottom: 16px;
}
.gpm-hero-body {
  font: 400 clamp(16px,1.9vw,20px)/1.72 var(--f-body);
  color: rgba(255,255,255,0.92);
  margin-bottom: 12px;
}

/* ──────────────────────────────────────────────────────────────────────────
   CONECTOR entre secciones
   ────────────────────────────────────────────────────────────────────────── */
.gpm-conector {
  display: flex;
  justify-content: center;
  line-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}
.gpm-conector img {
  width: clamp(600px, 78%, 1040px);
  height: auto;
  display: block;
}
.gpm-conector--rastro {
  max-height: 90px;
  overflow: hidden;
}
.gpm-conector--rastro img {
  width: 100%;
  max-width: 100%;
}

/* ──────────────────────────────────────────────────────────────────────────
   2–5. SECCIONES OPERATIVAS
   ────────────────────────────────────────────────────────────────────────── */
.gpm-sec {
  background: var(--gpm-bg);
  padding: 72px clamp(20px,6vw,80px);
}

/* Variante con imagen de fondo */
.gpm-sec--bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: transparent;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 52vh;
  overflow: hidden;
}
.gpm-sec-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to left,
    rgba(20,25,20,0.68) 0%,
    rgba(20,25,20,0.18) 100%
  );
}
.gpm-sec-bg-body {
  position: relative; z-index: 1;
  max-width: clamp(300px, 56%, 680px);
  padding: 40px 24px 72px clamp(20px,4vw,48px);
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
}
.gpm-sec-bg-body .gpm-sec-num   { color: rgba(255,255,255,0.18); }
.gpm-sec-bg-body .gpm-sec-p    { font-size: clamp(16px,1.9vw,20px); }
.gpm-sec-logo {
  display: block;
  height: clamp(56px,7vw,96px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 28px;
}
.gpm-sec-logo-row {
  display: flex;
  align-items: center;
  gap: clamp(10px,1.2vw,18px);
  margin-bottom: 28px;
}
.gpm-sec-logo-row .gpm-sec-logo  { margin-bottom: 0; }
.gpm-sec-simbolo {
  display: block;
  height: clamp(40px,5vw,72px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.gpm-sec-num--gold {
  color: var(--gpm-pop) !important;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(32px,3.6vw,44px) !important;
  font-style: normal !important;
  margin-bottom: 8px;
}
.gpm-sec-num-label {
  font: 700 clamp(22px,2.4vw,28px)/1 var(--f-body);
  letter-spacing: 0.1em;
}
.gpm-sec-bg-body .gpm-sec-title { color: #fff; margin-top: 36px; margin-bottom: 28px; }
.gpm-sec-bg-body .gpm-sec-logo      + .gpm-sec-title { margin-top: 0; }
.gpm-sec-bg-body .gpm-sec-logo-row  + .gpm-sec-title { margin-top: 0; }
.gpm-sec--narrow .gpm-sec-bg-body { max-width: clamp(250px,44%,560px); padding-top: 16px; }
.gpm-sec--narrow .gpm-sec-logo    { margin-bottom: 10px; }
.gpm-sec--narrow .gpm-sec-title   { margin-bottom: 10px; }
.gpm-sec-bg-body .gpm-sec-p + .gpm-sec-p { margin-top: 20px; }
.gpm-sec-bg-body .gpm-sec-gracias {
  font: 600 clamp(24px,3.5vw,40px)/1.15 var(--f-display);
  font-style: italic;
  margin-top: 32px;
  color: #FC9326;
}
.gpm-sec-bg-body .gpm-sec-p     { color: rgba(255,255,255,0.88); }
.gpm-sec-bg-body .gpm-sec-nexus { color: rgba(255,255,255,0.9); border-left-color: var(--gpm-pop); }
/* Variante con texto a la izquierda */
.gpm-sec--bg-left {
  justify-content: flex-start;
}
.gpm-sec--bg-left .gpm-sec-scrim {
  background: linear-gradient(
    to right,
    rgba(20,25,20,0.68) 0%,
    rgba(20,25,20,0.18) 100%
  );
}

.gpm-sec--alt {
  background: var(--gpm-surface);
}

.gpm-sec-grid {
  display: grid;
  gap: clamp(28px,5vw,64px);
  align-items: center;
}
.gpm-sec-grid--img-left  { grid-template-columns: 45fr 55fr; }
.gpm-sec-grid--img-right { grid-template-columns: 55fr 45fr; }

.gpm-sec-media {
  margin: 0;
  border-radius: var(--gpm-radius);
  overflow: hidden;
  box-shadow: var(--gpm-shadow);
}
.gpm-sec-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gpm-sec-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gpm-sec-num {
  font: 700 clamp(52px,9vw,104px)/1 var(--f-display);
  font-style: italic;
  color: var(--gpm-accent-soft);
  margin-bottom: -10px;
  user-select: none;
}

.gpm-sec-title {
  font: 600 clamp(24px,3.5vw,40px)/1.15 var(--f-display);
  font-style: italic;
  color: var(--gpm-ink);
  margin-bottom: 20px;
}

.gpm-sec-p {
  font: 400 clamp(14px,1.6vw,16px)/1.72 var(--f-body);
  color: var(--gpm-ink);
  margin-bottom: 14px;
}

.gpm-sec-nexus {
  font: 600 12px/1.5 var(--f-body);
  letter-spacing: 0.03em;
  color: var(--gpm-accent);
  margin-top: 20px;
  padding: 12px 0 12px 18px;
  border-left: 3px solid var(--gpm-pop);
}

/* ──────────────────────────────────────────────────────────────────────────
   PUENTE — transición a empresas asociadas
   ────────────────────────────────────────────────────────────────────────── */
.gpm-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--gpm-bg);
  min-height: 52vh;
  padding: 28px clamp(20px,6vw,80px) 40px;
}
.gpm-bridge-text {
  max-width: 680px;
  text-align: center;
  font: 400 clamp(22px,2.7vw,34px)/1.5 var(--f-display);
  font-style: italic;
  color: #38271F;
  margin-top: 0;
  text-shadow: none;
}
.gpm-bridge-rule {
  border: none;
  border-top: 1px solid rgba(56,39,31,0.35);
  width: 120px;
  margin: 28px 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   6–8. SECCIONES PARTNER
   ────────────────────────────────────────────────────────────────────────── */
.gpm-partner {
  background: var(--gpm-surface);
  border-top: 1px solid var(--gpm-line);
  padding: 72px clamp(20px,6vw,80px);
}
.gpm-partner--alt {
  background: var(--gpm-surface-hi);
}

.gpm-partner-grid {
  display: grid;
  gap: clamp(28px,5vw,64px);
  align-items: center;
}
.gpm-partner-grid--logo-left  { grid-template-columns: 55fr 45fr; }
.gpm-partner-grid--logo-right { grid-template-columns: 45fr 55fr; }

.gpm-partner-logo {
  display: block;
  height: clamp(28px,3.5vw,44px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 28px;
}

.gpm-partner-title {
  font: 600 clamp(22px,3vw,36px)/1.15 var(--f-display);
  font-style: italic;
  color: var(--gpm-ink);
  margin-bottom: 18px;
}

.gpm-partner-p {
  font: 400 clamp(14px,1.6vw,16px)/1.72 var(--f-body);
  color: var(--gpm-ink);
  margin-bottom: 14px;
}

.gpm-partner-link {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 26px;
  border: 1.5px solid var(--gpm-accent);
  border-radius: 28px;
  font: 600 13px/1 var(--f-body);
  letter-spacing: 0.05em;
  color: var(--gpm-accent);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.gpm-partner-link:hover,
.gpm-partner-link:focus-visible {
  background: var(--gpm-accent);
  color: var(--gpm-accent-ink);
  outline: none;
}
.gpm-partner-link:focus-visible {
  outline: 2px solid var(--gpm-pop);
  outline-offset: 3px;
}

.gpm-partner-media {
  margin: 0;
  border-radius: var(--gpm-radius);
  overflow: hidden;
  box-shadow: var(--gpm-shadow);
}
.gpm-partner-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ──────────────────────────────────────────────────────────────────────────
   11. CIERRE — mural
   ────────────────────────────────────────────────────────────────────────── */
.gpm-cierre-mural {
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.gpm-cierre-mural img {
  width: 100%;
  height: auto;
  display: block;
}

/* ──────────────────────────────────────────────────────────────────────────
   9. CIERRE (legacy)
   ────────────────────────────────────────────────────────────────────────── */
.gpm-cierre {
  background: var(--gpm-accent);
  padding: 88px clamp(20px,6vw,80px);
}
.gpm-cierre-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.gpm-cierre .gpm-sep-l  { background: rgba(255,255,255,0.25); }
.gpm-cierre .gpm-sep-d  { background: var(--gpm-pop); }

.gpm-cierre-title {
  font: 600 clamp(30px,5vw,58px)/1.1 var(--f-display);
  font-style: italic;
  color: var(--gpm-accent-ink);
  margin-bottom: 28px;
}
.gpm-cierre-p {
  font: 400 clamp(15px,1.8vw,18px)/1.68 var(--f-body);
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
}
.gpm-btn-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 40px;
  background: var(--gpm-pop);
  color: var(--gpm-ink);
  border-radius: 32px;
  font: 700 14px/1 var(--f-body);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.18s ease;
}
.gpm-btn-cta:hover,
.gpm-btn-cta:focus-visible {
  opacity: 0.85;
  outline: none;
}
.gpm-btn-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ──────────────────────────────────────────────────────────────────────────
   Responsive — mobile (≤ 768 px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .gpm-hero               { min-height: 68vh; }
  .gpm-hero-content       { width: 100%; }
  .gpm-hero-title         { white-space: normal; }
  .gpm-hero-text-wrap     { max-width: 100%; }

  .gpm-sec,
  .gpm-partner            { padding: 52px clamp(20px,5vw,40px); }

  /* columna única: imagen siempre arriba del texto */
  .gpm-sec-grid--img-left,
  .gpm-sec-grid--img-right,
  .gpm-partner-grid--logo-left,
  .gpm-partner-grid--logo-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* en el layout img-right (texto-izq, foto-der) la foto estaba en columna 2;
     en mobile la pasamos arriba con order */
  .gpm-sec-grid--img-right .gpm-sec-media,
  .gpm-partner-grid--logo-right .gpm-partner-media {
    order: -1;
  }

  .gpm-sec-num  { font-size: clamp(44px,14vw,72px); }
  .gpm-bridge   { padding-bottom: 40px; }

  .gpm-cierre   { padding: 64px clamp(20px,5vw,40px); }
}

/* ──────────────────────────────────────────────────────────────────────────
   Movimiento reducido
   ────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gpm-partner-link,
  .gpm-btn-cta { transition: none; }
  .gpm-hero-frame { /* sin parallax adicional */ }
}
