
:root{
  --v4-ink:#f7fbfc;
  --v4-dark:#0d252e;
  --v4-accent:#e8942d;
  --v4-blue:#0c7894;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.v4{margin:0;background:#fff;color:#24333a;overflow-x:hidden}
.v4 .topbar.v4-header{
  position:absolute!important;
  z-index:1000;
  top:0;left:0;right:0;
  min-height:92px;
  padding:20px clamp(24px,4vw,64px)!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  color:#fff;
}
.v4 .brand{display:flex;align-items:center;gap:12px;z-index:2}
.v4 .brand img{width:auto;max-width:170px;height:64px;object-fit:contain;filter:brightness(0) invert(1)}
.v4 .topnav{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.v4 .topnav-item{position:relative}
.v4 .topnav-parent,.v4 .topnav-submenu button{
  appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer
}
.v4 .topnav-parent{
  color:#fff!important;padding:10px 13px;border-radius:6px;font-weight:700;font-size:.78rem;
  transition:background .18s ease
}
.v4 .topnav-parent:hover,.v4 .topnav-parent.active{background:rgba(255,255,255,.15)}
.v4 .topnav-submenu{
  position:absolute;top:calc(100% + 8px);left:0;min-width:230px;padding:7px;
  background:#fff;color:#20343c;border-radius:8px;box-shadow:0 12px 26px rgba(0,0,0,.16);
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(5px);
  transition:opacity .14s ease,transform .14s ease,visibility 0s linear .14s
}
.v4 .topnav-item:hover>.topnav-submenu{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s
}
.v4 .topnav-submenu button{display:block;width:100%;text-align:left;padding:10px 11px;border-radius:5px;font-size:.78rem}
.v4 .topnav-submenu button:hover{background:#eef3f5}
.v4.submenu-click-closing .topnav-submenu{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

.v4-site{position:relative}
.v4-hero{position:relative;height:100svh;min-height:640px;overflow:hidden;background:#15313b;color:#fff;isolation:isolate}
.v4-media,.v4-reveal,.v4-reveal-media{position:absolute;inset:0}
.v4-media{z-index:1}
.v4-media-next{z-index:0}
.v4-bg-image,.v4-bg-video{width:100%;height:100%;object-fit:cover;display:block}
.v4-media-fallback{width:100%;height:100%;background:linear-gradient(135deg,#0f819d,#132f3a 58%,#e69737)}
.v4-reveal{
  --reveal-x:50%;
  --reveal-y:50%;
  --reveal-radius:180px;
  position:absolute;
  inset:0;
  z-index:3;
  opacity:0;
  pointer-events:none;
  overflow:hidden;
  clip-path:circle(var(--reveal-radius) at var(--reveal-x) var(--reveal-y));
  -webkit-clip-path:circle(var(--reveal-radius) at var(--reveal-x) var(--reveal-y));
  transition:opacity .10s linear;
}
.v4-reveal.visible{opacity:1}
.v4-reveal-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.v4-reveal-media .v4-bg-image,
.v4-reveal-media .v4-bg-video,
.v4-reveal-media .v4-media-fallback{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  display:block;
}
.v4-reveal-arrow{
  position:absolute;
  z-index:4;
  width:64px;
  height:64px;
  border-radius:50%;
  background:rgba(0,0,0,.82);
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  transition:opacity .10s linear;
}
.v4-reveal-arrow.visible{opacity:1}
.v4-reveal-arrow::before{
  content:"";
  width:20px;
  height:20px;
  border-top:7px solid #fff;
  border-right:7px solid #fff;
  border-radius:3px;
  transform:translateX(-4px) rotate(45deg);
}

.v4-shade{
  position:absolute;inset:0;z-index:6;pointer-events:none;
  background:linear-gradient(90deg,rgba(5,20,26,.62) 0%,rgba(5,20,26,.23) 48%,rgba(5,20,26,.09) 100%),
             linear-gradient(0deg,rgba(5,20,26,.44),transparent 48%);
}
.v4-hero-copy{
  position:absolute;z-index:10;left:clamp(28px,4vw,66px);bottom:clamp(74px,10vh,120px);
  width:min(790px,68vw);pointer-events:none
}
.v4-kicker{margin:0 0 14px;font-size:.75rem;text-transform:uppercase;letter-spacing:.18em;font-weight:800;color:#fff}
.v4-hero-copy h1{
  margin:0;color:#fff!important;font-size:clamp(4.2rem,8.2vw,8.7rem)!important;
  line-height:.88!important;letter-spacing:-.065em!important;font-weight:500!important;
  max-width:100%;text-wrap:balance
}
.v4-subtitle{font-size:clamp(1rem,1.35vw,1.35rem);max-width:570px;margin:22px 0 0;color:#fff;line-height:1.3}
.v4-next-label{
  position:absolute;z-index:12;right:clamp(24px,4vw,62px);bottom:58px;width:min(300px,25vw);
  border:0;border-top:1px solid rgba(255,255,255,.75);background:none;color:#fff;text-align:left;
  padding:15px 32px 4px 0;cursor:pointer
}
.v4-next-label span{display:block;text-transform:uppercase;letter-spacing:.15em;font-size:.59rem;opacity:.7;margin-bottom:5px}
.v4-next-label strong{font-size:.95rem;line-height:1.15}
.v4-next-label b{position:absolute;right:0;bottom:6px;font-size:1.4rem;font-weight:400;transition:transform .18s ease}
.v4-next-label:hover b{transform:translateX(6px)}
.v4-mouse-hint{position:absolute;z-index:10;right:clamp(24px,4vw,62px);top:112px;font-size:.66rem;letter-spacing:.08em;opacity:.78}
.v4-hero.is-changing .v4-media-current{animation:v4CurrentChange .46s ease both}
@keyframes v4CurrentChange{0%{opacity:.55;transform:scale(1.018)}100%{opacity:1;transform:scale(1)}}

.v4-content{
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  width:100%!important;height:auto!important;max-height:none!important;min-height:72vh;
  transform:none!important;opacity:1!important;background:#fff!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important
}
.v4-content.closed{display:none}
.v4-content .panel-scroll{
  width:min(1180px,calc(100% - 48px));height:auto!important;overflow:visible!important;
  margin:0 auto;padding:88px 0 110px!important
}
.v4-content .panel-close{display:none!important}
.v4-content .page-view>h1{font-size:clamp(2.5rem,5vw,5.5rem)!important;line-height:.98!important;max-width:900px}
.v4-content .panel-kicker{margin-bottom:14px!important}
.v4-content .page-lead{font-size:clamp(1.2rem,1.9vw,1.65rem);max-width:780px}
.v4-content .rich-content{max-width:1050px}
.v4 .panel-reopen{position:fixed;right:18px;bottom:18px;z-index:900}
.v4 .panel-reopen:not(.visible){display:none!important}
.v4 .whatsapp-float{z-index:1200}

@media(max-width:820px){
  .v4 .topbar.v4-header{min-height:76px;padding:10px 14px!important;align-items:flex-start}
  .v4 .brand img{height:48px;max-width:124px}
  .v4 .topnav{max-width:72%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;scrollbar-width:none}
  .v4 .topnav::-webkit-scrollbar{display:none}
  .v4 .topnav-parent{white-space:nowrap;padding:9px 10px;font-size:.72rem}
  .v4 .topnav-submenu{display:none!important}
  .v4-hero{min-height:620px;height:100svh}
  .v4-reveal,.v4-reveal-arrow,.v4-media-next,.v4-mouse-hint{display:none!important}
  .v4-shade{background:linear-gradient(0deg,rgba(5,20,26,.72),rgba(5,20,26,.05) 65%),linear-gradient(90deg,rgba(5,20,26,.28),transparent)}
  .v4-hero-copy{left:20px;right:20px;bottom:95px;width:auto}
  .v4-hero-copy h1{font-size:clamp(3rem,14vw,5.2rem)!important;line-height:.9!important}
  .v4-subtitle{font-size:.95rem;max-width:90%}
  .v4-next-label{right:18px;left:18px;bottom:25px;width:auto}
  .v4-content .panel-scroll{width:calc(100% - 36px);padding:58px 0 80px!important}
  .v4-content .page-view>h1{font-size:clamp(2.2rem,10vw,3.8rem)!important}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important}
  .v4-hero.is-changing .v4-media-current{animation:none!important}
}

/* V4.2 reveal robusto sin clip-path */
.v4-reveal.visible{outline:1px solid rgba(255,255,255,.18);outline-offset:-1px}

/* V4.6: video del reveal independiente */
.v4-reveal .v4-reveal-video{opacity:1!important;visibility:visible!important;display:block!important;filter:none!important;transform:none!important}

/* V4.7 — el modo "reducir movimiento" no debe ocultar el reveal. */
@media(prefers-reduced-motion:reduce){
  .v4-reveal{display:block!important;transition:none!important}
  .v4-reveal-ring{transition:none!important}
}


/* =========================================================
   V4.10 — CONTENIDO EDITORIAL / EDUCACIÓN SUPERIOR
   ========================================================= */
.v4-content{
  background:#f7f9fa!important;
  color:#1c2d34;
}
.v4-content .panel-scroll{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
}
.page-view{
  width:100%;
  background:#f7f9fa;
}
.editorial-intro{
  width:min(1240px,calc(100% - 80px));
  margin:0 auto;
  padding:clamp(78px,9vw,132px) 0 clamp(68px,8vw,112px);
  display:grid;
  grid-template-columns:minmax(150px,.28fr) minmax(0,.72fr);
  gap:clamp(42px,6vw,100px);
  border-bottom:1px solid #d9e1e4;
}
.editorial-meta{
  align-self:start;
  padding-top:9px;
  display:grid;
  gap:12px;
  position:sticky;
  top:26px;
}
.editorial-meta span{
  font-size:.64rem;
  font-weight:850;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#0a7893;
}
.editorial-meta strong{
  max-width:180px;
  font-size:.77rem;
  line-height:1.35;
  font-weight:700;
  color:#65767d;
}
.editorial-heading{
  min-width:0;
}
.editorial-heading h1{
  margin:0!important;
  max-width:950px!important;
  font-size:var(--cms-editorial-h1-size,clamp(3rem,6.3vw,6.7rem))!important;
  line-height:var(--cms-editorial-h1-line,.94)!important;
  letter-spacing:var(--cms-editorial-h1-spacing,-.055em)!important;
  font-weight:var(--cms-editorial-h1-weight,500)!important;
  color:var(--cms-editorial-h1-color,#17282f)!important;
  text-wrap:balance;
}
.editorial-heading .page-lead{
  max-width:800px;
  margin:clamp(30px,4vw,54px) 0 0!important;
  font-size:clamp(1.18rem,1.75vw,1.55rem)!important;
  line-height:1.48!important;
  color:#50636b;
}
.editorial-heading .page-lead p{
  margin:0 0 1em;
}
.editorial-heading .child-quick-links,
.editorial-heading .subpage-links{
  margin:0 0 28px!important;
}
.editorial-body{
  width:min(1240px,calc(100% - 80px));
  margin:0 auto;
  padding:clamp(66px,8vw,110px) 0 130px;
}
.editorial-body > * + *{
  margin-top:clamp(64px,8vw,112px)!important;
}
.rich-content.editorial-module{
  max-width:none!important;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  column-gap:clamp(48px,7vw,112px);
  row-gap:26px;
}
.rich-content.editorial-module > h2,
.rich-content.editorial-module > h3,
.rich-content.editorial-module > blockquote,
.rich-content.editorial-module > figure,
.rich-content.editorial-module > .html-columns,
.rich-content.editorial-module > table,
.rich-content.editorial-module > iframe,
.rich-content.editorial-module > video{
  grid-column:1/-1;
}
.rich-content.editorial-module > h2{
  max-width:850px;
  margin:48px 0 18px!important;
  font-size:clamp(2.1rem,3.6vw,4rem)!important;
  line-height:1!important;
  letter-spacing:-.04em;
  font-weight:520;
  color:#1c3038;
}
.rich-content.editorial-module > h2:first-child{margin-top:0!important}
.rich-content.editorial-module > h3{
  margin:28px 0 8px!important;
  font-size:clamp(1.4rem,2vw,2rem)!important;
  line-height:1.12;
  color:#0b758f;
}
.rich-content.editorial-module > p,
.rich-content.editorial-module > ul,
.rich-content.editorial-module > ol{
  margin:0!important;
  font-size:1.03rem;
  line-height:1.72;
  color:#53666e;
}
.rich-content.editorial-module a{
  color:#08758e;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
.rich-content.editorial-module blockquote{
  position:relative;
  margin:48px 0!important;
  padding:44px clamp(34px,5vw,72px)!important;
  background:#eaf1f3;
  border:0!important;
  border-left:4px solid #e89b35!important;
  font-size:clamp(1.5rem,2.3vw,2.5rem);
  line-height:1.22;
  letter-spacing:-.025em;
  color:#17323c;
}
.rich-content.editorial-module img,
.rich-content.editorial-module video,
.rich-content.editorial-module iframe,
.editorial-feature img{
  max-width:100%;
  border-radius:8px!important;
}
.rich-content.editorial-module figure{
  margin:42px 0!important;
}
.rich-content.editorial-module figure img{
  width:100%;
  display:block;
}
.rich-content.editorial-module figcaption{
  margin-top:10px;
  font-size:.72rem;
  line-height:1.4;
  color:#74858c;
}
.editorial-feature{
  margin-left:0!important;
  margin-right:0!important;
}
.editorial-feature img{
  width:100%;
  max-height:720px;
  object-fit:cover;
  display:block;
}
.service-areas,
.team-list,
.experience-section,
.experience-marquee{
  border-top:1px solid #d9e1e4;
  padding-top:clamp(44px,5vw,70px)!important;
}
.team-person,
.service-card,
.service-area{
  border-radius:8px!important;
}
.team-person{
  transition:transform .25s ease,box-shadow .25s ease;
}
@media(pointer:fine){
  .team-person:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(20,48,59,.09);
  }
}

/* Scroll reveal liviano, sin librerías */
.editorial-reveal{
  opacity:0;
  transform:translateY(22px);
  transition:
    opacity 560ms cubic-bezier(.22,.7,.2,1) var(--reveal-delay,0ms),
    transform 650ms cubic-bezier(.22,.7,.2,1) var(--reveal-delay,0ms);
}
.editorial-reveal.is-visible{
  opacity:1;
  transform:none;
}

/* Indicador vertical de lectura */
.reading-progress{
  --reading-progress:0;
  position:fixed;
  z-index:850;
  right:18px;
  top:50%;
  width:2px;
  height:112px;
  transform:translateY(-50%);
  background:#d5dee1;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.reading-progress.visible{opacity:1}
.reading-progress span{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:calc(var(--reading-progress) * 100%);
  background:#0a7893;
  transition:height .08s linear;
}
.reading-progress::before,
.reading-progress::after{
  position:absolute;
  right:8px;
  color:#73848b;
  font-size:.53rem;
  letter-spacing:.08em;
}
.reading-progress::before{content:"01";top:-4px;transform:translateY(-100%)}
.reading-progress::after{content:"↓";bottom:-7px;transform:translateY(100%);font-size:.75rem}

/* Al llegar al contenido, el hero se siente como portada y el cuerpo como documento */
.v4-content::before{
  content:"";
  display:block;
  height:8px;
  background:linear-gradient(90deg,#0a7893 0 58%,#e89b35 58% 68%,#dfe6e9 68%);
}

@media(max-width:900px){
  .editorial-intro{
    width:min(100% - 40px,760px);
    grid-template-columns:1fr;
    gap:26px;
    padding:64px 0 58px;
  }
  .editorial-meta{
    position:static;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px 18px;
  }
  .editorial-meta strong{max-width:none}
  .editorial-heading h1{font-size:var(--cms-editorial-h1-size,clamp(2.8rem,10vw,5.3rem))!important}
  .editorial-body{
    width:min(100% - 40px,760px);
    padding:58px 0 88px;
  }
  .rich-content.editorial-module{
    display:block;
  }
  .rich-content.editorial-module > * + *{
    margin-top:22px!important;
  }
  .reading-progress{right:8px;height:84px}
}
@media(max-width:600px){
  .editorial-intro,.editorial-body{width:calc(100% - 32px)}
  .editorial-heading h1{font-size:var(--cms-editorial-h1-size,clamp(2.6rem,13vw,4.3rem))!important}
  .editorial-heading .page-lead{font-size:1.08rem!important}
  .rich-content.editorial-module > p,
  .rich-content.editorial-module > ul,
  .rich-content.editorial-module > ol{font-size:1rem}
  .reading-progress{display:none}
}
@media(prefers-reduced-motion:reduce){
  .editorial-reveal{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
  .team-person{transition:none!important}
  .reading-progress span{transition:none!important}
}


/* =========================================================
   V4.11 — SCROLL REAL + BLOQUES STICKY
   ========================================================= */
html,
body.v4{
  min-height:100%;
  height:auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
body.v4{
  position:static!important;
}
.v4-site{
  min-height:100vh;
  overflow:visible!important;
}
.v4-hero{
  position:relative;
  height:100svh;
  min-height:640px;
  overflow:hidden;
}
.v4-content{
  display:block!important;
  overflow:visible!important;
  min-height:80vh;
}

/* Indicador al pie del hero para dejar claro que hay contenido debajo */
.v4-scroll-cue{
  position:absolute;
  z-index:14;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  color:#fff;
  pointer-events:auto;
  cursor:pointer;
  text-decoration:none;
  opacity:.88;
}
.v4-scroll-cue span{
  font-size:.58rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:800;
}
.v4-scroll-cue i{
  width:26px;
  height:26px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  animation:v4ScrollCue 1.6s ease-in-out infinite;
}
@keyframes v4ScrollCue{
  0%,100%{transform:translateY(-2px) rotate(45deg);opacity:.45}
  50%{transform:translateY(5px) rotate(45deg);opacity:1}
}

/* Bloque sticky editorial */
.editorial-sticky{
  display:grid;
  grid-template-columns:minmax(220px,.34fr) minmax(0,.66fr);
  gap:clamp(42px,6vw,96px);
  align-items:start;
  border-top:1px solid #d9e1e4;
  padding-top:clamp(52px,6vw,82px);
}
.editorial-sticky-side{
  position:sticky;
  top:34px;
  align-self:start;
}
.editorial-sticky-side .sticky-index{
  display:block;
  margin-bottom:16px;
  font-size:.62rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:850;
  color:#0a7893;
}
.editorial-sticky-side h2{
  margin:0!important;
  max-width:300px;
  font-size:clamp(2rem,3.3vw,3.7rem)!important;
  line-height:1!important;
  letter-spacing:-.045em;
  font-weight:520;
  color:#1c3038;
}
.editorial-sticky-side p{
  max-width:280px;
  margin:20px 0 0;
  font-size:.94rem;
  line-height:1.55;
  color:#6a7a80;
}
.editorial-sticky-main{
  min-width:0;
}
.editorial-sticky-main > * + *{
  margin-top:28px;
}
.editorial-sticky-main p,
.editorial-sticky-main li{
  font-size:1.04rem;
  line-height:1.72;
  color:#53666e;
}
.editorial-sticky-main h3{
  margin:44px 0 14px!important;
  font-size:clamp(1.45rem,2vw,2.15rem)!important;
  line-height:1.12!important;
  color:#0b758f;
}
.editorial-sticky-card{
  padding:clamp(28px,4vw,48px);
  border:1px solid #dde5e8;
  background:#fff;
  border-radius:8px;
}
.editorial-sticky-card + .editorial-sticky-card{
  margin-top:22px;
}

/* En el sticky no duplicamos H2 visibles del contenido original */
.editorial-sticky-main > h2{
  display:none!important;
}

@media(max-width:900px){
  .editorial-sticky{
    grid-template-columns:1fr;
    gap:24px;
  }
  .editorial-sticky-side{
    position:static;
  }
  .editorial-sticky-side h2{
    max-width:none;
  }
  .editorial-sticky-side p{
    max-width:none;
  }
}
@media(max-width:820px){
  .v4-scroll-cue{bottom:16px}
  .v4-scroll-cue span{display:none}
}
@media(prefers-reduced-motion:reduce){
  .v4-scroll-cue i{animation:none}
}


/* =========================================================
   V4.12 — STICKY REAL
   ========================================================= */

/* Sticky deja de funcionar si un ancestro crea un contexto de overflow/transform */
.v4-content,
.v4-content .panel-scroll,
.page-view,
.editorial-body,
.rich-content.editorial-module,
.editorial-sticky{
  overflow:visible!important;
  transform:none!important;
  filter:none!important;
  perspective:none!important;
  contain:none!important;
}

/* El bloque completo debe tener altura suficiente para que el sticky tenga recorrido */
.editorial-sticky{
  position:relative;
  align-items:stretch!important;
  min-height:max(520px,70vh);
  padding-bottom:clamp(70px,10vh,130px);
}

/* Columna fija */
.editorial-sticky-side{
  position:relative!important;
  align-self:stretch!important;
  min-height:100%;
}

/* Este es el elemento que realmente se fija */
.editorial-sticky-side-inner{
  position:sticky!important;
  position:-webkit-sticky!important;
  top:34px!important;
  align-self:start!important;
  z-index:4;
}

/* Por compatibilidad, si no existe inner, el aside sigue siendo sticky */
.editorial-sticky-side:not(:has(.editorial-sticky-side-inner)){
  position:sticky!important;
  position:-webkit-sticky!important;
  top:34px!important;
  align-self:start!important;
}

/* La columna derecha debe generar recorrido vertical real */
.editorial-sticky-main{
  min-height:70vh;
  padding-bottom:18px;
}

/* El encabezado fijo conserva una caja limpia */
.editorial-sticky-side-inner{
  padding:0 12px 20px 0;
}
.editorial-sticky-side-inner::after{
  content:"";
  display:block;
  width:42px;
  height:2px;
  margin-top:26px;
  background:#e89b35;
}

/* Evita que animaciones de entrada apliquen transform al contenedor sticky */
.editorial-sticky.editorial-reveal{
  transform:none!important;
}
.editorial-sticky.editorial-reveal:not(.is-visible){
  opacity:0;
}
.editorial-sticky.editorial-reveal.is-visible{
  opacity:1;
}

/* El contenido interno sí puede animarse */
.editorial-sticky-main > .editorial-reveal{
  transform:translateY(18px);
}
.editorial-sticky-main > .editorial-reveal.is-visible{
  transform:none;
}

@media(max-width:900px){
  .editorial-sticky{
    min-height:0;
    padding-bottom:40px;
  }
  .editorial-sticky-side,
  .editorial-sticky-side-inner{
    position:static!important;
    min-height:0;
  }
  .editorial-sticky-main{
    min-height:0;
  }
}


/* =========================================================
   V4.13 — STICKY CONTROLADO POR JS
   No depende de position:sticky del navegador.
   ========================================================= */
.editorial-sticky-side{
  position:relative!important;
  min-height:1px!important;
}
.editorial-sticky-side-inner{
  position:relative!important;
  top:auto!important;
  left:auto;
  width:auto;
  transform:none!important;
}
.editorial-sticky-side-inner.js-sticky-active{
  position:fixed!important;
  top:34px!important;
  left:var(--sticky-left)!important;
  width:var(--sticky-width)!important;
  z-index:40!important;
}
.editorial-sticky-side-inner.js-sticky-bottom{
  position:absolute!important;
  top:auto!important;
  bottom:0!important;
  left:0!important;
  width:100%!important;
}
@media(max-width:900px){
  .editorial-sticky-side-inner.js-sticky-active,
  .editorial-sticky-side-inner.js-sticky-bottom{
    position:static!important;
    width:auto!important;
  }
}


/* =========================================================
   V4.14 — PROPORCIONES STICKY / COLUMNA DE TEXTO MÁS ANCHA
   ========================================================= */
.editorial-sticky{
  grid-template-columns:minmax(220px,28%) minmax(0,72%)!important;
  gap:clamp(34px,4.5vw,72px)!important;
}
.editorial-sticky-side{
  min-width:0;
}
.editorial-sticky-side-inner h2{
  max-width:320px!important;
  font-size:clamp(2rem,3.05vw,3.45rem)!important;
  line-height:1.02!important;
}
.editorial-sticky-main{
  width:100%;
  max-width:none!important;
  min-width:0;
}
.editorial-sticky-main > p,
.editorial-sticky-main > ul,
.editorial-sticky-main > ol{
  max-width:760px;
}
.editorial-sticky-main p,
.editorial-sticky-main li{
  font-size:1.06rem!important;
  line-height:1.68!important;
}
.editorial-sticky-main h3{
  max-width:760px;
}
.editorial-sticky-main .editorial-sticky-card{
  width:100%;
  max-width:900px;
}

/* Evita que estilos previos de rich-content mantengan dos columnas estrechas dentro del sticky */
.editorial-sticky-main{
  display:block!important;
  columns:auto!important;
  column-count:auto!important;
}
.editorial-sticky-main > *{
  width:auto!important;
  grid-column:auto!important;
}

/* En pantallas amplias aprovechamos mejor el ancho */
@media(min-width:1200px){
  .editorial-body{
    width:min(1320px,calc(100% - 72px))!important;
  }
  .editorial-sticky{
    grid-template-columns:minmax(250px,30%) minmax(0,70%)!important;
  }
  .editorial-sticky-main > p,
  .editorial-sticky-main > ul,
  .editorial-sticky-main > ol,
  .editorial-sticky-main h3{
    max-width:820px;
  }
}
@media(max-width:900px){
  .editorial-sticky{
    grid-template-columns:1fr!important;
  }
  .editorial-sticky-main > p,
  .editorial-sticky-main > ul,
  .editorial-sticky-main > ol,
  .editorial-sticky-main h3{
    max-width:none;
  }
}


/* =========================================================
   V4.15 — CUERPO STICKY USA TODO EL ANCHO RESTANTE
   ========================================================= */

/* La columna derecha ocupa todo el ancho asignado por el grid */
.editorial-sticky-main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* Eliminar límites de ancho heredados en todos los bloques de texto */
.editorial-sticky-main > p,
.editorial-sticky-main > ul,
.editorial-sticky-main > ol,
.editorial-sticky-main > div,
.editorial-sticky-main > section,
.editorial-sticky-main > article,
.editorial-sticky-main > blockquote,
.editorial-sticky-main > figure,
.editorial-sticky-main > table,
.editorial-sticky-main > .editorial-sticky-card{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

/* Párrafos y listas internos también pueden usar todo el ancho */
.editorial-sticky-main p,
.editorial-sticky-main ul,
.editorial-sticky-main ol,
.editorial-sticky-main li{
  width:auto!important;
  max-width:none!important;
}

/* Subtítulos sí pueden mantenerse un poco más contenidos,
   pero sin estrechar el cuerpo */
.editorial-sticky-main h3{
  max-width:900px!important;
}

/* La proporción general deja un título fijo compacto
   y entrega el resto del lienzo al contenido */
.editorial-sticky{
  grid-template-columns:minmax(250px,27%) minmax(0,73%)!important;
}

/* Neutraliza cualquier ancho heredado desde rich-content */
.rich-content.editorial-module .editorial-sticky-main > *{
  max-width:none!important;
}
.rich-content.editorial-module .editorial-sticky-main p,
.rich-content.editorial-module .editorial-sticky-main ul,
.rich-content.editorial-module .editorial-sticky-main ol{
  grid-column:auto!important;
  columns:auto!important;
  column-count:auto!important;
}

/* En pantallas grandes aprovechamos todavía más el espacio */
@media(min-width:1200px){
  .editorial-body{
    width:min(1380px,calc(100% - 64px))!important;
  }
  .editorial-sticky{
    grid-template-columns:minmax(260px,26%) minmax(0,74%)!important;
  }
}


/* =========================================================
   V4.16 — CONTENIDO PRINCIPAL STICKY A ANCHO COMPLETO
   ========================================================= */

/*
  El Contenido principal originalmente usa .rich-content.editorial-module,
  que estaba configurado como grid de 2 columnas. Eso hacía que el bloque
  sticky completo ocupara solo media página.
*/
.rich-content.editorial-module.has-sticky-layout{
  display:block!important;
  grid-template-columns:none!important;
  column-gap:0!important;
  row-gap:0!important;
  width:100%!important;
  max-width:none!important;
}

/* Todo lo previo al primer H2 también ocupa el ancho completo */
.rich-content.editorial-module.has-sticky-layout > h3,
.rich-content.editorial-module.has-sticky-layout > p,
.rich-content.editorial-module.has-sticky-layout > ul,
.rich-content.editorial-module.has-sticky-layout > ol,
.rich-content.editorial-module.has-sticky-layout > blockquote,
.rich-content.editorial-module.has-sticky-layout > figure,
.rich-content.editorial-module.has-sticky-layout > table,
.rich-content.editorial-module.has-sticky-layout > .html-columns{
  width:100%!important;
  max-width:none!important;
  grid-column:auto!important;
}

/* El bloque H2 + sticky usa la totalidad del área editorial */
.rich-content.editorial-module.has-sticky-layout > .editorial-sticky{
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  grid-column:auto!important;
  grid-template-columns:minmax(260px,27%) minmax(0,73%)!important;
}

/* La derecha ya no puede heredar el ancho de una celda del grid exterior */
.rich-content.editorial-module.has-sticky-layout .editorial-sticky-main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.rich-content.editorial-module.has-sticky-layout .editorial-sticky-main > *,
.rich-content.editorial-module.has-sticky-layout .editorial-sticky-main p,
.rich-content.editorial-module.has-sticky-layout .editorial-sticky-main ul,
.rich-content.editorial-module.has-sticky-layout .editorial-sticky-main ol{
  max-width:none!important;
}

/* Para una lectura cómoda sin volver a estrechar la columna,
   los párrafos usan el ancho disponible del bloque. */
.rich-content.editorial-module.has-sticky-layout .editorial-sticky-main p{
  width:100%!important;
}

/* Separación clara entre contenido introductorio del principal y primer sticky */
.rich-content.editorial-module.has-sticky-layout > .editorial-sticky{
  margin-top:clamp(64px,8vw,110px)!important;
}

@media(max-width:900px){
  .rich-content.editorial-module.has-sticky-layout > .editorial-sticky{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   V4.17 — EXPANSIÓN DEL REVEAL ANTES DE NAVEGAR
   ========================================================= */
.v4-reveal{
  transition:
    opacity .10s linear,
    clip-path 720ms cubic-bezier(.18,.78,.18,1),
    -webkit-clip-path 720ms cubic-bezier(.18,.78,.18,1);
}
.v4-reveal-arrow{
  transition:opacity 160ms ease,transform 220ms ease;
}
.v4-hero.is-reveal-expanding .v4-reveal{
  opacity:1!important;
  clip-path:circle(160vmax at var(--reveal-x) var(--reveal-y))!important;
  -webkit-clip-path:circle(160vmax at var(--reveal-x) var(--reveal-y))!important;
}
.v4-hero.is-reveal-expanding .v4-reveal-arrow{
  opacity:0!important;
  transform:translate(-50%,-50%) scale(.72)!important;
}
.v4-hero.is-reveal-expanding .v4-mouse-hint,
.v4-hero.is-reveal-expanding .v4-next-label{
  opacity:0!important;
  transition:opacity 180ms ease;
}

/* Título/sutítulo salen al final de la expansión */
.v4-hero-copy{
  transition:opacity 240ms ease,transform 320ms cubic-bezier(.2,.7,.2,1);
}
.v4-hero.is-reveal-expanding .v4-hero-copy{
  opacity:0;
  transform:translateY(12px);
}


/* =========================================================
   V4.18 — EXPANSIÓN LENTA + FADE DE TEXTOS
   ========================================================= */
.v4-reveal{
  transition:
    opacity 180ms linear,
    clip-path 1200ms cubic-bezier(.16,.82,.18,1),
    -webkit-clip-path 1200ms cubic-bezier(.16,.82,.18,1)!important;
}
.v4-hero.is-reveal-expanding .v4-reveal{
  clip-path:circle(180vmax at var(--reveal-x) var(--reveal-y))!important;
  -webkit-clip-path:circle(180vmax at var(--reveal-x) var(--reveal-y))!important;
}
.v4-hero-copy{
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(.18,.72,.22,1)!important;
}
.v4-hero.is-reveal-expanding .v4-hero-copy{
  opacity:0!important;
  transform:translateY(18px)!important;
}

/* Nuevo contenido entra desde opacidad cero */
.v4-hero-copy.is-content-entering{
  opacity:0!important;
  transform:translateY(16px)!important;
}
.v4-hero-copy.is-content-visible{
  opacity:1!important;
  transform:none!important;
}

/* El siguiente estado de navegación también se devela */
.v4-next-label{
  transition:opacity 320ms ease,transform 420ms ease;
}
.v4-next-label.is-content-entering{
  opacity:0!important;
  transform:translateY(10px);
}

/* Micro fade del fondo para que se perciba el traspaso */
.v4-hero.is-reveal-switching::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
  background:#07171d;
  opacity:0;
  animation:v4SwitchFade 420ms ease both;
}
@keyframes v4SwitchFade{
  0%{opacity:0}
  45%{opacity:.14}
  100%{opacity:0}
}


/* =========================================================
   V4.19 — REVEAL 4X MÁS LENTO
   ========================================================= */
.v4-reveal{
  transition:
    opacity 300ms linear,
    clip-path 4800ms cubic-bezier(.16,.82,.18,1),
    -webkit-clip-path 4800ms cubic-bezier(.16,.82,.18,1)!important;
}


/* =========================================================
   V4.20 — TIEMPOS SEPARADOS
   Solo la expansión por clic es lenta.
   ========================================================= */

/* En estado normal, el reveal acompaña al mouse sin transición lenta de máscara */
.v4-reveal{
  transition:opacity 120ms linear!important;
}

/* SOLO durante la acción de abrir se aplica la expansión lenta */
.v4-hero.is-reveal-expanding .v4-reveal{
  transition:
    opacity 120ms linear,
    clip-path 4800ms cubic-bezier(.16,.82,.18,1),
    -webkit-clip-path 4800ms cubic-bezier(.16,.82,.18,1)!important;
}

/* Eliminamos por completo el fade oscuro de transición */
.v4-hero.is-reveal-switching::after{
  display:none!important;
  content:none!important;
  animation:none!important;
}

/* Los textos nuevos vuelven a tener una entrada ágil */
.v4-hero-copy{
  transition:
    opacity 420ms ease,
    transform 480ms cubic-bezier(.18,.72,.22,1)!important;
}
.v4-hero-copy.is-content-entering{
  opacity:0!important;
  transform:translateY(14px)!important;
}
.v4-hero-copy.is-content-visible{
  opacity:1!important;
  transform:none!important;
}

.v4-next-label{
  transition:opacity 300ms ease,transform 360ms ease!important;
}


/* =========================================================
   V4.21 — TÍTULOS NUEVOS APARECEN TEMPRANO
   ========================================================= */
.v4-hero-copy{
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(.18,.72,.22,1)!important;
}
.v4-next-label{
  transition:opacity 260ms ease,transform 320ms ease!important;
}


/* =========================================================
   V4.23 — HERO TITLES A 1 SEGUNDO
   Corrige la especificidad que los mantenía ocultos hasta
   terminar los 4,8 s de expansión.
   ========================================================= */

/* Mientras abre el círculo, el texto nuevo SÍ puede hacerse visible. */
.v4-hero.is-reveal-expanding .v4-hero-copy.is-content-visible{
  opacity:1!important;
  transform:none!important;
}

/* Fade de entrada breve, independiente de la expansión. */
.v4-hero-copy{
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(.2,.72,.22,1)!important;
}

/* V4.25: handoff directo del video reveal al video principal, sin fuente intermedia. */

/* V4.26 — limpieza editorial */
.editorial-feature img{display:none!important;}
.editorial-feature:has(img):not(:has(video)):not(:has(iframe)){
  display:none!important;margin:0!important;padding:0!important;min-height:0!important;
}
.editorial-intro{
  margin-bottom:0!important;
  padding-bottom:clamp(20px,2vw,32px)!important;
}
.editorial-body,
.editorial-intro + .editorial-body{
  margin-top:0!important;
  padding-top:0!important;
}
.rich-content.editorial-module,
.rich-content.editorial-module.has-sticky-layout{
  margin-top:0!important;
  padding-top:0!important;
}
.rich-content.editorial-module.has-sticky-layout > .editorial-sticky:first-child{
  margin-top:0!important;
  padding-top:clamp(18px,2vw,30px)!important;
}
.editorial-feature:empty{
  display:none!important;margin:0!important;padding:0!important;min-height:0!important;
}


/* =========================================================
   V4.27 — HERO FUTURO + NAVEGACIÓN FIJA
   ========================================================= */
:root{
  --hero-title-size:clamp(4.2rem,8.2vw,8.7rem);
  --hero-home-title-size:clamp(2.1rem,4.1vw,4.35rem);
  --hero-kicker-size:.75rem;
  --hero-subtitle-size:clamp(1rem,1.35vw,1.35rem);
  --hero-next-kicker-size:1.18rem;
  --hero-next-title-size:1.9rem;
  --hero-next-arrow-size:2.8rem;
}

/* Header siempre disponible; cambia de apariencia al bajar */
.v4 .topbar.v4-header{
  position:fixed!important;
  transition:background .25s ease,border-color .25s ease,box-shadow .25s ease,color .25s ease!important;
  border-bottom:1px solid transparent!important;
}
.v4.header-scrolled .topbar.v4-header{
  background:rgba(248,250,251,.92)!important;
  border-bottom-color:rgba(24,47,57,.14)!important;
  box-shadow:0 8px 26px rgba(19,42,52,.07)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#17313b!important;
}
.v4.header-scrolled .brand img{filter:none!important}
.v4.header-scrolled .topnav-parent{color:#17313b!important}

/* Hover: fondo claro + texto oscuro */
.v4 .topnav-parent:hover,
.v4 .topnav-parent:focus-visible{
  background:rgba(255,255,255,.92)!important;
  color:#17313b!important;
}
.v4.header-scrolled .topnav-parent:hover,
.v4.header-scrolled .topnav-parent:focus-visible{
  background:#fff!important;
  color:#17313b!important;
  box-shadow:0 2px 12px rgba(19,42,52,.08);
}
.v4 .topnav-submenu{z-index:1200}

/* Submenús siguen al header fijo mientras se avanza por la página */
.v4 .topnav-item.has-submenu{position:relative}
.v4 .topnav-item:hover>.topnav-submenu,
.v4 .topnav-item:focus-within>.topnav-submenu{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s
}

/* Reveal: tamaño administrable; al cruzar header se contrae suavemente */
.v4-reveal{--reveal-radius:var(--hero-reveal-radius,160px)}
.v4-reveal.is-menu-small{transition:opacity 120ms linear!important}
.v4-reveal-arrow{transition:opacity .12s ease,transform .25s ease,width .25s ease,height .25s ease!important;background-position:center;background-repeat:no-repeat;background-size:contain}
.v4-reveal-arrow.is-menu-small{opacity:0!important;width:20px;height:20px}
.v4-reveal-arrow.direction-prev{transform:translate(-50%,-50%) rotate(180deg)}
.v4-reveal-arrow.direction-next{transform:translate(-50%,-50%) rotate(0deg)}
.v4-reveal-arrow.has-custom-icon{background-color:transparent;background-size:contain}
.v4-reveal-arrow.has-custom-icon::before{display:none!important}

/* Tamaños HERO configurables */
.v4-kicker{font-size:var(--hero-kicker-size)!important}
.v4-hero-copy h1{font-size:var(--hero-title-size)!important}
.v4.scene-home .v4-hero-copy h1{font-size:var(--hero-home-title-size)!important}
.v4-subtitle{font-size:var(--hero-subtitle-size)!important}

/* “A continuación” al doble */
.v4-next-label{width:min(410px,32vw);padding-top:18px}
.v4-next-label span{font-size:var(--hero-next-kicker-size)!important;line-height:1.1;margin-bottom:8px}
.v4-next-label strong{font-size:var(--hero-next-title-size)!important;line-height:1.05}
.v4-next-label b{font-size:var(--hero-next-arrow-size)!important}

@media(max-width:820px){
  .v4.scene-home .v4-hero-copy h1{font-size:var(--hero-home-title-size)!important}
  .v4-next-label span{font-size:.8rem!important}
  .v4-next-label strong{font-size:1.15rem!important}
}


/* =========================================================
   V4.28 — REVEAL SIGUIENTE INMEDIATO + BLUR VIDEO
   ========================================================= */

/* Videos de fondo: suavizado para escalado web */
.v4-bg-video{
  filter:blur(2px);
  transform:scale(1.02);
  transform-origin:center center;
}

/* El nuevo círculo nace desde 0 al finalizar la apertura anterior */
.v4-reveal.is-reveal-born{
  transition:opacity 90ms linear!important;
}
.v4-reveal.is-reveal-born.visible{
  opacity:1!important;
}


/* =========================================================
   V4.29 — REVEAL VISUALMENTE COMPLETO + SUBMENÚ STICKY
   ========================================================= */

/* El submenú interno de cada página queda fijo bajo el menú principal */
.page-child-links-slot{
  position:relative;
  width:100%;
}
.page-child-links.is-fixed-child-nav{
  position:fixed!important;
  top:var(--child-nav-top,92px)!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:11px clamp(20px,4vw,64px)!important;
  z-index:990!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  background:rgba(248,250,251,.94)!important;
  border-bottom:1px solid rgba(24,47,57,.13)!important;
  box-shadow:0 7px 20px rgba(19,42,52,.06)!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.page-child-links.is-fixed-child-nav button{
  white-space:nowrap;
}
@media(max-width:820px){
  .page-child-links.is-fixed-child-nav{
    overflow-x:auto!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    padding:8px 12px!important;
    scrollbar-width:none;
  }
  .page-child-links.is-fixed-child-nav::-webkit-scrollbar{display:none}
}

/* El círculo nuevo nace realmente desde radio 0 */
.v4-reveal.is-reveal-born{
  --reveal-radius:0px;
}


/* =========================================================
   V4.30 — HANDOFF EXACTO DEL VIDEO REVEAL
   ========================================================= */
.v4-media-current{z-index:1!important}
.v4-media-next{z-index:0!important}
.v4-reveal{z-index:3!important}


/* =========================================================
   V4.31 — ESTABILIDAD NAVEGACIÓN + EDITORIAL + PORTAFOLIOS
   ========================================================= */

/* Submenu superior: sólo hover real. Evita quedar congelado por focus-within. */
.v4 .topnav-item:focus-within>.topnav-submenu{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(5px)!important;
}
.v4 .topnav-item:hover>.topnav-submenu{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
}
.v4.submenu-click-closing .topnav-submenu{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Submenu editorial persistente también en subpáginas */
.page-child-links .is-current{
  background:#0c7894!important;
  color:#fff!important;
}

/* H2 sticky: más compacto y claramente identificable */
.editorial-sticky-side-inner{
  border-radius:10px;
}
.editorial-sticky-side-inner h2{
  max-width:100%!important;
  font-size:clamp(1.35rem,2.05vw,2.25rem)!important;
  line-height:1.03!important;
}
.editorial-sticky-side-inner.js-sticky-active,
.editorial-sticky-side-inner.js-sticky-bottom{
  padding:18px 20px!important;
  background:#0c7894!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(12,120,148,.16);
}
.editorial-sticky-side-inner.js-sticky-active h2,
.editorial-sticky-side-inner.js-sticky-bottom h2,
.editorial-sticky-side-inner.js-sticky-active .sticky-index,
.editorial-sticky-side-inner.js-sticky-bottom .sticky-index{
  color:#fff!important;
}
.editorial-sticky-side-inner.js-sticky-active::after,
.editorial-sticky-side-inner.js-sticky-bottom::after{background:#f1a33b!important}

/* Contenido: títulos y ritmo vertical más contenidos */
.rich-content.editorial-module.has-sticky-layout > h3,
.editorial-sticky-main h3{
  font-size:clamp(1rem,1.15vw,1.25rem)!important;
  line-height:1.25!important;
  margin:24px 0 7px!important;
}
.editorial-sticky-main > * + *{margin-top:14px!important}
.editorial-sticky-main p,
.editorial-sticky-main li,
.rich-content.editorial-module p,
.rich-content.editorial-module li{
  line-height:1.55!important;
}
.editorial-sticky-main p,
.rich-content.editorial-module p{
  margin-top:0!important;
  margin-bottom:12px!important;
}
.rich-content.editorial-module.has-sticky-layout > .editorial-sticky{
  margin-top:clamp(34px,4vw,58px)!important;
  padding-top:clamp(30px,3.5vw,50px)!important;
}

/* Equipo: portafolio fotográfico con jerarquía visual */
.team-portfolio,.experience-portfolio{
  border-top:1px solid #d9e1e4;
  padding-top:clamp(36px,4vw,56px);
  margin-top:clamp(40px,5vw,72px);
}
.portfolio-section-head{display:flex;align-items:baseline;gap:16px;margin-bottom:22px}
.portfolio-section-head span{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:#0c7894;font-weight:800}
.portfolio-section-head h2{margin:0!important;font-size:clamp(1.6rem,2.3vw,2.6rem)!important;letter-spacing:-.035em}
.team-portfolio-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.team-portfolio-card{grid-column:span 3;position:relative;min-height:330px;overflow:hidden;border-radius:10px;background:#e9eef0}
.team-portfolio-card.hierarchy-1{grid-column:span 6;min-height:470px}
.team-portfolio-card.hierarchy-2{grid-column:span 4;min-height:390px}
.team-portfolio-photo,.team-portfolio-photo img{position:absolute;inset:0;width:100%;height:100%}
.team-portfolio-photo img{object-fit:cover;filter:saturate(.86)}
.team-photo-placeholder{width:100%;height:100%;background:linear-gradient(135deg,#dce6e9,#a8c1c9)}
.team-portfolio-card::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(9,31,39,.88))}
.team-portfolio-meta{position:absolute;z-index:2;left:18px;right:18px;bottom:17px;color:#fff}
.team-hierarchy{display:inline-block;margin-bottom:7px;padding:4px 7px;border-radius:4px;background:#0c7894;font-size:.54rem;letter-spacing:.12em;text-transform:uppercase;font-weight:800}
.team-portfolio-meta strong{display:block;font-size:.95rem;line-height:1.15}
.team-portfolio-card.hierarchy-1 .team-portfolio-meta strong{font-size:1.15rem}
.team-portfolio-meta small{display:block;margin-top:4px;font-size:.68rem;opacity:.82}

/* Experiencia: tarjetas visuales; logo pasa a segundo plano */
.experience-portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.experience-portfolio-card{position:relative;display:block;min-height:260px;overflow:hidden;border-radius:10px;background:#16313b;text-decoration:none}
.experience-card-bg{position:absolute;inset:-12px;background-image:var(--experience-bg);background-size:cover;background-position:center;filter:blur(1px) saturate(.65);transform:scale(1.05);opacity:.78}
.experience-card-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,29,37,.1),rgba(8,29,37,.78))}
.experience-card-content{position:absolute;z-index:2;left:18px;right:18px;bottom:18px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;color:#fff}
.experience-card-content img{width:auto!important;height:auto!important;max-width:92px!important;max-height:46px!important;object-fit:contain;background:rgba(255,255,255,.94);padding:8px;border-radius:6px}
.experience-card-content small{font-size:.66rem;line-height:1.25;text-align:right;max-width:55%;opacity:.9}

@media(max-width:900px){
  .team-portfolio-card,.team-portfolio-card.hierarchy-1,.team-portfolio-card.hierarchy-2{grid-column:span 6;min-height:360px}
  .experience-portfolio-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .team-portfolio-card,.team-portfolio-card.hierarchy-1,.team-portfolio-card.hierarchy-2{grid-column:1/-1;min-height:380px}
  .experience-portfolio-grid{grid-template-columns:1fr}
}

/* V4.32 — H2 SIEMPRE AZUL + RITMO COMPACTO */
.editorial-sticky-side-inner{padding:18px 20px!important;background:#0c7894!important;color:#fff!important;border-radius:10px!important;box-shadow:0 12px 30px rgba(12,120,148,.12)}
.editorial-sticky-side-inner h2,.editorial-sticky-side-inner .sticky-index{color:#fff!important}
.editorial-sticky-side-inner::after{background:#f1a33b!important;margin-top:18px!important}
.rich-content.editorial-module h1,.editorial-sticky-main h1,.editorial-body .page-lead h1{font-size:clamp(1.55rem,2.45vw,2.8rem)!important;line-height:1.04!important;letter-spacing:-.035em!important;margin:24px 0 14px!important}
.editorial-sticky{min-height:0!important;padding-bottom:clamp(120px,14vw,200px)!important}
.editorial-sticky-main{min-height:0!important;padding-bottom:0!important}
.rich-content.editorial-module.has-sticky-layout>.editorial-sticky{margin-top:clamp(28px,3vw,46px)!important;padding-top:clamp(22px,2.5vw,38px)!important}
.editorial-sticky:last-child{padding-bottom:clamp(90px,12vw,180px)!important}
.rich-content.editorial-module p:empty,.editorial-sticky-main p:empty,.page-lead p:empty{display:none!important;margin:0!important;padding:0!important}

/* =========================================================
   V4.33 — AJUSTES GRÁFICOS + VELO H2 + CV EQUIPO
   ========================================================= */
.rich-content.editorial-module p,.editorial-sticky-main p,.page-lead p{
  margin-bottom:var(--editorial-paragraph-gap,12px)!important;
}
.editorial-sticky-side-inner{
  margin:var(--h2-float-margin-top,0px) var(--h2-float-margin-right,0px) var(--h2-float-margin-bottom,0px) var(--h2-float-margin-left,0px)!important;
  padding:var(--h2-float-pad-y,18px) var(--h2-float-pad-x,20px)!important;
  position:relative!important;overflow:hidden!important;
}
.editorial-sticky-side-inner.js-sticky-active,.editorial-sticky-side-inner.js-sticky-bottom{
  margin:var(--h2-fixed-margin-top,0px) var(--h2-fixed-margin-right,0px) var(--h2-fixed-margin-bottom,0px) var(--h2-fixed-margin-left,0px)!important;
  padding:var(--h2-fixed-pad-y,18px) var(--h2-fixed-pad-x,20px)!important;
}
.editorial-sticky-side-inner::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:rgba(255,255,255,.5);opacity:1;
  transition:opacity 650ms cubic-bezier(.2,.7,.2,1);
}
.editorial-sticky-side-inner.js-sticky-active::before,.editorial-sticky-side-inner.js-sticky-bottom::before{opacity:0}
.editorial-sticky-side-inner>*{position:relative;z-index:1}
.team-portfolio-photo{overflow:visible!important}
.team-cv-tooltip{
  position:absolute;z-index:30;left:16px;right:16px;bottom:18px;
  padding:13px 15px;border-radius:8px;background:rgba(8,29,37,.96);color:#fff;
  font-size:.72rem;line-height:1.45;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;pointer-events:none;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.team-portfolio-card:hover .team-cv-tooltip{opacity:1;visibility:visible;transform:none}

/* =========================================================
   V4.33.1 — AJUSTE EXACTO H1 / ESPACIO STICKY / TRANSICIÓN H2
   ========================================================= */

/* El switch de ADMIN afecta exactamente el H1 de editorial-heading. */
body.hide-content-h1 .editorial-heading h1{
  display:none!important;
}

/* El control "Espacio entre párrafos" se interpreta como distancia
   entre bloques .editorial-sticky, tal como se solicitó. */
.rich-content.editorial-module p,
.editorial-sticky-main p,
.page-lead p{
  margin-bottom:12px!important;
}
.rich-content.editorial-module.has-sticky-layout > .editorial-sticky{
  padding-bottom:var(--editorial-paragraph-gap,12px)!important;
  margin-bottom:0!important;
}
.rich-content.editorial-module.has-sticky-layout > .editorial-sticky:last-child{
  padding-bottom:var(--editorial-paragraph-gap,12px)!important;
}

/* El cambio visual normal -> sticky deja de hacer un salto seco.
   Mantiene dimensiones estables y anima el desplazamiento interno. */
.editorial-sticky-side-inner{
  transition:
    transform 420ms cubic-bezier(.2,.72,.2,1),
    padding 420ms cubic-bezier(.2,.72,.2,1),
    margin 420ms cubic-bezier(.2,.72,.2,1),
    box-shadow 420ms ease,
    border-radius 420ms ease!important;
  will-change:transform;
}
.editorial-sticky-side-inner.js-sticky-active,
.editorial-sticky-side-inner.js-sticky-bottom{
  transition:
    transform 420ms cubic-bezier(.2,.72,.2,1),
    padding 420ms cubic-bezier(.2,.72,.2,1),
    margin 420ms cubic-bezier(.2,.72,.2,1),
    box-shadow 420ms ease,
    border-radius 420ms ease!important;
}

/* V4.33.2 tooltip cursor */
.team-portfolio-photo{overflow:hidden!important}
.team-cv-tooltip{position:absolute!important;z-index:50!important;left:0!important;right:auto!important;top:0!important;bottom:auto!important;width:min(300px,calc(100% - 24px))!important;padding:12px 14px!important;border:1px solid rgba(18,46,57,.12)!important;border-radius:8px!important;background:rgba(250,252,252,.97)!important;color:#18323b!important;font-size:.72rem!important;line-height:1.45!important;box-shadow:0 12px 28px rgba(10,35,44,.14)!important;opacity:0!important;visibility:hidden!important;transform:translate3d(var(--tip-x,0px),var(--tip-y,0px),0)!important;transition:opacity 220ms ease,visibility 220ms ease!important;pointer-events:none!important}
.team-portfolio-card:hover .team-cv-tooltip{opacity:0!important;visibility:hidden!important}
.team-portfolio-photo.is-cv-hover .team-cv-tooltip,.team-portfolio-card:hover .team-portfolio-photo.is-cv-hover .team-cv-tooltip{opacity:1!important;visibility:visible!important}

/* =========================================================
   V4.33.3 — EXPERIENCIA: FOTO DE FONDO + LOGO LIMPIO
   ========================================================= */
.experience-card-content img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(58%,180px)!important;
  max-height:76px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
}

/* =========================================================
   V4.33.4 — EXPERIENCIA FONDO REAL + EQUIPO UNIFORME
   ========================================================= */

/* Foto individual cargada desde ADMIN. Blur deliberadamente muy leve. */
.experience-portfolio-card .experience-card-bg{
  position:absolute!important;
  inset:-3px!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:blur(1.6px)!important;
  transform:scale(1.015)!important;
  opacity:1!important;
}
.experience-portfolio-card .experience-card-overlay{
  background:rgba(7,36,45,.18)!important;
}
.experience-portfolio-card .experience-card-content{
  position:relative!important;
  z-index:2!important;
}
.experience-portfolio-card .experience-card-content img{
  filter:none!important;
}

/* Equipo: se elimina la jerarquía visual por tamaño. */
.team-portfolio-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
}
.team-portfolio-card,
.team-portfolio-card.is-lead,
.team-portfolio-card.is-coordination,
.team-portfolio-card.is-technical,
.team-portfolio-card.is-team{
  grid-column:auto!important;
  grid-row:auto!important;
  min-height:0!important;
  height:auto!important;
}
.team-portfolio-photo,
.team-portfolio-card.is-lead .team-portfolio-photo,
.team-portfolio-card.is-coordination .team-portfolio-photo,
.team-portfolio-card.is-technical .team-portfolio-photo,
.team-portfolio-card.is-team .team-portfolio-photo{
  position:relative!important;
  width:100%!important;
  aspect-ratio:4/5!important;
  height:auto!important;
  min-height:0!important;
}
.team-portfolio-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.team-portfolio-meta{
  min-height:92px!important;
}

/* V4.33.5 */
body.submenu-content-entry.hide-content-h1 .editorial-heading h1{display:block!important}

/* =========================================================
   V4.33.7 — H2 OPACIDAD + MARGEN INFERIOR SEGURO
   ========================================================= */
/* Sin brillo/velo: H2 al 10% antes de fijarse y 100% al quedar sticky. */
.editorial-sticky-side-inner::before{
  content:none!important;
  display:none!important;
}
.editorial-sticky-side-inner{
  opacity:.10!important;
  transition:
    opacity 520ms cubic-bezier(.2,.72,.2,1),
    transform 420ms cubic-bezier(.2,.72,.2,1),
    padding 420ms cubic-bezier(.2,.72,.2,1),
    margin 420ms cubic-bezier(.2,.72,.2,1),
    box-shadow 420ms ease,
    border-radius 420ms ease!important;
}
.editorial-sticky-side-inner.js-sticky-active,
.editorial-sticky-side-inner.js-sticky-bottom{
  opacity:1!important;
}

/* Espacio inferior transversal para que el último contenido nunca quede
   oculto por barras dinámicas del navegador o por el borde del viewport. */
html{
  min-height:100%;
  scroll-padding-bottom:max(48px,env(safe-area-inset-bottom,0px));
}
body{
  min-height:100vh;
  min-height:100dvh;
  padding-bottom:max(80px,env(safe-area-inset-bottom,0px))!important;
}
#panelContent,
.panel-content,
.editorial-body{
  padding-bottom:max(110px,calc(80px + env(safe-area-inset-bottom,0px)))!important;
}
.rich-content.editorial-module:last-child,
.editorial-sticky:last-child,
.editorial-sticky-main:last-child{
  margin-bottom:max(48px,env(safe-area-inset-bottom,0px))!important;
}

/* =========================================================
   V4.33.8 — H2: SOLO TRANSICIÓN DE OPACIDAD
   ========================================================= */

/* La caja no anima posición, transform, margen ni padding.
   El único efecto visual permitido es 10% -> 100% de opacidad. */
.editorial-sticky-side-inner,
.editorial-sticky-side-inner.js-sticky-active,
.editorial-sticky-side-inner.js-sticky-bottom{
  transition:opacity 520ms ease!important;
  transform:none!important;
  animation:none!important;
}
.editorial-sticky-side-inner{
  opacity:.10!important;
}
.editorial-sticky-side-inner.js-sticky-active,
.editorial-sticky-side-inner.js-sticky-bottom{
  opacity:1!important;
}

/* =========================================================
   V4.33.9 — H2 100% DESDE MITAD VERTICAL DEL VIEWPORT
   ========================================================= */
.editorial-sticky-side-inner.js-opacity-full{
  opacity:1!important;
}

/* =========================================================
   V4.33.10 — CAJAS AZULES (H2) SIEMPRE VISIBLES
   Sin el paso 10% -> 100%: la caja se ve completa con fondo azul
   en todo momento, fija o no.
   ========================================================= */
.editorial-sticky-side-inner,
.editorial-sticky-side-inner.js-sticky-active,
.editorial-sticky-side-inner.js-sticky-bottom{
  opacity:1!important;
  transition:none!important;
}

/* =========================================================
   V4.33.11 — TEXTO DE CUERPO UNIFICADO
   La bajada (page-lead) y los párrafos/listas de todas las páginas
   usan la misma tipografía, tamaño, interlineado y color.
   Los colores, tamaños y fuentes pegados desde el editor se ignoran.
   Las cajas azules (h2 fijos) y los diagramas conservan su estilo.
   ========================================================= */
#panelContent .page-lead,
#panelContent .page-lead p,
#panelContent .rich-content p,
#panelContent .rich-content li,
#panelContent .editorial-sticky-main p,
#panelContent .editorial-sticky-main li{
  font-family:var(--cms-font-family,Inter,"Segoe UI",system-ui,Arial,sans-serif)!important;
  font-size:1.06rem!important;
  font-weight:400!important;
  line-height:1.68!important;
  letter-spacing:normal!important;
  color:#53666e!important;
}
#panelContent :is(.page-lead,.rich-content p,.rich-content li,.editorial-sticky-main p,.editorial-sticky-main li) :is(span,font){
  font-family:inherit!important;
  font-size:inherit!important;
  color:inherit!important;
  background-color:transparent!important;
}

/* =========================================================
   V4.33.12 — EQUIPO: UNA FILA CENTRADA POR JERARQUÍA
   Socios, coordinación y jefatura técnica en filas propias,
   centradas, con tarjetas del mismo ancho (4 por fila como máximo).
   ========================================================= */
.team-portfolio-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
}
.team-portfolio-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}
.team-portfolio-row > .team-portfolio-card{
  flex:0 0 calc((100% - 42px)/4)!important;
  max-width:calc((100% - 42px)/4)!important;
}
@media(max-width:900px){
  .team-portfolio-row > .team-portfolio-card{
    flex-basis:calc((100% - 14px)/2)!important;
    max-width:calc((100% - 14px)/2)!important;
  }
}
@media(max-width:560px){
  .team-portfolio-row > .team-portfolio-card{
    flex-basis:100%!important;
    max-width:360px!important;
  }
}
