/* Ideas PRM · tema del sitio (Webs). Azul marino y dorado del logo, Montserrat + Inter + Libre Baskerville (locales). */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("fonts/libre-baskerville-400-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ip-navy: #17305E;
  --ip-navy-900: #0D1F42;
  --ip-navy-700: #1F3D74;
  --ip-gold: #D4A548;
  --ip-gold-600: #B98A2F;
  --ip-gold-50: #FBF4E4;
  --ip-cream: #F7F4EC;
  --ip-text: #14213D;
  --ip-muted: #5B6478;
  --ip-border: #E7E2D6;
  --ip-white: #FFFFFF;
  --ip-radius: 16px;
  --ip-radius-lg: 24px;
  --ip-shadow: 0 1px 2px rgba(13, 31, 66, .06), 0 8px 24px rgba(13, 31, 66, .08);
  --ip-shadow-lg: 0 24px 60px rgba(13, 31, 66, .18);
  --ip-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ip-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ip-serif: "Libre Baskerville", Georgia, serif;
  --ip-wrap: 1200px;
  --ip-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ip-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.theme-ip { overflow-x: clip; margin: 0; font-family: var(--ip-body); font-size: 17px; line-height: 1.6; color: var(--ip-text); background: var(--ip-white); -webkit-font-smoothing: antialiased; }
.theme-ip img { max-width: 100%; height: auto; display: block; }
.theme-ip a { color: var(--ip-navy); }
.theme-ip h1, .theme-ip h2, .theme-ip h3, .theme-ip h4 { font-family: var(--ip-head); color: var(--ip-navy-900); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
.theme-ip p { margin: 0 0 1em; }
.ip-wrap { width: 100%; max-width: var(--ip-wrap); margin: 0 auto; padding: 0 24px; }
.ip-narrow { max-width: 780px; }
.ip-center { justify-content: center; }
.ip-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ip-navy); color: #fff !important; padding: 10px 16px; border-radius: 8px; }
.ip-skip:focus { left: 8px; }
.theme-ip :focus-visible { outline: 3px solid var(--ip-gold); outline-offset: 2px; border-radius: 6px; }
.ip-mg-lock, body.ip-lock { overflow: hidden; }

/* ── Botones ─────────────────────────────────────────── */
.ip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-family: var(--ip-head); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; white-space: nowrap; }
.ip-btn i { font-size: 1.15em; }
.ip-btn:hover { transform: translateY(-1px); }
.ip-btn--lg { padding: 15px 26px; font-size: 16px; }
.ip-btn--block { width: 100%; }
.theme-ip .ip-btn--gold { background: var(--ip-gold); color: var(--ip-navy-900); box-shadow: 0 6px 18px rgba(212, 165, 72, .35); }
.theme-ip .ip-btn--gold:hover { background: #DEB25A; }
.theme-ip .ip-btn--navy { background: var(--ip-navy); color: #fff; }
.theme-ip .ip-btn--navy:hover { background: var(--ip-navy-700); }
.theme-ip .ip-btn--ghost { background: transparent; color: var(--ip-navy); border-color: var(--ip-border); }
.theme-ip .ip-btn--ghost:hover { border-color: var(--ip-navy); }
.theme-ip .ip-btn--outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); }
.theme-ip .ip-btn--outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.ip-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.ip-link:hover { text-decoration: underline; }

/* ── Cabecera ────────────────────────────────────────── */
.ip-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.ip-header.is-scrolled { border-color: var(--ip-border); box-shadow: 0 4px 20px rgba(13, 31, 66, .06); }
.ip-header-in { display: flex; align-items: center; gap: 24px; height: var(--ip-header-h); }
.ip-brand img { width: 180px; height: auto; }
.ip-drawer { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.ip-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ip-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-family: var(--ip-head); font-weight: 600; font-size: 15px; color: var(--ip-text); text-decoration: none; transition: background-color .15s, color .15s; }
.ip-nav a:hover { background: var(--ip-cream); }
.ip-nav .is-active a { color: var(--ip-navy); background: var(--ip-gold-50); box-shadow: inset 0 -2px 0 var(--ip-gold); }
.ip-header-actions { display: flex; gap: 10px; }
.ip-header-actions .ip-btn { padding: 9px 16px; font-size: 14px; }
.ip-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; padding: 11px; }
.ip-burger span { display: block; height: 2px; background: var(--ip-navy-900); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.ip-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ip-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ip-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ip-flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ip-flash.is-ok { background: #E8F6EE; color: #14532D; }
.ip-flash.is-error { background: #FDECEC; color: #8A1C1C; }

/* ── Tipos comunes ───────────────────────────────────── */
.ip-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ip-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ip-gold-600); margin: 0 0 14px; }
.ip-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.ip-eyebrow--gold { color: var(--ip-gold); }
.ip-h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.ip-lead { font-size: 19px; color: var(--ip-muted); max-width: 720px; }
.ip-section { padding: 88px 0; }
.ip-section--tight { padding: 40px 0 88px; }
.ip-section--alt { background: var(--ip-cream); }
.ip-section-head { max-width: 760px; margin-bottom: 36px; }
.ip-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ip-head-row .ip-h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }

/* ── Hero de portada ─────────────────────────────────── */
.ip-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #24467F 0%, transparent 60%), linear-gradient(160deg, var(--ip-navy) 0%, var(--ip-navy-900) 100%); color: #fff; padding: 72px 0 0; }
.ip-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; filter: grayscale(1) contrast(1.1); }
.ip-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to top, rgba(13, 31, 66, .6), transparent); pointer-events: none; }
.ip-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.ip-hero-text { padding-bottom: 88px; }
.ip-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 62px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 22px; }
.ip-hero h1 em { font-style: normal; color: var(--ip-gold); }
.ip-hero-lead { font-size: 20px; color: rgba(255, 255, 255, .82); max-width: 580px; margin-bottom: 32px; }
.ip-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ip-leader { position: relative; align-self: end; }
.ip-leader-photo { position: relative; margin: 0 auto; max-width: 440px; }
.ip-leader-photo::before { content: ""; position: absolute; inset: 12% -6% 0; border-radius: 240px 240px 0 0; background: linear-gradient(180deg, var(--ip-gold) 0%, rgba(212, 165, 72, .15) 100%); opacity: .9; }
.ip-leader-photo img { position: relative; width: 100%; border-radius: 220px 220px 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.ip-leader-card { position: absolute; left: -32px; right: 24px; bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: rgba(255, 255, 255, .97); color: var(--ip-text); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow-lg); }
.ip-leader-card b { display: block; font-family: var(--ip-head); font-size: 19px; font-weight: 800; color: var(--ip-navy-900); }
.ip-leader-card span { font-size: 14px; color: var(--ip-muted); }
.ip-leader-count { text-align: right; padding-left: 16px; border-left: 1px solid var(--ip-border); }
.ip-leader-count b { font-size: 28px; color: var(--ip-gold-600); line-height: 1; }
.ip-leader-count span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.ip-stats-band { background: var(--ip-navy-900); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.ip-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.ip-stats > div { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.ip-stats > div:first-child { border-left: 0; }
.ip-stats dt { font-family: var(--ip-head); font-size: 38px; font-weight: 800; color: var(--ip-gold); line-height: 1; }
.ip-stats dd { margin: 6px 0 0; color: rgba(255, 255, 255, .75); font-size: 15px; }

/* ── Por qué existimos ───────────────────────────────── */
.ip-why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.ip-quote { margin: 0 0 24px; padding: 4px 0 4px 24px; border-left: 4px solid var(--ip-gold); font-family: var(--ip-serif); font-style: italic; font-size: 21px; line-height: 1.55; color: var(--ip-navy-900); }
.ip-why-text > p { color: var(--ip-muted); }
.ip-why-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.ip-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ip-facts li { padding: 22px 20px; border-radius: var(--ip-radius); background: var(--ip-cream); border: 1px solid var(--ip-border); }
.ip-facts li:nth-child(1), .ip-facts li:nth-child(4), .ip-facts li:nth-child(5) { background: var(--ip-navy); border-color: var(--ip-navy); }
.ip-facts li:nth-child(1) span, .ip-facts li:nth-child(4) span, .ip-facts li:nth-child(5) span { color: rgba(255, 255, 255, .78); }
.ip-facts b { display: block; font-family: var(--ip-head); font-size: 34px; font-weight: 800; color: var(--ip-gold-600); line-height: 1.05; margin-bottom: 6px; }
.ip-facts li:nth-child(1) b, .ip-facts li:nth-child(4) b, .ip-facts li:nth-child(5) b { color: var(--ip-gold); }
.ip-facts span { font-size: 15px; color: var(--ip-muted); line-height: 1.4; display: block; }

/* ── Ejes (colores de los iconos) ────────────────────── */
.ip-eje--bienestar-social { --eje: #0F766E; --eje-bg: #E3F4F1; }
.ip-eje--estado-y-economia { --eje: #17305E; --eje-bg: #E6ECF7; }
.ip-eje--desarrollo-productivo { --eje: #A16D12; --eje-bg: #FBF1DC; }
.ip-eje--territorio-e-infraestructura { --eje: #9A3412; --eje-bg: #FCEBE2; }
.ip-eje--x { --eje: #17305E; --eje-bg: #E6ECF7; }

/* ── Filtro y tarjetas de propuestas ─────────────────── */
.ip-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ip-border); background: #fff; color: var(--ip-text); font: 600 14px var(--ip-head); cursor: pointer; transition: all .15s; }
.ip-chip b { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--ip-cream); color: var(--ip-muted); }
.ip-chip:hover { border-color: var(--ip-navy); }
.ip-chip.is-on { background: var(--ip-navy); border-color: var(--ip-navy); color: #fff; }
.ip-chip.is-on b { background: rgba(255, 255, 255, .16); color: #fff; }
.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ip-card { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius-lg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.ip-card[hidden] { display: none; }
.ip-card:hover { transform: translateY(-4px); box-shadow: var(--ip-shadow-lg); border-color: transparent; }
.ip-card-link { display: flex; flex-direction: column; height: 100%; padding: 26px; text-decoration: none; color: inherit !important; }
.ip-card-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--eje-bg); color: var(--eje); font-size: 28px; margin-bottom: 18px; transition: background-color .2s, color .2s; }
.ip-card:hover .ip-card-ic { background: var(--eje); color: #fff; }
.ip-card-eje { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ip-muted); margin-bottom: 6px; }
.ip-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.ip-card p { font-size: 15px; color: var(--ip-muted); line-height: 1.55; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ip-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--ip-head); font-weight: 700; font-size: 14px; color: var(--ip-navy); }
.ip-card-more i { transition: transform .2s; }
.ip-card:hover .ip-card-more i { transform: translateX(4px); }
.ip-empty { color: var(--ip-muted); }

/* ── Pasos ───────────────────────────────────────────── */
.ip-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.ip-steps li { position: relative; padding: 28px 24px; border-radius: var(--ip-radius-lg); border: 1px solid var(--ip-border); counter-increment: step; }
.ip-steps li::after { content: "0" counter(step); position: absolute; top: 22px; right: 24px; font: 800 30px var(--ip-head); color: var(--ip-border); }
.ip-step-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ip-gold-50); color: var(--ip-gold-600); font-size: 24px; margin-bottom: 16px; }
.ip-steps h3 { font-size: 20px; margin-bottom: 6px; }
.ip-steps p { font-size: 15px; color: var(--ip-muted); margin: 0; }

/* ── Llamada a inscribirse ───────────────────────────── */
.ip-cta { background: linear-gradient(120deg, var(--ip-navy-900), var(--ip-navy)); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.ip-cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(212, 165, 72, .12); }
.ip-cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ip-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; max-width: 640px; }
.ip-cta p { color: rgba(255, 255, 255, .8); max-width: 600px; margin: 0; }
.ip-cta p b { color: var(--ip-gold); }
.ip-cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ── Cabeceras de página ─────────────────────────────── */
.ip-pagehero { background: linear-gradient(160deg, var(--ip-navy) 0%, var(--ip-navy-900) 100%); color: #fff; padding: 72px 0 64px; }
.ip-pagehero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; max-width: 900px; }
.ip-pagehero .ip-lead { color: rgba(255, 255, 255, .78); }
.ip-pagehero .ip-eyebrow { color: var(--ip-gold); }
.ip-pagehero--manifesto .ip-btn { margin-top: 8px; }

/* ── Ficha de propuesta ──────────────────────────────── */
.ip-phero { background: radial-gradient(900px 500px at 90% 10%, #24467F 0%, transparent 60%), linear-gradient(160deg, var(--ip-navy) 0%, var(--ip-navy-900) 100%); color: #fff; padding: 48px 0 64px; }
.ip-phero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.ip-crumbs { font-size: 14px; color: rgba(255, 255, 255, .7); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 28px; }
.ip-crumbs a { color: rgba(255, 255, 255, .85) !important; text-decoration: none; }
.ip-crumbs a:hover { color: var(--ip-gold) !important; }
.ip-crumbs i { font-size: 11px; opacity: .6; }
.ip-phero-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--ip-gold); color: var(--ip-navy-900); font-size: 32px; margin-bottom: 20px; }
.ip-phero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.025em; }
.ip-phero-lead { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 640px; }
.ip-phero-meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ip-phero-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; }
.ip-phero-meta a { color: var(--ip-gold) !important; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ip-phero-cover { margin: 0; justify-self: end; max-width: 440px; width: 100%; }
.ip-phero-cover img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--ip-radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); background: rgba(255, 255, 255, .04); }

.ip-progress { position: sticky; top: var(--ip-header-h); z-index: 40; height: 3px; background: transparent; }
.ip-progress span { display: block; height: 100%; width: 0; background: var(--ip-gold); transition: width .1s linear; }
.ip-section--read { padding-top: 56px; }
.ip-read { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 64px; align-items: start; }
.ip-aside { position: sticky; top: calc(var(--ip-header-h) + 28px); }
.ip-aside-in { display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - var(--ip-header-h) - 56px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.ip-aside-title { display: flex; align-items: center; gap: 8px; font: 700 12px var(--ip-head); text-transform: uppercase; letter-spacing: .12em; color: var(--ip-muted); margin-bottom: 12px; }
.ip-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ip-border); }
.ip-toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--ip-muted) !important; text-decoration: none; transition: color .15s, border-color .15s; }
.ip-toc li.is-sub a { padding-left: 28px; font-size: 13px; }
.ip-toc li a:hover { color: var(--ip-navy) !important; }
.ip-toc li.is-on a { color: var(--ip-navy) !important; border-color: var(--ip-gold); font-weight: 600; }
.ip-share-btns { display: flex; gap: 8px; }
.ip-share-btns a, .ip-share-btns button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ip-border); background: #fff; color: var(--ip-navy) !important; font-size: 20px; cursor: pointer; transition: all .15s; }
.ip-share-btns a:hover, .ip-share-btns button:hover { background: var(--ip-navy); color: #fff !important; border-color: var(--ip-navy); }
.ip-share-btns button.is-done { background: #E8F6EE; color: #14532D !important; }

/* Cuerpo de lectura */
.ip-article { min-width: 0; max-width: 760px; }
.ip-prose { font-size: 18px; line-height: 1.75; color: #24304A; }
.ip-prose > *:first-child { margin-top: 0; }
.ip-prose p { margin: 0 0 1.15em; }
.ip-prose h2 { font-size: 28px; font-weight: 800; margin: 2em 0 .7em; padding-top: .2em; }
.ip-prose h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--ip-gold); margin-bottom: 18px; }
.ip-prose h3 { font-size: 22px; font-weight: 700; margin: 1.8em 0 .6em; color: var(--ip-navy); }
.ip-prose h4 { font-size: 18px; font-weight: 700; margin: 1.6em 0 .5em; color: var(--ip-navy-900); letter-spacing: 0; }
.ip-prose strong { color: var(--ip-navy-900); font-weight: 650; }
.ip-prose a { color: var(--ip-navy); text-decoration-color: var(--ip-gold); text-underline-offset: 3px; }
.ip-prose ul, .ip-prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.ip-prose li { margin: .35em 0; padding-left: .2em; }
.ip-prose ul > li::marker { color: var(--ip-gold-600); }
.ip-prose ol > li::marker { color: var(--ip-gold-600); font-weight: 700; font-family: var(--ip-head); }
.ip-prose li > ul, .ip-prose li > ol { margin: .3em 0; }
.ip-prose .ip-callout, .ip-callout { position: relative; margin: 0 0 1.6em; padding: 24px 28px 24px 30px; background: var(--ip-gold-50); border-radius: var(--ip-radius); border-left: 5px solid var(--ip-gold); font-size: 19px; line-height: 1.65; color: var(--ip-navy-900); font-weight: 500; }
.ip-prose .ip-figure { margin: 2em 0; }
.ip-prose .ip-figure img { width: 100%; border-radius: var(--ip-radius); box-shadow: var(--ip-shadow); }
.ip-prose figure { margin: 2em 0; }
.ip-prose img { border-radius: var(--ip-radius); }
.ip-table { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); -webkit-overflow-scrolling: touch; }
.ip-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 480px; }
.ip-table td, .ip-table th { padding: 12px 16px; border-bottom: 1px solid var(--ip-border); text-align: left; vertical-align: top; }
.ip-table tr:last-child td { border-bottom: 0; }
.ip-table thead th, .ip-table thead td, .ip-table tbody tr:first-child td { background: var(--ip-navy); color: #fff; font-family: var(--ip-head); font-weight: 700; font-size: 14px; }
.ip-table tbody tr:first-child td strong { color: #fff; }
.ip-table thead + tbody tr:first-child td { background: transparent; color: inherit; font-family: inherit; font-weight: inherit; font-size: inherit; }
.ip-table thead + tbody tr:first-child td strong { color: var(--ip-navy-900); }
.ip-table tbody tr:nth-child(even) td { background: #FBFAF6; }

/* Opinión */
.ip-opinion { margin-top: 56px; padding: 32px; border-radius: var(--ip-radius-lg); background: var(--ip-cream); border: 1px solid var(--ip-border); }
.ip-opinion-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.ip-opinion-ic { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ip-navy); color: var(--ip-gold); font-size: 26px; }
.ip-opinion h2 { font-size: 24px; margin-bottom: 4px; }
.ip-opinion-head p { color: var(--ip-muted); margin: 0; font-size: 16px; }
.ip-rate { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ip-rate legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.ip-rate label { cursor: pointer; }
.ip-rate input { position: absolute; opacity: 0; pointer-events: none; }
.ip-rate span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ip-border); background: #fff; font-weight: 600; font-size: 14px; transition: all .15s; }
.ip-rate input:checked + span { background: var(--ip-navy); color: #fff; border-color: var(--ip-navy); }
.ip-rate input:focus-visible + span { outline: 3px solid var(--ip-gold); outline-offset: 2px; }

/* Formularios */
.ip-form, .ip-opinion form { display: flex; flex-direction: column; gap: 14px; }
.ip-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.theme-ip label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ip-navy-900); }
.theme-ip label small { font-weight: 400; color: var(--ip-muted); }
.theme-ip input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .theme-ip select, .theme-ip textarea { width: 100%; padding: 13px 14px; border: 1px solid #D9D3C4; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ip-text); transition: border-color .15s, box-shadow .15s; }
.theme-ip input:focus, .theme-ip select:focus, .theme-ip textarea:focus { outline: none; border-color: var(--ip-navy); box-shadow: 0 0 0 4px rgba(23, 48, 94, .12); }
.theme-ip textarea { resize: vertical; min-height: 110px; }
.ip-opinion .ip-btn { align-self: flex-start; }

/* Paginador */
.ip-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 72px; }
.ip-pager a { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ip-pager a:hover { border-color: var(--ip-navy); box-shadow: var(--ip-shadow); }
.ip-pager small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ip-gold-600); }
.ip-pager b { font-family: var(--ip-head); font-size: 18px; color: var(--ip-navy-900); }
.ip-pager-next { text-align: right; align-items: flex-end; grid-column: 2; }

/* ── Manifiesto ──────────────────────────────────────── */
.ip-manifesto h2 { font-size: 26px; }
.ip-dropcap { font-size: 21px; line-height: 1.7; color: var(--ip-navy-900); }
.ip-dropcap::first-letter { float: left; font: 800 76px/0.82 var(--ip-head); color: var(--ip-gold); margin: 8px 12px 0 0; }
.ip-checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.ip-checklist li { position: relative; padding: 14px 16px 14px 48px !important; margin: 0 !important; background: var(--ip-cream); border-radius: 12px; font-size: 16px; line-height: 1.5; }
.ip-checklist li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ip-gold); }
.ip-manifesto .ip-quote { margin: 1.8em 0; }
.ip-manifesto-end { font: 800 26px/1.3 var(--ip-head); color: var(--ip-navy); text-align: center; margin: 2em 0 .5em !important; }
.ip-manifesto-sign { text-align: center; font-family: var(--ip-serif); font-style: italic; color: var(--ip-muted); }

/* ── Inscripción ─────────────────────────────────────── */
.ip-join { background: linear-gradient(180deg, var(--ip-cream) 0%, #fff 100%); }
.ip-join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ip-join h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.ip-join-count { display: flex; align-items: center; gap: 18px; margin: 28px 0; padding: 20px 24px; border-radius: var(--ip-radius); background: var(--ip-navy); color: #fff; }
.ip-join-count b { font: 800 46px/1 var(--ip-head); color: var(--ip-gold); }
.ip-join-count span { font-size: 15px; color: rgba(255, 255, 255, .85); line-height: 1.4; }
.ip-join-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ip-join-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ip-muted); }
.ip-join-list i { color: var(--ip-gold-600); font-size: 22px; flex-shrink: 0; }
.ip-form-card { background: #fff; border-radius: var(--ip-radius-lg); padding: 32px; box-shadow: var(--ip-shadow-lg); border: 1px solid var(--ip-border); }
.ip-form-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--ip-border); }
.ip-form-card-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ip-gold); }
.ip-form-card-head b { display: block; font: 800 18px var(--ip-head); color: var(--ip-navy-900); }
.ip-form-card-head span { font-size: 14px; color: var(--ip-muted); }

.ip-thanks { text-align: center; padding: 110px 0; }
.ip-thanks-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ip-gold-50); color: var(--ip-gold-600); font-size: 42px; margin-bottom: 20px; }
.ip-thanks h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.ip-thanks .ip-lead { margin: 0 auto 12px; }
.ip-thanks p { color: var(--ip-muted); }
.ip-thanks .ip-hero-actions { margin-top: 28px; }

/* ── Pie ─────────────────────────────────────────────── */
.ip-footer { background: var(--ip-navy-900); color: rgba(255, 255, 255, .78); padding: 64px 0 0; font-size: 15px; }
.ip-footer a { color: rgba(255, 255, 255, .85) !important; text-decoration: none; }
.ip-footer a:hover { color: var(--ip-gold) !important; }
.ip-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.ip-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1fr; gap: 40px; padding-bottom: 48px; }
.ip-footer-brand img { width: 200px; margin-bottom: 18px; }
.ip-footer-brand b { color: #fff; }
.ip-social { display: flex; gap: 8px; }
.ip-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 18px; }
.ip-social a:hover { background: var(--ip-gold); color: var(--ip-navy-900) !important; }
.ip-footer-links, .ip-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ip-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ip-footer-contact i { color: var(--ip-gold); font-size: 18px; margin-top: 2px; }
.ip-footer-join .ip-count { color: var(--ip-gold); font-family: var(--ip-head); font-size: 20px; }
.ip-footer-join .ip-btn { margin-top: 4px; }
.ip-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .6); }
.ip-footer-bottom .ph-heart { color: #E25563; }

.ip-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff !important; font-size: 32px; box-shadow: 0 10px 30px rgba(37, 211, 102, .4); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .ip-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-steps { grid-template-columns: repeat(2, 1fr); }
  .ip-footer-grid { grid-template-columns: 1fr 1fr; }
  .ip-read { grid-template-columns: 1fr; gap: 0; }
  .ip-aside { position: static; order: 2; margin-top: 40px; }
  .ip-aside-in { max-height: none; overflow: visible; }
  .ip-toc { display: none !important; }
  .ip-article { max-width: none; }
}
@media (max-width: 920px) {
  :root { --ip-header-h: 64px; }
  .ip-brand img { width: 150px; }
  .ip-burger { display: block; }
  .ip-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .ip-drawer { position: fixed; top: var(--ip-header-h); left: 0; right: 0; height: calc(100vh - var(--ip-header-h)); height: calc(100dvh - var(--ip-header-h)); flex-direction: column; align-items: stretch; gap: 20px; padding: 20px 24px 32px; background: #fff; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; overflow-y: auto; margin: 0; }
  .ip-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .ip-nav ul { flex-direction: column; gap: 2px; }
  .ip-nav a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .ip-header-actions { flex-direction: column; }
  .ip-header-actions .ip-btn { padding: 14px; font-size: 16px; }
  .ip-hero { padding-top: 44px; }
  .ip-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .ip-hero-text { padding-bottom: 12px; }
  .ip-hero-lead { font-size: 18px; }
  .ip-leader-photo { max-width: 340px; }
  .ip-leader-card { left: 0; right: 0; bottom: 20px; }
  .ip-why, .ip-join-grid, .ip-phero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ip-phero-cover { justify-self: start; max-width: 380px; }
  .ip-cta-in { flex-direction: column; align-items: flex-start; }
  .ip-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .ip-section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body.theme-ip { font-size: 16px; }
  .ip-wrap { padding: 0 18px; }
  .ip-grid, .ip-steps { grid-template-columns: 1fr; }
  .ip-stats { grid-template-columns: 1fr 1fr 1fr; }
  .ip-stats > div { padding: 20px 10px; text-align: center; }
  .ip-stats dt { font-size: 28px; }
  .ip-stats dd { font-size: 12px; }
  .ip-facts b { font-size: 28px; }
  .ip-facts li { padding: 18px 16px; }
  .ip-hero h1 { font-size: 34px; }
  .ip-hero-actions .ip-btn { flex: 1 1 100%; }
  .ip-leader-card { padding: 12px 14px; }
  .ip-leader-card b { font-size: 17px; }
  .ip-leader-count b { font-size: 24px; }
  .ip-quote { font-size: 18px; }
  .ip-form-row { grid-template-columns: 1fr; }
  .ip-form-card, .ip-opinion { padding: 22px 18px; }
  .ip-prose { font-size: 17px; }
  .ip-prose h2 { font-size: 24px; }
  .ip-prose h3 { font-size: 20px; }
  .ip-prose .ip-callout { padding: 18px 18px 18px 20px; font-size: 17px; }
  .ip-pager { grid-template-columns: 1fr; }
  .ip-pager-next { grid-column: auto; }
  .ip-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ip-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 24px; padding: 0 18px 4px; scrollbar-width: none; }
  .ip-filters::-webkit-scrollbar { display: none; }
  .ip-chip { flex-shrink: 0; }
  .ip-join-count b { font-size: 38px; }
  .ip-cta-actions .ip-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-ip *, .theme-ip *::before, .theme-ip *::after { transition: none !important; animation: none !important; }
}
