/* ============================================================
   GRUPO FIXUM — CSS propio desde cero
   Reemplaza los 11 CSS heredados del tema Zephyr/WP.
   Se mantienen: font-awesome.css, font-mdfi.css (iconos)
   y el CSS de Magnific Popup (incluido en jquery.magnific-popup.js).
   ============================================================ */

/* ── Reset mínimo ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #424242;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
p { margin: 0 0 1em; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; line-height: 1.2; font-family: 'Roboto', sans-serif; font-weight: 300; color: #212121; }
h1 { font-size: 45px; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --blue-dark:   #1e2048;   /* azul oscuro corporativo */
  --blue-nav:    #373b79;   /* azul botones / nav activo */
  --orange:      #f7931e;   /* naranja acento */
  --gray-text:   #939393;
  --header-h:    100px;     /* altura barra media — igual al original WP */
  --topbar-h:    39px;      /* altura top bar — igual al original WP */
  --total-h:     139px;     /* topbar + header */
}

/* ============================================================
   FUENTE ROBOTO (servida localmente por roboto.css / roboto2.css
   → esos archivos solo tienen @font-face, los conservamos)
   ============================================================ */

/* ============================================================
   LAYOUT GENERAL
   ============================================================ */
.l-body { overflow-x: hidden; }

.l-canvas {
  position: relative;
  min-height: 100vh;
}

.l-main { min-height: calc(100vh - var(--total-h)); }
.l-main-h { }
.l-content { }

/* ── Clearfix ── */
.i-cf::after { content: ''; display: table; clear: both; }

/* ============================================================
   HEADER
   ============================================================ */
.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color .3s, box-shadow .3s;
}

/* --- Top bar (email) --- */
.l-subheader.at_top {
  background-color: #000;
  height: var(--topbar-h);
  line-height: var(--topbar-h);
  color: #8d8d8c;
}
.l-subheader.at_top .l-subheader-h {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: table;
  width: 100%;
}
/* El w-contacts es inline-block → queda pegado a la izquierda naturalmente */
.l-subheader.at_top .w-contacts {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  line-height: var(--topbar-h);
}
.w-contacts-item.for_email a {
  color: #8d8d8c;
  font-size: 13px;
}
.w-contacts-item.for_email a:hover { color: #f7931e; opacity: 1; }
/* Ícono email antes del texto via mdfonticon */
.w-contacts-item.for_email .w-contacts-item-value::before {
  font-family: 'mdfonticon';
  content: '\e804';
  margin-right: 6px;
  font-size: 1.3em;
}

/* --- Barra media (logo + nav) --- */
.l-subheader.at_middle {
  height: var(--header-h);
}
.l-subheader.at_middle .l-subheader-h {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* --- Header sólido (todas las páginas menos home) --- */
.l-header.bg_solid {
  background-color: rgba(30,32,72,0.83);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* --- Header home: show_onscroll ---
   El JS del tema controla las clases 'sticky' y 'transparent'.
   Estado inicial: translateY(-100%) → completamente fuera de pantalla.
   Al hacer scroll: agrega 'sticky' → transform: none → header visible con fondo sólido.
   Mientras tiene 'transparent' (al llegar al tope del scroll): fondo invisible.         */
.l-header.pos_fixed.show_onscroll {
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color .4s ease, box-shadow .4s ease;
}
.l-header.pos_fixed.show_onscroll.sticky {
  overflow: visible;
  transform: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color .4s ease, box-shadow .4s ease;
}

/* Con 'transparent' (tope de página): fondo invisible */
.l-header.transparent {
  background-color: transparent !important;
  box-shadow: none !important;
}
.l-header.transparent .l-subheader.at_top    { display: none !important; }
.l-header.transparent .l-subheader.at_middle { background-color: transparent !important; }

/* Sin 'transparent' (scrolled): fondo sólido azul */
.l-header.bg_transparent:not(.transparent) {
  background-color: rgba(30,32,72,0.83);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.l-header.bg_transparent:not(.transparent) .l-subheader.at_top    { display: flex; }
.l-header.bg_transparent:not(.transparent) .l-subheader.at_middle { background-color: rgba(30,32,72,0.83); }

/* --- Logo --- */
.w-logo-link { display: flex; align-items: center; height: 100%; }
.w-logo-img {
  height: var(--header-h);   /* toda la altura de la barra = igual al original */
  display: flex;
  align-items: center;
}
.w-logo-img img.for_default {
  height: 100%;              /* rellena el contenedor → mismo tamaño que WP original */
  width: auto;
  max-height: var(--header-h);
  display: block;
  object-fit: contain;
}

/* ============================================================
   NAVEGACIÓN DESKTOP
   ============================================================ */
.w-nav { display: flex; align-items: center; }
.w-nav-list.level_1 {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 0;
}
.w-nav-item.level_1 { position: relative; }

.w-nav-anchor.level_1 {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: var(--header-h);
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  transition: color .2s;
  white-space: nowrap;
}

.w-nav-anchor.level_1:hover { color: var(--orange); }

/* Ítem activo */
.current-menu-item > .w-nav-anchor.level_1,
.current-menu-ancestor > .w-nav-anchor.level_1 {
  color: var(--orange);
}

/* Flecha submenú */
.w-nav-arrow { display: none; }
.menu-item-has-children > .w-nav-anchor.level_1 .w-nav-arrow { display: inline-block; }
.menu-item-has-children > .w-nav-anchor.level_1 .w-nav-arrow::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
}

/* --- Submenú nivel 2 --- */
.w-nav-list.level_2 {
  list-style: none;
  margin: 0; padding: 6px 0;
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: rgba(30,32,72,0.83);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.w-nav-item.level_1:hover > .w-nav-list.level_2,
.w-nav-item.level_1.open > .w-nav-list.level_2 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.w-nav-anchor.level_2 {
  display: block;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 300;
  color: #8d8d8c;
  transition: background .15s, color .15s;
}
.w-nav-anchor.level_2:hover { color: var(--orange); }
.current-menu-item > .w-nav-anchor.level_2 { color: var(--orange); }

/* Ocultar spans decorativos */
.ripple-container, .w-nav-title { }
.w-nav-anchor .w-nav-title { /* solo el texto */ }

/* Botón hamburger (oculto en desktop) */
.w-nav-control { display: none; }

/* En desktop el nav ocupa toda la altura de la barra */
.w-nav.layout_hor { height: var(--header-h); }

/* ============================================================
   NAVEGACIÓN MÓVIL
   Clases manejadas por main.js (ver index.html):
   .nav-open  → menú desplegado
   .nav-item-open → submenú abierto
   ============================================================ */
@media (max-width: 1000px) {

  /* Barra media: logo izquierda, hamburger derecha */
  .l-subheader.at_middle {
    position: relative;
    box-shadow: none !important;
  }
  .l-subheader.at_middle .l-subheader-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--header-h);
  }

  /* Nav: flex para que el hamburger quede a la derecha del contenedor */
  .w-nav { display: flex; align-items: center; justify-content: flex-end; width: auto; height: auto; flex-shrink: 0; }
  .w-nav.layout_hor { height: auto; }

  /* Hamburger — pegado a la derecha */
  .w-nav-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
  }
  .w-nav-control::before {
    font-family: 'FontAwesome';
    content: '\f0c9';
    font-size: 24px;
    color: #fff;
    line-height: 1;
  }

  /* Lista nivel 1: el tema (us.core.js) la controla con slideDownCSS/slideUpCSS
     (height via inline style). Empieza oculta (height:0, overflow:hidden).
     El inline style del tema sobreescribe el height de CSS cuando abre/cierra. */
  .w-nav-list.level_1 {
    display: block;
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(30,32,72,0.97);
    padding: 4px 0 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    z-index: 999;
  }

  /* Items nivel 1 */
  .w-nav-item.level_1 {
    float: none;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .w-nav-anchor.level_1 {
    display: block;
    height: auto;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 300;
    color: #fff !important;
    background: transparent !important;
    position: relative;
  }
  .w-nav-anchor.level_1:hover { color: var(--orange) !important; }

  /* Flecha submenú */
  .w-nav-arrow { display: none; }
  .menu-item-has-children > .w-nav-anchor.level_1 .w-nav-arrow {
    display: block;
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
  }
  /* El tema agrega clase .opened al item cuando el submenú está abierto */
  .w-nav-item.level_1.opened > .w-nav-anchor.level_1 .w-nav-arrow {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Submenú nivel 2: el tema usa slideDownCSS/slideUpCSS (height via inline).
     El tema inicializa con height:0 en switchTo. */
  .w-nav-list.level_2 {
    display: block;
    overflow: hidden;
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: rgba(0,0,0,.25);
    box-shadow: none;
    padding: 0; min-width: 0;
  }
  .w-nav-anchor.level_2 {
    display: block;
    padding: 10px 20px 10px 32px;
    font-size: 15px;
    color: #9e9e9e;
  }
  .w-nav-anchor.level_2:hover { color: var(--orange); }

  /* Logo */
  .w-logo-img { height: var(--header-h); }
  .w-logo-img img.for_default { height: 44px; max-height: 44px; width: auto; }

  /* Top bar en páginas con bg_solid */
  .l-header.bg_solid .l-subheader.at_top { display: block; }

  /* ── Header home en móvil: control total por JS propio ──
     Anulamos TODAS las clases del tema. El script inline de index.html
     maneja la visibilidad con la clase .mob-hidden / .mob-visible. */
  .l-header.pos_fixed.show_onscroll,
  .l-header.pos_fixed.show_onscroll.sticky,
  .l-header.pos_fixed.show_onscroll.transparent,
  .l-header.pos_fixed.show_onscroll.notransition {
    transform: none !important;
    transition: background-color 0.3s, box-shadow 0.3s !important;
    background-color: transparent !important;
    box-shadow: none !important;
    top: 0 !important;
  }

  /* Estado oculto: fuera de pantalla arriba */
  .l-header.pos_fixed.show_onscroll.mob-hidden {
    transform: translateY(-100%) !important;
    transition: transform 0.4s ease, background-color 0.3s !important;
  }

  /* Estado visible con fondo sólido */
  .l-header.pos_fixed.show_onscroll.mob-solid {
    transform: none !important;
    background-color: rgba(30,32,72,0.83) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
    transition: transform 0.4s ease, background-color 0.3s !important;
  }
  .l-header.pos_fixed.show_onscroll.mob-solid .l-subheader.at_top { display: flex !important; }
}

/* ============================================================
   SECCIONES (l-section)
   Padding-top en la primera sección para compensar header fijo
   ============================================================ */
.l-section {
  position: relative;
  overflow: hidden;
}
/* Hero home: el JS de parallax mueve .l-section-img verticalmente,
   necesita la sección con clip pero la imagen más alta que el contenedor */
.l-section.parallax_ver {
  overflow: hidden;
}
.l-section.parallax_ver .l-section-img {
  top: -15%;
  bottom: -15%;
  height: 130%;
  /* inset: 0 lo sobreescribimos para dar margen al parallax */
  inset: unset;
  left: 0; right: 0;
  width: 100%;
}

/* Empujar contenido bajo header fijo */
.l-content > .l-section:first-child {
  padding-top: 0; /* el hero ocupa pantalla completa o tiene su propia altura */
}

/* En páginas con bg_solid el header no es transparente: el contenido empieza después */
body:not(.home) .l-content > .l-section:first-child {
  /* hero type_large ya tiene su min-height propia */
}

/* --- Imagen de fondo --- */
.l-section-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* --- Overlay de color --- */
.l-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* --- Contenido siempre sobre fondo/overlay --- */
.l-section-h { position: relative; z-index: 3; }

/* --- Alturas de sección --- */

/* Pantalla completa (home hero) */
.l-section.height_full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-section.height_full > .l-section-h { width: 100%; }

/* Hero con imagen grande (páginas internas) */
.l-section.height_large {
  min-height: 420px;
}
.l-section.height_large > .l-section-h {
  width: 100%;
  padding: calc(var(--total-h) + 8vh) 0 8vh;
}

/* Sección de contenido estándar */
.l-section.height_medium {
  padding: 60px 0;
}

/* Overlay oscuro en hero full (home) para que el logo resalte */
.l-section.height_full.with_img .l-section-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

/* ============================================================
   GRID DE COLUMNAS (g-cols)
   ============================================================ */
.g-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

/* Offsets: padding lateral del contenedor */
.g-cols.offset_medium {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
}
.g-cols.offset_small {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
}
.g-cols.offset_none { padding: 0; }

/* Anchos de columna */
.full-width  { width: 100%; }
.one-half    { width: 50%; padding: 0 16px; }
.one-third   { width: 33.333%; padding: 0 16px; }
.two-thirds  { width: 66.666%; padding: 0 16px; }
.one-sixth   { width: 16.666%; padding: 0 8px; }
.one-fourth  { width: 25%; padding: 0 12px; }
.three-fourths { width: 75%; padding: 0 12px; }

/* vc_inner: contenedor anidado */
.vc_inner { width: 100%; }

/* Fila de certificaciones en hero home: a todo lo ancho, sin max-width ni padding */
.l-section.height_full .g-cols.vc_inner {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  justify-content: space-around;
}

/* ── Clases VC del sitio (posicionamiento logo y certs en hero home) ── */
.vc_custom_1740114706600 { margin-top: 30px !important; }
.vc_custom_1740114591690 { margin-top: -250px !important; padding-bottom: 200px !important; }
.vc_custom_1740115274723 { margin-top: -150px !important; }
/* quienes-somos */
.vc_custom_1720666325226 { padding-top: 20px !important; }
/* divisiones */
.vc_custom_1720206983514 { margin-top: -100px !important; }
/* obras / energeticos / arrendamiento / vigilancia */
.vc_custom_1720210153930 { margin-top: -100px !important; }
/* desarrollo-verticales */
.vc_custom_1773860958327 { margin-bottom: -10px !important; }
/* certificaciones */
.vc_custom_1720726053872 { padding: 8px !important; }

/* ============================================================
   TIPOGRAFÍA Y COMPONENTES DE CONTENIDO
   ============================================================ */

/* Títulos en hero (texto blanco centrado) */
.vc_custom_heading { }

/* Separador */
.w-separator { margin: 20px 0; overflow: hidden; clear: both; }
.w-separator-h {
  display: block;
  height: 2px;
  background: #e0e0e0;
  width: 60px;
  margin: 0 auto;
}
/* type_default: línea corta centrada (60px) — forzamos width siempre */
.w-separator.type_default .w-separator-h,
.w-separator.type_default.cont_none .w-separator-h {
  display: block !important;
  width: 60px !important;
  height: 2px;
  background: var(--blue-nav);
  margin: 0 auto;
}
.w-separator.type_default.color_primary .w-separator-h,
.w-separator.type_default.color_primary.cont_none .w-separator-h {
  background: var(--orange) !important;
  width: 60px !important;
  display: block !important;
  margin: 0 auto;
}
.w-separator.type_fullwidth .w-separator-h {
  display: block;
  height: 2px;
  width: 100%;
  background: #e0e0e0;
}
.w-separator.style_dotted .w-separator-h {
  background: none;
  border-top: 2px dotted #e0e0e0;
}
.w-separator.type_invisible .w-separator-h {
  display: block;
  background: transparent;
}
.w-separator.size_small  .w-separator-h { margin-top: 12px;  margin-bottom: 12px; }
.w-separator.size_medium .w-separator-h { margin-top: 20px;  margin-bottom: 20px; }
.w-separator.size_large  .w-separator-h { margin-top: 32px;  margin-bottom: 32px; }
.w-separator.type_invisible .w-separator-h { height: 0; }
.w-separator.size_small.type_invisible  { margin: 8px 0; }
.w-separator.size_medium.type_invisible { margin: 20px 0; }

/* Iconbox */
.w-iconbox { text-align: center; margin-bottom: 16px; }
.w-iconbox.iconpos_top .w-iconbox-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.w-iconbox.no_text .w-iconbox-icon { margin-bottom: 0; }

/* Imagen centrada */
.w-image.align_center { text-align: center; }
.w-image.align_center img { margin: 0 auto; }
.w-image { margin-bottom: 16px; }

/* Texto en columna */
.wpb_text_column { margin-bottom: 16px; }
.wpb_wrapper p { margin: 0 0 .75em; }

/* ── Botón "Ver más" ── */
.w-btn-wrapper { margin: 16px 0; }
.w-btn-wrapper.align_center { text-align: center; }

.w-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: opacity .2s, box-shadow .2s;
}
.w-btn.style_raised { box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.w-btn.style_raised:hover { box-shadow: 0 4px 12px rgba(0,0,0,.3); opacity: .9; }
.w-btn-label { }
.w-btn .fa { font-size: 14px; }

/* ============================================================
   GALERÍA (w-gallery)
   ============================================================ */
.w-gallery { width: 100%; }

.w-gallery-list {
  display: grid;
  gap: 8px;
}

/* 4 columnas (default) */
.w-gallery.cols_4 .w-gallery-list  { grid-template-columns: repeat(4, 1fr); }
.w-gallery.cols_3 .w-gallery-list  { grid-template-columns: repeat(3, 1fr); }

/* Masonry: isotope lo maneja en JS, le damos base de grid */
.w-gallery.layout_masonry .w-gallery-list { grid-template-columns: repeat(4, 1fr); }

.w-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.w-gallery-item-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.w-gallery-item:hover .w-gallery-item-img { transform: scale(1.05); }

/* Hover overlay */
.w-gallery-item-hover {
  position: absolute;
  inset: 0;
  background: rgba(55,59,121,.55);
  opacity: 0;
  transition: opacity .3s;
}
.w-gallery-item:hover .w-gallery-item-hover { opacity: 1; }

/* Título al hover */
.w-gallery-item-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .3s;
  text-align: center;
}
.w-gallery-item:hover .w-gallery-item-title { opacity: 1; }

/* Galería masonry: items con height auto */
.w-gallery.layout_masonry .w-gallery-item-img {
  height: auto;
  min-height: 140px;
}

/* ============================================================
   BACK-TO-TOP
   ============================================================ */
.w-toplink {
  position: fixed;
  bottom: -60px;
  right: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: bottom .3s, background .2s, box-shadow .2s;
  cursor: pointer;
}
.w-toplink.active { bottom: 16px; }
.w-toplink:hover { background: rgba(0,0,0,.55); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.w-toplink::before { content: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.l-footer { }
.l-subfooter.at_bottom {
  background-color: #111;
  color: #757575;
}
.l-subfooter-h {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  text-align: center;
}
.w-copyright {
  font-size: 13px;
}
.w-copyright a {
  color: #9e9e9e;
}
.w-copyright a:hover { color: var(--orange); opacity: 1; }

/* ============================================================
   MAGNIFIC POPUP — estilos mínimos de soporte
   (el JS del plugin inyecta sus propios estilos, esto es respaldo)
   ============================================================ */
.mfp-bg {
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: .8;
}
.mfp-wrap {
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none;
  backface-visibility: hidden;
}
.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%; height: 100%;
  left: 0; top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}
.mfp-container::before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}
.mfp-figure img { max-width: 90vw; max-height: 90vh; }
.mfp-close {
  cursor: pointer;
  position: absolute;
  right: 0; top: 0;
  text-decoration: none;
  text-align: center;
  opacity: .65;
  padding: 0 0 18px 10px;
  color: #fff;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
  background: transparent;
  border: 0;
  z-index: 1046;
}
.mfp-close:hover { opacity: 1; }
.mfp-arrow {
  position: absolute;
  opacity: .65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px; height: 110px;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.mfp-arrow:hover { opacity: 1; }
.mfp-arrow-left  { left: 0; }
.mfp-arrow-right { right: 0; }
.mfp-arrow::before,
.mfp-arrow::after {
  content: '';
  display: block;
  width: 0; height: 0;
  position: absolute;
  top: 36px; left: 26px;
  border: medium inset transparent;
}
.mfp-arrow-left::after  { border-right:  17px solid #fff; border-top-width:    13px; border-bottom-width: 13px; margin-left: 0;  }
.mfp-arrow-right::after { border-left:   17px solid #fff; border-top-width:    13px; border-bottom-width: 13px; margin-left: 31px; }
.mfp-counter {
  position: absolute;
  top: 0; right: 0;
  color: #ccc;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.mfp-loading.mfp-figure { display: none; }
.mfp-hide { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .one-third  { width: 50%; }
  .two-thirds { width: 100%; }
  .one-sixth  { width: 25%; }

  .w-gallery.cols_4 .w-gallery-list,
  .w-gallery.layout_masonry .w-gallery-list { grid-template-columns: repeat(3, 1fr); }

  .g-cols.offset_medium { padding-left: 24px; padding-right: 24px; }
}

/* Móvil grande (≤ 768px) */
@media (max-width: 768px) {
  :root { --header-h: 70px; --topbar-h: 32px; --total-h: 102px; }
  body { font-size: 13px; line-height: 23px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }

  .one-half, .one-third, .two-thirds { width: 100%; padding: 0; margin-bottom: 24px; }
  .one-sixth { width: 33.333%; }

  .w-gallery.cols_4 .w-gallery-list,
  .w-gallery.layout_masonry .w-gallery-list { grid-template-columns: repeat(2, 1fr); }

  .l-section.height_large { min-height: 280px; }
  .l-section.height_large > .l-section-h { padding: calc(var(--total-h) + 60px) 0 60px; }
  .l-section.height_medium { padding: 40px 0; }

  /* Certificaciones en hero home: 3 por fila */
  .g-cols.vc_inner > .one-sixth { width: 30%; }
}

/* Móvil (≤ 480px) */
@media (max-width: 480px) {
  .one-sixth { width: 46%; margin-bottom: 12px; }

  .w-gallery.cols_4 .w-gallery-list,
  .w-gallery.layout_masonry .w-gallery-list { grid-template-columns: repeat(2, 1fr); }

  .g-cols.offset_medium,
  .g-cols.offset_small { padding-left: 16px; padding-right: 16px; }

  .w-logo-img img.for_default { height: 36px; max-height: 36px; width: auto; }

  /* Logo front-19 más pequeño en hero home */
  .w-image.align_center img[src*="front-19"],
  .w-image.align_center img[src*="front-19.png"] {
    max-width: 260px;
    width: 75%;
    margin: 0 auto;
  }

  /* Ajuste VC custom hero home en móvil */
  .vc_custom_1740114591690 { margin-top: -100px !important; padding-bottom: 80px !important; }
  .vc_custom_1740115274723 { margin-top: -60px !important; }
}

/* ============================================================
   ANIMACIONES DE ENTRADA (portadas del tema Zephyr)
   animate_aft = desde arriba · animate_afb = desde abajo
   animate_start = activa la animación (lo agrega el JS del tema)
   d1-d5 = delays · s1-s5 = velocidades
   ============================================================ */

.animate_start {
  animation-duration: 0.7s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.78,.13,.15,.86);
}

/* Appear From Top */
@keyframes aft {
  from { opacity: 0; transform: translateY(-50px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate_aft           { opacity: 0; }
.animate_aft.animate_start { animation-name: aft; opacity: 1; }

/* Appear From Bottom */
@keyframes afb {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate_afb           { opacity: 0; }
.animate_afb.animate_start { animation-name: afb; opacity: 1; }

/* Appear From Left */
@keyframes afl {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate_afl           { opacity: 0; }
.animate_afl.animate_start { animation-name: afl; opacity: 1; }

/* Appear From Right */
@keyframes afr {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate_afr           { opacity: 0; }
.animate_afr.animate_start { animation-name: afr; opacity: 1; }

/* Appear From Center (escala) */
@keyframes afc {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1); }
}
.animate_afc           { opacity: 0; }
.animate_afc.animate_start { animation-name: afc; opacity: 1; }

/* Fade */
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate_fade          { opacity: 0; }
.animate_fade.animate_start { animation-name: fade; opacity: 1; }

/* Delays */
.d1.animate_start { animation-delay: 0.2s; }
.d2.animate_start { animation-delay: 0.4s; }
.d3.animate_start { animation-delay: 0.6s; }
.d4.animate_start { animation-delay: 0.8s; }
.d5.animate_start { animation-delay: 1.0s; }

/* Velocidades */
.s1.animate_start { animation-duration: 0.6s; }
.s2.animate_start { animation-duration: 0.8s; }
.s3.animate_start { animation-duration: 1.0s; }
.s4.animate_start { animation-duration: 1.2s; }
.s5.animate_start { animation-duration: 1.4s; }

/* ============================================================
   AVISO DE PRIVACIDAD (texto largo)
   ============================================================ */
.l-section .wpb_wrapper h3,
.l-section .wpb_wrapper h4,
.l-section .wpb_wrapper h5 { margin-bottom: .75em; }
.l-section .wpb_wrapper ul,
.l-section .wpb_wrapper ol { padding-left: 1.5em; margin-bottom: 1em; }
