:root{
  --navy:#042254;
  --navy-2:#042254;
  --navy-3:#042254;
  --gold:#c5a059;
  --gold-light:#e0c486;
  --text:#eef2f6;
  --muted:#b9c4d0;
  --line:rgba(255,255,255,.10);
  --max:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:clip;scroll-behavior:smooth}
body{
  min-height:100vh;
  color:var(--text);
  font-family:'Montserrat',sans-serif;
  overflow-x:clip;
  background:
    radial-gradient(circle at 18% 28%,rgba(31,61,102,.34),transparent 34%),
    radial-gradient(circle at 78% 22%,rgba(39,72,112,.18),transparent 28%),
    linear-gradient(145deg,#042254 0%,#042254 50%,#050d18 100%);
}
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.035;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}
a{color:inherit}

.service-header{
  width:min(calc(100% - 56px),var(--max));
  margin:0 auto;
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
  z-index:5;
}
.service-brand{
  display:flex;
  align-items:center;
  width:190px;
  height:58px;
  text-decoration:none;
}
.service-logo-img{
  width:100%;
  max-height:58px;
  object-fit:contain;
  object-position:left center;
  display:block;
}
.header-back{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#c9d2dc;
  text-decoration:none;
  text-transform:uppercase;
  font-size:.70rem;
  letter-spacing:.13em;
  font-weight:600;
  transition:color .25s ease;
}
.header-back:hover{color:var(--gold)}

.service-page{padding:48px 28px 62px}
.service-hero{
  max-width:var(--max);
  margin:0 auto;
  min-height:calc(100vh - 170px);
  display:grid;
  grid-template-columns:minmax(360px,.86fr) minmax(500px,1.14fr);
  gap:clamp(56px,6.6vw,96px);
  align-items:center;
  position:relative;
}
.brand-watermark{
  position:absolute;
  right:-7%;
  top:4%;
  width:min(540px,44vw);
  opacity:.022;
  pointer-events:none;
  filter:grayscale(1) brightness(2.8);
  z-index:0;
}
.brand-watermark img{width:100%;display:block}
.service-visual,.service-content{position:relative;z-index:1}
.service-visual{
  width:100%;
  max-width:545px;
  justify-self:start;
}
.visual-frame{
  position:relative;
  padding:6px;
  border-radius:24px;
  background:linear-gradient(145deg,rgba(197,160,89,.78),rgba(197,160,89,.11) 50%,rgba(255,255,255,.07));
  box-shadow:0 30px 78px rgba(0,0,0,.38);
}
.visual-frame::before{
  content:'';
  position:absolute;
  inset:12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:17px;
  z-index:1;
  pointer-events:none;
}
.visual-frame img{
  display:block;
  width:100%;
  aspect-ratio:4 / 5;
  object-fit:cover;
  object-position:center;
  border-radius:19px;
  background:#042254;
}
.service-content{min-width:0;max-width:700px}
.service-meta{display:flex;align-items:center;gap:14px;margin-bottom:15px}
.service-number{
  color:rgba(255,255,255,.32);
  font-size:.78rem;
  letter-spacing:.14em;
  font-weight:700;
}
.eyebrow{
  color:var(--gold);
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:700;
}
h1{
  color:#fff;
  font-family:'Playfair Display',serif;
  font-size:clamp(2.65rem,4.1vw,4.55rem);
  line-height:1.025;
  font-weight:700;
  text-wrap:balance;
  overflow-wrap:break-word;
}
.separator{
  width:145px;
  height:1px;
  margin:25px 0;
  background:linear-gradient(90deg,var(--gold),transparent);
}
.lead{
  color:#d6dde5;
  font-size:1rem;
  line-height:1.76;
  max-width:680px;
}
.capabilities-heading{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:31px;
  color:#fff;
  font-size:.73rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:700;
}
.heading-line{
  flex:1;
  height:1px;
  background:linear-gradient(90deg,rgba(197,160,89,.48),transparent);
}
.services-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px 30px;
  margin:20px 0 26px;
}
.services-list{list-style:none}
.services-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
  color:#e3e8ed;
  font-size:.89rem;
  line-height:1.55;
}
.services-list li::before{display:none!important}
.cap-mark{
  display:block;
  width:18px;
  height:1px;
  margin-top:.76em;
  flex:0 0 18px;
  background:var(--gold);
}
.service-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px;
}
.btn-primary{
  min-height:49px;
  padding:12px 29px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:.73rem;
  font-weight:700;
  background:var(--gold);
  color:#042254;
  border:1px solid var(--gold);
  transition:transform .25s ease,background .25s ease,box-shadow .25s ease;
}
.btn-primary:hover{
  transform:translateY(-2px);
  background:#d4b16b;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.back-link{
  color:#cbd4de;
  text-decoration:none;
  font-size:.77rem;
  font-weight:600;
  letter-spacing:.03em;
  border-bottom:1px solid rgba(197,160,89,.38);
  padding:6px 0;
  transition:color .25s ease,border-color .25s ease;
}
.back-link:hover{color:var(--gold-light);border-color:var(--gold)}

.features-wrap{
  max-width:1120px;
  margin:68px auto 0;
}
.features-intro{text-align:center;margin-bottom:28px}
.features-kicker{
  display:block;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.19em;
  font-size:.68rem;
  font-weight:700;
  margin-bottom:8px;
}
.features-intro h2{
  color:#fff;
  font-family:'Playfair Display',serif;
  font-size:clamp(1.75rem,2.7vw,2.55rem);
  font-weight:600;
}
.features-bar{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.feature{
  min-height:228px;
  padding:30px 24px;
  text-align:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));
  box-shadow:0 16px 42px rgba(0,0,0,.15);
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}
.feature:hover{
  transform:translateY(-4px);
  border-color:rgba(197,160,89,.34);
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.03));
}
.feature::after{display:none!important}
.icon{
  width:58px;
  height:58px;
  margin:0 auto 16px;
  border:1px solid rgba(197,160,89,.62);
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(4,34,84,.52);
}
.icon img{
  width:29px;
  height:29px;
  object-fit:contain;
  filter:invert(70%) sepia(36%) saturate(400%) hue-rotate(350deg) brightness(90%) contrast(90%);
}
.feature h3{
  color:#fff;
  font-size:.88rem;
  margin-bottom:10px;
}
.feature h3::after{
  content:'';
  display:block;
  width:28px;
  height:2px;
  margin:10px auto 0;
  border-radius:999px;
  background:var(--gold);
}
.feature p{
  color:var(--muted);
  font-size:.77rem;
  line-height:1.56;
  max-width:275px;
  margin:0 auto;
}

.service-navigation{
  width:min(calc(100% - 56px),1120px);
  margin:68px auto 0;
  padding:24px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  border-top:1px solid rgba(255,255,255,.09);
  border-bottom:1px solid rgba(255,255,255,.09);
}
.service-nav-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
  color:#fff;
  transition:color .25s ease;
}
.service-nav-next{text-align:right;align-items:flex-end}
.service-nav-label{
  color:#7f8d9d;
  font-size:.63rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:700;
}
.service-nav-item strong{
  font-family:'Playfair Display',serif;
  font-size:1.04rem;
  font-weight:600;
}
.service-nav-item:hover{color:var(--gold-light)}

.service-footer{
  width:min(calc(100% - 56px),var(--max));
  min-height:78px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#8290a0;
  font-size:.65rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.service-footer-brand{color:#b8c3cf;font-weight:700}
.footer-dot{width:4px;height:4px;border-radius:50%;background:var(--gold)}

@media(max-width:1180px){
  .service-hero{
    min-height:0;
    grid-template-columns:1fr;
    gap:40px;
    padding-top:16px;
  }
  .service-visual{
    width:min(100%,620px);
    max-width:620px;
    margin:0 auto;
    justify-self:center;
  }
  .visual-frame img{
    aspect-ratio:4 / 5;
    max-height:690px;
  }
  .service-content{
    max-width:880px;
    margin:0 auto;
    text-align:center;
  }
  .service-meta{justify-content:center}
  .separator{margin:25px auto}
  .lead{margin-inline:auto}
  .capabilities-heading{max-width:760px;margin:31px auto 0}
  .services-grid{max-width:760px;margin:20px auto 26px;text-align:left}
  .service-actions{justify-content:center}
  .brand-watermark{right:-20%;top:20%;width:620px}
}

@media(max-width:820px){
  .service-header{width:calc(100% - 38px)}
  .service-page{padding:34px 19px 48px}
  .service-visual{width:min(100%,560px)}
  .features-bar{grid-template-columns:1fr}
  .feature{min-height:0}
  .service-navigation{
    width:calc(100% - 38px);
    grid-template-columns:1fr;
    gap:18px;
  }
  .service-nav-next{text-align:left;align-items:flex-start}
}

@media(max-width:767px){
  .service-header{min-height:72px}
  .service-brand{width:155px;height:50px}
  .service-logo-img{max-height:50px}
  .header-back{font-size:.65rem}
  .service-page{padding:25px 15px 42px}
  .service-hero{gap:29px;padding-top:5px}
  .service-visual{
    width:min(100%,520px);
    max-width:520px;
  }
  .visual-frame{padding:4px;border-radius:19px}
  .visual-frame img{
    aspect-ratio:4 / 5;
    max-height:620px;
    border-radius:15px;
  }
  .visual-frame::before{inset:9px;border-radius:13px}
  h1{font-size:clamp(2.05rem,9.4vw,3rem);line-height:1.07}
  .lead{font-size:.93rem;line-height:1.68}
  .services-grid{grid-template-columns:1fr;gap:0;margin-top:17px}
  .services-list li{font-size:.88rem}
  .service-actions{flex-direction:column;gap:12px}
  .btn-primary{width:min(100%,310px)}
  .back-link{font-size:.75rem}
  .features-wrap{margin-top:50px}
  .features-intro{margin-bottom:20px}
  .service-navigation{margin-top:52px;padding:20px 0}
  .service-footer{width:calc(100% - 32px);min-height:66px}
  .brand-watermark{display:none}
}

@media(max-width:430px){
  .header-back{
    font-size:0;
    width:40px;
    height:40px;
    border:1px solid rgba(197,160,89,.28);
    border-radius:50%;
    justify-content:center;
  }
  .header-back span{font-size:1rem}
  .service-brand{width:142px}
  .service-page{padding-inline:12px}
  h1{font-size:2rem}
  .service-visual{width:100%}
  .visual-frame img{max-height:560px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* =========================================================
   FASE 10 · REFINAMIENTO RESPONSIVE Y JERARQUÍA VISUAL
   ========================================================= */

/* Se retira la marca de agua para una composición más limpia. */
.brand-watermark{display:none!important}

/* Logo oficial: superficie marfil discreta para garantizar contraste
   sin alterar los colores originales del archivo de marca. */
.service-brand{
  width:186px;
  height:62px;
  padding:7px 12px;
  border-radius:12px;
  background:rgba(248,246,240,.96);
  box-shadow:0 8px 24px rgba(0,0,0,.14);
}
.service-logo-img{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  object-position:center;
}

/* Desktop: fotografía secundaria al contenido, sin crecer en exceso. */
.service-hero{
  grid-template-columns:minmax(340px,.78fr) minmax(520px,1.22fr);
  gap:clamp(52px,6vw,88px);
}
.service-visual{
  max-width:500px;
}
.visual-frame img{
  aspect-ratio:4 / 5;
  max-height:625px;
  object-fit:cover;
}

/* Título editorial contenido. */
h1{
  font-size:clamp(2.65rem,3.65vw,4rem);
  line-height:1.06;
  max-width:760px;
}

/* Capacidades: rombo dorado pequeño, no líneas largas. */
.services-list li{
  display:grid;
  grid-template-columns:8px minmax(0,1fr);
  column-gap:13px;
  align-items:start;
  padding:0;
}
.services-list li::before{display:none!important}
.cap-mark{display:none!important}
.cap-diamond{
  display:block;
  width:6px;
  height:6px;
  margin-top:.68em;
  background:var(--gold);
  transform:rotate(45deg);
  border-radius:1px;
  box-shadow:0 0 0 3px rgba(197,160,89,.055);
}

/* El encabezado de capacidades comparte el ancho del contenido. */
.capabilities-heading,
.services-grid,
.service-actions{
  width:100%;
}

/* Laptop: se conservan dos columnas durante más tiempo. */
@media (max-width:1180px) and (min-width:961px){
  .service-hero{
    grid-template-columns:minmax(315px,.72fr) minmax(500px,1.28fr);
    gap:42px;
    align-items:center;
  }
  .service-visual{
    width:100%;
    max-width:430px;
    justify-self:center;
    margin:0;
  }
  .visual-frame img{max-height:540px}
  .service-content{
    max-width:680px;
    margin:0;
    text-align:left;
  }
  .service-meta{justify-content:flex-start}
  .separator{margin:23px 0}
  .lead{margin-inline:0}
  .capabilities-heading{max-width:none;margin:29px 0 0}
  .services-grid{max-width:none;margin:18px 0 24px;text-align:left}
  .service-actions{justify-content:flex-start}
  h1{font-size:clamp(2.45rem,4.2vw,3.35rem)}
}

/* Tablet: primero identidad y explicación, después fotografía.
   La imagen queda deliberadamente contenida. */
@media (max-width:960px){
  .service-hero{
    display:flex;
    flex-direction:column;
    gap:28px;
    min-height:0;
    padding-top:10px;
  }
  .service-content{
    display:contents;
  }
  .service-meta{
    order:1;
    align-self:center;
    justify-content:center;
    margin-bottom:-14px;
  }
  h1{
    order:2;
    align-self:center;
    width:min(100%,760px);
    text-align:center;
    font-size:clamp(2.35rem,6.2vw,3.2rem);
    line-height:1.08;
  }
  .separator{
    order:3;
    align-self:center;
    margin:-7px auto 0;
  }
  .lead{
    order:4;
    align-self:center;
    width:min(100%,720px);
    margin:0 auto;
    text-align:center;
  }
  .service-visual{
    order:5;
    width:min(100%,460px);
    max-width:460px;
    margin:4px auto 2px;
    justify-self:auto;
  }
  .visual-frame img{
    max-height:575px;
  }
  .capabilities-heading{
    order:6;
    align-self:center;
    width:min(100%,720px);
    margin:10px auto 0;
  }
  .services-grid{
    order:7;
    align-self:center;
    width:min(100%,720px);
    max-width:720px;
    margin:0 auto;
    text-align:left;
  }
  .service-actions{
    order:8;
    align-self:center;
    width:min(100%,720px);
    justify-content:center;
  }
}

/* Móvil: fotografía aún más contenida y texto protagonista. */
@media (max-width:767px){
  .service-header{
    width:calc(100% - 30px);
  }
  .service-brand{
    width:148px;
    height:54px;
    padding:6px 9px;
    border-radius:10px;
  }
  .service-page{
    padding:24px 16px 42px;
  }
  .service-hero{
    gap:23px;
    padding-top:4px;
  }
  .service-meta{
    margin-bottom:-10px;
  }
  h1{
    width:min(100%,620px);
    font-size:clamp(2rem,8.5vw,2.35rem);
    line-height:1.1;
    padding-inline:2px;
  }
  .separator{
    width:105px;
    margin:-3px auto 0;
  }
  .lead{
    width:min(100%,600px);
    font-size:.92rem;
    line-height:1.68;
  }
  .service-visual{
    width:min(92vw,380px);
    max-width:380px;
    margin:2px auto;
  }
  .visual-frame img{
    max-height:475px;
  }
  .capabilities-heading,
  .services-grid,
  .service-actions{
    width:100%;
    max-width:600px;
  }
  .capabilities-heading{
    margin-top:8px;
  }
  .services-grid{
    grid-template-columns:1fr;
    gap:0;
  }
  .services-list li{
    grid-template-columns:7px minmax(0,1fr);
    column-gap:12px;
    font-size:.88rem;
    margin-bottom:13px;
  }
  .cap-diamond{
    width:5px;
    height:5px;
    margin-top:.7em;
  }
}

/* Teléfonos pequeños: no permitir que la fotografía domine el primer scroll. */
@media (max-width:430px){
  .service-brand{
    width:136px;
    height:50px;
  }
  .service-page{padding-inline:13px}
  h1{
    font-size:clamp(1.88rem,8.8vw,2.12rem);
  }
  .service-visual{
    width:min(90vw,345px);
    max-width:345px;
  }
  .visual-frame img{
    max-height:430px;
  }
}

/* FASE 11 · LOGO ESPECÍFICO PARA CABECERA DE SERVICIOS */
.service-brand{
  width:240px;
  height:66px;
  padding:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
}
.service-logo-img{
  width:100%;
  height:100%;
  max-height:66px;
  object-fit:contain;
  object-position:left center;
  display:block;
}
@media(max-width:767px){
  .service-brand{width:195px;height:56px}
  .service-logo-img{max-height:56px}
}
@media(max-width:430px){
  .service-brand{width:170px;height:50px}
  .service-logo-img{max-height:50px}
}

/* =========================================================
   FASE 12 · REFINAMIENTO VISUAL FINAL DE SERVICIOS
   ========================================================= */

/* Fondo: un poco más de profundidad detrás del hero, sin perder sobriedad. */
body{
  background:
    radial-gradient(circle at 66% 29%,rgba(42,78,122,.22),transparent 31%),
    radial-gradient(circle at 17% 31%,rgba(31,61,102,.29),transparent 34%),
    linear-gradient(145deg,#042254 0%,#042254 51%,#050d18 100%);
}

/* Logo ligeramente más visible sin aumentar la altura del header. */
.service-brand{
  width:270px;
  height:68px;
}
.service-logo-img{max-height:68px}

/* Hero más cercano al header: conserva aire, pero aprovecha mejor el viewport. */
.service-page{
  padding-top:34px;
  padding-bottom:48px;
}
.service-hero{
  min-height:calc(100vh - 245px);
}

/* El H1 conserva Playfair, pero con escala más contenida. */
h1{
  font-size:clamp(2.55rem,3.4vw,3.72rem);
  line-height:1.075;
}

/* CTA principal y enlace secundario con jerarquía más clara. */
.service-actions{
  gap:28px;
}
.back-link{
  font-weight:500;
  color:#bac5d1;
}

/* Nuestro enfoque: tarjetas un poco más compactas y refinadas. */
.features-wrap{
  margin-top:58px;
}
.features-intro{
  margin-bottom:24px;
}
.feature{
  min-height:205px;
  padding:25px 22px;
}
.icon{
  margin-bottom:14px;
}
.feature h3{
  margin-bottom:8px;
}
.feature h3::after{
  margin-top:8px;
}

/* Acercar la navegación al bloque de enfoque. */
.service-navigation{
  margin-top:38px;
  padding:21px 0;
}
.service-nav-label{
  font-size:.61rem;
  letter-spacing:.15em;
}
.service-nav-item strong{
  font-size:1.1rem;
}

/* Footer con dos niveles, todavía minimalista. */
.service-footer{
  min-height:92px;
  flex-direction:column;
  gap:8px;
  padding:17px 0 20px;
}
.service-footer-main{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.service-footer-tagline{
  color:#66778a;
  font-size:.58rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
}

/* Laptop: reducción proporcional sin alterar la composición aprobada. */
@media (max-width:1180px) and (min-width:961px){
  .service-brand{width:245px;height:64px}
  .service-logo-img{max-height:64px}
  .service-page{padding-top:30px}
  .service-hero{min-height:0}
  h1{font-size:clamp(2.35rem,3.85vw,3.15rem)}
}

/* Tablet: respeta contenido primero + imagen contenida. */
@media (max-width:960px){
  .service-page{padding-top:27px}
  .service-hero{min-height:0}
  h1{font-size:clamp(2.25rem,5.7vw,3rem)}
  .features-wrap{margin-top:48px}
  .service-navigation{margin-top:32px}
}

@media (max-width:767px){
  .service-brand{
    width:215px;
    height:58px;
  }
  .service-logo-img{max-height:58px}
  .service-page{
    padding-top:22px;
    padding-bottom:38px;
  }
  h1{
    font-size:clamp(1.95rem,8.1vw,2.28rem);
    line-height:1.105;
  }
  .service-actions{gap:14px}
  .features-wrap{margin-top:43px}
  .feature{padding:23px 19px}
  .service-navigation{margin-top:29px}
  .service-footer{min-height:88px}
  .service-footer-tagline{
    font-size:.54rem;
    letter-spacing:.12em;
    line-height:1.6;
  }
}

@media (max-width:430px){
  .service-brand{width:188px;height:52px}
  .service-logo-img{max-height:52px}
  h1{font-size:clamp(1.82rem,8.4vw,2.05rem)}
  .service-footer-tagline{max-width:310px}
}

/* FASE 14 · CONSISTENCIA EDITORIAL */
.capabilities-heading > span:first-child{
  white-space:nowrap;
}
@media(max-width:520px){
  .capabilities-heading{
    align-items:flex-start;
  }
  .capabilities-heading > span:first-child{
    white-space:normal;
    line-height:1.35;
  }
}

/* FASE 17 · SELECTOR BILINGÜE ES / EN */
.service-header-controls{display:flex;align-items:center;gap:18px}
.service-header .language-switcher{display:inline-flex;align-items:center;padding:3px;border:1px solid rgba(197,160,89,.26);border-radius:999px;background:rgba(255,255,255,.035)}
.service-header .lang-btn{min-width:34px;height:30px;border:0;border-radius:999px;background:transparent;color:#cbd4de;font-size:.66rem;font-weight:800;letter-spacing:.08em;cursor:pointer;transition:.22s ease}
.service-header .lang-btn:hover{color:var(--gold-light)}
.service-header .lang-btn.active{background:var(--gold);color:#042254;box-shadow:0 4px 14px rgba(0,0,0,.18)}
@media(max-width:767px){.service-header-controls{gap:9px}.service-header .lang-btn{min-width:29px;height:28px;font-size:.6rem}}
@media(max-width:430px){.service-header-controls{gap:6px}.service-header .language-switcher{padding:2px}.service-header .lang-btn{min-width:27px;height:27px}.header-back{margin-left:0}}

/* FASE 19 · ACCESIBILIDAD DE MOVIMIENTO */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto !important}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

/* =========================================================
   FASE 20 · PÁGINAS INTERNAS — RESPONSIVE, UX Y CONSISTENCIA
   ========================================================= */

/* Cabecera: logo, idioma y regreso mantienen jerarquía */
.service-header{
  min-height:76px;
}
.service-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.service-header-logo{
  flex:0 1 auto;
  min-width:0;
}
.service-header-controls{
  flex:0 0 auto;
}

/* Hero interno: controlar ancho y lectura */
.service-hero-content{
  max-width:760px;
}
.service-hero h1{
  text-wrap:balance;
}
.service-hero p{
  max-width:700px;
  text-wrap:pretty;
}

/* Tarjetas/áreas: altura natural, contenido legible */
.service-area-card,
.approach-card,
.service-feature-card{
  min-width:0;
  height:100%;
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
@media (hover:hover){
  .service-area-card:hover,
  .approach-card:hover,
  .service-feature-card:hover{
    transform:translateY(-4px);
  }
}

/* CTA interno: no competir visualmente */
.service-cta a,
.service-cta .btn,
.service-primary-btn{
  transition:transform .24s ease,box-shadow .24s ease;
}
@media (hover:hover){
  .service-cta a:hover,
  .service-cta .btn:hover,
  .service-primary-btn:hover{
    transform:translateY(-2px);
  }
}

/* Tablet */
@media (max-width:980px){
  .service-header .container{
    gap:16px;
  }
  .service-hero{
    min-height:auto !important;
    padding-top:72px !important;
    padding-bottom:68px !important;
  }
  .service-hero-content{
    max-width:680px;
  }
  .service-hero h1{
    font-size:clamp(2.25rem,6vw,3.25rem) !important;
    line-height:1.08 !important;
  }
  .service-areas-grid,
  .approach-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Móvil */
@media (max-width:767px){
  .service-header{
    min-height:66px;
  }
  .service-header .container{
    gap:8px;
  }
  .service-header-logo img{
    max-width:150px;
    height:auto;
  }
  .service-header-controls{
    gap:7px;
  }
  .header-back{
    white-space:nowrap;
  }

  .service-hero{
    padding:54px 18px 50px !important;
  }
  .service-hero h1{
    font-size:clamp(1.95rem,8.7vw,2.65rem) !important;
    line-height:1.08 !important;
  }
  .service-hero p{
    font-size:1rem;
    line-height:1.7;
  }

  .service-areas-grid,
  .approach-grid{
    grid-template-columns:1fr !important;
  }
  .service-area-card,
  .approach-card,
  .service-feature-card{
    transform:none !important;
  }

  .service-navigation{
    gap:12px;
  }
  .service-navigation a{
    min-width:0;
  }
}

/* Móvil pequeño */
@media (max-width:430px){
  .service-header .container{
    padding-left:12px;
    padding-right:12px;
  }
  .service-header-logo img{
    max-width:128px;
  }
  .header-back{
    font-size:.72rem;
  }
  .service-header .lang-btn{
    min-width:26px;
    height:26px;
  }
  .service-hero{
    padding-left:14px !important;
    padding-right:14px !important;
  }
  .service-navigation{
    flex-direction:column;
  }
  .service-navigation a{
    width:100%;
    text-align:center;
  }
}

/* Accesibilidad */
.skip-link{
  position:absolute;
  left:-9999px;
}
.skip-link:focus{
  left:16px;
  top:16px;
  z-index:99999;
  padding:10px 14px;
  border-radius:8px;
  background:#042254;
  color:#fff;
}
.service-header a:focus-visible,
.service-header button:focus-visible,
.service-cta a:focus-visible,
.service-navigation a:focus-visible{
  outline:2px solid #c5a059;
  outline-offset:3px;
}

/* FASE 22 · ASISTENTE CAAL-GROUP */
.cae-chatbot{position:fixed;right:24px;bottom:104px;z-index:9998;font-family:'Montserrat',sans-serif}
.cae-chatbot-toggle{width:58px;height:58px;border:1px solid rgba(197,160,89,.55);border-radius:50%;background:linear-gradient(145deg,#0b1b31,#071426);color:#d8b66b;font-weight:800;letter-spacing:.08em;font-size:.78rem;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.24);transition:.24s ease}
.cae-chatbot-toggle:hover{transform:translateY(-2px);border-color:#c5a059;box-shadow:0 18px 38px rgba(0,0,0,.28)}
.cae-chatbot-panel{position:absolute;right:0;bottom:72px;width:min(380px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 150px));overflow:hidden;border:1px solid rgba(197,160,89,.28);border-radius:22px;background:linear-gradient(180deg,rgba(10,25,47,.985),rgba(6,15,27,.99));box-shadow:0 24px 70px rgba(0,0,0,.36);color:#eef2f6}
.cae-chatbot-panel[hidden]{display:none!important}
.cae-chatbot-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 18px 15px;border-bottom:1px solid rgba(255,255,255,.08)}
.cae-chatbot-titlewrap{display:flex;align-items:center;gap:11px;min-width:0}
.cae-chatbot-status{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:#c5a059;box-shadow:0 0 0 5px rgba(197,160,89,.10)}
.cae-chatbot-titlewrap>div{display:flex;flex-direction:column;min-width:0}
.cae-chatbot-title{color:#fff;font-size:.88rem;line-height:1.25}
.cae-chatbot-subtitle{margin-top:3px;color:#9faebd;font-size:.67rem}
.cae-chatbot-close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.055);color:#cbd4de;font-size:1.3rem;cursor:pointer}
.cae-chatbot-close:hover{color:#d8b66b;background:rgba(197,160,89,.10)}
.cae-chatbot-body{max-height:470px;overflow-y:auto;padding:17px;scrollbar-width:thin}
.cae-chatbot-message{max-width:92%;padding:12px 14px;border-radius:15px 15px 15px 5px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07)}
.cae-chatbot-message p{margin:0;color:#dce3ea;font-size:.79rem;line-height:1.55}
.cae-chatbot-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cae-chatbot-option{border:1px solid rgba(197,160,89,.30);border-radius:999px;background:rgba(197,160,89,.055);color:#e4c98f;padding:8px 11px;font-size:.68rem;line-height:1.2;cursor:pointer;transition:.2s ease}
.cae-chatbot-option:hover{border-color:rgba(197,160,89,.72);background:rgba(197,160,89,.12);color:#f1d79f}
.cae-chatbot-response{margin-top:14px}
.cae-chatbot-links{display:grid;gap:7px;margin-top:9px}
.cae-chatbot-link,.cae-chatbot-whatsapp{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:10px 12px;border-radius:11px;text-decoration:none;font-size:.71rem;font-weight:600}
.cae-chatbot-link{color:#e5ebf1;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035)}
.cae-chatbot-link::after{content:'→';color:#c5a059}
.cae-chatbot-link:hover{border-color:rgba(197,160,89,.42);background:rgba(197,160,89,.07)}
.cae-chatbot-whatsapp{margin-top:10px;justify-content:center;color:#071426;background:#c5a059}
.cae-chatbot-whatsapp:hover{background:#d3af69}
.cae-chatbot-footer{padding:11px 16px 13px;border-top:1px solid rgba(255,255,255,.07);color:#758394;text-align:center;font-size:.59rem;letter-spacing:.08em;text-transform:uppercase}
.cae-chatbot button:focus-visible,.cae-chatbot a:focus-visible{outline:2px solid #c5a059;outline-offset:2px}
@media(max-width:767px){
  .cae-chatbot{right:16px;bottom:92px}
  .cae-chatbot-toggle{width:54px;height:54px}
  .cae-chatbot-panel{position:fixed;left:16px;right:16px;bottom:88px;width:auto;max-height:min(72vh,610px);border-radius:20px}
  .cae-chatbot-body{max-height:calc(72vh - 132px)}
}
@media(max-width:430px){
  .cae-chatbot{right:12px;bottom:84px}
  .cae-chatbot-toggle{width:50px;height:50px;font-size:.7rem}
  .cae-chatbot-panel{left:10px;right:10px;bottom:76px}
  .cae-chatbot-header{padding:15px}
  .cae-chatbot-body{padding:14px}
}

/* =========================================================
   FASE 22.1 · CAMILA — CHATBOT CONVERSACIONAL
   ========================================================= */
.cae-chatbot-toggle{
  padding:0!important;
  overflow:hidden;
  background:#071426!important;
}
.cae-chatbot-toggle-avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cae-chatbot-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
  border:2px solid rgba(197,160,89,.72);
}
.cae-chatbot-mini-avatar{
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
  margin-top:2px;
}
.cae-chatbot-online{
  margin-top:3px;
  color:#7fd48a;
  font-size:.61rem;
  letter-spacing:.02em;
}
.cae-chatbot-body{
  display:flex;
  flex-direction:column;
  gap:13px;
  max-height:420px;
}
.cae-chatbot-conversation{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:255px;
  overflow-y:auto;
  padding-right:3px;
  scrollbar-width:thin;
}
.cae-chatbot-row{
  display:flex;
  gap:8px;
  align-items:flex-start;
}
.cae-chatbot-row--user{
  justify-content:flex-end;
}
.cae-chatbot-bubble{
  max-width:86%;
  padding:11px 13px;
  border-radius:15px;
  font-size:.77rem;
  line-height:1.5;
}
.cae-chatbot-bubble p{
  margin:0 0 6px;
}
.cae-chatbot-bubble p:last-child{
  margin-bottom:0;
}
.cae-chatbot-bubble--bot{
  color:#dce3ea;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.07);
  border-radius:15px 15px 15px 5px;
}
.cae-chatbot-bubble--user{
  color:#fff;
  background:linear-gradient(145deg,#15365d,#0b2442);
  border:1px solid rgba(197,160,89,.18);
  border-radius:15px 15px 5px 15px;
}
.cae-chatbot-quick{
  margin-top:0;
}
.cae-chatbot-composer{
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.075);
  background:rgba(0,0,0,.08);
}
.cae-chatbot-input{
  flex:1;
  min-width:0;
  height:44px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#fff;
  padding:0 16px;
  font:inherit;
  font-size:.76rem;
  outline:none;
}
.cae-chatbot-input::placeholder{
  color:#8796a6;
}
.cae-chatbot-input:focus{
  border-color:rgba(197,160,89,.75);
  box-shadow:0 0 0 3px rgba(197,160,89,.10);
}
.cae-chatbot-send{
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  flex:0 0 auto;
  background:#c5a059;
  color:#071426;
  font-size:1rem;
  cursor:pointer;
  transition:.2s ease;
}
.cae-chatbot-send:hover{
  transform:translateY(-1px);
  background:#d4b36c;
}
.cae-chatbot-choice-grid{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.cae-chatbot-choice,
.cae-chatbot-back{
  width:100%;
  border:1px solid rgba(197,160,89,.25);
  border-radius:10px;
  background:rgba(197,160,89,.05);
  color:#e3c78e;
  padding:9px 10px;
  text-align:left;
  font-size:.7rem;
  cursor:pointer;
}
.cae-chatbot-choice:hover,
.cae-chatbot-back:hover{
  border-color:rgba(197,160,89,.6);
  background:rgba(197,160,89,.1);
}
.cae-chatbot-inline-actions{
  margin-top:9px;
}
.cae-chatbot-back{
  text-align:center;
}
.cae-chatbot-footer{
  line-height:1.4;
  text-transform:none;
  letter-spacing:.02em;
}
@media(max-width:767px){
  .cae-chatbot-panel{
    max-height:min(78vh,680px);
  }
  .cae-chatbot-body{
    max-height:calc(78vh - 190px);
  }
  .cae-chatbot-conversation{
    max-height:calc(78vh - 355px);
  }
}

/* =========================================================
   FASE 22.2 · CAMILA — NITIDEZ Y JERARQUÍA DE AVATAR
   ========================================================= */

/* Botón flotante: mayor presencia y render limpio */
.cae-chatbot{
  right:24px;
  bottom:118px;
}
.cae-chatbot-toggle{
  width:72px !important;
  height:72px !important;
  padding:4px !important;
  overflow:visible !important;
  border:2px solid #c5a059 !important;
  background:#071426 !important;
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}
.cae-chatbot-toggle-avatar{
  width:100% !important;
  height:100% !important;
  display:block;
  border-radius:50%;
  object-fit:cover !important;
  object-position:center 34% !important;
  transform:none !important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

/* Cabecera: avatar más grande y con borde externo */
.cae-chatbot-avatar{
  width:58px !important;
  height:58px !important;
  padding:2px;
  border:2px solid #c5a059 !important;
  background:#071426;
  border-radius:50%;
  object-fit:cover !important;
  object-position:center 34% !important;
  transform:none !important;
}

/* Mensajes: tamaño suficiente para no destruir detalle */
.cae-chatbot-mini-avatar{
  width:38px !important;
  height:38px !important;
  padding:1px;
  border:1px solid rgba(197,160,89,.65);
  background:#071426;
  border-radius:50%;
  object-fit:cover !important;
  object-position:center 34% !important;
  transform:none !important;
}

/* Separación clara frente a WhatsApp */
.whatsapp-float,
.whatsapp-widget,
.whatsapp-button,
a[href*="wa.me"]{
  z-index:9997;
}

/* Tablet */
@media(max-width:767px){
  .cae-chatbot{
    right:16px;
    bottom:108px;
  }
  .cae-chatbot-toggle{
    width:64px !important;
    height:64px !important;
  }
  .cae-chatbot-avatar{
    width:54px !important;
    height:54px !important;
  }
  .cae-chatbot-mini-avatar{
    width:36px !important;
    height:36px !important;
  }
}

/* Móvil pequeño */
@media(max-width:430px){
  .cae-chatbot{
    right:12px;
    bottom:102px;
  }
  .cae-chatbot-toggle{
    width:62px !important;
    height:62px !important;
  }
  .cae-chatbot-avatar{
    width:52px !important;
    height:52px !important;
  }
  .cae-chatbot-mini-avatar{
    width:36px !important;
    height:36px !important;
  }
}

/* FASE 22.9 · EIM-CARPE DIEM · Jerarquía de áreas */
.eim-area-list .eim-area-title{
  font-weight:700;
}
.eim-area-list .eim-area-subitem{
  position:relative;
  padding-left:1.25rem;
  opacity:.92;
}
.eim-area-list .eim-area-subitem::before{
  content:"•";
  position:absolute;
  left:.35rem;
  top:0;
}

/* FASE 22.10 · EIM-CARPE DIEM · Corrección de distribución de áreas
   Evita columnas excesivamente estrechas y saltos de línea palabra por palabra. */
.eim-area-list{
  min-width:0;
  width:100%;
}
.eim-area-list .eim-area-title{
  white-space:normal;
  line-height:1.35;
  margin-bottom:1rem;
}
.eim-area-list .eim-area-subitem{
  display:block;
  width:100%;
  max-width:none;
  padding-left:1.35rem;
  padding-right:.5rem;
  margin:.7rem 0;
  line-height:1.5;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
}

/* En escritorio, repartir ambas áreas con espacio real y una separación limpia. */
@media (min-width: 901px){
  .service-page .services-grid,
  .service-detail .services-grid,
  .services-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:3.25rem;
    row-gap:1.5rem;
    align-items:start;
  }
  .eim-area-list:nth-child(2){
    padding-left:.5rem;
  }
}

/* Tablet: mantener dos columnas solo si existe ancho suficiente. */
@media (min-width: 701px) and (max-width: 900px){
  .services-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:2rem;
  }
}

/* Móvil: apilar para preservar legibilidad. */
@media (max-width:700px){
  .services-grid{
    grid-template-columns:1fr;
    gap:1.35rem;
  }
  .eim-area-list:nth-child(2){
    padding-left:0;
  }
}

/* Fase 23.18 — Especialidad Asesoría Corporativa, integrada a Práctica Gubernamental */
.corporate-specialty{margin:8px 0 28px;padding:22px 24px 20px;border:1px solid rgba(197,160,89,.32);border-radius:14px;background:rgba(255,255,255,.035)}
.corporate-specialty h2{display:flex;align-items:center;gap:12px;margin:0 0 16px;color:#f2e1b4;font-size:1.05rem;font-weight:700;line-height:1.4}
.corporate-specialty .cap-diamond{flex:0 0 auto}
.corporate-specialty-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:12px}
.corporate-specialty-list li{position:relative;padding-left:18px;color:#e3e8ed;font-size:.89rem;line-height:1.6}
.corporate-specialty-list li::before{content:'◆';position:absolute;left:0;top:.14em;font-size:.58rem;color:#c5a059}
@media(max-width:680px){.corporate-specialty{padding:19px 17px}.corporate-specialty-list{grid-template-columns:1fr;row-gap:10px}}

/* Fase 23.19: Asesoría Corporativa inmediatamente debajo de Defensa Legal */
.legal-right-column{min-width:0;display:flex;flex-direction:column;gap:18px}
.legal-right-column .corporate-specialty{margin:0;padding:18px 18px 17px}
.legal-right-column .corporate-specialty-list{grid-template-columns:minmax(0,1fr);row-gap:10px}
.legal-right-column .corporate-specialty h2{font-size:1rem;margin-bottom:12px}
@media(max-width:700px){.legal-right-column{gap:16px}}

/* Fase 23.20: orden de áreas legales y Asesoría Corporativa sin recuadro ni viñetas. */
.legal-areas-grid .corporate-specialty-plain{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;min-width:0}
.legal-areas-grid .corporate-specialty-plain h2{display:grid;grid-template-columns:8px minmax(0,1fr);gap:13px;align-items:start;color:#e3e8ed;font-size:.89rem;font-weight:700;line-height:1.55;margin:0 0 14px}
.legal-areas-grid .corporate-specialty-plain h2 .cap-diamond{margin-top:.68em}
.legal-areas-grid .corporate-specialty-entries{padding-left:21px;display:flex;flex-direction:column;gap:12px}
.legal-areas-grid .corporate-specialty-entries p{margin:0;padding:0;color:#e3e8ed;font-size:.89rem;line-height:1.55;list-style:none}
@media(max-width:700px){.legal-areas-grid .corporate-specialty-entries{padding-left:19px}.legal-areas-grid .corporate-specialty-entries p{font-size:.88rem}}

/* Fase 23.23: botón WhatsApp fijo en páginas de servicios */
.service-whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:1000;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#25d366;box-shadow:0 6px 20px rgba(0,0,0,.24);border:3px solid #fff;transition:transform .2s ease,box-shadow .2s ease}
.service-whatsapp-float img{width:34px;height:34px;object-fit:contain;display:block}
.service-whatsapp-float:hover{transform:translateY(-3px);box-shadow:0 9px 22px rgba(0,0,0,.3)}
.service-whatsapp-float:focus-visible{outline:3px solid #d6ac51;outline-offset:3px}
@media(max-width:600px){.service-whatsapp-float{right:14px;bottom:14px;width:52px;height:52px}.service-whatsapp-float img{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.service-whatsapp-float{transition:none}}


/* FASE 23.30 - Cabeceras numeradas: escritorio y movil */
.service-content .service-title-row{display:flex;align-items:baseline;justify-content:center;gap:clamp(12px,1.7vw,24px);max-width:100%;margin:0 auto 20px;}
.service-content .service-title-row .service-number{flex:0 0 auto;align-self:baseline;color:var(--gold,#cda34b);font-size:clamp(1rem,1.8vw,1.5rem);font-weight:700;letter-spacing:.05em;line-height:1.5;opacity:1;}
.service-content .service-title-row h1{flex:0 1 auto;min-width:0;max-width:100%;margin:0;font-size:clamp(2rem,4.2vw,4.25rem);line-height:1.14;overflow-wrap:normal;hyphens:none;text-wrap:balance;}
@media (min-width:1000px){.service-content .service-title-row{justify-content:flex-start;margin-left:0;margin-right:0;}.service-content .service-title-row h1{font-size:clamp(2.05rem,3.35vw,3.8rem);}}
@media (max-width:700px){.service-content .service-title-row{gap:10px;align-items:flex-start;margin-bottom:18px;}.service-content .service-title-row .service-number{font-size:1rem;line-height:1.55;padding-top:.12rem;}.service-content .service-title-row h1{font-size:clamp(1.8rem,7vw,2.8rem);line-height:1.18;}}
@media (max-width:380px){.service-content .service-title-row h1{font-size:clamp(1.55rem,6.5vw,2rem);}.service-content .service-title-row{gap:8px;}}

/* FASE 23.36 — Correcciones exclusivas para pantallas móviles.
   Mantener diseño de escritorio, paleta e imágenes intactos. */
@media (max-width:767px) {
  .service-header { width:calc(100% - 28px); min-height:70px; gap:10px; }
  .service-brand { width:clamp(105px,31vw,145px); min-width:0; height:50px; flex:0 1 auto; }
  .service-logo-img { max-height:50px; }
  .service-header-controls { flex:0 0 auto; gap:10px; min-width:0; }
  .service-header .language-switcher { flex-shrink:0; }
  /* El enlace conserva su nombre accesible, pero muestra solo la flecha en móvil. */
  .service-header .header-back { font-size:0; letter-spacing:0; width:32px; height:34px; display:inline-flex; justify-content:center; align-items:center; overflow:hidden; white-space:nowrap; flex-shrink:0; }
  .service-header .header-back span { font-size:21px; line-height:1; }
  .service-page { padding:12px 18px 38px; }
  .service-hero { display:flex; flex-direction:column; gap:24px; padding:0 !important; min-height:0; }
  .service-content { order:0; width:100%; max-width:100%; text-align:center; }
  .service-visual { order:1; width:100%; max-width:520px; margin:0 auto; }
  .service-content .service-title-row { flex-direction:column; align-items:center; justify-content:center; gap:7px; margin:0 auto 15px; }
  .service-content .service-title-row .service-number { padding:0; align-self:center; font-size:1rem; line-height:1.3; }
  .service-content .service-title-row h1 { margin:0; max-width:100%; font-size:clamp(1.85rem,8vw,2.55rem) !important; line-height:1.13 !important; text-align:center; overflow-wrap:break-word; }
  .service-content .separator { margin:18px auto 20px; }
  .service-content .lead { margin-top:0; }
  .cae-chatbot { right:12px; bottom:92px; }
  .cae-chatbot-toggle { width:52px !important; height:52px !important; }
  .cae-chatbot-toggle-avatar { width:100% !important; height:100% !important; }
}
@media (max-width:430px) {
  .service-header { width:calc(100% - 24px); gap:6px; }
  .service-brand { width:clamp(100px,29vw,124px); height:46px; }
  .service-logo-img { max-height:46px; }
  .service-header-controls { gap:6px; }
  .service-header .header-back { width:27px; }
  .service-header .lang-btn { min-width:27px; height:27px; }
  .service-page { padding:10px 15px 34px; }
  .service-content .service-title-row h1 { font-size:clamp(1.7rem,8.3vw,2.2rem) !important; }
  .cae-chatbot { right:10px; bottom:85px; }
  .cae-chatbot-toggle { width:48px !important; height:48px !important; }
}

/* FASE 23.37 — Jerarquía móvil: título, descripción, fotografía y áreas.
   Solo en páginas internas; escritorio y recursos originales sin cambios. */
@media (max-width:767px) {
  .service-page .service-hero {display:flex !important; flex-direction:column !important; gap:0 !important; align-items:stretch;}
  .service-page .service-content {display:contents;}
  .service-page .service-title-row {order:1; width:100%; margin:0 auto 4px;}
  .service-page .service-content > .separator {order:2; width:72px; margin:14px auto 18px;}
  .service-page .service-content > .lead {order:3; width:100%; max-width:34rem; margin:0 auto 24px; padding:0 5px; text-align:center; font-size:clamp(.96rem,3.9vw,1.075rem); line-height:1.65;}
  .service-page .service-visual {order:4; width:100%; max-width:520px; margin:0 auto 28px;}
  .service-page .capabilities-heading {order:5; width:100%; margin-top:0;}
  .service-page .services-grid {order:6; width:100%;}
  .service-page .service-content > .corporate-specialty,
  .service-page .service-content > .corporate-specialty-plain,
  .service-page .service-content > .legal-areas-grid,
  .service-page .service-content > .legal-right-column {order:7;}
  .service-page .service-actions {order:9; width:100%;}
  .service-page .service-title-row h1 {text-wrap:balance;}
  .service-page .visual-frame {max-width:100%;}
  .service-page .cae-chatbot {right:12px; bottom:88px;}
  .service-page .service-whatsapp-float {right:12px; bottom:16px;}
}
@media (max-width:430px) {
  .service-page .service-content > .lead {margin-bottom:21px;}
  .service-page .service-visual {margin-bottom:25px;}
  .service-page .cae-chatbot {right:12px; bottom:82px;}
}

/* FASE 23.38 — Afinación móvil de las páginas de servicios. */
@media(max-width:767px){
  .service-page .service-hero{gap:0!important;}
  .service-page .service-content > .lead{max-width:32rem;line-height:1.58;margin-bottom:22px;}
  .service-page .service-visual{margin-bottom:28px;}
  .service-page .capabilities-heading{margin-bottom:14px;}
  .service-page .services-grid{gap:20px;}
  .service-page .services-list{margin-bottom:0;}
  .service-page .services-list li{margin-bottom:13px;line-height:1.58;}
  .service-page .corporate-specialty-plain{margin-top:5px!important;}
  .service-page .corporate-specialty-entries{gap:11px;}
  .service-page .service-actions{display:flex;flex-direction:column;align-items:stretch;gap:15px;margin-top:26px;}
  .service-page .service-actions .btn-primary{width:100%;max-width:370px;align-self:center;min-height:52px;box-sizing:border-box;}
  .service-page .service-actions .back-link{align-self:center;text-align:center;min-height:36px;display:inline-flex;align-items:center;}
  .features-wrap{margin-top:36px;}
  .features-intro{margin-bottom:25px;}
  .features-bar{gap:18px;}
  .service-navigation{width:calc(100% - 44px);margin:44px auto 0;padding:25px 0;grid-template-columns:minmax(0,1fr);gap:23px;}
  .service-nav-item,.service-nav-next{align-items:flex-start;text-align:left;min-width:0;}
  .service-nav-item strong{font-size:clamp(.95rem,4.2vw,1.12rem);line-height:1.42;overflow-wrap:anywhere;}
  .service-footer{padding-bottom:130px;}
  /* Mantener los accesos flotantes discretos y sin tapar el botón de contacto. */
  body > .cae-chatbot{right:12px;bottom:100px;z-index:1001;}
  body > .cae-chatbot .cae-chatbot-toggle{width:44px!important;height:44px!important;}
  body > .service-whatsapp-float{right:12px;bottom:26px;width:46px;height:46px;z-index:1000;}
  body > .service-whatsapp-float img{width:28px;height:28px;}
}
@media(max-width:390px){
  .service-page .service-title-row h1{font-size:clamp(1.65rem,7.7vw,2.05rem)!important;}
  .service-navigation{width:calc(100% - 34px);}
}

/* FASE 23.39 — Asesoría Corporativa: acordeón SOLO móvil; traducción del título mediante language.js. */
.legal-areas-grid .corporate-mobile-toggle { display:contents; color:inherit; font:inherit; }
.legal-areas-grid .corporate-toggle-symbol { display:none; }
@media (max-width:767px) {
  .service-page .legal-areas-grid { gap:0 !important; }
  .service-page .legal-areas-grid .legal-primary-list li:last-child { margin-bottom:13px !important; }
  .service-page .legal-areas-grid .corporate-specialty-plain { margin-top:0 !important; }
  .service-page .legal-areas-grid .corporate-specialty-plain h2 { display:block; margin:0 !important; }
  .service-page .legal-areas-grid .corporate-mobile-toggle {
    display:grid; width:100%; grid-template-columns:8px minmax(0,1fr) 28px;
    gap:13px; align-items:center; margin:0; padding:0; border:0;
    background:transparent; color:#e3e8ed; font:inherit; font-weight:700;
    font-size:.89rem; line-height:1.58; text-align:left; cursor:pointer;
  }
  .service-page .legal-areas-grid .corporate-mobile-toggle .cap-diamond { margin-top:0; }
  .service-page .legal-areas-grid .corporate-toggle-symbol {
    display:block; justify-self:end; color:#cfb53b; font-size:1.45rem;
    font-weight:400; line-height:1; text-align:center;
  }
  .service-page .legal-areas-grid .corporate-mobile-toggle:focus-visible {
    outline:2px solid #cfb53b; outline-offset:5px; border-radius:3px;
  }
  .service-page .legal-areas-grid .corporate-specialty-entries {
    display:none !important; padding:13px 0 0 21px !important; gap:11px;
  }
  .service-page .legal-areas-grid .corporate-specialty-entries.corporate-expanded {
    display:flex !important;
  }
  .service-page .legal-areas-grid .corporate-specialty-entries p {
    display:grid; grid-template-columns:10px minmax(0,1fr); column-gap:8px;
    align-items:start; margin:0; line-height:1.58;
  }
  .service-page .legal-areas-grid .corporate-specialty-entries p::before {
    content:'−'; color:#cfb53b; font-weight:600;
  }
}


/* FASE 23.40 — Carrusel manual en "Nuestro enfoque", exclusivamente móvil. */
@media (max-width: 767px) {
 .features-wrap .features-bar.caal-carousel {display:flex !important;grid-template-columns:none !important;gap:12px !important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px 9% 8px 0;align-items:stretch;touch-action:pan-x pan-y;}
 .features-wrap .features-bar.caal-carousel::-webkit-scrollbar {display:none;}
 .features-wrap .features-bar.caal-carousel > .feature {box-sizing:border-box;flex:0 0 91%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;min-height:238px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
 .caal-carousel-controls {display:flex;align-items:center;justify-content:center;gap:18px;margin:17px auto 0;}
 .caal-carousel-arrow {border:1px solid rgba(207,181,59,.55);border-radius:50%;background:rgba(255,255,255,.04);color:#cfb53b;width:40px;height:40px;display:grid;place-items:center;font-size:23px;cursor:pointer;}
 .caal-carousel-arrow:disabled {opacity:.3;cursor:default;}
 .caal-carousel-dots {display:flex;gap:8px;align-items:center;justify-content:center;}
 .caal-carousel-dot {width:26px;height:18px;padding:0;border:0;background:transparent;cursor:pointer;display:grid;place-items:center;}
 .caal-carousel-dot::after {content:'';display:block;width:22px;height:3px;border-radius:3px;background:rgba(200,215,231,.45);transition:background .2s;}
 .caal-carousel-dot[aria-current="true"]::after {background:#cfb53b;}
 .caal-carousel-arrow:focus-visible,.caal-carousel-dot:focus-visible {outline:2px solid #cfb53b;outline-offset:3px;}
 .features-wrap {margin-bottom:0 !important;}
 .service-navigation {margin-top:24px !important;}
}
@media (prefers-reduced-motion:reduce) { .features-wrap .features-bar.caal-carousel {scroll-behavior:auto;} }

/* FASE 23.41 — EIM: mejoras exclusivas para celulares; escritorio sin cambios. */
@media (max-width: 767px) {
  .service-page .eim-area-list:first-child > .eim-area-subitem {
    display:grid !important; grid-template-columns:8px minmax(0,1fr);
    align-items:start; column-gap:13px; padding:0 !important; margin:0 0 13px !important;
    opacity:1; line-height:1.58;
  }
  .service-page .eim-area-list:first-child > .eim-area-subitem::before {
    content:"" !important; position:static !important; display:block;
    width:6px; height:6px; margin-top:.65em; background:#cfb53b;
    transform:rotate(45deg);
  }
  .service-page .eim-area-list:nth-child(2) {margin-top:0 !important;}
  .service-page .eim-area-list .eim-area-title {margin:0 0 13px !important;}
  .service-page .eim-courses-toggle {
    display:grid; width:100%; grid-template-columns:8px minmax(0,1fr) 28px;
    align-items:center; gap:13px; padding:0; margin:0; border:0;
    background:transparent; color:#e3e8ed; font:inherit; font-size:.89rem;
    font-weight:700; line-height:1.58; text-align:left; cursor:pointer;
  }
  .service-page .eim-courses-toggle .cap-diamond {margin:0;}
  .service-page .eim-courses-symbol {display:block; justify-self:end;
    font-size:1.45rem; font-weight:400; color:#cfb53b; line-height:1;}
  .service-page .eim-courses-toggle:focus-visible {outline:2px solid #cfb53b; outline-offset:5px;}
  .service-page .eim-area-list .eim-course-item {
    display:none !important; padding:0 0 0 21px !important; margin:0 0 13px !important;
    grid-template-columns:10px minmax(0,1fr); column-gap:8px;
    opacity:1; line-height:1.58;
  }
  .service-page .eim-area-list .eim-course-item::before {
    content:"−" !important; position:static !important; color:#cfb53b; font-weight:600;
  }
  .service-page .eim-area-list.eim-courses-open .eim-course-item {display:grid !important;}
  /* Botón más compacto y con espacio a la derecha para el acceso flotante de WhatsApp. */
  .service-page .service-actions .btn-primary {
    width:calc(100% - 82px) !important; max-width:285px !important;
    min-height:48px !important; padding:11px 15px !important;
    align-self:flex-start !important; margin-left:0 !important;
  }
}
/* El botón solo se usa como control interactivo en vista móvil. */
@media (min-width: 768px) {
  .eim-courses-toggle {display:contents; color:inherit; font:inherit;}
  .eim-courses-symbol {display:none;}
}

/* FASE 23.42 — Botón CONVERSEMOS centrado, exclusivamente móvil.
   Anula la alineación izquierda anterior de EIM y mantiene espacio para WhatsApp. */
@media (max-width: 767px) {
  .service-page .service-actions {
    display: flex;
    flex-direction: column;
    align-items: center !important;
  }
  .service-page .service-actions .btn-primary {
    width: calc(100% - 82px) !important;
    max-width: 285px !important;
    min-height: 48px !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    text-align: center;
  }
}

/* FASE 23.43 — Correcciones de las cinco capturas; SOLO celulares.
   Evita el grid aplicado a nodos de texto sin wrapper en EIM. */
@media (max-width:767px) {
  .service-page .services-grid {grid-template-columns:minmax(0,1fr) !important; width:100%; min-width:0; gap:0 !important;}
  .service-page .services-grid > .services-list {width:100%;min-width:0;max-width:100%;margin:0 !important;padding:0 !important;}
  .service-page .services-grid > .services-list > li {margin-bottom:14px !important;line-height:1.55 !important;min-width:0;overflow-wrap:break-word;}
  /* EIM: texto libre debe ocupar todo el ancho, no la primera pista del grid. */
  .service-page .eim-area-list:first-child > li.eim-area-subitem {
    display:block !important; position:relative !important; width:100% !important;
    box-sizing:border-box !important; min-width:0 !important; max-width:none !important;
    padding:0 0 0 24px !important; margin:0 0 14px !important;
    white-space:normal !important; word-break:normal !important;
    overflow-wrap:break-word !important; hyphens:manual !important;
  }
  .service-page .eim-area-list:first-child > li.eim-area-subitem::before {
    content:"" !important; position:absolute !important; left:3px !important; top:.67em !important;
    width:6px !important;height:6px !important;margin:0 !important;
    background:#cfb53b !important;transform:rotate(45deg) !important;
  }
  .service-page .eim-area-list:nth-child(2) {margin-top:0 !important;}
  .service-page .eim-area-list .eim-area-title {
    display:block !important;width:100% !important;box-sizing:border-box !important;
    margin:0 0 14px !important;padding:0 !important;
  }
  .service-page .eim-courses-toggle {
    display:grid !important;grid-template-columns:8px minmax(0,1fr) 26px !important;
    width:100% !important;min-width:0 !important;box-sizing:border-box !important;
    align-items:center !important;gap:13px !important;white-space:normal !important;
  }
  .service-page .eim-courses-label {display:block !important;min-width:0 !important;white-space:normal !important;}
  .service-page .eim-courses-symbol {width:26px !important;text-align:center !important;justify-self:end !important;}
  .service-page .eim-area-list li.eim-course-item {
    position:relative !important;display:none !important;box-sizing:border-box !important;
    width:100% !important;min-width:0 !important;max-width:none !important;
    padding:0 0 0 24px !important;margin:0 0 14px !important;
    white-space:normal !important;word-break:normal !important;
    overflow-wrap:break-word !important;hyphens:manual !important;
  }
  .service-page .eim-area-list li.eim-course-item::before {
    content:"−" !important;position:absolute !important;left:3px !important;top:0 !important;
    color:#cfb53b !important;font-weight:700 !important;
  }
  .service-page .eim-area-list.eim-courses-open li.eim-course-item {display:block !important;}
  /* CTA centrado, de ancho contenido y sin cambios de escritorio. */
  .service-page .service-actions {align-items:center !important;gap:14px !important;margin-top:24px !important;}
  .service-page .service-actions .btn-primary {
    display:inline-flex !important;align-items:center !important;justify-content:center !important;
    width:min(70%,260px) !important;max-width:260px !important;min-height:48px !important;
    margin-left:auto !important;margin-right:auto !important;align-self:center !important;
  }
  .service-page .service-actions .back-link {margin:0 auto !important;}
  /* Reducir saltos entre las áreas y permitir textos de varias líneas. */
  .service-page .services-list li {line-height:1.55 !important;}
  .service-page .services-grid {margin-bottom:12px !important;}
  .service-page .features-wrap {margin-top:34px !important;}
  .service-page .service-navigation {margin-top:22px !important;}
  .service-page .service-footer {padding-bottom:120px !important;}
}
@media (max-width:390px) {
  .service-page .service-actions .btn-primary {width:min(68%,245px) !important;}
}

/* FASE 23.44 — EIM: viñetas doradas, solo móviles. */
.eim-mobile-gold-star { display:none; }
@media (max-width:767px) {
  .service-page .eim-area-list:first-child > li.eim-area-subitem {
    display:flex !important; align-items:flex-start !important; gap:13px !important;
    padding:0 !important; width:100% !important; min-width:0 !important;
    margin:0 0 13px !important; line-height:1.58 !important;
  }
  .service-page .eim-area-list:first-child > li.eim-area-subitem::before {
    display:none !important; content:none !important;
  }
  .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-gold-star {
    display:block !important; flex:0 0 6px !important; width:6px !important;
    height:6px !important; margin-top:.65em !important; background:#cfb53b !important;
    transform:rotate(45deg) !important; border-radius:1px !important;
  }
  .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-area-text {
    display:block !important; flex:1 1 auto !important; min-width:0 !important;
    white-space:normal !important; overflow-wrap:break-word !important;
  }
}

/* FASE 23.45 — EIM: marcadores consistentes con Cursos y Talleres, solo móvil. */
.eim-course-dash { display:none; }
@media (max-width:767px) {
  .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-gold-star {
    display:block !important; flex:0 0 6px !important; width:6px !important; height:6px !important;
    margin-top:.68em !important; background:var(--gold) !important; transform:rotate(45deg) !important;
    border-radius:1px !important; box-shadow:0 0 0 3px rgba(197,160,89,.055) !important;
  }
  .service-page .eim-area-list li.eim-course-item::before { content:none !important; display:none !important; }
  .service-page .eim-area-list.eim-courses-open li.eim-course-item {
    display:flex !important; align-items:flex-start !important; gap:10px !important;
    padding:0 0 0 21px !important; min-width:0 !important; width:100% !important;
  }
  .service-page .eim-area-list li.eim-course-item > .eim-course-dash {
    display:block !important; flex:0 0 9px !important; color:var(--gold) !important;
    font-weight:700 !important; line-height:1.58 !important;
  }
  .service-page .eim-area-list li.eim-course-item > .eim-course-text {
    display:block !important; flex:1 1 auto !important; min-width:0 !important;
    overflow-wrap:break-word !important; line-height:1.58 !important;
  }
}

/* FASE 23.46 — marcador único para las cuatro áreas EIM, solo móvil. */
@media (max-width:767px) {
 .service-page .eim-area-list:first-child > li.eim-area-subitem {
   display:grid !important; grid-template-columns:8px minmax(0,1fr) !important;
   column-gap:12px !important; align-items:start !important;
   padding:0 !important; margin:0 0 13px !important;
 }
 .service-page .eim-area-list:first-child > li.eim-area-subitem::before {content:none !important;display:none !important;}
 .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-gold-star,
 .service-page .eim-courses-toggle > .cap-diamond {
   display:block !important; box-sizing:border-box !important;
   width:6px !important;height:6px !important; min-width:6px !important;
   margin:8px 0 0 1px !important;padding:0 !important;
   background:#cfb53b !important;border:0 !important;border-radius:1px !important;
   transform:rotate(45deg) !important;box-shadow:none !important;
 }
 .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-area-text {
   display:block !important;min-width:0 !important;overflow-wrap:break-word !important;
 }
 .service-page .eim-courses-toggle {
   display:grid !important; grid-template-columns:8px minmax(0,1fr) 26px !important;
   column-gap:12px !important;align-items:start !important;
 }
 .service-page .eim-courses-toggle > .eim-courses-symbol {justify-self:end !important;}
}


/* FASE 23.70 — Cabeceras editoriales compactas SOLO en celulares.
   Conserva textos, traducciones, fotografías y diseño de escritorio. */
@media screen and (max-width:767px) {
  .service-page .service-hero {
    gap:0 !important;
  }
  .service-page .service-title-row {
    gap:5px !important;
    margin:0 auto 0 !important;
    padding:0 3px !important;
    max-width:560px;
    align-items:center !important;
    text-align:center !important;
  }
  .service-page .service-title-row .service-number {
    font-size:1rem !important;
    line-height:1.3 !important;
    margin:0 0 3px !important;
    padding:0 !important;
  }
  .service-page .service-title-row h1 {
    font-size:clamp(1.85rem,8vw,2.48rem) !important;
    line-height:1.12 !important;
    letter-spacing:-.018em;
    text-align:center !important;
    text-wrap:balance;
    margin:0 !important;
  }
  .service-page .service-content > .separator {
    width:52px !important;
    height:2px !important;
    margin:15px auto 17px !important;
  }
  .service-page .service-content > .lead {
    width:100% !important;
    max-width:34rem !important;
    font-size:clamp(.94rem,3.7vw,1.03rem) !important;
    line-height:1.55 !important;
    padding:0 5px !important;
    margin:0 auto 15px !important;
    text-align:center !important;
    text-wrap:pretty;
  }
  .service-page .service-visual {
    width:100% !important;
    max-width:520px !important;
    margin:0 auto 23px !important;
  }
  .service-page .visual-frame {
    border-radius:20px !important;
    padding:4px !important;
    box-shadow:0 15px 34px rgba(0,0,0,.22) !important;
    overflow:hidden;
  }
  .service-page .visual-frame img {
    display:block;
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 4.35 !important;
    max-height:470px !important;
    object-fit:cover !important;
    object-position:center 38%;
    border-radius:16px !important;
  }
  .service-page .visual-frame::before {
    border-radius:16px !important;
  }
}
@media screen and (max-width:390px) {
  .service-page .service-title-row h1 {
    font-size:clamp(1.75rem,7.8vw,2.12rem) !important;
  }
  .service-page .visual-frame img {
    aspect-ratio:4 / 4.65 !important;
  }
}
@media (prefers-reduced-motion:no-preference) and (max-width:767px) {
  .service-page .service-visual {
    animation:caalHeroReveal2370 .55s ease-out both;
  }
  @keyframes caalHeroReveal2370 {
    from {opacity:.75;transform:translateY(9px);}
    to {opacity:1;transform:translateY(0);}
  }
}


/* FASE 23.82 — Áreas de servicios: alineación y acordeones también en escritorio.
   Las reglas están restringidas a escritorio para preservar la experiencia móvil. */
@media (min-width:768px) {
 .service-page .services-grid.legal-areas-grid,
 .service-page .service-content .services-grid:has(> .eim-area-list) {
   display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
   gap:clamp(24px,3vw,54px) !important; align-items:start !important;
 }
 .service-page .legal-areas-grid > *,
 .service-page .services-grid > .eim-area-list {min-width:0 !important; width:100% !important;}
 .service-page .legal-areas-grid .legal-primary-list {list-style:none !important; padding:0 !important; margin:0 !important;}
 .service-page .legal-areas-grid .legal-primary-list > li {
   display:grid !important; grid-template-columns:8px minmax(0,1fr) !important;
   column-gap:13px !important; align-items:start !important;
   padding:0 !important; margin:0 0 14px !important;
   line-height:1.58 !important; position:relative !important;
 }
 .service-page .legal-areas-grid .legal-primary-list > li::before,
 .service-page .eim-area-list:first-child > li.eim-area-subitem::before {content:none !important;display:none !important;}
 .service-page .legal-areas-grid .legal-primary-list > li > .cap-diamond,
 .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-gold-star,
 .service-page .legal-areas-grid .corporate-mobile-toggle > .cap-diamond,
 .service-page .eim-courses-toggle > .cap-diamond {
   display:block !important; position:static !important; box-sizing:border-box !important;
   width:6px !important;height:6px !important;min-width:6px !important;
   margin:0 !important; margin-top:.64em !important; padding:0 !important;
   background:#cda557 !important; transform:rotate(45deg) !important;
   border:0 !important; border-radius:1px !important;box-shadow:none !important;
 }
 .service-page .legal-areas-grid .corporate-specialty-plain {margin:0 !important; padding:0 !important; min-width:0 !important;}
 .service-page .legal-areas-grid .corporate-specialty-plain h2 {margin:0 !important; padding:0 !important;}
 .service-page .legal-areas-grid .corporate-mobile-toggle,
 .service-page .eim-courses-toggle {
   display:grid !important; width:100% !important;
   grid-template-columns:8px minmax(0,1fr) 24px !important;
   gap:13px !important; align-items:start !important;
   margin:0 !important; padding:0 !important; border:0 !important;
   background:transparent !important; color:#e3e8ed !important;
   font:inherit !important; font-size:inherit !important; font-weight:700 !important;
   line-height:1.58 !important; text-align:left !important; cursor:pointer !important;
 }
 .service-page .legal-areas-grid .corporate-toggle-symbol,
 .service-page .eim-courses-symbol {
   display:block !important; width:24px !important; justify-self:end !important;
   text-align:center !important; color:#d6aa52 !important;
   font-size:22px !important; font-weight:400 !important; line-height:1.1 !important;
 }
 .service-page .legal-areas-grid .corporate-mobile-toggle:focus-visible,
 .service-page .eim-courses-toggle:focus-visible {outline:2px solid #d6aa52 !important;outline-offset:5px !important;}
 .service-page .legal-areas-grid .corporate-specialty-entries {
   display:none !important; flex-direction:column !important; gap:12px !important;
   padding:14px 0 0 21px !important; margin:0 !important;
 }
 .service-page .legal-areas-grid .corporate-specialty-entries.corporate-expanded {display:flex !important;}
 .service-page .legal-areas-grid .corporate-specialty-entries p {
   display:grid !important;grid-template-columns:9px minmax(0,1fr) !important;
   column-gap:9px !important;align-items:start !important;
   padding:0 !important;margin:0 !important;line-height:1.58 !important;
 }
 .service-page .legal-areas-grid .corporate-specialty-entries p::before {
   content:'−' !important;display:block !important;color:#d6aa52 !important;font-weight:700 !important;
 }
 .service-page .eim-area-list:first-child {padding:0 !important;margin:0 !important;list-style:none !important;}
 .service-page .eim-area-list:first-child > li.eim-area-subitem {
   display:grid !important; grid-template-columns:8px minmax(0,1fr) !important;
   column-gap:13px !important;align-items:start !important;
   padding:0 !important; margin:0 0 14px !important;
   line-height:1.58 !important; min-width:0 !important;
 }
 .service-page .eim-area-list:first-child > li.eim-area-subitem > .eim-mobile-area-text {
   display:block !important;min-width:0 !important;overflow-wrap:break-word !important;
 }
 .service-page .eim-area-list:nth-child(2) {padding:0 !important;margin:0 !important;list-style:none !important;}
 .service-page .eim-area-list .eim-area-title {margin:0 !important;padding:0 !important;list-style:none !important;}
 .service-page .eim-area-list li.eim-course-item {display:none !important;}
 .service-page .eim-area-list.eim-courses-open li.eim-course-item {
   display:grid !important;grid-template-columns:9px minmax(0,1fr) !important;
   column-gap:9px !important;align-items:start !important;
   margin:12px 0 0 21px !important;padding:0 !important;line-height:1.58 !important;
 }
 .service-page .eim-area-list li.eim-course-item::before {content:none !important;display:none !important;}
 .service-page .eim-area-list li.eim-course-item > .eim-course-dash {
   display:block !important;color:#d6aa52 !important;font-weight:700 !important;
 }
 .service-page .eim-area-list li.eim-course-item > .eim-course-text {display:block !important;min-width:0 !important;}
}

/* FASE 23.83 — Fix: control de expansión sin superposición ni títulos comprimidos.
   Exclusivamente escritorio; los estilos móviles se mantienen intactos. */
@media screen and (min-width:768px) {
  .service-page .legal-areas-grid .corporate-specialty-plain,
  .service-page .legal-areas-grid .corporate-specialty-plain > h2,
  .service-page .eim-area-list:nth-child(2),
  .service-page .eim-area-list:nth-child(2) > li.eim-area-title {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  .service-page .legal-areas-grid .corporate-mobile-toggle,
  .service-page .eim-area-list .eim-courses-toggle {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    gap:13px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    box-sizing:border-box !important;
    padding:0 !important;
    position:relative !important;
    text-align:left !important;
  }
  .service-page .legal-areas-grid .corporate-mobile-toggle > .cap-diamond,
  .service-page .eim-area-list .eim-courses-toggle > .cap-diamond {
    flex:0 0 6px !important;
    margin-top:.68em !important;
  }
  .service-page .legal-areas-grid .corporate-mobile-toggle > .corporate-toggle-label,
  .service-page .eim-area-list .eim-courses-toggle > .eim-courses-label {
    display:block !important;
    position:static !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    text-align:left !important;
    line-height:1.58 !important;
  }
  .service-page .legal-areas-grid .corporate-mobile-toggle > .corporate-toggle-symbol,
  .service-page .eim-area-list .eim-courses-toggle > .eim-courses-symbol {
    display:block !important;
    position:static !important;
    flex:0 0 26px !important;
    width:26px !important;
    min-width:26px !important;
    max-width:26px !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    text-align:center !important;
    line-height:1.2 !important;
    align-self:flex-start !important;
    color:#d6aa52 !important;
  }
}

/* FASE 23.99 — Despeje de insignia inferior externa en páginas de servicios */
:root { --caal-float-clearance: 94px; }
.service-whatsapp-float, body > .service-whatsapp-float { bottom: calc(var(--caal-float-clearance) + env(safe-area-inset-bottom, 0px)) !important; }
.cae-chatbot, body > .cae-chatbot, .service-page .cae-chatbot { bottom: calc(var(--caal-float-clearance) + 78px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 620px) {
  :root { --caal-float-clearance: 90px; }
  .service-whatsapp-float, body > .service-whatsapp-float { bottom: calc(var(--caal-float-clearance) + env(safe-area-inset-bottom, 0px)) !important; }
  .cae-chatbot, body > .cae-chatbot, .service-page .cae-chatbot { bottom: calc(var(--caal-float-clearance) + 64px + env(safe-area-inset-bottom, 0px)) !important; }
}


/* =====================================================================
   CAAL-GROUP — Fase 24.01
   Unificación de la cabecera en las páginas internas de servicios.
   El encabezado completo es blanco moderno (#FAFBFC); el resto del
   contenido conserva su azul marino corporativo y sus estilos propios.
   ===================================================================== */
.service-header {
  width: 100%;
  min-height: 132px;
  margin: 0;
  padding: 8px max(28px, calc((100% - 1200px) / 2));
  box-sizing: border-box;
  background: #FAFBFC;
  color: #042254;
  border-bottom: 1px solid rgba(4, 34, 84, .10);
  box-shadow: 0 4px 16px rgba(4, 34, 84, .07);
  gap: 20px;
}
/* Se usa el mismo archivo de imagen que en index.html: logocabecera1.png. */
.service-header .service-brand {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  width: 250px;
  height: 116px;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
}
.service-header .service-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.service-header .service-header-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.service-header .language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(4, 34, 84, .18);
  border-radius: 999px;
  background: #FFFFFF;
}
.service-header .lang-btn {
  color: #042254;
}
.service-header .lang-btn:hover { color: #B8860B; }
.service-header .lang-btn.active,
.service-header .lang-btn.active:hover {
  color: #FFFFFF;
  background: #042254;
  box-shadow: 0 2px 8px rgba(4, 34, 84, .16);
}
.service-header .header-back {
  color: #042254;
  font-weight: 700;
}
.service-header .header-back:hover { color: #B8860B; }
@media (max-width: 767px) {
  .service-header {
    width: 100%;
    min-height: 98px;
    padding: 6px 16px;
    gap: 12px;
  }
  .service-header .service-brand {
    width: clamp(145px, 40vw, 185px);
    height: 84px;
  }
  .service-header .service-header-controls { gap: 9px; }
  .service-header .header-back {
    border-color: rgba(4, 34, 84, .2);
  }
}
@media (max-width: 430px) {
  .service-header { min-height: 90px; padding: 6px 12px; gap: 8px; }
  .service-header .service-brand {
    width: clamp(134px, 42vw, 168px);
    height: 76px;
  }
  .service-header .service-header-controls { gap: 7px; }
}

/* FASE 24.03 — Titulos de navegacion mas elegantes, en escritorio y celular. */
.service-navigation .service-nav-item strong {
  font-family: 'Montserrat', sans-serif;
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .005em;
  text-transform: none;
}
@media (max-width: 700px) {
  .service-navigation .service-nav-item strong {
    font-size: .94rem;
    font-weight: 500;
    line-height: 1.5;
  }
}
