/* ============================================================
     CUMPLIMIENTO Y ÉTICA — calcado del Figma
     Bitter 700 títulos · Poppins 400 cuerpo
     Navy #0E487A · azul claro #E7EDF2 · gris #404040
     ============================================================ */
  .ce { font-family: 'Poppins', system-ui, sans-serif; color: #000; }
  .ce h1, .ce h2, .ce h3, .ce h4, .ce h5, .ce h6 { font-family: 'Bitter', Georgia, serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

  /* Contenedor 1440 + padding lateral 240 (escalado por tramos) */
  .ce-pad { padding-inline: 1.25rem; }
  @media (min-width: 640px)  { .ce-pad { padding-inline: 2.5rem; } }
  @media (min-width: 900px)  { .ce-pad { padding-inline: 5rem; } }
  @media (min-width: 1200px) { .ce-pad { padding-inline: 8rem; } }
  @media (min-width: 1440px) { .ce-pad { padding-inline: 240px; } }
  .ce-bound { max-width: 1440px; margin-inline: auto; }
  /* El hero alinea su texto con el logo del nav (misma geometría que .wrap) */
  .ce-hero .ce-pad { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 3rem); }

  /* Placeholder de imagen (foto corporativa pendiente) */
  .ce-imgph {
    position: relative; overflow: hidden;
    background-color: #cfd6dd;
    background-image: repeating-linear-gradient(135deg, rgba(8,40,67,.10) 0 1px, transparent 1px 12px);
  }
  .ce-imgph__tag {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    font-family: 'Poppins', sans-serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #5d6b7a; background: rgba(255,255,255,.78); border: 1px solid rgba(8,40,67,.14);
    padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  }

  /* Botones (radio 10, padding 44/12) */
  .ce-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 500; line-height: 1;
    border-radius: 10px; padding: 12px 44px; cursor: pointer; border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .ce-btn--fill { background: #0E487A; color: #fff; }
  .ce-btn--fill:hover { background: #0b3a63; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(14,72,122,.55); }
  .ce-btn--out { background: transparent; color: #0E487A; border-color: #0E487A; }
  .ce-btn--out:hover { background: #0E487A; color: #fff; }

  /* ---------- HERO ---------- */
  .ce-hero { position: relative; isolation: isolate; min-height: 667px; display: flex; align-items: center; }
  .ce-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
    background-color: #243140;
    background-image: url('cumplimiento-hero-fondo.jpg');
    background-size: cover; background-position: center; }
  .ce-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.45); }
  .ce-hero__cap { position: absolute; right: 18px; bottom: 14px; z-index: 1;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); }
  .ce-hero__inner { width: 100%; padding-block: 80px; }
  .ce-hero__inner > div { max-width: 1025px; }
  .ce-hero h1 { color: #fff; font-size: 61px; line-height: 1.12; }
  .ce-hero p { color: #fff; font-size: 18px; line-height: 1.6; margin-top: 28px; max-width: 1025px; font-weight: 400; }

  /* ---------- LOGOS DEL PROGRAMA ---------- */
  .ce-logos { background: #fff; padding-top: 150px; padding-bottom: 150px; }
  .ce-logos__row { display: flex; align-items: center; justify-content: center; gap: 80px; flex-wrap: wrap; }

  /* Lockups con corchetes de colores */
  .lock { position: relative; padding: 34px 46px; display: inline-flex; flex-direction: column; gap: 10px; }
  .lock .cn { position: absolute; width: 30px; height: 30px; }
  .lock .cn.tl { top: 0; left: 0; border-top: 6px solid #F2B500; border-left: 6px solid #F2B500; }
  .lock .cn.tr { top: 0; right: 0; border-top: 6px solid #14B8A6; border-right: 6px solid #14B8A6; }
  .lock .cn.bl { bottom: 0; left: 0; border-bottom: 6px solid #1E5BB8; border-left: 6px solid #1E5BB8; }
  .lock .cn.br { bottom: 0; right: 0; border-bottom: 6px solid #E23B3B; border-right: 6px solid #E23B3B; }

  .lock--prog .prog__head { display: flex; align-items: center; gap: 16px; }
  .lock--prog .prog__text { display: flex; flex-direction: column; line-height: 1; }
  .lock--prog .prog__small { font-family: 'Bitter', serif; font-weight: 600; color: #0E487A; font-size: 16px; letter-spacing: .06em; }
  .lock--prog .prog__big { font-family: 'Bitter', serif; font-weight: 700; color: #0E487A; font-size: 40px; letter-spacing: -0.01em; }
  .lock--prog .prog__check { width: 46px; height: 46px; border-radius: 999px; background: #E23B3B; display: grid; place-items: center; flex: none; }
  .lock--prog .prog__check svg { width: 24px; height: 24px; }
  .lock--prog .prog__tag { font-family: 'Poppins', sans-serif; font-size: 14px; color: #0E487A; font-weight: 500; }

  .lock--etica { align-items: center; gap: 4px; padding: 38px 56px; }
  .lock--etica .etica__big { font-family: 'Bitter', serif; font-weight: 700; color: #0E487A; font-size: 56px; line-height: 1; }
  .lock--etica .etica__sub { font-family: 'Poppins', sans-serif; font-weight: 600; color: #0E487A; font-size: 13px; letter-spacing: .22em; }

  .lock--codigo { align-items: flex-start; gap: 2px; padding: 36px 50px; }
  .lock--codigo .codigo__t { font-family: 'Bitter', serif; font-weight: 700; color: #0E487A; font-size: 38px; line-height: 1.04; letter-spacing: .01em; }

  /* ---------- TARJETA FLOTANTE + VIDEOS ---------- */
  .ce-videos { background: #E7EDF2; display: flow-root; padding-top: 0; padding-bottom: 120px; }
  .ce-card {
    position: relative; z-index: 5; background: #666666; border-radius: 15px;
    box-shadow: 0 8px 16px -4px rgba(0,0,0,.08);
    padding: 64px 80px; margin-top: -110px; margin-bottom: 96px; text-align: center;
  }
  .ce-card h2 { color: #FFFFFF; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-bottom: 24px; }
  .ce-card__p { color: #FFFFFF; font-size: 16px; line-height: 1.7; max-width: 1040px; margin-inline: auto; font-weight: 400; }

  /* Títulos de sección: mismo tamaño que los títulos de Home (.sec-title) */
  .ce-videos__head, .ce-codigo h2, .ce-policies > .ce-bound > h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
  .ce-videos__head { color: #000; margin-bottom: 44px; max-width: 900px; }
  .ce-videos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .ce-video { display: flex; flex-direction: column; gap: 28px; }
  .ce-video__frame { position: relative; aspect-ratio: 16 / 9; height: auto; border-radius: 15px; overflow: hidden; cursor: pointer;
    box-shadow: 0 8px 16px -4px rgba(0,0,0,.08); }
  .ce-video__frame::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); transition: background .25s ease; }
  .ce-video__frame:hover::after { background: rgba(0,0,0,.16); }
  .ce-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 84px; height: 84px; border-radius: 999px; background: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 26px -8px rgba(0,0,0,.4); transition: transform .25s ease; }
  .ce-video__frame:hover .ce-play { transform: translate(-50%,-50%) scale(1.07); }
  .ce-play__tri { width: 0; height: 0; margin-left: 6px; border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 24px solid #0E487A; }
  .ce-video__label { text-align: center; color: #000; font-size: 25px; }

  /* ---------- CÓDIGO DE ÉTICA ---------- */
  .ce-codigo { background: #fff; padding-block: 120px; }
  .ce-codigo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .ce-codigo h2 { color: #000; margin-bottom: 24px; }
  .ce-codigo p { color: #000; font-size: 18px; line-height: 1.65; font-weight: 400; }
  .ce-codigo .ce-codigo__cta-text { margin-top: 28px; margin-bottom: 20px; }
  .ce-codigo__art { display: flex; justify-content: center; }

  /* ---------- POLÍTICAS (TABS VERTICALES) ---------- */
  .ce-policies { background: #E7EDF2; padding-block: 120px; }
  .ce-policies > .ce-bound > h2 { color: #000; margin-bottom: 56px; }
  .ce-tabs { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: stretch; }

  /* La lista (izq.) iguala la altura del contenido de la derecha; los ítems se reparten */
  .ce-tablist { position: relative; padding-right: 38px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 100%; }
  .ce-tablist::before { content: ""; position: absolute; right: 9px; top: -40px; bottom: -40px; width: 2px; background: #E2E2E2; }
  .ce-tablist__fill { position: absolute; right: 9px; width: 2px; height: 0; background: #0E487A; transition: top .35s var(--ease, cubic-bezier(.4,0,.2,1)), height .35s var(--ease, cubic-bezier(.4,0,.2,1)); }
  .ce-tab { position: relative; background: none; border: 0; text-align: right; cursor: pointer;
    font-family: 'Bitter', serif; font-weight: 700; font-size: 15px; color: #AAAAAA; line-height: 1.3;
    transition: color .2s ease; padding: 0; }
  .ce-tab::before { content: ""; position: absolute; right: -38px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 999px; border: 2px solid #E2E2E2; background: #fff; transition: all .25s ease; }
  .ce-tab:hover { color: #6f7785; }
  .ce-tab.is-active { color: #000; }
  /* Solo el punto ACTIVO se prende; los demás (incluidos los "anteriores") quedan apagados */
  .ce-tab.is-active::before { border-color: #0E487A; background: #0E487A; box-shadow: 0 0 0 4px rgba(14,72,122,.14); }

  .ce-panel { display: none; }
  .ce-panel.is-active { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: center; animation: cefade .4s ease; }
  @keyframes cefade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .ce-panel h3 { color: #000; font-size: 27px; line-height: 1.22; margin-bottom: 18px; }
  .ce-panel__para { color: #404040; font-size: 16px; line-height: 1.6; font-weight: 400; }
  .ce-panel__text { color: #000; font-size: 16px; line-height: 1.55; font-weight: 400; margin-top: 20px; margin-bottom: 22px; }
  .ce-panel__img { width: 300px; height: 376px; border-radius: 15px; flex: none; align-self: stretch; max-height: 480px; overflow: hidden; }
  .ce-panel__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; display: block; }

  /* ---------- CTA CENTRO TE ESCUCHA ---------- */
  .ce-cta { position: relative; isolation: isolate; padding-block: 120px; display: flex; align-items: center; margin: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 48px); border-radius: 28px; overflow: hidden; }
  .ce-cta::before { content: ""; position: absolute; inset: 0; z-index: -2;
    background-color: #2a3744;
    background-image: url("cumplimiento-cta-centro-te-escucha-fondo.jpg");
    background-size: cover; background-position: center right; }
  .ce-cta::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(6,20,34,.78) 0%, rgba(6,20,34,.58) 42%, rgba(6,20,34,.30) 78%, rgba(6,20,34,.18) 100%); }
  .ce-cta__inner { max-width: 768px; }
  .ce-cta p { color: #fff; font-size: 18px; line-height: 1.65; font-weight: 400; margin-bottom: 36px; }
  .ce-cta p strong { font-weight: 700; color: #fff; }
  .ce-escucha { display: inline-flex; align-items: center; gap: 18px; background: #0E487A; color: #fff;
    border-radius: 10px; padding: 12px 28px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
  .ce-escucha:hover { background: #0b3a63; transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
  .ce-escucha__logo { display: inline-flex; align-items: center; gap: 10px; }
  .ce-escucha__bubble { width: 34px; height: 34px; border-radius: 9px 9px 9px 2px; background: #fff; display: grid; place-items: center; flex: none; }
  .ce-escucha__bubble svg { width: 18px; height: 18px; }
  .ce-escucha__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
  .ce-escucha__txt b { font-family: 'Bitter', serif; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
  .ce-escucha__txt span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
  .ce-escucha__img { height: 30px; width: auto; display: block; }
  .ce-escucha__ext { width: 18px; height: 18px; opacity: .9; flex: none; }

  /* Une la última sección con el footer (sin franja en blanco) */
  body > footer[data-footer] { margin-top: 0; }

  /* ---------- LIGHTBOX ---------- */
  .ce-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.85); display: none; place-items: center; padding: 4vw; }
  .ce-lb.is-open { display: grid; }
  .ce-lb__box { position: relative; width: min(960px, 92vw); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
  .ce-lb__box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
  .ce-lb__close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
  .ce-lb__close svg { width: 20px; height: 20px; }

  /* ============================================================
     MODO OSCURO — adapta toda la página Cumplimiento y Ética
     (tokens navy del sistema; el navbar/footer ya gestionan su tema)
     ============================================================ */
  html[data-theme="dark"] .ce { color: #EAF1F8; }
  html[data-theme="dark"] .ce-logos,
  html[data-theme="dark"] .ce-codigo,
  html[data-theme="dark"] .ce-policies { background: #061E33; }
  html[data-theme="dark"] .ce-videos { background: #082843; }

  html[data-theme="dark"] .ce-card { background: #666666; box-shadow: 0 10px 28px -8px rgba(0,0,0,.55); }
  html[data-theme="dark"] .ce-card h2 { color: #fff; }
  html[data-theme="dark"] .ce-card__p { color: #fff; }
  html[data-theme="dark"] .ce-videos__head,
  html[data-theme="dark"] .ce-video__label { color: #EAF1F8; }
  html[data-theme="dark"] .ce-codigo h2,
  html[data-theme="dark"] .ce-policies > .ce-bound > h2,
  html[data-theme="dark"] .ce-panel h3 { color: #fff; }
  html[data-theme="dark"] .ce-codigo p,
  html[data-theme="dark"] .ce-panel__text { color: #EAF1F8; }
  html[data-theme="dark"] .ce-panel__para { color: #A9BBD0; }

  /* Lockups: texto navy -> claro (los corchetes de color se mantienen) */
  html[data-theme="dark"] .lock--prog .prog__small,
  html[data-theme="dark"] .lock--prog .prog__big,
  html[data-theme="dark"] .lock--prog .prog__tag,
  html[data-theme="dark"] .lock--etica .etica__big,
  html[data-theme="dark"] .lock--etica .etica__sub,
  html[data-theme="dark"] .lock--codigo .codigo__t { color: #EAF1F8; }

  /* Tabs de Políticas */
  html[data-theme="dark"] .ce-tablist::before { background: #1C3A57; }
  html[data-theme="dark"] .ce-tablist__fill { background: #5AA0E0; }
  html[data-theme="dark"] .ce-tab { color: #6E83A0; }
  html[data-theme="dark"] .ce-tab:hover { color: #A9BBD0; }
  html[data-theme="dark"] .ce-tab.is-active { color: #fff; }
  html[data-theme="dark"] .ce-tab::before { border-color: #1C3A57; background: #061E33; }
  html[data-theme="dark"] .ce-tab.is-active::before,
  html[data-theme="dark"] .ce-tab.is-done::before { border-color: #5AA0E0; background: #5AA0E0; }
  html[data-theme="dark"] .ce-tab.is-active::before { box-shadow: 0 0 0 4px rgba(90,160,224,.20); }

  /* Botones */
  html[data-theme="dark"] .ce-btn--fill { background: #2E6BA8; }
  html[data-theme="dark"] .ce-btn--fill:hover { background: #3E7BB8; }
  html[data-theme="dark"] .ce-btn--out { color: #7CB4E8; border-color: #7CB4E8; }
  html[data-theme="dark"] .ce-btn--out:hover { background: #7CB4E8; color: #061E33; }

  /* Placeholders de imagen */
  html[data-theme="dark"] .ce-imgph { background-color: #0B2F4F; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px); }
  html[data-theme="dark"] .ce-imgph__tag { color: #A9BBD0; background: rgba(6,30,51,.82); border-color: rgba(255,255,255,.16); }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 1100px) {
    .ce-hero h1 { font-size: 48px; }
    .ce-card { padding: 48px 44px; }
    .ce-panel.is-active { grid-template-columns: minmax(0,1fr) 260px; gap: 40px; }
    .ce-panel__img { width: 260px; height: 326px; }
    .ce-tabs { grid-template-columns: 210px 1fr; gap: 40px; }
  }
  @media (max-width: 900px) {
    .ce-hero { min-height: 560px; }
    .ce-hero h1 { font-size: 40px; }
    .ce-videos__grid { grid-template-columns: 1fr; gap: 48px; }
    .ce-codigo__grid { grid-template-columns: 1fr; gap: 48px; }
    .ce-codigo__art { order: 2; }
    /* Menos "subida" en móvil para que la tarjeta no se encime con el logo de
       Ética y quede un respiro entre ambos. */
    .ce-card { margin-top: -100px; }
    /* Tabs -> horizontales con contenido debajo */
    .ce-tabs { grid-template-columns: 1fr; gap: 40px; }
    /* Botones de políticas en móvil: apilados en vertical (antes horizontal con
       scroll) para que se vean todos. Mantiene los colores/estilo actuales. */
    .ce-tablist { flex-direction: column; gap: 10px; padding-left: 0; padding-right: 0; overflow: visible; }
    .ce-tablist::before, .ce-tablist__fill { display: none; }
    .ce-tab { white-space: normal; text-align: left; width: 100%; font-size: 16px; padding: 14px 18px; border: 1px solid #E2E2E2; border-radius: 12px; flex: none; line-height: 1.35; }
    .ce-tab::before { display: none; }
    .ce-tab.is-active { background: #0E487A; color: #fff; border-color: #0E487A; }
    html[data-theme="dark"] .ce-tab { border-color: #1C3A57; color: #6E83A0; }
    html[data-theme="dark"] .ce-tab.is-active { background: #2E6BA8; color: #fff; border-color: #2E6BA8; }
    .ce-panel.is-active { grid-template-columns: 1fr; gap: 36px; }
    .ce-panel__img { width: 100%; max-width: 435px; height: auto; aspect-ratio: 435/546; }
  }
  @media (max-width: 560px) {
    .ce-hero h1 { font-size: 32px; }
    .ce-hero p, .ce-card__p, .ce-codigo p, .ce-panel__para, .ce-panel__text, .ce-cta p { font-size: 16px; }
    .ce-panel h3 { font-size: 25px; }
    .ce-video__label { font-size: 21px; }
    .lock--prog .prog__big { font-size: 32px; }
    .lock--etica .etica__big { font-size: 44px; }
    .lock--codigo .codigo__t { font-size: 30px; }
    .ce-btn { width: 100%; }
  }


/* Movido desde el <style> inline de cumplimiento.blade.php (CSP) */
.ce-video__frame { background: #0a2236; }
.ce-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
