/* Servicios · fase 1 · hero e índice editorial · 2026-09-18 */

[data-services-page] .services-hero{
  padding:54px 0 34px;
  border-bottom:1px solid var(--line-soft);
}
[data-services-page] .services-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  column-gap:60px;
  row-gap:28px;
  align-items:start;
}
[data-services-page] .services-hero-heading{
  min-width:0;
}
[data-services-page] .services-hero-heading .eyebrow{
  margin-bottom:16px;
}
[data-services-page] .services-hero h1{
  max-width:12.2ch;
  margin:0;
  font-size:clamp(58px,5.75vw,78px);
  line-height:.95;
  text-wrap:balance;
}
[data-services-page] .services-hero-intro{
  align-self:start;
  padding-top:57px;
}
[data-services-page] .services-hero-intro p{
  max-width:590px;
  margin:0;
  color:#c8d2de;
  font-size:16px;
  line-height:1.74;
}
[data-services-page] .services-index{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-top:2px;
}
[data-services-page] .services-index-link{
  --service-accent:#43c7da;
  --service-rgb:67,199,218;
  position:relative;
  min-width:0;
  min-height:102px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  grid-template-rows:auto 1fr;
  column-gap:10px;
  row-gap:15px;
  align-items:start;
  padding:17px 16px 16px;
  border:1px solid rgba(var(--service-rgb),.20);
  border-radius:13px;
  background:
    radial-gradient(circle at 3% 0%,rgba(var(--service-rgb),.11),transparent 47%),
    linear-gradient(145deg,rgba(var(--service-rgb),.025),rgba(13,23,34,.74));
  overflow:hidden;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
[data-services-page] .services-index-link:before{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  top:-1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--service-accent),transparent);
  opacity:.58;
}
[data-services-page] .services-index-link:hover,
[data-services-page] .services-index-link:focus-visible{
  border-color:rgba(var(--service-rgb),.38);
  background:
    radial-gradient(circle at 5% 0%,rgba(var(--service-rgb),.16),transparent 50%),
    linear-gradient(145deg,rgba(var(--service-rgb),.045),rgba(15,27,40,.90));
  transform:translateY(-2px);
  outline:none;
}
[data-services-page] .services-index-no{
  color:var(--service-accent);
  font-family:"Instrument Serif",Georgia,serif;
  font-size:28px;
  line-height:.92;
  letter-spacing:-.025em;
}
[data-services-page] .services-index-link strong{
  grid-column:1/3;
  align-self:end;
  color:#e9eef4;
  font-size:13px;
  font-weight:700;
  line-height:1.33;
}
[data-services-page] .services-index-arrow{
  grid-column:3;
  grid-row:1;
  color:rgba(var(--service-rgb),.72);
  font-size:14px;
  line-height:1;
  transition:transform .16s ease,color .16s ease;
}
[data-services-page] .services-index-link:hover .services-index-arrow,
[data-services-page] .services-index-link:focus-visible .services-index-arrow{
  color:var(--service-accent);
  transform:translate(2px,-2px);
}
[data-services-page] .services-index-link[href="#datos"]{
  --service-accent:#43c7da;
  --service-rgb:67,199,218;
}
[data-services-page] .services-index-link[href="#tecnologia"]{
  --service-accent:#8a6fea;
  --service-rgb:138,111,234;
}
[data-services-page] .services-index-link[href="#electoral"]{
  --service-accent:#b86c78;
  --service-rgb:184,108,120;
}
[data-services-page] .services-index-link[href="#cartografia"]{
  --service-accent:#72a8a1;
  --service-rgb:114,168,161;
}
[data-services-page] .services-index-link[href="#planeacion"]{
  --service-accent:#d8b466;
  --service-rgb:216,180,102;
}
[data-services-page] .services-index-link[href="#evaluacion"]{
  --service-accent:#a98adc;
  --service-rgb:169,138,220;
}

/* Preparación estructural para navegación por anclas bajo el header sticky. */
[data-services-page] .service-family{
  scroll-margin-top:108px;
}

@media(max-width:1080px){
  [data-services-page] .services-hero-grid{
    grid-template-columns:minmax(0,1.03fr) minmax(330px,.97fr);
    column-gap:42px;
  }
  [data-services-page] .services-hero-intro{
    padding-top:49px;
  }
  [data-services-page] .services-index{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  [data-services-page] .services-index-link{
    min-height:92px;
  }
}

@media(max-width:860px){
  [data-services-page] .services-hero{
    padding:42px 0 30px;
  }
  [data-services-page] .services-hero-grid{
    grid-template-columns:1fr;
    row-gap:18px;
  }
  [data-services-page] .services-hero-heading,
  [data-services-page] .services-hero-intro,
  [data-services-page] .services-index{
    grid-column:1;
  }
  [data-services-page] .services-hero h1{
    max-width:13.6ch;
  }
  [data-services-page] .services-hero-intro{
    padding-top:0;
  }
  [data-services-page] .services-hero-intro p{
    max-width:760px;
    font-size:15.5px;
  }
  [data-services-page] .services-index{
    margin-top:5px;
  }
}

@media(max-width:600px){
  [data-services-page] .services-hero{
    padding:34px 0 24px;
  }
  [data-services-page] .services-hero-grid{
    row-gap:15px;
  }
  [data-services-page] .services-hero-heading .eyebrow{
    margin-bottom:13px;
  }
  [data-services-page] .services-hero h1{
    max-width:11.4ch;
    font-size:46px;
    line-height:.96;
  }
  [data-services-page] .services-hero-intro p{
    font-size:14.5px;
    line-height:1.65;
  }
  [data-services-page] .services-index{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:4px;
  }
  [data-services-page] .services-index-link{
    min-height:94px;
    padding:15px 14px 14px;
  }
  [data-services-page] .services-index-no{
    font-size:26px;
  }
  [data-services-page] .services-index-link strong{
    font-size:12.5px;
  }
}

@media(max-width:390px){
  [data-services-page] .services-index{
    grid-template-columns:1fr;
  }
  [data-services-page] .services-index-link{
    min-height:78px;
  }
}

@media(prefers-reduced-motion:reduce){
  [data-services-page] .services-index-link,
  [data-services-page] .services-index-arrow{
    transition:none;
  }
  [data-services-page] .services-index-link:hover,
  [data-services-page] .services-index-link:focus-visible{
    transform:none;
  }
}


/* ==========================================================================
   Servicios · fase 2 · familias y capacidades
   ========================================================================== */

[data-services-page] .services-catalog{
  padding:54px 0 58px;
}
[data-services-page] .services-family-list{
  display:grid;
  gap:22px;
}

/* Cada familia es una sola superficie editorial; no se comporta como botón. */
[data-services-page] .service-family{
  --service-accent:#43c7da;
  --service-rgb:67,199,218;
  position:relative;
  isolation:isolate;
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(var(--service-rgb),.25);
  border-radius:18px;
  background:
    radial-gradient(circle at 5% 0%,rgba(var(--service-rgb),.10),transparent 31%),
    linear-gradient(145deg,rgba(var(--service-rgb),.025),#101925 34%,#0c151f);
  box-shadow:0 20px 48px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.015);
  transform:none!important;
  transition:border-color .18s ease,background .18s ease;
}
[data-services-page] .service-family:hover{
  transform:none!important;
  border-color:rgba(var(--service-rgb),.34);
  background:
    radial-gradient(circle at 5% 0%,rgba(var(--service-rgb),.12),transparent 33%),
    linear-gradient(145deg,rgba(var(--service-rgb),.034),#101a27 34%,#0d1621);
}
[data-services-page] .service-family:before{
  content:"";
  position:absolute;
  z-index:2;
  left:16px;
  right:16px;
  top:-1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(var(--service-rgb),0),var(--service-accent) 20%,rgba(var(--service-rgb),.34) 72%,rgba(var(--service-rgb),0));
  opacity:.78;
  pointer-events:none;
}

[data-services-page] #datos{
  --service-accent:#43c7da;
  --service-rgb:67,199,218;
}
[data-services-page] #tecnologia{
  --service-accent:#8a6fea;
  --service-rgb:138,111,234;
}
[data-services-page] #electoral{
  --service-accent:#b86c78;
  --service-rgb:184,108,120;
}
[data-services-page] #cartografia{
  --service-accent:#72a8a1;
  --service-rgb:114,168,161;
}
[data-services-page] #planeacion{
  --service-accent:#d8b466;
  --service-rgb:216,180,102;
}
[data-services-page] #evaluacion{
  --service-accent:#a98adc;
  --service-rgb:169,138,220;
}

[data-services-page] .service-family-head{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:22px;
  align-items:start;
  padding:28px 30px 26px;
  border-bottom:1px solid rgba(var(--service-rgb),.16);
  background:linear-gradient(90deg,rgba(var(--service-rgb),.022),transparent 52%);
}
[data-services-page] .service-family .service-family-no{
  color:var(--service-accent);
  font-family:"Instrument Serif",Georgia,serif;
  font-size:48px!important;
  font-weight:400;
  line-height:.88;
  letter-spacing:-.035em;
  opacity:.96;
}
[data-services-page] .service-family .service-family-no:after{
  content:none!important;
  display:none!important;
}
[data-services-page] .service-family-head>div:last-child{
  min-width:0;
}
[data-services-page] .service-family .category{
  color:var(--service-accent);
  font-size:10.5px;
  font-weight:800;
  line-height:1.35;
  letter-spacing:.125em;
}
[data-services-page] .service-family-head h2{
  max-width:19ch;
  margin:7px 0 11px;
  color:#f2f5f7;
  font-family:"Instrument Serif",Georgia,serif;
  font-size:clamp(37px,3.4vw,44px);
  font-weight:400;
  line-height:.98;
  letter-spacing:-.018em;
  text-wrap:balance;
}
[data-services-page] .service-family-head p{
  max-width:900px;
  margin:0;
  color:#acb8c6;
  font-size:14.25px;
  line-height:1.68;
}

/* Las capacidades forman parte de la misma superficie, no tarjetas anidadas. */
[data-services-page] .subservices{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  padding:0;
  background:rgba(var(--service-rgb),.13);
}
[data-services-page] #tecnologia .subservices{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
[data-services-page] .subservice{
  min-width:0;
  min-height:0;
  padding:22px 24px 24px;
  border:0;
  background:rgba(11,20,30,.96);
  transition:background .16s ease;
}
[data-services-page] .subservice:hover{
  background:
    linear-gradient(145deg,rgba(var(--service-rgb),.048),rgba(12,22,32,.98) 54%);
}
[data-services-page] .subservice h3{
  margin:0 0 9px;
  color:#edf2f6;
  font-size:17px;
  font-weight:700;
  line-height:1.3;
}
[data-services-page] .subservice p{
  margin:0;
  color:#a5b1bf;
  font-size:13.25px;
  line-height:1.64;
}

/* La sección ya tiene su propio ritmo; anulamos el margen histórico de cada card. */
[data-services-page] .services-family-list>.service-family{
  margin-bottom:0;
}

@media(max-width:1080px){
  [data-services-page] .services-catalog{
    padding:48px 0 54px;
  }
  [data-services-page] .service-family-head{
    grid-template-columns:72px minmax(0,1fr);
    gap:18px;
    padding:26px 27px 24px;
  }
  [data-services-page] .service-family .service-family-no{
    font-size:44px!important;
  }
  [data-services-page] .subservices,
  [data-services-page] #tecnologia .subservices{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  [data-services-page] .services-catalog{
    padding:38px 0 46px;
  }
  [data-services-page] .services-family-list{
    gap:16px;
  }
  [data-services-page] .service-family{
    border-radius:16px;
  }
  [data-services-page] .service-family-head{
    grid-template-columns:56px minmax(0,1fr);
    gap:13px;
    padding:23px 20px 21px;
  }
  [data-services-page] .service-family .service-family-no{
    font-size:39px!important;
  }
  [data-services-page] .service-family .category{
    font-size:10px;
  }
  [data-services-page] .service-family-head h2{
    margin-top:5px;
    font-size:34px;
  }
  [data-services-page] .service-family-head p{
    font-size:13.5px;
    line-height:1.64;
  }
  [data-services-page] .subservices,
  [data-services-page] #tecnologia .subservices{
    grid-template-columns:1fr;
  }
  [data-services-page] .subservice{
    padding:19px 20px 20px;
  }
  [data-services-page] .subservice h3{
    font-size:16.5px;
  }
  [data-services-page] .subservice p{
    font-size:13px;
    line-height:1.6;
  }
}

@media(max-width:420px){
  [data-services-page] .service-family-head{
    grid-template-columns:1fr;
    gap:8px;
  }
  [data-services-page] .service-family .service-family-no{
    font-size:36px!important;
  }
  [data-services-page] .service-family-head h2{
    max-width:none;
    font-size:32px;
  }
}


/* ==========================================================================
   Servicios · fase 3 · cierre, ritmo y responsive final
   ========================================================================== */

[data-services-page] .service-family:target{
  border-color:rgba(var(--service-rgb),.48);
  box-shadow:0 22px 52px rgba(0,0,0,.18),0 0 0 1px rgba(var(--service-rgb),.08),inset 0 1px 0 rgba(255,255,255,.018);
}

[data-services-page] .services-closing-cta{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);
  gap:42px;
  align-items:center;
  margin-top:14px;
  padding:38px 46px;
  overflow:hidden;
  border:1px solid rgba(138,111,234,.27);
  border-right-color:rgba(67,199,218,.22);
  border-bottom-color:rgba(216,180,102,.18);
  border-radius:20px;
  background:
    radial-gradient(circle at 8% 0%,rgba(138,111,234,.17),transparent 34%),
    radial-gradient(circle at 96% 92%,rgba(67,199,218,.11),transparent 34%),
    radial-gradient(circle at 72% 6%,rgba(216,180,102,.055),transparent 22%),
    linear-gradient(135deg,#151b2a,#0d1723 58%,#101a26);
  box-shadow:0 24px 62px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.022);
}
[data-services-page] .services-closing-cta:before{
  content:"";
  position:absolute;
  z-index:1;
  left:18px;
  right:18px;
  top:-1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#8a6fea 13%,#43c7da 48%,#d8b466 76%,transparent);
  opacity:.72;
}
[data-services-page] .services-closing-cta:after{
  content:"";
  position:absolute;
  z-index:0;
  width:260px;
  height:260px;
  right:-90px;
  bottom:-130px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(67,199,218,.09),transparent 67%);
  pointer-events:none;
}
[data-services-page] .services-closing-copy,
[data-services-page] .services-closing-action{
  position:relative;
  z-index:2;
  min-width:0;
}
[data-services-page] .services-closing-copy .eyebrow{
  margin-bottom:12px;
  color:#a98cea;
}
[data-services-page] .services-closing-copy h2{
  max-width:16.5ch;
  margin:0;
  font-size:clamp(44px,4.2vw,57px);
  line-height:.98;
  text-wrap:balance;
}
[data-services-page] .services-closing-action{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
}
[data-services-page] .services-closing-action p{
  max-width:520px;
  margin:0;
  color:#b4c0cd;
  font-size:15px;
  line-height:1.66;
}
[data-services-page] .services-closing-action .btn{
  min-height:52px;
  margin:0;
  padding:0 23px;
  border-color:rgba(155,127,236,.86);
  background:linear-gradient(135deg,#7654d7,#6241c0);
  box-shadow:0 15px 32px rgba(84,57,167,.24);
  font-size:13.5px;
}
[data-services-page] .services-closing-action .btn:hover{
  background:linear-gradient(135deg,#8261df,#6c49c9);
  box-shadow:0 17px 36px rgba(84,57,167,.31);
}

/* Ritmo de lectura: catálogo compacto pero no apretado. */
[data-services-page] .services-catalog.section{
  border-bottom:0;
}
[data-services-page] .services-family-list{
  align-items:stretch;
}
[data-services-page] .service-family-head p,
[data-services-page] .subservice p{
  text-wrap:pretty;
}

/* Tablet: protege anchuras y evita bloques excesivamente altos. */
@media(max-width:1080px){
  [data-services-page] .services-closing-cta{
    grid-template-columns:minmax(0,1.06fr) minmax(300px,.94fr);
    gap:32px;
    padding:35px 36px;
  }
  [data-services-page] .services-closing-copy h2{
    font-size:48px;
  }
}

@media(max-width:860px){
  [data-services-page] .services-catalog{
    padding-top:42px;
  }
  [data-services-page] .services-family-list{
    gap:18px;
  }
  [data-services-page] .services-closing-cta{
    grid-template-columns:1fr;
    gap:21px;
    padding:34px 32px;
  }
  [data-services-page] .services-closing-copy h2{
    max-width:17ch;
  }
  [data-services-page] .services-closing-action p{
    max-width:680px;
  }
}

@media(max-width:700px){
  [data-services-page] .services-index-link:hover,
  [data-services-page] .services-index-link:focus-visible{
    transform:none;
  }
  [data-services-page] .subservice:hover{
    background:rgba(11,20,30,.96);
  }
  [data-services-page] .services-closing-cta{
    margin-top:4px;
    padding:29px 23px 27px;
    border-radius:16px;
  }
  [data-services-page] .services-closing-copy h2{
    max-width:14ch;
    font-size:40px;
  }
  [data-services-page] .services-closing-action{
    gap:15px;
  }
  [data-services-page] .services-closing-action p{
    font-size:14px;
    line-height:1.62;
  }
  [data-services-page] .services-closing-action .btn{
    width:100%;
    min-height:52px;
    font-size:13px;
  }
}

@media(max-width:420px){
  [data-services-page] .services-closing-copy h2{
    font-size:37px;
  }
}


/* ==========================================================================
   Servicios · haz continuo en canvas
   ========================================================================== */

[data-services-page] .services-closing-cta{
  overflow:visible;
}

[data-services-page] .services-closing-cta:before{
  content:none;
}

[data-services-page] .services-closing-beam{
  position:absolute;
  z-index:3;
  left:-10px;
  top:-10px;
  display:block;
  pointer-events:none;
  overflow:visible;
}

[data-services-page] .services-closing-copy,
[data-services-page] .services-closing-action{
  z-index:4;
}

