/* =========================================================================
   Ethical Hacking Services — capa de estilo sobre White Label
   Solo presentación: no cambia contenido ni estructura de la página.
   Colores: variables --ehs-* (las genera pulir-sitio.php desde el logo)
   ========================================================================= */
:root {
  --ehs-primary: #1e6fd9;
  --ehs-primary-dark: #154f9c;
  --ehs-dark: #0b1d33;
  --ehs-light: #eef3fa;
  --ehs-radius: 10px;
  --ehs-shadow: 0 6px 24px rgba(11, 29, 51, .08);
  --ehs-shadow-hover: 0 14px 36px rgba(11, 29, 51, .16);
}

/* ---- Logo + nombre en el menú ---- */
header .navbar-brand { display: flex; align-items: center; }
header .navbar-brand img.logo-default { height: 42px; width: auto; }
header .navbar-brand::after {
  content: "Ethical Hacking Services";
  margin-left: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .2px;
  color: var(--ehs-dark);
  white-space: nowrap;
}
@media (max-width: 480px) { header .navbar-brand::after { font-size: 13px; } }
header .navbar-main { box-shadow: 0 1px 0 rgba(11, 29, 51, .06); }

/* ---- Hero ---- */
#section_inicio { background-size: cover !important; background-position: center !important; }
#section_inicio h4 { font-weight: 500; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
#section_inicio h2 { letter-spacing: 2px; text-transform: uppercase; opacity: .85; }

/* ---- Títulos de sección: azul marino del logo + barrita verde de acento ---- */
#section_cotizacion h4, #section_servicios h4, #section_contacto h4,
#section_clientes h4, #section_certificaciones h4, #section_experiencia h4,
#section_servicios .advs-box h3, #section_nosotros h2 { color: var(--ehs-dark) !important; }
#section_servicios .hc_title_tag_cnt h4::after,
#section_cotizacion .hc_title_tag_cnt h4::after,
#section_contacto .hc_title_tag_cnt h4::after,
#section_clientes h4::after,
#section_certificaciones h4::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--ehs-primary);
}
#section_clientes h4::after, #section_certificaciones h4::after { margin-left: auto; margin-right: auto; }

/* ---- Servicios en tarjetas ---- */
#section_servicios .advs-box {
  background: #fff;
  border: 1px solid rgba(11, 29, 51, .07);
  border-radius: var(--ehs-radius);
  box-shadow: var(--ehs-shadow);
  padding: 32px 26px 26px !important;
  margin-top: 0 !important;
  min-height: 300px;                         /* misma altura para todas las tarjetas */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#section_servicios .advs-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--ehs-shadow-hover);
  border-color: var(--ehs-primary);
}
#section_servicios .advs-box i.icon {        /* símbolos negros, sin círculo (como estaban al inicio) */
  width: auto; height: auto; line-height: 1;
  font-size: 34px;
  border-radius: 0;
  color: #222 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 0 16px !important;
  position: static !important; left: auto !important; right: auto !important; top: auto !important;
  transform: none !important;
  display: inline-block;
}
#section_servicios .advs-box h3 { font-weight: 600; margin-bottom: 12px; }
#section_servicios .hc_space_cnt { display: none; }       /* espacios del composer: el gap lo da la tarjeta */
#section_servicios .hc_column_cnt.col-md-4 { margin-bottom: 28px; }

/* ---- Logos de clientes y certificaciones: mismo tamaño, gris -> color ---- */
#section_clientes .img-box, #section_certificaciones .img-box {
  pointer-events: none;                       /* eran enlaces vacíos (recargaban la página) */
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 14px;
  background: #fff;
  border-radius: var(--ehs-radius);
  border: 1px solid rgba(11, 29, 51, .08);   /* borde y no sombra: el carrusel recorta las sombras */
}
#section_clientes .img-box img, #section_certificaciones .img-box img {
  max-height: 80px; width: auto !important; max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}
#section_clientes li:hover .img-box img,
#section_certificaciones li:hover .img-box img { filter: none; opacity: 1; }
#section_clientes li, #section_certificaciones li { pointer-events: auto; }

/* ---- Contador de experiencia ---- */
#section_experiencia .counter-box-simple, #section_experiencia .text-color { color: var(--ehs-primary) !important; }

/* ---- Formularios ---- */
.form-box .form-control { border-radius: 6px; }
.form-box .form-control:focus { border-color: var(--ehs-primary); box-shadow: 0 0 0 3px rgba(30, 111, 217, .12); }

/* ---- Datos de contacto ---- */
#section_contacto .hc_text_block_cnt a { color: var(--ehs-dark); }
#section_contacto .hc_text_block_cnt a:hover { color: var(--ehs-primary); }
#section_contacto .hc_text_block_cnt i { width: 22px; color: var(--ehs-primary); }

/* ---- Footer ---- */
footer, footer .content { background: var(--ehs-dark) !important; color: rgba(255, 255, 255, .75) !important; }
footer .content { padding: 26px 0 !important; min-height: 0 !important; }
footer .content > .container:not(:has(.row > div > *)) { display: none; }   /* columnas vacías: no ocupar espacio */
footer .copy-row { margin: 0; text-align: center; font-size: 13px; }
footer a { color: #fff !important; }

/* ---- Botón flotante de WhatsApp ---- */
.ehs-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff !important;
  font-size: 32px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
  animation: ehs-pulse 2.6s ease-out infinite;
}
.ehs-wa:hover { transform: scale(1.08); color: #fff; }
.ehs-wa i { color: #fff !important; }
@keyframes ehs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 8px 24px rgba(0, 0, 0, .25); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, .25); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, .25); }
}
@media (prefers-reduced-motion: reduce) {
  .ehs-wa { animation: none; }
  #section_servicios .advs-box { transition: none; }
}

/* ---- Selector de idioma ES | EN (último ítem del menú) ---- */
header .nav > li.ehs-lang-item > a { font-size: 13px; font-weight: 600; letter-spacing: .5px; padding-left: 8px !important; padding-right: 8px !important; opacity: .55; }
header .nav > li.ehs-lang-item.ehs-lang-on > a { opacity: 1; color: var(--ehs-primary) !important; }
header .nav > li.ehs-lang-item:nth-last-child(2) { margin-left: 18px; border-left: 1px solid rgba(11, 29, 51, .15); }

/* ---- Cyber Dome: simulación animada de fondo en el hero (ehs-dome.js) ---- */
#section_inicio.ehs-dome-on { position: relative; overflow: hidden; min-height: 560px; cursor: crosshair;
  display: flex; flex-direction: column; justify-content: center; padding-bottom: 70px; }
#section_inicio.ehs-dome-on a { cursor: pointer; }
#section_inicio .ehs-dome { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
/* velo detrás del titular para que siempre se lea */
#section_inicio.ehs-dome-on::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 42% 38% at 50% 44%, rgba(15, 22, 55, .82), rgba(15, 22, 55, 0) 100%); }
#section_inicio.ehs-dome-on > .content { position: relative; z-index: 1; width: 100%; }
.ehs-dome-hud { position: absolute; top: 14px; right: 16px; z-index: 1; pointer-events: none; display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(232, 237, 247, .7); }
.ehs-dome-live { width: 8px; height: 8px; border-radius: 50%; background: #1ad11b; box-shadow: 0 0 0 0 rgba(26, 209, 27, .6); animation: ehs-live 2s infinite; }
.ehs-dome-count b { color: #1ad11b; font-variant-numeric: tabular-nums; font-size: 13px; }
@keyframes ehs-live { 70% { box-shadow: 0 0 0 8px rgba(26, 209, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 209, 27, 0); } }
@media (max-width: 640px) {
  #section_inicio.ehs-dome-on { min-height: 520px; }
  .ehs-dome-hud { left: 12px; right: 12px; justify-content: space-between; font-size: 10px; }
  .ehs-dome-sim { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ehs-dome-live { animation: none; } }
