/* Página de cada caso real (/casos-reales/<slug>). HTML: server/modules/cases/case-page.js (prefijo cp-).
 * ADN Pixon PC: navy #071F3A, noche #051426, azul #0d5fae, cielo #38bdf8, hielo #f0f7fd, verde solo WhatsApp,
 * ámbar para alerta/consejo. Secciones: hero oscuro → recorrido claro → fotos oscuras → reseña hielo → CTA oscuro →
 * casos parecidos claro. Fondos sólidos (los degradados van en pseudo-elementos) para que el contraste sea medible. */

pixon-case-detail { display: block; }

.cp {
  --navy: #071f3a;
  --night: #051426;
  --blue: #0f6cc0;
  --blue-ink: #0d5fae;
  --sky: #38bdf8;
  --sky-soft: #7dd3fc;
  --ice: #f0f7fd;
  --line: #d3e2ee;
  --muted: #3a5670;
  --body: #1e3a52;
  --wa: #15803d;
  --amber: #f59e0b;
  --amber-ink: #8a4b00;
  --ok: #166534; --ok-bg: #dcfce7;
  --warn: #854d0e; --warn-bg: #fef3c7;
  --no: #334155; --no-bg: #eef2f6;
  --ease: cubic-bezier(.23, 1, .32, 1);
  display: block;
  color: var(--navy);
  font-family: var(--font-main, 'Red Hat Display', system-ui, sans-serif);
  overflow: clip;
}
.cp :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.cp :is(h1, h2, h3, h4) { font-family: inherit; font-style: normal; letter-spacing: -.02em; text-wrap: balance; }
.cp :is(ul, ol) { padding: 0; list-style: none; }
.cp img { display: block; max-width: 100%; height: auto; }
.cp a:focus-visible, .cp button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; border-radius: 6px; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }

/* ── Botones ── */
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 2px solid transparent; border-radius: 12px; font-size: 1rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.cp-btn:active { transform: scale(.97); }
.cp-btn--wa { background: var(--wa); color: #fff !important; box-shadow: 0 12px 26px rgba(21, 128, 61, .3); }
.cp-btn--light { background: #fff; color: var(--navy) !important; }
.cp-btn--ghost { border-color: var(--blue-ink); background: #fff; color: var(--blue-ink) !important; }
@media (hover: hover) {
  .cp-btn:hover { transform: translateY(-2px); }
  .cp-btn--wa:hover { background: #126c33; }
  .cp-btn--light:hover { background: #e8f3fd; }
  .cp-btn--ghost:hover { background: #eaf3fc; }
}

/* ── Encabezados de sección ── */
.cp-sec { padding: clamp(48px, 6vw, 80px) 0; }
.cp-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: clamp(24px, 3vw, 36px); }
.cp-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); font-weight: 800; line-height: 1.1; color: var(--navy); }
.cp-head p:not(.cp-eyebrow) { font-size: 1.04rem; font-weight: 500; line-height: 1.6; color: var(--muted); }
.cp-head--row { display: flex; max-width: none; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.cp-head--row > div { display: grid; gap: 10px; }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-ink); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cp-head--dark h2 { color: #fff; }
.cp-head--dark p:not(.cp-eyebrow) { color: #c5d8ea; }
.cp-head--dark .cp-eyebrow, .cp-eyebrow--sky { color: var(--sky-soft); }
.cp-stage { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--sky); color: var(--night); font-size: .78rem; font-weight: 800; line-height: 1.2; }

/* ── 1. Hero ── */
/* La barra de navegación es fija: el hero empieza debajo de ella (mismo offset que Breadcrumb.astro). */
.cp-hero { position: relative; isolation: isolate; padding: calc(var(--breadcrumb-navbar-offset, 73px) + clamp(16px, 2.4vw, 28px)) 0 clamp(32px, 4vw, 52px); background-color: var(--navy) !important; color: #fff; }
.cp-hero::before { position: absolute; inset: 0; z-index: -1; content: ''; background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, .22), transparent 28rem), linear-gradient(135deg, var(--night) 0%, rgba(7, 31, 58, 0) 55%, rgba(11, 58, 102, .9) 100%); }
.cp-hero::after { position: absolute; inset: 0; z-index: -1; content: ''; opacity: .08; background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 25% 35%, #000, transparent 70%); }
.cp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; font-weight: 600; color: #c5d8ea; }
.cp-crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.cp-crumbs li + li::before { content: '/'; margin-right: 8px; color: #8fb0cc; }
.cp-crumbs a { color: var(--sky-soft); text-decoration: underline; text-underline-offset: 3px; }
.cp-hero__grid { display: grid; gap: 28px; margin-top: 14px; }
.cp-hero__copy { display: grid; gap: 16px; align-content: start; justify-items: start; min-width: 0; }
.cp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(125, 211, 252, .45); border-radius: 999px; background-color: #0b2c52; color: #e0f2fe; font-size: .8125rem; font-weight: 800; }
.cp-kicker i { color: var(--sky); }
.cp-hero h1 { max-width: 22ch; color: #fff; font-size: clamp(1.85rem, 4.1vw, 3.1rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; overflow-wrap: anywhere; }
.cp-hero__lead { max-width: 58ch; color: #d6e6f5; font-size: clamp(1.02rem, 1.4vw, 1.15rem); font-weight: 500; line-height: 1.55; }
.cp-verdict { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; padding: 14px 18px; border: 1px solid rgba(74, 222, 128, .4); border-left: 5px solid #4ade80; border-radius: 14px; background-color: #0b2c52; }
.cp-verdict__icon { margin-top: 3px; color: #4ade80; font-size: 1.35rem; }
.cp-verdict__tone { color: #bbf7d0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-verdict__label { margin-top: 2px !important; color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.cp-verdict--parcial, .cp-verdict--pendiente { border-color: rgba(251, 191, 36, .45); border-left-color: #fbbf24; }
.cp-verdict--parcial .cp-verdict__icon, .cp-verdict--pendiente .cp-verdict__icon { color: #fbbf24; }
.cp-verdict--parcial .cp-verdict__tone, .cp-verdict--pendiente .cp-verdict__tone { color: #fde68a; }
.cp-verdict--no-recuperado { border-color: rgba(203, 213, 225, .4); border-left-color: #cbd5e1; }
.cp-verdict--no-recuperado .cp-verdict__icon { color: #cbd5e1; }
.cp-verdict--no-recuperado .cp-verdict__tone { color: #e2e8f0; }
.cp-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border: 1px solid rgba(125, 211, 252, .35); border-radius: 999px; background-color: #0d2f55; color: #eaf5ff; font-size: .875rem; font-weight: 700; line-height: 1.25; }
.cp-facts i { color: var(--sky); }
.cp-facts .cp-facts__tag { border-color: rgba(251, 191, 36, .4); background-color: #142f4f; color: #fde68a; }
.cp-hero .cp-actions { margin-top: 4px; }
.cp-hero__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.cp-hero__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #bae6fd; font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cp-hero__media { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; background: var(--night); box-shadow: 0 28px 70px rgba(0, 0, 0, .42); }
.cp-hero__photo { display: block; cursor: zoom-in; }
.cp-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease); }
.cp-hero__media figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 8px; justify-items: start; padding: 48px 16px 14px; background: linear-gradient(180deg, rgba(5, 20, 38, 0), rgba(5, 20, 38, .92) 55%); pointer-events: none; }
.cp-hero__alt { display: -webkit-box; overflow: hidden; color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cp-hero__count { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--navy) !important; font-size: .875rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
@media (hover: hover) { .cp-hero__photo:hover img { transform: scale(1.03); } }

.cp-stepnav { margin-top: clamp(24px, 3vw, 36px); }
.cp-stepnav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.cp-stepnav a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid rgba(125, 211, 252, .3); border-radius: 14px; background-color: #0b2c52; color: #fff; font-weight: 800; text-decoration: none; transition: background-color .18s var(--ease), border-color .18s var(--ease); }
.cp-stepnav__n { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--sky); color: var(--night); font-size: .875rem; }
.cp-stepnav__t { flex: 1; min-width: 0; font-size: .95rem; }
.cp-stepnav__p { color: var(--sky-soft); font-size: .85rem; }
@media (hover: hover) { .cp-stepnav a:hover { border-color: var(--sky); background-color: #103a66; } }

@media (min-width: 900px) {
  .cp-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
  .cp-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
  .cp-hero__photo img { aspect-ratio: 4 / 5; max-height: 540px; }
  .cp-stepnav ol { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .cp-stepnav li { position: relative; }
  .cp-stepnav li:not(:last-child)::after { position: absolute; top: 50%; right: -9px; z-index: 1; width: 8px; height: 8px; border-top: 2px solid var(--sky-soft); border-right: 2px solid var(--sky-soft); content: ''; transform: translateY(-50%) rotate(45deg); }
}

/* ── 2. Recorrido ── */
.cp-journey { padding-block: clamp(44px, 5vw, 64px); background-color: #fff !important; }
.cp-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (min-width: 700px) {
  .cp-steps:not([data-count="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-steps[data-count="1"] { max-width: 960px; }
  /* Un solo paso: texto a la izquierda y foto a la derecha (sin hueco vacío). */
  .cp-steps[data-count="1"] .cp-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 10px 28px; }
  .cp-steps[data-count="1"] .cp-step > :not(.cp-step__media) { grid-column: 1; }
  .cp-steps[data-count="1"] .cp-step__media { grid-column: 2; grid-row: 1 / span 8; margin-top: 0 !important; padding-top: 0; }
}
.cp-step { --accent: var(--blue-ink); --accent-bg: #e6f0fb; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -24px rgba(7, 31, 58, .45); scroll-margin-top: 96px; }
.cp-step--problema { --accent: #d97706; --accent-bg: #fff4e0; }
.cp-step--diagnostico { --accent: #0284c7; --accent-bg: #e0f2fe; }
.cp-step--resultado { --accent: #15803d; --accent-bg: #dcfce7; }
.cp-step h3 { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.cp-step__n { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent-bg); color: var(--navy); font-size: .95rem; letter-spacing: 0; }
.cp-step h4 { margin-top: 2px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-step p { color: var(--body); font-size: .96rem; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chips li { padding: 5px 12px; border-radius: 999px; background: #fff4e0; color: var(--amber-ink); font-size: .875rem; font-weight: 700; }
.cp-checks, .cp-times { display: grid; gap: 6px; }
.cp-checks li, .cp-times li { display: flex; gap: 10px; align-items: baseline; color: var(--body); font-size: .96rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.cp-checks i { color: var(--blue-ink); }
.cp-times i { color: #0369a1; }
.cp-parts { display: grid; gap: 8px; }
.cp-part { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfe; }
.cp-part dt { padding: 3px 10px; border-radius: 8px; background: #e6f0fb; color: #0b4a8a; font-size: .78rem; font-weight: 800; }
.cp-part--reemplazado dt { background: #ffedd5; color: #9a3412; }
.cp-part--recuperado dt { background: var(--ok-bg); color: var(--ok); }
.cp-part--sin-cambio dt { background: var(--no-bg); color: var(--no); }
.cp-part dd { color: var(--navy); font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.cp-outcome { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok) !important; }
.cp-outcome strong { color: inherit; }
.cp-outcome--parcial, .cp-outcome--pendiente { background: var(--warn-bg); color: var(--warn) !important; }
.cp-outcome--no-recuperado { background: var(--no-bg); color: var(--no) !important; }
.cp-step__media { position: relative; display: grid; gap: 8px; margin-top: auto !important; padding-top: 4px; }
.cp-step__media a { display: block; overflow: hidden; border-radius: 12px; background: var(--night); cursor: zoom-in; }
.cp-step__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s var(--ease); }
.cp-step__media figcaption { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cp-step__more { position: absolute; top: 14px; right: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--navy); font-size: .8rem; font-weight: 800; pointer-events: none; }
@media (hover: hover) { .cp-step__media a:hover img { transform: scale(1.04); } }
@media (min-width: 1100px) {
  .cp-steps[data-count="2"] { max-width: 960px; }
  .cp-steps[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-steps[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cp-step:not(:last-child)::after { position: absolute; top: 34px; right: -15px; z-index: 1; width: 10px; height: 10px; border-top: 2px solid #8fb0cc; border-right: 2px solid #8fb0cc; content: ''; transform: rotate(45deg); }
}
/* ── 3. Fotos ── */
.cp-gallery { background-color: var(--navy) !important; color: #fff; }
.cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-grid li[hidden] { display: none; }
.cp-grid a { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--night); cursor: zoom-in; }
.cp-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s var(--ease); }
.cp-grid .cp-stage { position: absolute; top: 10px; left: 10px; }
.cp-grid__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 20, 38, .74); color: #fff; font-size: 1.3rem; font-weight: 800; }
@media (hover: hover) { .cp-grid a:hover img { transform: scale(1.05); } }
@media (min-width: 700px) {
  .cp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .cp-grid:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
  .cp-grid:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}

/* ── 4. Experiencia del cliente ── */
.cp-voice { background-color: var(--ice) !important; }
.cp-voice__grid { display: grid; gap: 24px; }
.cp-voice .cp-head { margin-bottom: 0; }
.cp-voice__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cp-glink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue-ink) !important; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.cp-glink--strong { padding: 0 16px; border: 2px solid var(--blue-ink); border-radius: 12px; background: #fff; text-decoration: none; }
.cp-quote { position: relative; display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -32px rgba(7, 31, 58, .5); }
.cp-quote::before { position: absolute; top: -6px; right: 22px; color: #fde68a; content: '\201D'; font-family: Georgia, serif; font-size: 7rem; line-height: 1; pointer-events: none; }
.cp-quote__who { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cp-avatar { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.15rem; font-weight: 800; }
.cp-quote__author { color: var(--navy); font-size: 1.05rem; font-weight: 800; }
.cp-quote__src { color: var(--muted); font-size: .875rem; font-weight: 600; }
.cp-stars { width: 100%; color: #b45309; font-size: 1.2rem; letter-spacing: 2px; }
.cp-stars span { color: #64748b; }
.cp-lang { display: inline-flex; justify-self: start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: .875rem; font-weight: 800; }
.cp-switch { display: inline-flex; justify-self: start; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #f6f9fc; }
.cp-switch[hidden] { display: none; }
.cp-switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.cp-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.cp-quote__panel { display: grid; gap: 8px; }
.cp-quote__panel[hidden] { display: none; }
.cp-quote__label { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-quote__tr { color: var(--navy); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; line-height: 1.6; }
.cp-quote blockquote { padding-left: 14px; border-left: 4px solid var(--amber); }
.cp-quote blockquote p { color: var(--navy); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.cp-quote__foot { display: flex; gap: 8px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; line-height: 1.45; }
.cp-quote--doc p { color: var(--body); font-size: 1rem; font-weight: 500; line-height: 1.6; }
.cp-quote--doc::before { content: none; }
.cp-doc { display: flex; gap: 10px; align-items: center; color: var(--navy) !important; font-size: 1.1rem !important; }
.cp-doc__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #e6f0fb; color: var(--blue-ink); }
@media (min-width: 900px) {
  .cp-voice__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
}

/* ── 5. CTA ── */
.cp-cta { position: relative; isolation: isolate; padding: clamp(44px, 6vw, 72px) 0; background-color: var(--night) !important; color: #fff; }
.cp-cta::before { position: absolute; inset: 0; z-index: -1; content: ''; background: radial-gradient(circle at 12% 30%, rgba(56, 189, 248, .18), transparent 24rem), radial-gradient(circle at 92% 80%, rgba(245, 158, 11, .12), transparent 20rem); }
.cp-cta__inner { display: grid; gap: 24px; }
.cp-cta__inner > div:first-child { display: grid; gap: 12px; }
.cp-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.08; }
.cp-cta p:not(.cp-eyebrow) { max-width: 60ch; color: #c5d8ea; font-size: 1.04rem; font-weight: 500; line-height: 1.6; }
.cp-cta__actions { display: grid; gap: 12px; align-content: center; }
.cp-cta__service { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #bae6fd !important; font-weight: 700; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .cp-cta__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 48px; align-items: center; }
}

/* Consejo del caso (dentro del CTA oscuro) */
.cp-advice { display: flex; gap: 14px; align-items: flex-start; max-width: 64ch; margin-top: 6px; padding: 14px 18px; border: 1px solid rgba(251, 191, 36, .4); border-left: 5px solid #fbbf24; border-radius: 14px; background-color: #0b2c52; }
.cp-advice__icon { margin-top: 3px; color: #fbbf24; font-size: 1.25rem; }
.cp-cta .cp-advice .cp-advice__t { color: #fde68a; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cp .cp-advice p:not(.cp-advice__t) { margin-top: 4px; color: #fff; font-size: 1.02rem; font-weight: 600; line-height: 1.55; }

/* ── 6. Casos parecidos y navegación ── */
.cp-more { background-color: #fff !important; }
.cp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cp-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -26px rgba(7, 31, 58, .5); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cp-card__media { overflow: hidden; background: var(--ice); }
.cp-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cp-card__media--empty { display: grid; aspect-ratio: 16 / 10; place-items: center; color: var(--blue-ink); font-size: 2.4rem; }
.cp-card__body { display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px; padding: 16px 18px 18px; }
.cp-card h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.cp-card h3 a { color: var(--navy) !important; text-decoration: none; }
.cp-card h3 a::after { position: absolute; inset: 0; content: ''; }
.cp-card__meta { color: var(--muted); font-size: .875rem; font-weight: 600; }
.cp-card__go { display: inline-flex; align-self: end; align-items: center; gap: 8px; margin-top: 4px; color: var(--blue-ink); font-size: .9rem; font-weight: 800; }
.cp-card:focus-within { outline: 3px solid #fbbf24; outline-offset: 3px; }
.cp-card h3 a:focus-visible { outline: none; }
@media (hover: hover) { .cp-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(7, 31, 58, .55); } }
.cp-tone { display: inline-flex; justify-self: start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #e6f0fb; color: #0b4a8a; font-size: .8rem; font-weight: 800; }
.cp-tone--recuperado { background: var(--ok-bg); color: var(--ok); }
.cp-tone--parcial, .cp-tone--pendiente { background: var(--warn-bg); color: var(--warn); }
.cp-tone--no-recuperado { background: var(--no-bg); color: var(--no); }
.cp-pager { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cp-pager a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfe; color: var(--navy) !important; font-weight: 700; line-height: 1.35; text-decoration: none; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.cp-pager a > i { flex: 0 0 auto; color: var(--blue-ink); }
.cp-pager span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cp-pager small { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-pager__next { justify-content: flex-end; text-align: right; }
@media (hover: hover) { .cp-pager a:hover { border-color: var(--blue-ink); background: #eef6fd; } }
@media (min-width: 700px) {
  .cp-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-pager__next:only-child { grid-column: 2; }
}

@media (max-width: 599px) {
  .cp-actions .cp-btn { flex: 1 1 100%; }
  .cp-head--row .cp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cp *, .cp *::before, .cp *::after { transition: none !important; }
}
