/* ================================================================
   SEMAM SpA – Sistema de Diseño Corporativo
   Versión 3.0 | Tema: Blanco / Rojo Corporativo
   ================================================================
   COLORES DE MARCA:
   ⚠️ Actualizar --red con el Pantone/hex exacto del manual de marca
   ================================================================ */

/* ── 1. VARIABLES DE MARCA ──────────────────────────────────────── */
:root {
  /* Rojo corporativo – ajustar al color exacto del logo */
  --red:          #C8222A;
  --red-dark:     #A01B22;
  --red-hover:    #B31F26;
  --red-light:    #FDF2F2;
  --red-a10:      rgba(200,34,42,.10);
  --red-a15:      rgba(200,34,42,.15);
  --red-a20:      rgba(200,34,42,.20);

  /* Fondos (blancos y grises muy suaves) */
  --white:        #FFFFFF;
  --bg1:          #F8F9FA;   /* sección alternada muy suave */
  --bg2:          #F1F4F6;   /* fondo tarjeta */
  --bg3:          #E8ECF0;   /* borde visible */

  /* Texto */
  --t1:           #111827;   /* títulos */
  --t2:           #374151;   /* cuerpo */
  --t3:           #6B7280;   /* secundario */
  --t4:           #9CA3AF;   /* desactivado */

  /* Bordes */
  --br:           #E5E7EB;
  --br2:          #D1D5DB;

  /* Sombras */
  --sh0:          0 1px 3px rgba(0,0,0,.05);
  --sh1:          0 2px 8px rgba(0,0,0,.06);
  --sh2:          0 6px 20px rgba(0,0,0,.08);
  --sh3:          0 12px 40px rgba(0,0,0,.10);
  --sh4:          0 24px 64px rgba(0,0,0,.12);
  --sh-red:       0 6px 24px rgba(200,34,42,.30);

  /* Footer oscuro */
  --footer-bg:    #111827;
  --footer-t:     #D1D5DB;
  --footer-tm:    #9CA3AF;
  --footer-br:    #1F2937;

  /* Tipografía */
  --font-h:       'Montserrat', system-ui, sans-serif;
  --font-b:       'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h:        120px;
  --max:          1200px;
  --r-sm:         6px;
  --r:            10px;
  --r-lg:         16px;
  --r-xl:         24px;
  --tr:           .25s ease;
}

/* ── 2. RESET Y BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--t2);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-b); }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--br2); border-radius: 3px; }

/* ── 3. TIPOGRAFÍA ──────────────────────────────────────────────── */
.h1 {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--t1);
}
.h2 {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--t1);
}
.h3 {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--t1);
}
.h4 { font-size: 1rem; font-weight: 700; color: var(--t1); }
.lead { font-size: 1.08rem; color: var(--t3); line-height: 1.8; }
.small { font-size: .82rem; }
.red-text { color: var(--red); }
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 8px;
}

/* ── 4. LAYOUT UTILS ────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.text-center { text-align: center; }
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 48px; }
.mb-xl { margin-bottom: 64px; }
.flex { display: flex; align-items: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

/* Grids */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* Section header pattern */
.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header .h2 { margin-bottom: 14px; }
.section-header .lead { max-width: 560px; }
.section-header.centered .lead { margin: 0 auto; }

/* ── 5. BOTONES ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--tr);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg  { padding: 16px 32px; font-size: .95rem; }
.btn-sm  { padding: 9px 18px; font-size: .82rem; }
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-red);
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--t1);
  border-color: var(--br2);
}
.btn-outline-dark:hover {
  border-color: var(--t2);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--red);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ── 6. NAVEGACIÓN ──────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--tr);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
#nav.scrolled {
  border-bottom-color: var(--br);
  box-shadow: var(--sh1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -24px;
}
/* Logo color (para nav blanca) */
.logo-color {
  height: 110px;
  width: auto;
  object-fit: contain;
  display: none; /* oculto por defecto; visible cuando nav está scrolled */
}
/* Logo blanco (para nav sobre hero oscuro) */
.logo-blanco {
  height: 110px;
  width: auto;
  object-fit: contain;
  filter: invert(1); /* negro → blanco sobre el hero oscuro */
  display: block;    /* visible por defecto */
}
/* Nav blanca (scrolled): mostrar color, ocultar blanco */
#nav.scrolled .logo-color  { display: block; }
#nav.scrolled .logo-blanco { display: none; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: .87rem;
  font-weight: 500;
  color: var(--t2);
  transition: var(--tr);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); background: var(--red-a10); }
.nav-links > li > a i { font-size: .65rem; transition: transform .2s; }
.nav-links > li:hover > a i { transform: rotate(180deg); }

/* Dropdown mega-menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--br);
  box-shadow: var(--sh4);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.dropdown-col-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t4);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--br);
  margin-bottom: 8px;
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--t2);
  font-size: .86rem;
  font-weight: 500;
  transition: var(--tr);
}
.dropdown-link:hover { background: var(--red-a10); color: var(--red); }
.dropdown-link i {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: .75rem;
  flex-shrink: 0;
  transition: var(--tr);
}
.dropdown-link:hover i { background: var(--red-a15); }
.dropdown-link .link-sub { font-size: .75rem; color: var(--t4); display: block; }
.dropdown-col-right .dropdown-link { padding: 7px 10px; }

/* CTA nav */
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: var(--tr);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--r);
  color: var(--t1);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--tr);
  display: block;
}
.mobile-menu a:hover { background: var(--bg1); color: var(--red); }
.mobile-menu-sep {
  height: 1px;
  background: var(--br);
  margin: 8px 0;
}
.mobile-menu-group-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t4);
  padding: 12px 16px 4px;
}
.mobile-menu-sub a {
  padding: 9px 16px 9px 32px;
  font-size: .9rem;
  color: var(--t3);
}

/* ── NAV TRANSPARENTE sobre hero (solo cuando está en la cima) ───── */
#nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
#nav:not(.scrolled) .nav-logo-text { color: #fff; }
#nav:not(.scrolled) .nav-logo-sub  { color: rgba(255,255,255,.5); }
#nav:not(.scrolled) .nav-links > li > a { color: rgba(255,255,255,.82); }
#nav:not(.scrolled) .nav-links > li > a:hover,
#nav:not(.scrolled) .nav-links > li > a.active { color: #fff; background: rgba(255,255,255,.12); }
#nav:not(.scrolled) .btn-outline-dark { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); }
#nav:not(.scrolled) .btn-outline-dark:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.75); color: #fff; }
#nav:not(.scrolled) .hamburger span { background: #fff; }

/* Nav oscuro forzado para páginas con hero claro (sin fondo oscuro) */
#nav.nav-dark:not(.scrolled) { background: rgba(255,255,255,.98); border-bottom-color: var(--br); }
#nav.nav-dark:not(.scrolled) .nav-logo-text { color: var(--t1); }
#nav.nav-dark:not(.scrolled) .nav-logo-sub  { color: var(--t3); }
#nav.nav-dark:not(.scrolled) .nav-links > li > a { color: var(--t2); }
#nav.nav-dark:not(.scrolled) .nav-links > li > a:hover,
#nav.nav-dark:not(.scrolled) .nav-links > li > a.active { color: var(--t1); background: var(--bg2); }
#nav.nav-dark:not(.scrolled) .btn-outline-dark { color: var(--t1); border-color: var(--br2); }
#nav.nav-dark:not(.scrolled) .btn-outline-dark:hover { background: var(--bg2); border-color: var(--t3); color: var(--t1); }
#nav.nav-dark:not(.scrolled) .hamburger span { background: var(--t1); }

/* ── 7. HERO (pantalla completa) ─────────────────────────────────── */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #111827;
}
/* ── VIDEO DE FONDO ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Overlay azul acero con ventana clara en el centro-alto (zona del logo) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Ventana más clara donde vive el logo para que el negro sea legible */
    radial-gradient(ellipse 75% 50% at 50% 28%, rgba(12,45,110,.18) 0%, rgba(12,45,110,0) 70%),
    /* Tinte azul principal */
    linear-gradient(175deg,
      rgba(12, 42, 105, .58) 0%,
      rgba(10, 35, 90,  .62) 45%,
      rgba(4,  18, 52,  .88) 100%
    );
  z-index: 1;
}
/* Contenido sobre el video – centrado */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 72px;
}
.hero-inner {
  max-width: 860px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ── BADGE ETFA ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,34,42,.20);
  border: 1px solid rgba(200,34,42,.50);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-badge i { font-size: .62rem; color: #f87171; }

/* ── TITULAR ── */
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(2.0rem, 4.0vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 20px;
}
/* "(ETFA) de Ruido" en rojo brillante — más visible sobre video oscuro */
.hero-title em {
  font-style: normal;
  color: #ff4040;
  text-shadow: 0 0 40px rgba(255,64,64,.35);
}

/* ── DESCRIPCIÓN ── */
.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,.72);
  line-height: 1.82;
  max-width: 580px;
  margin-bottom: 0;
}

/* ── SLIDER DE ÁREAS DE ESPECIALIZACIÓN ── */
.hero-slides {
  position: relative;
  width: 100%;
  min-height: 340px;
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}
.hero-slide .hero-desc { margin-bottom: 0; }
.hero-slide-dots {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  padding: 0;
  transition: var(--tr);
}
.hero-dot:hover { background: rgba(255,255,255,.5); }
.hero-dot.active { background: var(--red); }
@media (max-width: 1024px) {
  .hero-slides { min-height: 380px; }
}
@media (max-width: 768px) {
  .hero-slides { min-height: 420px; }
}
@media (max-width: 480px) {
  .hero-slides { min-height: 460px; }
}

/* ── CTAs ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
  justify-content: center;
}

/* ── CERTIFICACIONES ── */
.hero-trust {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.13);
  width: 100%;
}
.hero-trust-certs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 13px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition: var(--tr);
}
.trust-badge:hover { background: rgba(255,255,255,.15); }
.trust-badge i { color: #f87171; font-size: .68rem; }
/* Barra de estadísticas en la base del hero */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 3px solid var(--red);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--br);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-h);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: .72rem; color: var(--t3); font-weight: 500; line-height: 1.4; }

/* ── 8. BARRA DE CREDENCIALES ───────────────────────────────────── */
.creds-bar {
  background: var(--t1);
  padding: 28px 0;
}
.creds-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 28px;
  position: relative;
  cursor: pointer;
  border-radius: var(--r);
  transition: var(--tr);
}
.cred-item:hover, .cred-item:focus-visible {
  background: rgba(255,255,255,.06);
  outline: none;
}
.cred-item:hover .cred-icon {
  background: var(--red);
  border-color: var(--red);
}
.cred-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 28px; width: 1px;
  background: rgba(255,255,255,.12);
}
.cred-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(200,34,42,.25);
  border: 1px solid rgba(200,34,42,.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
}
.cred-text strong { display: block; color: #fff; font-size: .88rem; font-weight: 600; }
.cred-text span   { font-size: .75rem; color: rgba(255,255,255,.55); }

/* ── 8.5 ÁREAS DE ESPECIALIZACIÓN (hub visual) ──────────────────── */
.specialty-frame {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-xl);
  box-shadow: var(--sh1);
  padding: 36px;
}
@media (min-width: 641px) {
  .specialty-frame {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .specialty-frame { padding: 36px 20px; }
}
.specialty-hub {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.specialty-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.specialty-lines line {
  stroke: var(--red);
  stroke-opacity: .35;
  stroke-width: 2;
  stroke-dasharray: 8 4;
  stroke-linecap: round;
}
.specialty-hub.visible .specialty-lines line {
  animation: specialty-dash 1.4s linear infinite;
}
@keyframes specialty-dash {
  to { stroke-dashoffset: -24; }
}
.specialty-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--sh2);
  border: 1px solid var(--br);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .6s ease, transform .6s ease;
}
.specialty-hub.visible .specialty-center {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.specialty-logo { width: 100%; height: auto; object-fit: contain; }
.specialty-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 170px;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  transition: opacity .5s ease, transform .5s ease;
}
.specialty-hub.visible .specialty-node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.specialty-hub.visible .node-nw { transition-delay: .15s; }
.specialty-hub.visible .node-ne { transition-delay: .30s; }
.specialty-hub.visible .node-sw { transition-delay: .45s; }
.specialty-hub.visible .node-se { transition-delay: .60s; }
.specialty-node span {
  font-size: .88rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.3;
  white-space: nowrap;
}
.specialty-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--br);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--red);
  transition: var(--tr);
}
.specialty-node:hover .specialty-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.08);
}
.node-nw { top: 16%; left: 16%; }
.node-ne { top: 16%; left: 84%; }
.node-sw { top: 84%; left: 16%; }
.node-se { top: 84%; left: 84%; }

@media (max-width: 640px) {
  .specialty-hub {
    aspect-ratio: auto;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }
  .specialty-lines { display: none; }
  .specialty-center { position: static; width: 150px; height: 150px; transform: scale(.7); }
  .specialty-hub.visible .specialty-center { transform: scale(1); }
  .specialty-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
  }
  .specialty-node {
    position: static;
    width: auto;
    transform: scale(.5);
  }
  .specialty-hub.visible .specialty-node {
    transform: scale(1);
  }
  .specialty-node span {
    white-space: normal;
  }
}

/* ── 9. SOBRE NOSOTROS ──────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg2);
  height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.about-img-logo {
  width: 80%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}
.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px; height: 160px;
  border-radius: var(--r-xl);
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 16px;
  color: #fff;
  box-shadow: var(--sh-red);
}
.about-img-accent-num {
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}
.about-img-accent-text { font-size: .72rem; font-weight: 600; opacity: .85; line-height: 1.3; margin-top: 4px; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.about-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: var(--t2);
  text-decoration: none;
  border-radius: var(--r-sm);
  padding: 4px 6px;
  margin: -4px -6px;
  transition: var(--tr);
}
.about-check:hover {
  color: var(--red);
  background: var(--red-a10);
}
.about-check i { color: var(--red); margin-top: 3px; flex-shrink: 0; font-size: .8rem; }

/* ── 10. TIMELINE ───────────────────────────────────────────────── */
.timeline-wrap { position: relative; max-width: 820px; margin: 0 auto; }
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--br2);
  transform: translateX(-50%);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 24px;
  align-items: flex-start;
  margin-bottom: 44px;
}
.tl-left  { text-align: right; padding: 8px 0; }
.tl-right { text-align: left;  padding: 8px 0; }
.tl-dot-col { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
  flex-shrink: 0;
  z-index: 1;
  margin-top: 10px;
}
.tl-content {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--sh0);
  transition: var(--tr);
}
.tl-content:hover { box-shadow: var(--sh2); border-color: var(--red-a20); }
.tl-year {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.tl-content h4 { font-size: .96rem; font-weight: 700; margin-bottom: 5px; color: var(--t1); }
.tl-content p  { font-size: .84rem; color: var(--t3); line-height: 1.65; }
.tl-item:nth-child(even) .tl-left  { order: 3; text-align: left; }
.tl-item:nth-child(even) .tl-right { order: 1; text-align: right; }
.tl-item:nth-child(even) .tl-dot-col { order: 2; }

/* ── 11. TARJETAS DE SERVICIO ───────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-xl);
  transition: var(--tr);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  z-index: 2;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: var(--sh3);
  transform: translateY(-4px);
  border-color: var(--red-a20);
}
.service-card-img {
  height: 160px;
  background: linear-gradient(145deg, var(--bg2), var(--bg3));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: transform .4s ease;
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--red-a10);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1.25rem;
  transition: var(--tr);
  flex-shrink: 0;
}
.service-card-img .service-icon {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(2px);
}
.service-card:hover .service-icon { background: var(--red); color: #fff; }
.service-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 9px; color: var(--t1); }
.service-card p  { font-size: .83rem; color: var(--t3); line-height: 1.65; flex: 1; }
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--br);
}
.service-norm { font-size: .72rem; color: var(--t4); font-weight: 500; }
.service-card-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3);
  font-size: .7rem;
  transition: var(--tr);
}
.service-card:hover .service-card-arrow {
  background: var(--red);
  color: #fff;
}
/* ── 12. INDUSTRIAS ─────────────────────────────────────────────── */
.industry-card {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--tr);
}
.industry-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-2px);
  border-color: var(--red-a20);
}
.industry-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: var(--red-a10);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.1rem;
  flex-shrink: 0;
}
.industry-card h3 { font-size: .94rem; font-weight: 700; margin-bottom: 5px; color: var(--t1); }
.industry-card p  { font-size: .82rem; color: var(--t3); line-height: 1.6; }

/* ── 13. VENTAJAS ───────────────────────────────────────────────── */
.adv-card {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  transition: var(--tr);
}
.adv-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); }
.adv-num {
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 2px;
}
.adv-unit { font-size: .72rem; color: var(--t4); letter-spacing: .06em; text-transform: uppercase; }
.adv-card h4 { font-size: .94rem; font-weight: 700; margin: 12px 0 7px; color: var(--t1); }
.adv-card p  { font-size: .82rem; color: var(--t3); line-height: 1.65; }

/* ── 16. EQUIPO ─────────────────────────────────────────────────── */
.team-card {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: var(--tr);
}
.team-card:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
.team-photo {
  height: 180px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--t4);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 20px; }
.team-body h4 { font-size: .96rem; font-weight: 700; color: var(--t1); margin-bottom: 3px; }
.team-role { font-size: .78rem; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.team-body p { font-size: .8rem; color: var(--t3); line-height: 1.6; }
.team-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--bg2);
  color: var(--t3);
  font-size: .8rem;
  margin-top: 12px;
  transition: var(--tr);
}
.team-link:hover { background: var(--red); color: #fff; }

/* ── 17. CLIENTES ───────────────────────────────────────────────── */
.client-logo {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 72px;
  transition: var(--tr);
}
.client-logo:hover { border-color: var(--red-a20); box-shadow: var(--sh1); }
.client-logo img { max-height: 40px; width: auto; object-fit: contain; transition: var(--tr); }
.client-logo span { font-size: .85rem; font-weight: 600; color: var(--t3); }
.client-logo img.img-loaded + span { display: none; }

/* ── 18. FAQ ────────────────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--tr);
}
.faq-item.open { border-color: var(--red-a20); box-shadow: var(--sh1); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px;
  background: none; border: none;
  color: var(--t1); font-size: .94rem; font-weight: 600;
  cursor: pointer; text-align: left;
  font-family: var(--font-b);
  transition: var(--tr);
}
.faq-q:hover { color: var(--red); }
.faq-item.open .faq-q { color: var(--red); }
.faq-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); font-size: .7rem;
  transition: var(--tr);
}
.faq-item.open .faq-icon { background: var(--red); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 2400px; }
.faq-a p { padding: 0 22px 18px; color: var(--t3); font-size: .88rem; line-height: 1.8; }
.faq-a ul { padding: 0 22px 18px 44px; color: var(--t3); font-size: .88rem; line-height: 1.8; }
.faq-a li { margin-bottom: 4px; }
.faq-a em { color: var(--t2); }

/* ── 19. CONTACTO / FORMULARIO ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: var(--tr);
}
.contact-item:hover { border-color: var(--red-a20); }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: var(--red-a10);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: .95rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: .84rem; font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: .84rem; color: var(--t3); }
.contact-item a:hover { color: var(--red); }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--sh2);
}
.contact-form-wrap h3 { margin-bottom: 4px; }
.contact-form-wrap > p { font-size: .85rem; color: var(--t3); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--t2); margin-bottom: 6px; letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg1);
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  padding: 11px 14px;
  color: var(--t1);
  font-family: var(--font-b); font-size: .88rem;
  transition: var(--tr);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--red-a10);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-privacy { font-size: .76rem; color: var(--t4); margin-top: 10px; display: flex; align-items: center; gap: 5px; }
.form-privacy i { color: var(--red); }
#form-success {
  display: none; text-align: center;
  padding: 28px;
  color: var(--t1);
}
#form-success i { font-size: 2.5rem; color: #10B981; margin-bottom: 12px; display: block; }
#form-success h4 { margin-bottom: 6px; }
#form-success p  { color: var(--t3); font-size: .9rem; }

/* ── 20. CTA BANNER ─────────────────────────────────────────────── */
.cta-section {
  background: var(--red);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-section h2, .cta-section p { color: #fff; position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p  { opacity: .85; font-size: 1.05rem; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── 21. FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  padding: 64px 0 28px;
  color: var(--footer-t);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand .nav-logo-sub  { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: .84rem; color: var(--footer-tm); line-height: 1.75; margin: 14px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--footer-br);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-tm); font-size: .82rem;
  transition: var(--tr);
}
.social-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col h4 {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .84rem; color: var(--footer-tm); transition: var(--tr); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--footer-br);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-certs { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-cert {
  font-size: .7rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--footer-br);
  padding: 4px 10px; border-radius: 100px;
  color: rgba(255,255,255,.4);
}

/* ── 22. FLOAT BUTTON ───────────────────────────────────────────── */
.float-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: var(--red);
  color: #fff;
  border: none; border-radius: 100px;
  padding: 13px 20px;
  font-weight: 600; font-size: .87rem;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,34,42,.45);
  transition: var(--tr);
  font-family: var(--font-b);
}
.float-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,34,42,.5); }

/* ── 23. SERVICE PAGE STYLES ────────────────────────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 420px;
  background: var(--bg1);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero.has-bg {
  background: linear-gradient(rgba(17,24,39,.62), rgba(17,24,39,.62));
  color: #fff;
}
.page-hero.has-bg .breadcrumb a,
.page-hero.has-bg .breadcrumb span { color: rgba(255,255,255,.65); }
.page-hero.has-bg .breadcrumb a:hover { color: #fff; }
.page-hero.has-bg .page-hero-label { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.page-hero.has-bg .h1,
.page-hero.has-bg .lead { color: rgba(255,255,255,.9); }
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.page-hero-content { position: relative; z-index: 1; padding: 56px 0; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--t3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--t3); transition: var(--tr); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: .55rem; color: var(--t4); }
.page-hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red-a10); border: 1px solid var(--red-a20);
  color: var(--red); padding: 5px 13px; border-radius: 100px;
  margin-bottom: 16px;
}
.page-hero-label i { font-size: .65rem; }
.page-hero .h1 { max-width: 700px; margin-bottom: 16px; }
.page-hero .lead { max-width: 640px; }
.page-hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 28px;
  border-top: 1px solid var(--br);
}
.page-hero.has-bg .page-hero-meta { border-top-color: rgba(255,255,255,.15); }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--t3); }
.page-hero.has-bg .meta-item { color: rgba(255,255,255,.7); }
.meta-item i { color: var(--red); }
.page-hero.has-bg .meta-item i { color: rgba(255,255,255,.8); }

/* Service content styles */
.service-content { padding: 80px 0; }
.service-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.service-sidebar {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 16px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh0);
}
.sidebar-card h4 { font-size: .9rem; margin-bottom: 12px; color: var(--t1); }
.sidebar-nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: .85rem; color: var(--t2); transition: var(--tr);
  font-weight: 500;
}
.sidebar-nav-link:hover { background: var(--red-a10); color: var(--red); }
.sidebar-nav-link i { font-size: .7rem; color: var(--red); }
.sidebar-nav-link.active { background: var(--red-a10); color: var(--red); font-weight: 600; }
.sidebar-cta {
  background: var(--red);
  color: #fff !important;
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}
.sidebar-cta p { font-size: .82rem; opacity: .85; margin-bottom: 14px; margin-top: 6px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }
.sidebar-norms li {
  font-size: .82rem; color: var(--t3);
  padding: 7px 0; border-bottom: 1px solid var(--br);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-norms li:last-child { border-bottom: none; }
.sidebar-norms i { color: var(--red); font-size: .7rem; flex-shrink: 0; }

/* Service body content */
.content-block { margin-bottom: 48px; }
.content-block h2 { margin-bottom: 16px; }
.content-block p, .content-block li { color: var(--t2); line-height: 1.8; margin-bottom: 12px; }
.content-block ul { list-style: none; }
.content-block ul li { display: flex; align-items: flex-start; gap: 10px; }
.content-block ul li::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  margin-top: 8px;
}

/* Process steps */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--br);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-h);
  font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 5px; }
.step-content p  { font-size: .88rem; color: var(--t3); }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--t4);
  cursor: pointer;
  transition: var(--tr);
}
.gallery-item:hover { box-shadow: var(--sh2); transform: scale(1.02); }

/* Related services */
.related-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: var(--tr);
  display: flex; align-items: flex-start; gap: 12px;
}
.related-card:hover { border-color: var(--red-a20); box-shadow: var(--sh1); transform: translateY(-2px); }
.related-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--red-a10);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: .85rem;
  flex-shrink: 0;
}
.related-card h4 { font-size: .88rem; font-weight: 700; margin-bottom: 3px; color: var(--t1); }
.related-card p  { font-size: .78rem; color: var(--t3); }

/* ── 23.5 MODAL DE CERTIFICADOS ─────────────────────────────────── */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cert-modal.open { display: flex; }
.cert-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.75);
  backdrop-filter: blur(4px);
}
.cert-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px;
  max-width: min(90vw, 700px);
  max-height: 90vh;
  box-shadow: var(--sh3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-modal-img {
  display: none;
  max-width: 100%;
  max-height: calc(90vh - 40px);
  border-radius: var(--r);
}
.cert-modal-missing {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 32px;
  color: var(--t3);
  text-align: center;
}
.cert-modal-missing i { font-size: 2.4rem; color: var(--t4); }
.cert-modal-close {
  position: absolute;
  top: -16px; right: -16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--sh2);
  transition: var(--tr);
}
.cert-modal-close:hover { transform: scale(1.08); }

/* ── 24. ANIMACIONES ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-right.visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.stagger.visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: .04s; }
.stagger.visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: .10s; }
.stagger.visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: .16s; }
.stagger.visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: .22s; }
.stagger.visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: .28s; }
.stagger.visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: .34s; }
.stagger.visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: .40s; }
.stagger.visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: .46s; }
.stagger.visible > *:nth-child(n+9) { opacity: 1; transform: none; transition-delay: .46s; }

/* ── 25. RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { padding: calc(var(--nav-h) + 48px) 0 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .clients-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .section { padding: 64px 0; }
  .logo-color, .logo-blanco { height: 60px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: calc(var(--nav-h) + 32px) 0 40px; }
  .hero-stats-inner { grid-template-columns: repeat(2,1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat { padding: 14px 10px; }
  .hero-stat-num { font-size: 1.7rem; }
  .hero-title { font-size: clamp(1.55rem, 5.5vw, 2.1rem); }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .timeline-wrap::before { left: 0; transform: none; }
  .tl-item { grid-template-columns: 0 auto 1fr; }
  .tl-left { display: none; }
  .tl-item:nth-child(even) .tl-left  { display: none; }
  .tl-item:nth-child(even) .tl-right { order: 3; text-align: left; }
  .tl-item:nth-child(even) .tl-dot-col { order: 1; }
  .tl-dot { margin-left: -7px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .related-services { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 24px; }
}
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .float-btn span { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
