/* ==========================================================================
   Activa Pericial — Sistema de diseño
   Autor: Coodex · Basado en el diseño aprobado de la Home
   ========================================================================== */

:root {
  --cdx-bg:        #f6f7f9;
  --cdx-ink:       #232838;
  --cdx-navy:      #0b1029;
  --cdx-navy-2:    #0e1330;
  --cdx-navy-deep: #070b1e;
  --cdx-teal:      #0e8c82;
  --cdx-teal-dark: #0a6b64;
  --cdx-teal-hi:   #12a89b;
  --cdx-teal-bri:  #37c4b8;
  --cdx-blue:      #2438a8;
  --cdx-blue-hov:  #3049c9;
  --cdx-blue-soft: #7d97e0;
  --cdx-muted:     #5b6478;
  --cdx-muted-2:   #8992b8;
  --cdx-muted-3:   #b9c1de;
  --cdx-line-dark: #232c55;
  --cdx-line:      #e6e9f0;
  --cdx-input:     #d6dae4;
  --cdx-maxw:      1280px;
  --cdx-pad:       clamp(20px, 4vw, 48px);
  --cdx-radius:    18px;
  --cdx-shadow:    0 10px 40px rgba(14,19,48,0.07);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cdx-bg);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color: var(--cdx-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cdx-teal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--cdx-teal-dark); }
h1, h2, h3, h4 { margin: 0; }
::selection { background: var(--cdx-teal); color: #fff; }
em { font-style: italic; }

.cdx-container { max-width: var(--cdx-maxw); margin: 0 auto; padding-left: var(--cdx-pad); padding-right: var(--cdx-pad); }
.cdx-skip-link { position: absolute; left: -9999px; top: 0; background: var(--cdx-teal); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.cdx-skip-link:focus { left: 0; color: #fff; }

/* ---------- Botones ---------- */
.cdx-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 15px 15px 30px;
  border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.2;
  transition: background .25s, border-color .25s, transform .25s, color .25s;
}
.cdx-btn__ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cdx-btn--teal { background: var(--cdx-teal); color: #fff; }
.cdx-btn--teal:hover { background: var(--cdx-teal-hi); color: #fff; transform: translateY(-2px); }
.cdx-btn--blue { background: var(--cdx-blue); color: #fff; }
.cdx-btn--blue:hover { background: var(--cdx-blue-hov); color: #fff; transform: translateY(-2px); }
.cdx-btn--navy { background: var(--cdx-navy-2); color: #fff; }
.cdx-btn--navy:hover { background: var(--cdx-teal); color: #fff; }
.cdx-btn--ghost { background: transparent; color: #fff; border-color: #3a4472; }
.cdx-btn--ghost:hover { border-color: var(--cdx-teal-bri); color: #fff; transform: translateY(-2px); }
.cdx-btn--ghost .cdx-btn__ico { background: transparent; border: 1.5px solid #3a4472; }
.cdx-btn--sm { padding: 13px 13px 13px 26px; font-size: 15px; }
.cdx-btn--sm .cdx-btn__ico { width: 28px; height: 28px; }
.cdx-btn--block { justify-content: center; width: 100%; padding: 16px; border: none; }

/* ---------- Eyebrow + títulos de sección ---------- */
.cdx-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--cdx-teal); font-weight: 700; letter-spacing: 0.16em; font-size: 13px;
  text-transform: uppercase;
}
.cdx-eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; flex-shrink: 0; }
.cdx-eyebrow--center::after { content: ""; width: 34px; height: 2px; background: currentColor; flex-shrink: 0; }
.cdx-eyebrow--teal-bri { color: var(--cdx-teal-bri); }
.cdx-h2 {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 800;
  letter-spacing: -0.025em; color: var(--cdx-navy-2); text-wrap: pretty; line-height: 1.08;
}
.cdx-h2 em { color: var(--cdx-teal); }
.cdx-lead { font-size: 16.5px; line-height: 1.6; color: var(--cdx-muted); }

/* ---------- Topbar ---------- */
.cdx-topbar {
  background: var(--cdx-navy); color: var(--cdx-muted-2); font-size: 13px;
  padding: 9px var(--cdx-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cdx-topbar__left { display: flex; gap: 24px; flex-wrap: wrap; }
.cdx-topbar__sep { color: #5d6690; }
.cdx-topbar__right { display: flex; gap: 22px; flex-wrap: wrap; }
.cdx-topbar__right a { color: #dfe4f5; display: inline-flex; align-items: center; gap: 7px; }
.cdx-topbar__right a:hover { color: var(--cdx-teal-bri); }

/* ---------- Header / navegación ---------- */
.cdx-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  padding: 0 var(--cdx-pad);
  display: flex; align-items: center; justify-content: space-between; height: 80px;
  box-shadow: 0 1px 0 rgba(14,19,48,0.04); gap: 20px;
}
.cdx-brand { display: flex; align-items: center; gap: 13px; color: inherit; }
.cdx-brand img { height: 46px; width: auto; }
.cdx-brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.cdx-brand__name { font-weight: 800; font-size: clamp(15px, 2vw, 19px); letter-spacing: -0.02em; color: var(--cdx-navy-2); }
.cdx-brand__tag { font-size: 11px; letter-spacing: 0.14em; color: var(--cdx-teal); font-weight: 700; }
.cdx-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.cdx-nav .cdx-menu, .cdx-nav .cdx-menu-fallback { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.cdx-nav .cdx-menu li, .cdx-nav .cdx-menu-fallback li { list-style: none; }
.cdx-nav a { color: var(--cdx-muted); }
.cdx-nav a:hover { color: var(--cdx-teal); }
.cdx-nav a.current, .cdx-nav .current-menu-item > a, .cdx-nav .current_page_item > a, .cdx-nav .current-menu-ancestor > a {
  color: var(--cdx-navy-2); font-weight: 800; border-bottom: 2px solid var(--cdx-teal); padding-bottom: 2px;
}
.cdx-nav__cta a, .cdx-nav a.cdx-nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cdx-teal); color: #fff; padding: 12px 12px 12px 24px;
  border-radius: 999px; font-weight: 700; border-bottom: none !important;
}
.cdx-nav__cta a:hover, a.cdx-nav__cta:hover { background: var(--cdx-navy); color: #fff; }
.cdx-nav__cta-ico { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; }

/* Selector de idioma (Val | Esp) */
.cdx-langsw { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.cdx-langsw__opt { color: var(--cdx-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.cdx-langsw__opt:hover { color: var(--cdx-teal); }
.cdx-langsw__opt.is-active { color: var(--cdx-navy-2); }
.cdx-langsw__sep { color: var(--cdx-line); font-weight: 400; }
.cdx-langsw--mobile { display: flex; justify-content: center; gap: 12px; margin-top: 24px; font-size: 18px; }
.cdx-langsw--mobile .cdx-langsw__opt { color: var(--cdx-muted-2); }
.cdx-langsw--mobile .cdx-langsw__opt.is-active { color: #fff; }
.cdx-langsw--mobile .cdx-langsw__sep { color: #3a4472; }

.cdx-burger {
  background: var(--cdx-navy-2); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 10px;
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.cdx-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.cdx-burger span:nth-child(2) { background: var(--cdx-teal-bri); }

.cdx-mobile-menu {
  position: fixed; top: 80px; left: 0; right: 0; bottom: 0; z-index: 89;
  background: rgba(11,16,41,0.98);
  display: none; flex-direction: column; gap: 6px; padding: 28px var(--cdx-pad);
  overflow-y: auto;
}
.cdx-mobile-menu.is-open { display: flex; }
.cdx-mobile-menu .cdx-mobile-list, .cdx-mobile-menu .cdx-menu-fallback { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cdx-mobile-menu li { list-style: none; }
.cdx-mobile-menu a { display: block; color: #cdd4ee; font-size: 22px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--cdx-line-dark); }
.cdx-mobile-menu a.current, .cdx-mobile-menu .current-menu-item > a, .cdx-mobile-menu .current_page_item > a { color: #fff; font-weight: 800; }
.cdx-mobile-menu .cdx-mobile-cta {
  margin-top: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--cdx-teal); color: #fff; padding: 16px; border-radius: 999px; font-weight: 800; font-size: 17px; border: none;
}

/* ---------- Hero (home) ---------- */
.cdx-hero { position: relative; background: var(--cdx-navy); color: #fff; overflow: hidden; }
.cdx-hero__bg { position: absolute; inset: 0; }
.cdx-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.cdx-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,30,0.94) 0%, rgba(7,11,30,0.86) 42%, rgba(7,11,30,0.38) 100%); pointer-events: none; }
.cdx-hero__inner { position: relative; max-width: var(--cdx-maxw); margin: 0 auto; padding: clamp(64px, 9vw, 130px) var(--cdx-pad); }
.cdx-hero__content { display: flex; flex-direction: column; gap: 26px; max-width: 640px; }
.cdx-hero h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; text-wrap: pretty; }
.cdx-hero h1 em { color: var(--cdx-teal-bri); }
.cdx-hero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--cdx-muted-3); max-width: 560px; text-wrap: pretty; }
.cdx-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.cdx-hero__stats { display: flex; gap: clamp(24px, 4vw, 44px); flex-wrap: wrap; margin-top: 24px; border-top: 1px solid var(--cdx-line-dark); padding-top: 26px; }
.cdx-stat { display: flex; flex-direction: column; gap: 2px; }
.cdx-stat__num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; }
.cdx-stat__lbl { font-size: clamp(13px, 1.05vw, 16px); color: var(--cdx-muted-2); }

/* ---------- Ticker ---------- */
.cdx-ticker { position: relative; border-top: 1px solid var(--cdx-line-dark); background: var(--cdx-navy-2); overflow: hidden; padding: 16px 0; }
.cdx-ticker__track { display: flex; width: max-content; animation: cdxMarquee 28s linear infinite; }
.cdx-ticker__group { display: flex; gap: 28px; padding-right: 28px; align-items: center; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.cdx-ticker__group span.sep { width: 7px; height: 7px; border-radius: 50%; background: var(--cdx-teal); flex-shrink: 0; }
@keyframes cdxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sección genérica ---------- */
.cdx-section { padding: clamp(64px, 9vw, 110px) var(--cdx-pad); }
.cdx-section--tight { padding: clamp(56px, 7vw, 90px) var(--cdx-pad); }
.cdx-section--white { background: #fff; }
.cdx-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cdx-section__head-l { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.cdx-section__head-r { font-size: 16.5px; line-height: 1.6; color: var(--cdx-muted); max-width: 420px; }
.cdx-section__head--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(30px, 4vw, 48px); }
.cdx-section__head--center .cdx-section__head-r { max-width: 740px; text-align: center; }

/* ---------- Dos áreas (cards grandes) ---------- */
.cdx-areas { max-width: var(--cdx-maxw); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(36px, 4vw, 52px); }
.cdx-areas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.cdx-area-card { position: relative; border-radius: var(--cdx-radius); overflow: hidden; min-height: clamp(340px, 34vw, 440px); display: flex; transition: transform .35s, box-shadow .35s; }
.cdx-area-card:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(14,19,48,0.2); }
.cdx-area-card__bg { position: absolute; inset: 0; }
.cdx-area-card__bg img { width: 100%; height: 100%; object-fit: cover; }
.cdx-area-card__body { position: relative; align-self: flex-end; width: 100%; padding: clamp(26px, 3vw, 40px); padding-top: 120px; display: flex; flex-direction: column; gap: 20px; }
.cdx-area-card--teal .cdx-area-card__body { background: linear-gradient(180deg, rgba(7,17,25,0) 0%, rgba(7,25,23,0.55) 34%, rgba(7,25,23,0.92) 100%); }
.cdx-area-card--blue .cdx-area-card__body { background: linear-gradient(180deg, rgba(10,13,35,0) 0%, rgba(10,13,35,0.55) 34%, rgba(10,13,35,0.92) 100%); }
.cdx-area-card h3 { font-size: clamp(23px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: #fff; text-wrap: pretty; }
.cdx-area-card--teal h3 em { color: var(--cdx-teal-bri); }
.cdx-area-card--blue h3 em { color: var(--cdx-blue-soft); }
.cdx-area-card .cdx-btn { align-self: flex-start; }

/* ---------- Servicios destacados ---------- */
.cdx-services {
  max-width: var(--cdx-maxw); margin: 0 auto; background: #fff; border-radius: var(--cdx-radius);
  box-shadow: var(--cdx-shadow); padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3.5vw, 48px);
}
.cdx-service { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; row-gap: 12px; }
.cdx-service__ico { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 8px; background: var(--cdx-teal); display: inline-flex; align-items: center; justify-content: center; }
.cdx-service__ico svg { width: 30px; height: 30px; }
.cdx-service h4 { font-size: 19px; font-weight: 800; color: var(--cdx-navy-2); align-self: center; }
.cdx-service__rule { height: 2px; background: linear-gradient(90deg, var(--cdx-teal) 0 42px, var(--cdx-line) 42px 100%); }
.cdx-service p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--cdx-muted); }
.cdx-service__more { grid-column: 2; color: var(--cdx-teal); margin-top: 2px; }
.cdx-service__more:hover { color: var(--cdx-teal-dark); }

/* ---------- Quiénes somos / bloque imagen+texto ---------- */
.cdx-split { max-width: var(--cdx-maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.cdx-split--rev .cdx-split__media { order: 2; }
.cdx-split__media { position: relative; padding-bottom: 26px; }
.cdx-split__media-img { height: clamp(320px, 38vw, 470px); border-radius: var(--cdx-radius); overflow: hidden; }
.cdx-split__media-img img { width: 100%; height: 100%; object-fit: cover; }
.cdx-badge { position: absolute; bottom: 0; right: clamp(8px, 2vw, 26px); background: var(--cdx-teal); color: #fff; padding: 22px 28px; border-radius: 16px; display: flex; align-items: center; gap: 16px; box-shadow: 0 14px 36px rgba(14,140,130,0.4); }
.cdx-badge__num { font-size: clamp(34px, 3vw, 44px); font-weight: 800; line-height: 1; }
.cdx-badge__lbl { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.35; }
.cdx-split__body { display: flex; flex-direction: column; gap: 20px; }
.cdx-split__body p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--cdx-muted); }
/* Botón dentro del bloque imagen+texto: ancho según contenido, alineado a la izquierda y padding horizontal simétrico. */
.cdx-split__body .cdx-btn { align-self: flex-start; width: auto; padding-left: 26px; padding-right: 26px; }
.cdx-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 6px; }
.cdx-check { display: flex; gap: 12px; align-items: center; background: var(--cdx-bg); border-radius: 12px; padding: 15px 18px; }
.cdx-check svg { flex-shrink: 0; }
.cdx-check span { font-size: 15px; font-weight: 600; }
@media (min-width: 961px) { .cdx-check span { font-size: 17px; } }
.cdx-split--onwhite .cdx-check { background: var(--cdx-bg); }

/* ---------- Listado de servicios (páginas de área) ---------- */
.cdx-arealist { max-width: var(--cdx-maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.cdx-arealist__card { background: #fff; border: 1px solid var(--cdx-line); border-radius: var(--cdx-radius); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.cdx-arealist__card:hover { transform: translateY(-6px); box-shadow: var(--cdx-shadow); border-color: transparent; }
.cdx-arealist__ico { width: 56px; height: 56px; border-radius: 10px; background: var(--cdx-teal); display: inline-flex; align-items: center; justify-content: center; }
.cdx-arealist__ico svg { width: 28px; height: 28px; }
.cdx-arealist__card--blue .cdx-arealist__ico { background: var(--cdx-blue); }
.cdx-arealist__card h3 { font-size: 20px; font-weight: 800; color: var(--cdx-navy-2); }
.cdx-arealist__card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cdx-muted); }

/* ---------- Clientes marquee ---------- */
.cdx-clients { background: #fff; padding: clamp(64px, 9vw, 100px) 0; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.cdx-clients__marquee { overflow: hidden; padding: 4px 0; }
.cdx-clients__track { display: flex; width: max-content; animation: cdxMarquee 34s linear infinite; }
.cdx-clients__group { display: flex; gap: 64px; padding-right: 64px; align-items: center; }
.cdx-clients__item { width: 220px; height: 118px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.cdx-clients__item img { max-height: 92px; max-width: 84%; width: auto; opacity: 0.85; filter: grayscale(1); transition: filter .3s, opacity .3s; }
.cdx-clients.is-color .cdx-clients__item img { filter: none; opacity: 1; }
.cdx-clients__item:hover img { filter: none; opacity: 1; }

/* Grid de clientes (página Clientes) */
.cdx-clients-grid { max-width: var(--cdx-maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px; }
.cdx-clients-grid__item { background: transparent; border: 0; border-radius: 16px; height: 168px; display: flex; align-items: center; justify-content: center; padding: 28px; transition: transform .3s; }
.cdx-clients-grid__item:hover { transform: translateY(-4px); }
.cdx-clients-grid__item img { max-height: 108px; max-width: 100%; width: auto; }

/* ---------- Contacto ---------- */
.cdx-contact { background: var(--cdx-navy); position: relative; overflow: hidden; }
.cdx-contact__glow { position: absolute; bottom: -260px; left: -180px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(14,140,130,0.22), transparent 65%); pointer-events: none; }
.cdx-contact__inner { position: relative; max-width: var(--cdx-maxw); margin: 0 auto; padding: clamp(64px, 9vw, 110px) var(--cdx-pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.cdx-contact__info { display: flex; flex-direction: column; gap: 20px; }
.cdx-contact__info h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.025em; color: #fff; text-wrap: pretty; }
.cdx-contact__info h2 em { color: var(--cdx-teal-bri); }
.cdx-contact__info > p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--cdx-muted-3); max-width: 520px; }
.cdx-contact__list { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.cdx-contact__row { display: flex; gap: 16px; align-items: center; color: #fff; }
a.cdx-contact__row:hover { color: var(--cdx-teal-bri); }
.cdx-contact__row-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(14,140,130,0.18); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cdx-contact__row-txt { display: flex; flex-direction: column; }
.cdx-contact__row-lbl { font-size: 12.5px; letter-spacing: 0.1em; color: var(--cdx-muted-2); font-weight: 700; }
.cdx-contact__row-val { font-weight: 700; font-size: 17px; }

/* Formulario */
.cdx-form { background: #fff; border-radius: var(--cdx-radius); padding: clamp(26px, 3vw, 42px); display: flex; flex-direction: column; gap: 15px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.cdx-form h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--cdx-navy-2); }
.cdx-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.cdx-form input, .cdx-form select, .cdx-form textarea {
  font-family: inherit; font-size: 15px; padding: 14px 16px;
  border: 1px solid var(--cdx-input); border-radius: 10px; color: var(--cdx-ink);
  outline: none; transition: border-color .2s; width: 100%; background: #fff;
}
.cdx-form textarea { resize: vertical; min-height: 110px; }
.cdx-form input:focus, .cdx-form select:focus, .cdx-form textarea:focus { border-color: var(--cdx-teal); }
.cdx-form__note { font-size: 12.5px; color: #8b93a8; line-height: 1.5; }
.cdx-form__note a { text-decoration: underline; }
.cdx-form__consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cdx-form__consent input[type="checkbox"] {
  flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; cursor: pointer;
  accent-color: var(--cdx-teal);
}
.cdx-form__consent .cdx-form__note { margin: 0; }
.cdx-form__feedback { border-radius: 10px; padding: 13px 16px; font-size: 14.5px; font-weight: 600; display: none; }
.cdx-form__feedback.is-ok { display: block; background: #e6f6f2; color: #0a6b64; border: 1px solid #a7dcd2; }
.cdx-form__feedback.is-err { display: block; background: #fdecec; color: #b3261e; border: 1px solid #f3b7b3; }

/* ---------- Hero interior (subpáginas) ---------- */
.cdx-pagehero { position: relative; background: var(--cdx-navy); color: #fff; overflow: hidden; }
.cdx-pagehero__bg { position: absolute; inset: 0; opacity: .85; }
.cdx-pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.cdx-pagehero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,30,0.8) 0%, rgba(7,11,30,0.5) 55%, rgba(7,11,30,0.35) 100%); }
.cdx-pagehero__inner { position: relative; max-width: var(--cdx-maxw); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--cdx-pad); display: flex; flex-direction: column; gap: 16px; }
.cdx-pagehero h1 { font-size: clamp(32px, 4vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: pretty; max-width: 820px; }
.cdx-pagehero h1 em { color: var(--cdx-teal-bri); }
.cdx-pagehero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--cdx-muted-3); max-width: 640px; }
.cdx-breadcrumb { font-size: 13px; color: var(--cdx-muted-2); display: flex; gap: 8px; flex-wrap: wrap; }
.cdx-breadcrumb a { color: var(--cdx-teal-bri); }
.cdx-breadcrumb span.sep { color: #5d6690; }

/* ---------- CTA band ---------- */
.cdx-ctaband { background: var(--cdx-teal); color: #fff; }
.cdx-ctaband__inner { max-width: var(--cdx-maxw); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--cdx-pad); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cdx-ctaband h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: #fff; letter-spacing: -0.02em; max-width: 720px; text-wrap: pretty; }
.cdx-ctaband .cdx-btn--navy { background: var(--cdx-navy-2); }
.cdx-ctaband .cdx-btn--navy:hover { background: var(--cdx-navy-deep); }

/* ---------- Contenido WYSIWYG ---------- */
.cdx-prose { max-width: 820px; margin: 0 auto; }
.cdx-prose h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--cdx-navy-2); margin: 1.4em 0 .5em; letter-spacing: -0.02em; }
.cdx-prose h3 { font-size: 21px; font-weight: 800; color: var(--cdx-navy-2); margin: 1.2em 0 .4em; }
.cdx-prose p { font-size: 16.5px; line-height: 1.75; color: var(--cdx-muted); margin: 0 0 1.1em; }
.cdx-prose ul, .cdx-prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.cdx-prose li { font-size: 16.5px; line-height: 1.7; color: var(--cdx-muted); margin-bottom: .4em; }
.cdx-prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.cdx-footer { background: var(--cdx-navy-deep); color: #fff; padding: clamp(44px, 6vw, 64px) var(--cdx-pad) 30px; }
.cdx-footer__inner { max-width: var(--cdx-maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.cdx-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.cdx-footer__brand { display: flex; align-items: center; gap: 12px; }
.cdx-footer__brand img { height: 58px; width: auto; }
.cdx-footer__brand span { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.cdx-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: #fff; }
.cdx-footer__col p { margin: 0; line-height: 1.65; max-width: 380px; color: #fff; }
.cdx-footer__col a { color: var(--cdx-teal-bri); }
.cdx-footer__col a:hover { color: var(--cdx-muted-2); }
.cdx-footer__menu, .cdx-footer__col .cdx-menu-fallback { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cdx-footer__menu li, .cdx-footer__col .cdx-menu-fallback li { list-style: none; }
.cdx-footer__title { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; margin-bottom: 6px; text-transform: uppercase; }
.cdx-footer__bottom { border-top: 1px solid #171e42; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #fff; }
.cdx-footer__bottom a { color: var(--cdx-teal-bri); }
.cdx-footer__bottom a:hover { color: var(--cdx-muted-2); }
/* Crédito de desarrollo (Coodex) */
.cdx-footer__credit { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: #fff; }
.cdx-footer__credit a { display: inline-flex; align-items: center; gap: 6px; color: var(--cdx-teal-bri); font-weight: 700; }
.cdx-footer__credit a:hover { color: var(--cdx-muted-2); }
.cdx-footer__credit img { height: 17px; width: auto; display: block; }

/* ---------- Mapa incrustado (Contacto) ---------- */
.cdx-map-embed iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; display: block; }

/* ---------- Reveal ---------- */
[data-reveal] { will-change: opacity, transform; }
.cdx-reveal-init { opacity: 0; transform: translateY(28px); }
.cdx-reveal-in { opacity: 1 !important; transform: none !important; transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .cdx-reveal-init { opacity: 1; transform: none; }
  .cdx-ticker__track, .cdx-clients__track { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .cdx-topbar { display: none; }
  .cdx-nav { display: none; }
  .cdx-burger { display: flex; }
  .cdx-hero__overlay { background: linear-gradient(180deg, rgba(7,11,30,0.72) 0%, rgba(7,11,30,0.56) 50%, rgba(7,11,30,0.82) 100%); }
  .cdx-section__head { align-items: flex-start; }
}
@media (max-width: 640px) {
  /* Logo con texto también en móvil, adaptado al tamaño. */
  .cdx-brand { gap: 10px; }
  .cdx-brand img { height: 38px; }
  .cdx-brand__txt { display: flex; gap: 5px; }
  .cdx-brand__name { font-size: 15px; }
  .cdx-brand__tag { font-size: 8.5px; letter-spacing: 0.1em; }
  .cdx-hero__cta .cdx-btn { flex: 1 1 100%; justify-content: center; }
  /* Las 3 cifras del hero en una sola fila (sin aumentar la altura del bloque). */
  .cdx-hero__stats { flex-wrap: nowrap; gap: 12px; }
  .cdx-hero__stats .cdx-stat { flex: 1 1 0; min-width: 0; }
  .cdx-hero__stats .cdx-stat__num { font-size: 23px; }
  .cdx-hero__stats .cdx-stat__lbl { font-size: 11px; line-height: 1.25; }
  .cdx-ctaband__inner { flex-direction: column; align-items: flex-start; }
  .cdx-footer__bottom { flex-direction: column; }
  .cdx-service { grid-template-columns: 56px 1fr; }
  .cdx-service__ico { width: 56px; height: 56px; }
}
