
/* =========================================================
   CTRL360 · Departamento IT Externo · V2
   MASTER PATTERN: clean photo + CSS gradient + real HTML
   ========================================================= */

body.page-departamento-it{
  --dept-green:#61c832;
  --dept-dark:#06110c;
}

/* Kill inherited hero artwork / circles */
body.page-departamento-it .dept-hero-v2,
body.page-departamento-it .dept-hero-v2::before,
body.page-departamento-it .dept-hero-v2::after{
  background:none !important;
}
body.page-departamento-it .dept-hero-v2::before,
body.page-departamento-it .dept-hero-v2::after{
  content:none !important;
  display:none !important;
}

/* HERO FRAME */
body.page-departamento-it .dept-hero-v2{
  position:relative !important;
  min-height:610px !important;
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  isolation:isolate !important;
  color:#fff !important;
  background:#06110c !important;
}

/* Real photo layer – visually starts to the right */
body.page-departamento-it .dept-hero-photo{
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:76% !important;
  z-index:0 !important;
  background:url("photo-departamento-it.webp") 58% center / cover no-repeat !important;
  transform:none !important;
  filter:none !important;
}

/* Same MASTER readability pattern as Home/Data Center */
body.page-departamento-it .dept-hero-shade{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:
    linear-gradient(
      90deg,
      rgba(3,13,8,.99) 0%,
      rgba(3,13,8,.97) 18%,
      rgba(3,13,8,.91) 31%,
      rgba(3,13,8,.72) 43%,
      rgba(3,13,8,.42) 54%,
      rgba(3,13,8,.16) 65%,
      rgba(3,13,8,0) 77%
    ) !important;
}

/* Alignment follows nav/logo axis */
body.page-departamento-it .dept-hero-inner{
  position:relative !important;
  z-index:2 !important;
  width:min(var(--max,1180px),calc(100% - 42px)) !important;
  margin:0 auto !important;
  padding:56px 0 48px !important;
}
body.page-departamento-it .dept-hero-copy{
  max-width:610px !important;
}

body.page-departamento-it .dept-hero-v2 .breadcrumb{
  color:rgba(255,255,255,.62) !important;
  font-size:12px !important;
  font-weight:700 !important;
  margin:0 0 20px !important;
}

body.page-departamento-it .dept-hero-v2 .eyebrow{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  color:#71d23b !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:1.1px !important;
  text-transform:uppercase !important;
}
body.page-departamento-it .dept-hero-v2 .eyebrow::before{
  content:"" !important;
  width:28px !important;
  height:1px !important;
  background:#71d23b !important;
}

body.page-departamento-it .dept-hero-v2 h1{
  max-width:600px !important;
  margin:14px 0 18px !important;
  color:#fff !important;
  font-size:clamp(44px,4vw,60px) !important;
  line-height:1.01 !important;
  letter-spacing:-1.8px !important;
  font-weight:800 !important;
}
body.page-departamento-it .dept-hero-v2 h1 span{
  display:block !important;
  color:#a7db37 !important;
  margin-top:12px !important;
  font-size:.64em !important;
  line-height:1.04 !important;
  letter-spacing:-.04em !important;
}

body.page-departamento-it .dept-hero-v2 p{
  max-width:575px !important;
  margin:0 !important;
  color:rgba(255,255,255,.84) !important;
  font-size:16px !important;
  line-height:1.55 !important;
}

body.page-departamento-it .dept-hero-v2 .hero-actions{
  display:flex !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  margin-top:24px !important;
}
body.page-departamento-it .dept-hero-v2 .btn{
  background:#58c52c !important;
  border-color:#58c52c !important;
  color:#fff !important;
  box-shadow:0 10px 26px rgba(86,196,43,.18) !important;
}
body.page-departamento-it .dept-hero-v2 .btn.outline{
  background:rgba(4,16,10,.30) !important;
  border-color:rgba(255,255,255,.40) !important;
  box-shadow:none !important;
  backdrop-filter:blur(6px) !important;
}

body.page-departamento-it .dept-hero-v2 .human-proof{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:9px !important;
  margin-top:22px !important;
}
body.page-departamento-it .dept-hero-v2 .human-proof span{
  padding:8px 11px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.13) !important;
  background:rgba(2,15,9,.30) !important;
  color:#fff !important;
  font-size:12px !important;
  backdrop-filter:blur(7px) !important;
}

/* OPERATING LAYER – same single-level white language as Home v18 */
body.page-departamento-it .operating-layer{
  background:#fff !important;
  border:0 !important;
  padding:54px 0 50px !important;
}
body.page-departamento-it .operating-intro{
  max-width:820px !important;
  margin-bottom:28px !important;
}
body.page-departamento-it .operating-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:0 !important;
  background:#fff !important;
  border-top:1px solid #e8eee9 !important;
  border-bottom:1px solid #e8eee9 !important;
}
body.page-departamento-it .operating-grid article{
  min-width:0 !important;
  padding:23px 18px !important;
  background:#fff !important;
  border:0 !important;
  border-right:1px solid #edf1ee !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
body.page-departamento-it .operating-grid article:last-child{
  border-right:0 !important;
}
body.page-departamento-it .operating-grid article>span{
  color:#61c832 !important;
  font-size:12px !important;
  font-weight:900 !important;
}
body.page-departamento-it .operating-grid article h3{
  margin:8px 0 7px !important;
  font-size:15px !important;
}
body.page-departamento-it .operating-grid article p{
  margin:0 !important;
  color:#68776f !important;
  font-size:12px !important;
  line-height:1.45 !important;
}

/* Secondary photo refinement */
body.page-departamento-it .visual-band{
  background:linear-gradient(180deg,#f7faf6 0%,#fff 100%) !important;
}
body.page-departamento-it .editorial-photo{
  border-radius:22px !important;
  overflow:hidden !important;
  box-shadow:0 18px 42px rgba(25,52,34,.10) !important;
}
body.page-departamento-it .editorial-photo img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

/* Responsive */
@media(max-width:1050px){
  body.page-departamento-it .dept-hero-v2{
    min-height:600px !important;
  }
  body.page-departamento-it .dept-hero-photo{
    width:82% !important;
    background-position:64% center !important;
  }
  body.page-departamento-it .dept-hero-shade{
    background:linear-gradient(
      90deg,
      rgba(3,13,8,.98) 0%,
      rgba(3,13,8,.93) 34%,
      rgba(3,13,8,.72) 53%,
      rgba(3,13,8,.28) 72%,
      rgba(3,13,8,.05) 100%
    ) !important;
  }
  body.page-departamento-it .operating-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  body.page-departamento-it .operating-grid article:nth-child(3n){
    border-right:0 !important;
  }
}

@media(max-width:760px){
  body.page-departamento-it .dept-hero-v2{
    min-height:auto !important;
  }
  body.page-departamento-it .dept-hero-photo{
    width:100% !important;
    background-position:72% center !important;
  }
  body.page-departamento-it .dept-hero-shade{
    background:linear-gradient(
      180deg,
      rgba(3,13,8,.03) 0%,
      rgba(3,13,8,.10) 10%,
      rgba(3,13,8,.25) 20%,
      rgba(3,13,8,.50) 30%,
      rgba(3,13,8,.80) 35%,
      rgba(3,13,8,.95) 45%,
      rgba(3,13,8,.99) 58%,
      rgba(3,13,8,1) 75%
    ) !important;
  }
  body.page-departamento-it .dept-hero-inner{
    padding:218px 0 60px !important;
  }
  body.page-departamento-it .dept-hero-v2 .breadcrumb{
    position:absolute !important;
    top:20px !important;
    left:0 !important;
    right:auto !important;
    margin:0 !important;
  }
  body.page-departamento-it .dept-hero-v2 .eyebrow{
    color:#a7db37 !important;
  }
  body.page-departamento-it .dept-hero-v2 h1{
    font-size:clamp(42px,13vw,62px) !important;
    line-height:.98 !important;
    letter-spacing:-.055em !important;
  }
  body.page-departamento-it .dept-hero-v2 h1 span{
    font-size:.58em !important;
  }
  body.page-departamento-it .dept-hero-v2 p{
    font-size:16px !important;
    line-height:1.62 !important;
    color:#e2ece6 !important;
    text-shadow:0 2px 15px rgba(0,0,0,.45) !important;
  }
  body.page-departamento-it .operating-grid{
    grid-template-columns:1fr !important;
  }
  body.page-departamento-it .operating-grid article{
    border-right:0 !important;
    border-bottom:1px solid #edf1ee !important;
  }
}

/* FIX: "Situaciones reales" sin el mismo estilo que en
   consultoria-tecnologica.html — falta el título centrado (pedido por
   Pedro, 24 oct 2026, mismo fallo repetido en varias vistas). */
body.page-departamento-it #situaciones .section-head{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.page-departamento-it #situaciones .section-head .eyebrow{
  justify-content:center!important;
}

/* FIX: "Situaciones reales" — ".example" ("En la práctica...") no tenía
   el bug de la píldora (esta página no lleva la clase ces-services),
   pero sí heredaba de styles.css la regla ".example b{display:block}",
   que separaba "En la práctica:" en su propia línea en vez de fluir
   junto al texto, y el tamaño/padding no coincidían exactamente con la
   referencia. Mismo ajuste que consultoria-tecnologica.html,
   backup-continuidad.html y redes-comunicaciones.html (pedido por
   Pedro, 24 oct 2026). Colon añadido en el HTML ("En la práctica:") y
   span "360" en verde dentro de la pregunta. */
body.page-departamento-it #situaciones .real-card .example{
  display:block!important;
  width:auto!important;
  border-radius:12px!important;
  padding:14px 16px!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.55!important;
}
body.page-departamento-it #situaciones .real-card .example b{
  display:inline!important;
  margin-bottom:0!important;
}
body.page-departamento-it #situaciones .real-card .question{
  text-align:left;
  color:var(--x-ink)!important;
  padding-top:14px!important;
  padding-bottom:0!important;
  padding-left:15%!important;
  margin:14px 0 4px!important;
  border-top:0!important;
}
body.page-departamento-it #situaciones .real-card .question .q-360{
  color:var(--brand-dark);
}
body.page-departamento-it #situaciones .real-card .answer{
  text-align:left;
  padding-left:15%!important;
  margin-bottom:22px!important;
}

/* FIX: iconos de check desalineados con el texto en las listas
   ".checks" (sobre todo en "Una primera conversación", donde los
   textos son largos y pasan a 2 líneas) — el círculo venía fijo a
   "top:10px" (regla base de styles.css) en vez de centrado con el
   texto de cada item, y además era de bajo contraste (círculo pálido
   sobre fondo claro). Mismo arreglo que ya existía en
   consultoria-tecnologica.html (pedido por Pedro, 24 oct 2026, viendo
   que el fallo se repite en varias vistas). */
body.page-departamento-it .checks li:before{
  top:50% !important;
  transform:translateY(-50%) !important;
  background:var(--x-green) !important;
  color:#fff !important;
  box-shadow:0 2px 6px rgba(88,185,71,.3) !important;
}
