/*
Theme Name: Chedraui Media
Theme URI: https://chedrauimedia.com.mx
Author: Accenture
Author URI: https://accenture.com
Description: Tema oficial del portal Chedraui Media. Sistema de diseño basado en brandbook v1 (2026).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Propietario
Text Domain: chedraui-media
*/

/* ============================================================
   CHEDRAUI MEDIA · SISTEMA DE DISEÑO
   Tokens derivados del brandbook v1 (2026)
   ============================================================ */
:root {
  /* Color de marca */
  --navy: #0B1C3F;
  --orange: #FF6600;
  --off: #F3F6FA;
  --ice: #E1E8F2;
  --mint: #66E0A3;
  --white: #FFFFFF;

  /* Derivados de superficie */
  --navy-2: #132A55;
  --navy-3: #1E3560;
  --navy-line: rgba(225,232,242,.16);
  --navy-line-2: rgba(225,232,242,.30);

  /* Derivados accesibles AA */
  --orange-aa: #FF6600;
  --mint-aa: #1B7A4B;

  /* Tinta */
  --ink: #0B1C3F;
  --ink-2: #44506B;
  --ink-3: #5A6B8C;

  /* Tipografía */
  --font: 'Nunito Sans','Aptos','Segoe UI',system-ui,-apple-system,sans-serif;
  --fs-display: clamp(2.2rem,1.4rem + 2.6vw,3.6rem);
  --fs-h1: clamp(2rem,1.45rem + 2.1vw,3.1rem);
  --fs-h2: clamp(1.6rem,1.25rem + 1.4vw,2.35rem);
  --fs-h3: clamp(1.15rem,1.05rem + .4vw,1.35rem);
  --fs-lead: clamp(1.05rem,1rem + .35vw,1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-metric: clamp(2.4rem,1.6rem + 2.8vw,3.6rem);

  /* Retícula y ritmo */
  --maxw: 1200px;
  --gutter: clamp(20px,5vw,48px);
  --sect: clamp(56px,7vw,104px);
  --r: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(11,28,63,.04),0 12px 32px -12px rgba(11,28,63,.14);
  --shadow-lift: 0 2px 4px rgba(11,28,63,.06),0 24px 48px -16px rgba(11,28,63,.22);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset acotado ---------- */
*,*::before,*::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased }
img,svg { max-width: 100%; display: block }
h1,h2,h3,h4 { margin: 0; line-height: 1.14; letter-spacing: -.02em; font-weight: 800 }
h1 { font-size: var(--fs-h1) }
h2 { font-size: var(--fs-h2) }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em }
p { margin: 0 }
ul { margin: 0; padding: 0; list-style: none }
a { color: inherit }
button { font: inherit }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px }
.st0 { fill: #0B1C3F } .st1 { fill: #FFFFFF } .st2 { fill: #FF6600 }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter) }
.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 }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--orange); color: var(--navy); padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700; transition: top .18s var(--ease) }
.skip:focus { top: 16px }
.section { padding-block: var(--sect) }
.section--navy { background: var(--navy); color: var(--white) }
.section--off { background: var(--off) }
.section--ice { background: var(--ice) }
.stack > * + * { margin-top: var(--s,16px) }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px }
.section--navy .eyebrow { color: var(--orange) }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 62ch }
.section--navy .lead { color: var(--ice) }
.muted { color: var(--ink-3); font-size: var(--fs-sm) }
.section--navy .muted { color: #9FB0CC }
.note { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5 }
.section--navy .note { color: #8FA0C0 }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .18s var(--ease),background-color .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease) }
.btn:hover { transform: translateY(-2px) }
.btn--primary { background: var(--orange); color: var(--navy) }
.btn--primary:hover { background: #FF7A22 }
.btn--ghost { border-color: var(--navy-line-2); color: var(--white) }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06) }
.btn--outline { border-color: var(--ice); color: var(--navy); background: var(--white) }
.btn--outline:hover { border-color: var(--navy); background: var(--off) }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); color: var(--orange-aa); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .18s var(--ease),gap .18s var(--ease) }
.link:hover { border-color: currentColor; gap: 12px }
.section--navy .link { color: var(--orange) }
.link svg { width: 16px; height: 16px; flex: none }

/* ============================================================
   HEADER
   ============================================================ */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(11,28,63,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--navy-line); color: #fff }
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 74px; padding-block: 12px }
.hdr__logo { display: flex; align-items: center; text-decoration: none; flex: none }
.hdr__logo svg { width: 158px; height: auto }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px }
.nav__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: #DCE5F2; text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .16s var(--ease),background-color .16s var(--ease) }
.nav__link:hover { color: #fff; background: rgba(255,255,255,.07) }
.nav__link[aria-current="page"] { color: #fff; font-weight: 700 }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; transform: translateY(18px); width: 18px; height: 2px; background: var(--orange); border-radius: 2px }
.nav__item { position: relative }
.nav__chev { width: 12px; height: 12px; color: var(--orange); opacity: 1; transition: transform .18s var(--ease) }
.nav__item[data-open="true"] .nav__chev { transform: rotate(180deg) }
.mega { display: none; position: absolute; top: calc(100% + 14px); left: -12px; min-width: 330px; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 12px; border: 1px solid var(--ice) }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px }
.nav__item[data-open="true"] .mega { display: block; animation: pop .18s var(--ease) }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.mega a { display: block; padding: 11px 14px; border-radius: var(--r-sm); text-decoration: none; transition: background-color .14s var(--ease) }
.mega a:hover { background: var(--off) }
.mega strong { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--navy) }
.mega span { display: block; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; margin-top: 2px }
.hdr__act { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none }
.hdr__act .btn { padding: 11px 20px }
.hdr__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--navy-line-2); background: none; color: #fff; cursor: pointer }
.hdr__icon:hover { background: rgba(255,255,255,.08) }
.hdr__icon svg { width: 19px; height: 19px }
.burger { display: none }
@media(max-width:1080px) {
  .nav { display: none }
  .burger { display: inline-flex }
  .hdr__act .btn--login { display: none }
}
@media(max-width:620px) {
  .hdr__logo svg { width: 124px }
  .hdr__act .hdr__icon:not(.burger) { display: none }
  .hdr__act .btn { padding: 10px 16px }
  .hdr__in { gap: 12px }
}
.mnav { display: none; background: var(--navy-2); border-top: 1px solid var(--navy-line); color: #fff }
.mnav[data-open="true"] { display: block }
.mnav ul { padding: 8px 0 20px }
.mnav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--navy-line); text-decoration: none; font-weight: 600 }
.mnav .sub a { padding-left: 18px; font-weight: 400; font-size: var(--fs-sm); color: #C6D2E6 }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding-block: clamp(56px,7vw,96px) clamp(48px,6vw,84px) }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,64px); align-items: center; position: relative; z-index: 2 }
@media(max-width:900px) { .hero__grid { grid-template-columns: 1fr } }
.hero__claim { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 8px; border: 1px solid var(--navy-line-2); border-radius: var(--r-pill); font-size: var(--fs-xs); letter-spacing: .06em; color: #DCE5F2; margin-bottom: 22px }
.hero__claim b { display: inline-block; background: var(--orange); color: var(--navy); padding: 3px 10px; border-radius: var(--r-pill); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase }
.hero h1 { font-size: var(--fs-display); letter-spacing: -.03em; max-width: 17ch; text-wrap: balance }
.hero h1 em { font-style: normal; color: var(--orange) }
.hero__sub { margin-top: 22px; font-size: var(--fs-lead); color: var(--ice); max-width: 52ch; line-height: 1.55 }
.hero__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap }
.hero__art { position: relative; border-radius: var(--r); overflow: hidden }
.hero__art svg { width: 100%; height: auto }
.hero__art--anim { overflow: visible; border-radius: 0 }
.hero__art--anim svg { display: block; width: 100%; height: auto; overflow: visible }
@media(min-width:1101px) { .hero__art--anim { margin-right: calc(-1 * var(--gutter)) } }
.hero__glow { position: absolute; inset: auto -10% -40% 30%; height: 60%; background: radial-gradient(60% 60% at 50% 50%,rgba(255,102,0,.22),transparent 70%); filter: blur(30px); z-index: 1; pointer-events: none }

/* Flujo animado */
.flow { stroke-dasharray: 6 10; animation: flow 3.2s linear infinite }
@keyframes flow { to { stroke-dashoffset: -64 } }
@media(prefers-reduced-motion:reduce) {
  .flow { animation: none }
  html { scroll-behavior: auto }
  .reveal { opacity: 1 !important; transform: none !important }
}

/* ---------- Banda de métricas ---------- */
.facts { background: var(--navy); border-top: 1px solid var(--navy-line); padding-block: clamp(36px,4vw,56px); color: #fff }
.facts .note { color: #8FA0C0 }
.facts__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--navy-line); border-radius: var(--r); overflow: hidden }
@media(max-width:900px) { .facts__grid { grid-template-columns: repeat(2,1fr) } }
@media(max-width:480px) { .facts__grid { grid-template-columns: 1fr } }
.facts__grid--4 { grid-template-columns: repeat(4,1fr) }
@media(max-width:900px) { .facts__grid--4 { grid-template-columns: repeat(2,1fr) } }
@media(max-width:480px) { .facts__grid--4 { grid-template-columns: 1fr } }
.fact { background: var(--navy); padding: 26px 22px }
.fact__n { font-size: var(--fs-metric); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; color: #fff }
.fact__n small { font-size: .5em; font-weight: 700; letter-spacing: .02em; color: var(--orange); margin-left: 2px }
.fact__l { margin-top: 10px; font-size: var(--fs-sm); color: #AFC0DA; line-height: 1.4 }
.fact__bar { width: 28px; height: 2px; background: var(--orange); margin-top: 16px; border-radius: 2px }

/* ============================================================
   TARJETAS
   ============================================================ */
.grid { display: grid; gap: clamp(16px,2vw,24px) }
.grid > * { min-width: 0 }
.grid--4 { grid-template-columns: repeat(4,1fr) }
.grid--3 { grid-template-columns: repeat(3,1fr) }
.grid--2 { grid-template-columns: repeat(2,1fr) }
.grid--aside { grid-template-columns: 1.35fr .65fr; gap: clamp(28px,5vw,72px); align-items: start }
@media(max-width:900px) { .grid--aside { grid-template-columns: 1fr } }
@media(max-width:1000px) { .grid--4 { grid-template-columns: repeat(2,1fr) } .grid--3 { grid-template-columns: repeat(2,1fr) } }
@media(max-width:680px) { .grid--4,.grid--3,.grid--2 { grid-template-columns: 1fr } }

.card { background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease) }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C9D6E8 }
.card__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--off); display: grid; place-items: center; color: #6B7A99; border: 1px solid var(--ice) }
.card__ico svg { width: 24px; height: 24px }
.card h3 { margin-top: 4px }
.card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6 }
.card__more { margin-top: auto; padding-top: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--orange-aa); display: inline-flex; align-items: center; gap: 8px }
.card--navy { background: var(--navy-2); border-color: var(--navy-line); color: #fff }
.card--navy p { color: #B9C7DE }
.card--navy .card__ico { background: rgba(255,255,255,.06); border-color: var(--navy-line); color: var(--orange) }
.card--navy .card__more { color: var(--orange) }

/* Rail de canales */
.rail { position: relative; margin-bottom: -14px }
.rail svg { width: 100%; height: 40px; overflow: visible }
@media(max-width:1000px) { .rail { display: none } }

/* ---------- Carrusel de soluciones ---------- */
.sol-track { display: grid; grid-template-columns: repeat(5, calc((100% - 96px) / 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; align-items: stretch }
.sol-track::-webkit-scrollbar { display: none }
.sol-card { scroll-snap-align: start; min-width: 0 }
@media(max-width:900px) { .sol-track { grid-template-columns: repeat(5, calc((100% - 24px) / 2)) } }
@media(max-width:560px) { .sol-track { grid-template-columns: repeat(5, 100%) } }
.sol-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ice); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .16s, border-color .16s, transform .16s }
.sol-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.06) }
.sol-btn:disabled { opacity: .35; pointer-events: none }

/* ---------- Señales de data ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: var(--r-pill); border: 1px solid var(--navy-line-2); font-size: var(--fs-sm); font-weight: 600; color: #fff; background: rgba(255,255,255,.04) }
.chip svg { width: 15px; height: 15px; color: var(--mint) }
.chip--light { border-color: var(--ice); color: var(--navy); background: var(--white) }
.chip--light svg { color: var(--mint-aa) }

/* ---------- Placeholder de imagen ---------- */
.ph { position: relative; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg,#0E2148,#16305C 60%,#0B1C3F); border: 1px solid var(--navy-line); min-height: 280px; display: grid; place-items: center; color: #fff }
.ph--light { background: linear-gradient(135deg,var(--off),var(--ice)); border-color: var(--ice); color: var(--navy) }
.ph__label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(11,28,63,.72); border: 1px solid var(--navy-line-2); font-size: var(--fs-xs); font-weight: 600; color: #DCE5F2; backdrop-filter: blur(6px) }
.ph--light .ph__label { background: rgba(255,255,255,.86); color: var(--ink-2); border-color: var(--ice) }
.ph__art { width: 100%; height: 100%; position: absolute; inset: 0; opacity: .85 }
.ph__play { width: 74px; height: 74px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--navy); border: 0; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(255,102,0,.7); position: relative; z-index: 2 }
.ph__play svg { width: 26px; height: 26px; margin-left: 4px }

/* ============================================================
   PÁGINAS INTERIORES
   ============================================================ */
.phead { background: var(--navy); color: #fff; padding-block: clamp(28px,4vw,44px) clamp(40px,5vw,64px); position: relative; overflow: hidden }
.phead h1 { max-width: 20ch; margin-top: 12px }
.phead .lead { margin-top: 20px }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: #9FB0CC }
.crumbs a { text-decoration: none; color: #C6D2E6 }
.crumbs a:hover { color: #fff; text-decoration: underline }
.crumbs span[aria-current] { color: var(--orange); font-weight: 700 }
.crumbs svg { width: 12px; height: 12px; opacity: .6 }

.split { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px,4vw,64px); align-items: start }
.split > * { min-width: 0 }
@media(max-width:900px) { .split { grid-template-columns: 1fr } }
.sidenav { position: sticky; top: 96px; border-left: 2px solid var(--ice); padding-left: 0 }
@media(max-width:900px) { .sidenav { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--ice); gap: 4px } }
.sidenav a { display: block; padding: 11px 18px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; white-space: nowrap }
.sidenav a:hover { color: var(--navy); background: var(--off) }
.sidenav a[aria-current="true"] { color: var(--navy); border-color: var(--orange); font-weight: 700 }

.prose { max-width: 70ch }
.prose h2 { margin-top: 8px }
.prose h3 { margin-top: 32px }
.prose p + p { margin-top: 16px }
.prose p { color: var(--ink-2) }
.prose ul.bul { margin-top: 16px; display: grid; gap: 10px }
.prose ul.bul li { position: relative; padding-left: 26px; color: var(--ink-2) }
.prose ul.bul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange) }

/* ---------- Tabla de especificaciones ---------- */
.table-wrap { overflow-x: auto; margin-top: 20px; border-radius: var(--r-sm) }
.spec { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--fs-sm) }
.spec th,.spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ice); vertical-align: top }
.spec thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; border: 0 }
.spec tbody tr:nth-child(even) { background: var(--off) }
.spec td:first-child { font-weight: 700; color: var(--navy) }

/* ---------- Estado vacío ---------- */
.empty { border: 2px dashed #C9D6E8; border-radius: var(--r); padding: clamp(28px,5vw,52px); text-align: center; background: var(--off) }
.empty__ico { width: 56px; height: 56px; border-radius: 14px; background: var(--white); border: 1px solid var(--ice); display: grid; place-items: center; margin: 0 auto 18px; color: var(--navy) }
.empty h3 { margin-bottom: 10px }
.empty p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; font-size: var(--fs-sm) }
.empty__fields { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px }
.empty__fields span { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); background: var(--white); border: 1px solid var(--ice); border-radius: var(--r-pill); padding: 7px 14px }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.filters__lbl { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px }
.filter, .caso-filter { padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--ice); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .16s }
.filter[aria-pressed="true"], .caso-filter.active { background: var(--navy); border-color: var(--navy); color: #fff }
.filter:hover, .caso-filter:hover { border-color: var(--navy); color: var(--navy) }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 18px }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
@media(max-width:680px) { .form__row { grid-template-columns: 1fr } }
.field label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 7px; color: var(--navy) }
.field .req { color: var(--orange-aa) }
.field input,.field select,.field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--ice); border-radius: var(--r-sm); font-family: inherit; font-size: var(--fs-body); color: var(--ink); background: #fff; transition: border-color .16s var(--ease),box-shadow .16s var(--ease) }
.field input:hover,.field select:hover,.field textarea:hover { border-color: #C9D6E8 }
.field input:focus,.field select:focus,.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11,28,63,.10) }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 6px }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--off); border: 1px solid var(--ice); border-radius: var(--r-sm) }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none }
.consent label { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55 }
.consent a { color: var(--orange-aa); font-weight: 700 }

/* ---------- CTA de cierre ---------- */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden }
.cta__in { display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center; position: relative; z-index: 2 }
@media(max-width:820px) { .cta__in { grid-template-columns: 1fr } }
.cta h2 { max-width: 18ch }

/* ---------- Footer ---------- */
.ftr { background: #081530; color: #B9C7DE; padding-block: clamp(48px,6vw,72px) 28px; font-size: var(--fs-sm) }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px }
@media(max-width:900px) { .ftr__grid { grid-template-columns: 1fr 1fr } }
@media(max-width:560px) { .ftr__grid { grid-template-columns: 1fr } }
.ftr svg.logo { width: 170px; margin-bottom: 18px }
.ftr h4 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 800 }
.ftr a { color: #B9C7DE; text-decoration: none }
.ftr a:hover { color: #fff; text-decoration: underline }
.ftr li + li { margin-top: 11px }
.ftr__bot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: var(--fs-xs); color: #8FA0C0 }

/* ---------- Reveal al scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease),transform .6s var(--ease) }
.js .reveal.in { opacity: 1; transform: none }

/* ---------- WordPress: ajustes de admin bar ---------- */
.admin-bar .hdr { top: 32px }
.admin-bar html { scroll-padding-top: 122px }
@media(max-width:782px) { .admin-bar .hdr { top: 46px } .admin-bar html { scroll-padding-top: 136px } }

/* ---------- Alineaciones de bloques Gutenberg ---------- */
.wp-block-image img { border-radius: var(--r-sm) }

/* ---------- Card kicker (Canal 01 … 05) ---------- */
.card .card__kicker { flex: none; margin: 0; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-aa); line-height: 1.2 }

/* ---------- Datahero (sección Data con foto de fondo) ---------- */
.datahero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy); padding-block: clamp(72px,9vw,132px) }
.datahero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 16% }
.datahero__grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px,5vw,72px); align-items: start }
@media(max-width:900px) { .datahero__grid { grid-template-columns: 1fr; gap: 34px } }
.datahero h2 { font-size: clamp(2rem,1.35rem + 2.4vw,3.2rem); letter-spacing: -.03em; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.75),0 1px 3px rgba(0,0,0,.55) }
.datahero .eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.8); color: var(--orange) }
.datahero__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 6px }
@media(min-width:1101px) { .datahero__side { margin-left: clamp(60px,7vw,115px); margin-right: calc(-1 * var(--gutter)) } }
.datahero__chips { flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; align-items: flex-start }
.datahero .chip { padding: 8px 15px; gap: 8px; font-size: var(--fs-xs); font-weight: 700; background: rgba(0,0,0,.42); border-color: rgba(255,255,255,.30); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px) }
.datahero .chip svg { width: 13px; height: 13px }

/* ---------- Acento superior phead (soluciones) ---------- */
.phead__accent { height: 4px; background: var(--orange); width: 100% }

/* ---------- Barra de filtros fmt ---------- */
.fmt-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px }
.fmt-search { flex: 1; min-width: 200px; max-width: 320px; position: relative }
.fmt-search input { width: 100%; padding: 10px 16px 10px 40px; border: 1.5px solid var(--ice); border-radius: var(--r-pill); font-family: inherit; font-size: var(--fs-sm); color: var(--ink); background: var(--white); transition: border-color .16s }
.fmt-search input:focus { outline: none; border-color: var(--navy) }
.fmt-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none }
.fmt-filters { display: flex; gap: 6px; flex-wrap: wrap }
.fmt-filter { padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--ice); background: var(--white); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .16s; white-space: nowrap }
.fmt-filter:hover { border-color: var(--navy); color: var(--navy) }
.fmt-filter.active { background: var(--navy); border-color: var(--navy); color: #fff }

/* ---------- Grid de formatos ---------- */
.fmt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px }
@media(max-width:900px) { .fmt-grid { grid-template-columns: repeat(2,1fr) } }
@media(max-width:600px) { .fmt-grid { grid-template-columns: 1fr } }
.fmt-empty[hidden] { display: none }

/* ---------- Tarjetas de formato ---------- */
.fmt-card { border: 1.5px solid var(--ice); border-radius: var(--r); background: var(--white); overflow: hidden; transition: box-shadow .2s, border-color .2s; cursor: pointer }
.fmt-card:hover { box-shadow: var(--shadow-lift); border-color: #C9D6E8 }
.fmt-card[data-open="true"] { border-color: var(--orange); box-shadow: var(--shadow-lift) }
.fmt-card__thumb { background: linear-gradient(135deg,var(--off),var(--ice)); aspect-ratio: 16/9; position: relative; overflow: hidden }
.fmt-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease) }
.fmt-card:hover .fmt-card__img { transform: scale(1.04) }
.fmt-tag { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); z-index: 2 }
.fmt-card__body { padding: 18px 20px }
.fmt-card__name { font-size: var(--fs-sm); font-weight: 800; color: var(--navy); margin-bottom: 6px }
.fmt-card__desc { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.55 }
.fmt-card[data-open="true"] .fmt-card__desc { display: none }
.fmt-card__toggle { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--orange-aa) }
.fmt-card__toggle svg { width: 14px; height: 14px; transition: transform .2s }
.fmt-card[data-open="true"] .fmt-card__toggle svg { transform: rotate(180deg) }
.fmt-card[data-open="true"] .fmt-card__toggle { color: var(--ink-3) }
.fmt-card__detail { display: none; border-top: 1px solid var(--ice) }
.fmt-card[data-open="true"] .fmt-card__detail { display: block }
.fmt-detail-left { padding: 16px 20px }
.fmt-section-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; color: var(--navy) }
.fmt-section-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none }
.fmt-section-label.mint::before { background: var(--mint) }
.fmt-desc-text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; margin-bottom: 12px }
.fmt-beneficio-text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; margin-bottom: 16px }
.fmt-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; padding-top: 14px; border-top: 1px solid var(--ice); margin-bottom: 14px }
.fmt-meta-item { padding: 0 12px 0 0 }
.fmt-meta-item + .fmt-meta-item { padding-left: 12px; border-left: 1px solid var(--ice); padding-right: 0 }
.fmt-meta-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-aa); margin-bottom: 4px }
.fmt-meta-val { font-size: 10px; font-weight: 600; color: var(--navy); line-height: 1.5; word-break: break-word }
.fmt-formatos-bar { background: var(--off); border: 1px solid var(--ice); border-radius: var(--r-pill); padding: 9px 20px; font-size: var(--fs-sm); color: var(--ink-2); text-align: center; margin-top: 4px }
.fmt-note { font-size: 10px; color: var(--ink-3); line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ice) }
.fmt-detail-inner { display: flex; gap: 0 }
.fmt-detail-left { flex: 1; min-width: 0 }
.fmt-detail-right { flex: 0 0 180px; max-width: 180px; overflow: hidden }
.fmt-detail-right .fmt-detail-img { width: 100%; height: 100%; object-fit: cover; display: block }
.fmt-card__ico { width: 48px; height: 48px; color: var(--ink-3); opacity: .4 }
.fmt-empty { text-align: center; padding: 48px 24px; color: var(--ink-3) }
.fmt-empty svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .35 }
.fmt-empty p { font-size: var(--fs-sm) }
/* Selecto carousel dots */
.selecto-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3 }
.selecto-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer; transition: all .2s }
.selecto-dot.on { width: 16px; border-radius: 3px; background: #fff }

/* ---------- CTA strip (franja oscura) ---------- */
.cta-strip { background: var(--navy); color: #fff; position: relative; overflow: hidden }
.cta-strip__in { display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center; padding-block: clamp(40px,5vw,72px) }
@media(max-width:820px) { .cta-strip__in { grid-template-columns: 1fr } }
.cta-strip h2 { max-width: 18ch }
.cta-strip .eyebrow { color: var(--orange) }
.cta-strip .lead { color: var(--ice); margin-top: 12px }
.cta-strip__btns { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0 }

/* ---------- Canal nav (paginación de soluciones) ---------- */
.canal-nav { display: flex; border-top: 1px solid var(--ice) }
.canal-nav__item { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 24px 32px; text-decoration: none; color: inherit; border-right: 1px solid var(--ice); transition: background .18s }
.canal-nav__item:last-child { border-right: none; text-align: right }
.canal-nav__item:hover { background: var(--off) }
.canal-nav__dir { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3) }
.canal-nav__name { font-size: var(--fs-sm); font-weight: 800; color: var(--navy) }

/* ---------- Hub de soluciones (split + carrusel) ---------- */
.hub-split { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px,5vw,72px); align-items: center; padding-block: var(--sect) }
@media(max-width:900px) { .hub-split { grid-template-columns: 1fr } }
.hub-left { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 8px }
.hub-carousel-wrap { min-width: 0; display: flex; flex-direction: column; gap: 16px }
.hub-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch }
.hub-carousel::-webkit-scrollbar { display: none }
.hub-carousel .card { scroll-snap-align: start; flex: 0 0 calc(50% - 10px); min-width: 240px; height: auto; min-height: 260px }
@media(max-width:700px) { .hub-carousel .card { flex: 0 0 82% } }
.hub-controls { display: flex; align-items: center; gap: 10px }
.hub-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ice); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .16s, border-color .16s; flex: none }
.hub-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff }
.hub-btn:disabled { opacity: .35; pointer-events: none }
.hub-dots { display: flex; align-items: center; gap: 6px; margin-left: 12px }
.hub-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); border: none; padding: 0; cursor: pointer; transition: all .2s }
.hub-dot.active { width: 18px; border-radius: 3px; background: var(--orange) }

/* ---------- Casos de éxito (archivo) ---------- */
.casos__barra { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between; margin: 28px 0 }
.casos__conteo { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; padding-bottom: 2px }
.casos__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(16px,2vw,24px) }
@media(max-width:820px) { .casos__grid { grid-template-columns: 1fr } }
.caso { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease) }
.caso:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C9D6E8 }
.caso[hidden] { display: none }
.caso__img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg,var(--off),var(--ice)); flex: none }
.caso__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease) }
.caso:hover .caso__img img { transform: scale(1.04) }
.caso__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px }
.caso__cat { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); line-height: 1.3 }
.caso__cuerpo h3 { margin-top: 12px; font-size: clamp(1.15rem,1rem + .6vw,1.45rem); line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; color: var(--navy) }
.caso__sub { margin: 10px 0 24px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6 }
.caso__ir { margin-top: auto; align-self: flex-end; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; transition: transform .18s var(--ease),filter .18s var(--ease) }
.caso__ir svg { width: 20px; height: 20px }
.caso:hover .caso__ir { transform: translateX(3px); filter: brightness(1.08) }
