/* ==========================================================
   FUNDACIÓN DIES — Hoja de estilos consolidada
   Paleta y estética idénticas al original.
   Se unificaron las tres capas anteriores (base + ajustes
   finales + PRUEBA V11) en una sola cascada.
   ========================================================== */


/* ==========================================================
   1. VARIABLES
   ========================================================== */

:root {
  /* Marca */
  --terracotta: #C65D2E;
  --deep-blue:  #133666;
  --navy:       #131937;
  --regatta:    #4476BB;

  /* Texto */
  --graphite: #333333;
  --slate:    #6E7884;

  /* Superficies */
  --line:  #C9D3DF;
  --mist:  #F4F6F9;
  --white: #FFFFFF;

  /* Derivados */
  --terracotta-soft: rgba(198, 93, 46, .08);
  --terracotta-line: rgba(198, 93, 46, .28);
  --regatta-soft:    rgba(68, 118, 187, .08);
  --regatta-line:    rgba(68, 118, 187, .25);
  --peach:           #E8C2B2;   /* acentos sobre fondo oscuro */
  --on-dark:         #EEF3F8;   /* párrafos sobre fondo oscuro */

  --shadow:    0 28px 80px rgba(19, 25, 55, .10);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1180px;
}

/* Compatibilidad: descomenta solo si algún bloque del tema
   o del constructor todavía usa estos nombres antiguos.
:root {
  --ink: var(--navy);
  --black: var(--navy);
  --teal: var(--regatta);
  --teal-dark: var(--deep-blue);
  --teal-soft: var(--regatta-soft);
  --cream: var(--mist);
  --terracotta-dark: var(--terracotta);
}
*/


/* ==========================================================
   2. BASE
   ========================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--terracotta-soft); color: var(--navy); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 14px;
  left: 14px;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--regatta);
  outline-offset: 4px;
}


/* ==========================================================
   3. TIPOGRAFÍA DE TÍTULOS
   ========================================================== */

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  color: var(--deep-blue);
}

.pillar-card h3,
.action-item h3,
.statement-card h2,
.trust-card h3,
.contact-card h3 { color: var(--deep-blue); }

.eyebrow {
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid var(--terracotta);
  color: var(--deep-blue);
  font-size: .76rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}


/* ==========================================================
   4. CABECERA Y NAVEGACIÓN
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 211, 223, .65);
}

.nav-shell {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; width: 260px; max-width: 48vw; }
.brand img { width: 100%; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .93rem;
  font-weight: 700;
}
.main-nav a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.main-nav a:hover { color: var(--terracotta); }

.main-nav .nav-cta {
  background: var(--regatta);
  color: var(--white);
  padding: 11px 17px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-toggle { display: none; }


/* ==========================================================
   5. BOTONES
   ========================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }

.button-primary { background: var(--regatta); color: var(--white); }
.button-primary:hover { background: var(--deep-blue); }

.button-secondary {
  background: var(--white);
  border-color: var(--deep-blue);
  color: var(--deep-blue);
}
.button-secondary:hover {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--white);
}


/* ==========================================================
   6. HERO
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
  background:
    radial-gradient(circle at 13% 16%, var(--terracotta-soft), transparent 33%),
    linear-gradient(180deg, var(--mist), var(--white) 76%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 68px;
}

.hero h1 { font-size: clamp(3rem, 5.5vw, 5.7rem); max-width: 900px; }

.hero-lead {
  margin: 28px 0 0;
  max-width: 720px;
  color: var(--graphite);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--graphite);
  font-size: .83rem;
  font-weight: 700;
}
.hero-proof span::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--regatta);
  vertical-align: 1px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.hero-orb-one {
  width: 380px; height: 380px;
  right: -190px; top: 30px;
  border: 70px solid var(--regatta-soft);
}
.hero-orb-two {
  width: 260px; height: 260px;
  left: -170px; bottom: -90px;
  border: 55px solid var(--terracotta-soft);
}

/* Panel oscuro del hero */
.hero-visual { position: relative; min-height: 560px; }

.visual-frame {
  position: absolute;
  inset: 24px 0 42px 34px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.visual-kicker {
  font-size: .77rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 800;
}
.status-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 8px var(--terracotta-soft);
}

.process-stack { margin-top: 12px; }
.process-step {
  display: grid;
  grid-template-columns: 42px 110px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 75px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}
.process-step b     { color: var(--peach); font-size: .76rem; letter-spacing: .08em; }
.process-step span  { color: var(--white); font-size: 1.03rem; font-weight: 800; }
.process-step small { color: var(--line); font-size: .83rem; }

/* Tarjeta flotante */
.floating-card {
  position: absolute;
  right: -22px;
  bottom: -160px;
  width: min(280px, 78%);
  padding: 22px;
  border-radius: 20px;
  background: var(--regatta-soft);
  border: 1px solid var(--regatta-line);
  box-shadow: 0 20px 50px rgba(26, 26, 26, .13);
}
.floating-label {
  display: block;
  margin-bottom: 7px;
  color: var(--deep-blue);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}
.floating-card strong { color: var(--deep-blue); font-size: 1.15rem; }
.floating-card p { margin: 8px 0 0; color: var(--graphite); font-size: .88rem; }


/* ==========================================================
   7. FRANJA INTRO
   ========================================================== */

.intro-strip {
  border-block: 1px solid var(--line);
  background: var(--mist);
}
.intro-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.intro-strip-grid > div {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}
.intro-strip-grid > div:last-child { border-right: 0; }
.intro-strip strong, .intro-strip span { display: block; }
.intro-strip strong { font-size: .9rem; }
.intro-strip span { margin-top: 2px; color: var(--graphite); font-size: .8rem; }


/* ==========================================================
   8. SECCIONES
   ========================================================== */

.section { padding: 110px 0; background: var(--white); }
.section-soft { background: var(--mist); }
.section h2 { font-size: clamp(2.4rem, 4.5vw, 4.55rem); }

.section-heading { max-width: 860px; margin-bottom: 54px; }
.section-heading p,
.section-lead {
  max-width: 720px;
  color: var(--graphite);
  font-size: 1.06rem;
}
.section-lead { margin-top: 20px; }

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: end;
}
.split-heading p { margin: 0; }


/* ==========================================================
   9. PILARES — Educación / Salud / Inclusión
   ========================================================== */

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pillar-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
.pillar-card:hover { box-shadow: 0 18px 55px rgba(26, 26, 26, .08); }

.pillar-card.accent-card {
  background: var(--terracotta-soft);
  border-color: var(--terracotta-line);
}

.pillar-number {
  color: var(--terracotta);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}

.pillar-card h3 {
  margin: 54px 0 12px;
  font-size: 1.7rem;
  letter-spacing: -.03em;
}
.pillar-card p { margin: 0; color: var(--graphite); }
.pillar-card a {
  margin-top: auto;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
}
.pillar-card a:hover { color: var(--terracotta); }


/* ==========================================================
   10. MISIÓN / VISIÓN
   ========================================================== */

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.statement-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.statement-card h2 {
  margin-top: 76px;
  font-size: clamp(2.15rem, 3.5vw, 3.7rem);
}
.statement-card p {
  margin-top: auto;
  color: var(--graphite);
  font-size: 1.03rem;
}
.statement-label {
  color: var(--deep-blue);
  font-size: .82rem;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
}

/* Tarjeta oscura (Visión). Los !important se mantienen aquí
   porque el tema de WordPress pisa el fondo de esta tarjeta. */
.mission-grid .statement-card.statement-dark {
  background: var(--deep-blue) !important;
  border-color: var(--deep-blue) !important;
  color: var(--white) !important;
}
.mission-grid .statement-dark h2,
.mission-grid .statement-dark .statement-label { color: var(--white) !important; }
.mission-grid .statement-dark p { color: var(--on-dark) !important; }


/* ==========================================================
   11. LÍNEAS DE ACCIÓN
   ========================================================== */

.action-list { border-top: 1px solid var(--line); }

.action-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.action-index {
  padding-top: 6px;
  color: var(--terracotta);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}

.action-item h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.action-item p { margin: 8px 0 0; max-width: 780px; color: var(--graphite); }

.action-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  color: var(--deep-blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.action-tag:hover {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--white);
}


/* ==========================================================
   12. SECCIÓN OSCURA — Cómo trabajamos
   ========================================================== */

.section-ink { background: var(--navy); color: var(--white); }
.section-ink h2,
.section-ink h3 { color: var(--white); }
.section-ink .eyebrow { color: var(--white); border-left-color: var(--terracotta); }

.light-heading p { color: var(--line); }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.method-grid article {
  padding: 28px;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-md);
}
.method-grid span {
  display: block;
  color: var(--peach);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}
.method-grid h3 { margin: 62px 0 12px; font-size: 1.35rem; }
.method-grid p { margin: 0; color: var(--line); font-size: .93rem; }

.principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.principles span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  font-size: .78rem;
}


/* ==========================================================
   13. TRANSPARENCIA
   ========================================================== */

.transparency-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}

.transparency-links {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.transparency-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  pointer-events: none;   /* enlaces aún sin destino */
}
.transparency-links span { color: var(--slate); font-size: .75rem; font-weight: 700; }

.trust-card {
  padding: 38px;
  border: 1px solid var(--regatta-line);
  border-radius: var(--radius-lg);
  background: var(--regatta-soft);
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--deep-blue);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
}
.trust-card h3 { margin: 50px 0 12px; font-size: 1.7rem; }
.trust-card p { color: var(--graphite); }
.trust-card small { color: var(--deep-blue); font-weight: 800; }
.trust-divider { height: 1px; margin: 28px 0 18px; background: var(--line); }


/* ==========================================================
   14. COLABORACIÓN Y CONTACTO
   ========================================================== */

.collaboration {
  padding-top: 40px;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}

.collaboration-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  padding: 60px;
  border: 1px solid var(--terracotta-line);
  border-radius: 36px;
  background: var(--terracotta-soft);
}
.collaboration-copy h2 { font-size: clamp(2.45rem, 4.2vw, 4.4rem); }
.collaboration-copy p { max-width: 680px; color: var(--graphite); }

.audience-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.audience-chips span {
  padding: 8px 12px;
  border: 1px solid var(--terracotta-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 800;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}
.contact-kicker {
  color: var(--deep-blue);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 900;
}
.contact-card h3 {
  margin: 56px 0 12px;
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.contact-card p { color: var(--graphite); }


/* Formulario de contacto */

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-field { display: grid; gap: 6px; }
.contact-field label {
  color: var(--deep-blue);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 800;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--slate); }

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--regatta);
  box-shadow: 0 0 0 3px var(--regatta-soft);
}

.contact-field textarea { min-height: 120px; resize: vertical; }

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--graphite);
  font-size: .82rem;
  line-height: 1.45;
}
.contact-consent input {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--regatta);
}

.contact-form .button { width: 100%; margin-top: 4px; }
.contact-form .button:disabled { opacity: .6; cursor: progress; transform: none; }

.form-status {
  margin: 0;
  min-height: 1.3em;
  font-size: .85rem;
  font-weight: 700;
}
.form-status.is-ok    { color: var(--deep-blue); }
.form-status.is-error { color: var(--terracotta); }

/* Trampa antispam: invisible para personas, visible para bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* ==========================================================
   15. FOOTER
   ========================================================== */

.site-footer { padding: 56px 0; background: var(--mist); }

.footer-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.footer-brand img { width: 270px; }
.footer-brand p,
.footer-meta p { margin: 8px 0 0; color: var(--graphite); font-size: .82rem; }
.footer-meta { text-align: right; }


/* ==========================================================
   16. RESPONSIVE — Tablet
   ========================================================== */

@media (max-width: 980px) {
  .nav-shell { height: 76px; }
  .brand { width: 220px; }

  .menu-toggle {
    display: inline-grid;
    place-content: center;
    width: 46px; height: 46px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }
  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px; height: 2px;
    background: var(--navy);
  }

  .main-nav {
    position: absolute;
    left: 20px; right: 20px; top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .main-nav .nav-cta { margin-top: 6px; text-align: center; }

  .hero { padding-top: 54px; }
  .hero-grid,
  .split-heading,
  .transparency-grid,
  .collaboration-shell { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero-visual { min-height: 510px; }
  .visual-frame { inset: 0 0 52px 0; }
  .floating-card { right: 14px; }

  .intro-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-strip-grid > div:nth-child(2) { border-right: 0; }
  .intro-strip-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 300px; }
  .pillar-card h3 { margin-top: 44px; }
  .pillar-number { font-size: 28px; }

  .mission-grid { grid-template-columns: 1fr; }
  .statement-card { min-height: 440px; }

  .action-index { font-size: 28px; }
  .action-tag { font-size: 16px; min-height: 42px; padding: 10px 16px; }

  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid span { font-size: 28px; }
  .collaboration-shell { padding: 42px; }
}


/* ==========================================================
   17. RESPONSIVE — Móvil
   ========================================================== */

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .hero {
  padding: 42px 0 66px;
  overflow-x: hidden;
}

.hero-copy {
  width: 100%;
  min-width: 0;
}
  .hero h1 {
  font-size: clamp(2.3rem, 10.5vw, 3.4rem);
  overflow-wrap: break-word;
}
  .hero-actions .button { width: 100%; }
  .hero-proof { flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 545px; }
  .visual-frame { padding: 24px; }

  .process-step { grid-template-columns: 36px 1fr; min-height: 84px; }
  .process-step small { grid-column: 2; margin-top: -10px; padding-bottom: 8px; }
  .floating-card {
  width: 78%;
  bottom: -85px;
  padding: 18px;
}
.floating-card strong {
  font-size: 1rem;
}

.floating-card p {
  font-size: .80rem;
}

  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(2.25rem, 11vw, 3.6rem); }
  .section-heading { margin-bottom: 38px; }
  .split-heading { gap: 20px; }

  .intro-strip-grid { grid-template-columns: 1fr; }
  .intro-strip-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-strip-grid > div:last-child { border-bottom: 0; }

  .pillar-number { font-size: 26px; }

  .statement-card { padding: 30px; min-height: 420px; }
  .statement-card h2 { margin-top: 56px; }

  .action-item { grid-template-columns: 48px 1fr; gap: 14px; }
  .action-index { font-size: 26px; padding-top: 4px; }
  .action-tag { display: none; }

  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 280px; }
  .method-grid span { font-size: 26px; }
  .method-grid h3 { margin-top: 48px; }

  .trust-card { padding: 28px; }
  .collaboration-shell { padding: 28px; border-radius: 28px; }
  .contact-card { padding: 26px; }

  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
}


/* ==========================================================
   18. MOVIMIENTO REDUCIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================
   19. SUBPÁGINAS
   Bloque añadido al pasar de landing a sitio con secciones.
   Reutiliza las mismas variables de la sección 1.
   ========================================================== */

/* --- 19.1 Navegación: página activa y ajuste de ancho --- */

.main-nav a.is-active { color: var(--terracotta); }
.main-nav a.is-active:not(.nav-cta) {
  text-underline-offset: 7px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

@media (min-width: 981px) and (max-width: 1150px) {
  .main-nav { gap: 18px; font-size: .88rem; }
  .brand { width: 210px; }
}

/* --- 19.2 Cabecera de página interna --- */

.page-hero {
  padding: 74px 0 62px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  color: var(--deep-blue);
}
.page-lead {
  max-width: 68ch;
  margin: 24px 0 0;
  color: var(--graphite);
  font-size: 1.09rem;
}

.breadcrumb {
  margin-bottom: 26px;
  color: var(--slate);
  font-size: .82rem;
  font-weight: 700;
}
.breadcrumb a { color: var(--deep-blue); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span[aria-hidden] { margin: 0 6px; color: var(--line); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.anchor-nav a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--deep-blue);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.anchor-nav a:hover {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--white);
}

/* --- 19.3 Botonera de sección --- */

.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.section-heading + .section-actions { margin-top: 0; }

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}
.button-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }

/* --- 19.4 Bloques de contenido a dos columnas --- */

.focus-block,
.doc-block {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.focus-head h2,
.doc-block h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.focus-head p {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--graphite);
}
.focus-body .section-lead { margin-top: 0; }

/* --- 19.5 Listas de viñetas --- */

.bullet-list { margin: 28px 0 0; padding: 0; list-style: none; }
.bullet-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
  font-size: 1rem;
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 23px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}
.bullet-list strong { color: var(--deep-blue); }

.section-ink .bullet-list li { border-color: rgba(255, 255, 255, .16); color: var(--line); }
.section-ink .bullet-list strong { color: var(--white); }

/* --- 19.6 Detalle de línea de acción --- */

.line-detail { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.line-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.line-index {
  color: var(--terracotta);
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
}
.line-head .action-tag { min-height: 40px; padding: 10px 16px; font-size: .85rem; }
.line-body h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  line-height: 1.08;
}

/* --- 19.7 Pasos del método --- */

.step-list { display: grid; gap: 18px; }
.step-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
.step-item:nth-child(odd) { background: var(--mist); }
.step-index {
  color: var(--terracotta);
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
}
.step-item h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}

/* --- 19.8 Rejilla de valores / principios --- */

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.value-grid h3 { margin: 0 0 10px; font-size: 1.15rem; letter-spacing: -.02em; }
.value-grid p { margin: 0; color: var(--graphite); font-size: .93rem; }

.section-ink .value-grid article { border-color: rgba(255, 255, 255, .16); }
.section-ink .value-grid p { color: var(--line); }

/* --- 19.9 Documentos y datos institucionales --- */

.doc-list { display: grid; border-top: 1px solid var(--line); }
.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--deep-blue);
  font-weight: 800;
}
.doc-item.is-pending { color: var(--slate); }
a.doc-item:hover { color: var(--terracotta); }
.doc-state {
  color: var(--slate);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.data-list { margin: 0; border-top: 1px solid var(--line); }
.data-list > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.data-list dt { color: var(--slate); font-size: .85rem; font-weight: 800; }
.data-list dd { margin: 0; color: var(--graphite); }
.data-list a { color: var(--deep-blue); font-weight: 800; }

.data-list a { color: var(--deep-blue); font-weight: 800; }

.data-subtitle { margin: 44px 0 6px; font-size: 1.25rem; letter-spacing: -.02em; color: var(--deep-blue); }
.data-note { margin: 0 0 4px; color: var(--slate); font-size: .88rem; }

/* --- 19.10 Noticias --- */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: 0 18px 55px rgba(26, 26, 26, .08); transform: translateY(-2px); }
.news-card h3 {
  margin: 18px 0 12px;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--deep-blue);
}
.news-card p { margin: 0; color: var(--graphite); font-size: .95rem; }
.news-more { margin-top: auto; padding-top: 20px; color: var(--deep-blue); font-weight: 800; font-size: .9rem; }
.news-card:hover .news-more { color: var(--terracotta); }

.news-meta { display: flex; align-items: center; gap: 12px; }
.news-meta time { color: var(--slate); font-size: .8rem; font-weight: 700; }
.news-tag {
  padding: 6px 12px;
  border: 1px solid var(--regatta-line);
  border-radius: 999px;
  background: var(--regatta-soft);
  color: var(--deep-blue);
  font-size: .74rem;
  font-weight: 800;
}
.page-hero .news-meta { margin-bottom: 22px; }

/* --- 19.11 Cuerpo de una noticia --- */

.article-body { max-width: 68ch; }
.article-body p { margin: 0 0 22px; font-size: 1.06rem; }
.article-body h2 {
  margin: 46px 0 16px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--deep-blue); font-weight: 800; }
.article-body a:hover { color: var(--terracotta); }
.article-body blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 24px;
  border-left: 4px solid var(--terracotta);
  color: var(--deep-blue);
  font-size: 1.2rem;
  font-weight: 700;
}
.article-body figure { margin: 30px 0; }
.article-body img { border-radius: var(--radius-md); }
.article-body figcaption { margin-top: 10px; color: var(--slate); font-size: .85rem; }

.empty-state {
  padding: 60px 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
  text-align: center;
}
.empty-state h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.empty-state p { max-width: 52ch; margin: 16px auto 0; color: var(--graphite); }
.empty-state .section-actions { justify-content: center; }

/* --- 19.12 Franja de cierre --- */

.cta-strip { background: var(--mist); }
.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 48px;
  border: 1px solid var(--terracotta-line);
  border-radius: 36px;
  background: var(--terracotta-soft);
}
.cta-shell h2 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.1; }
.cta-shell p { max-width: 58ch; margin: 14px 0 0; color: var(--graphite); }
.cta-shell .button { flex: none; }

/* --- 19.13 Enlaces de la lista de líneas en el home --- */

a.action-item { text-decoration: none; color: inherit; transition: background .2s ease; }
a.action-item:hover { background: var(--mist); }
a.action-item:hover h3 { color: var(--terracotta); }

/* Los enlaces de transparencia del home ya tienen destino */
.transparency-links a { pointer-events: auto; }
.transparency-links a:hover { color: var(--terracotta); }

/* --- 19.14 Navegación del pie --- */

.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a {
  color: var(--deep-blue);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 800;
}
.footer-nav a:hover { color: var(--terracotta); }

/* --- 19.15 Responsive de las subpáginas --- */

@media (max-width: 980px) {
  .page-hero { padding: 52px 0 46px; }
  .page-hero h1 { max-width: none; }

  .focus-block,
  .doc-block { grid-template-columns: 1fr; gap: 34px; }
  .focus-head p { max-width: none; }

  .line-detail { grid-template-columns: 1fr; gap: 22px; }
  .line-head { flex-direction: row; align-items: center; gap: 16px; }
  .line-index { font-size: 46px; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-shell { flex-direction: column; align-items: flex-start; padding: 34px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  .page-hero { padding: 42px 0 40px; }
  .anchor-nav { gap: 6px; }

  .step-item { grid-template-columns: 1fr; gap: 12px; padding: 26px; }
  .step-index { font-size: 34px; }

  .value-grid,
  .news-grid { grid-template-columns: 1fr; }

  .data-list > div { grid-template-columns: 1fr; gap: 4px; }
  .cta-shell { padding: 26px; border-radius: 28px; }
  .empty-state { padding: 40px 24px; }
}
.article-body figure.logo-figure { max-width: 460px; margin: 34px 0; }
.article-body figure.logo-figure img { border-radius: 0; }

/* --- 19.16 Afiches y programación de sesiones --- */

.article-body figure.afiche { max-width: 620; margin: 34px 0; }

.session-list { display: grid; gap: 18px; }

.session-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.session-poster {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.session-poster:hover { transform: translateY(-2px); box-shadow: 0 18px 55px rgba(26, 26, 26, .12); }
.session-poster img { width: 100%; height: auto; }

.session-number {
  display: inline-block;
  padding-left: 10px;
  border-left: 4px solid var(--terracotta);
  color: var(--deep-blue);
  font-size: .74rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}
.session-info h3 {
  margin: 16px 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--deep-blue);
}
.session-when { margin: 0 0 4px; color: var(--deep-blue); font-weight: 800; font-size: .95rem; }
.session-speaker { margin: 0 0 16px; color: var(--slate); font-weight: 700; font-size: .92rem; }
.session-desc { margin: 0 0 22px; color: var(--graphite); max-width: 62ch; }

@media (max-width: 820px) {
  .session-item { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .session-poster { max-width: 260px; }
  .session-info h3 { font-size: 1.2rem; }
  .article-body figure.afiche { max-width: 320px; }
}
.article-body figure.afiche { max-width: 200px; margin: 34px 0; }
}