/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #0B1622; overflow-x: hidden; }

/* ===== PAGE TRANSITIONS ===== */
/*
 * IMPORTANTE: body solo anima opacity, NUNCA transform.
 * Un transform activo en body convierte al body en containing block
 * de los elementos position:fixed, rompiendo el navbar sticky.
 */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* View Transitions API — navegadores modernos (Chrome 111+, Safari 18+) */
/* Sobreescribe la animación nativa con nuestra propia transición */
@supports (view-transition-name: none) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root) {
    animation: 0.28s cubic-bezier(0.4, 0, 1, 1) both pageLeave;
  }
  ::view-transition-new(root) {
    animation: 0.40s cubic-bezier(0.16, 1, 0.3, 1) both pageEnter;
  }
  @keyframes pageLeave {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
  }
}

/* ===== CSS VARIABLES ===== */
:root {
  --dark:       #060D18;
  --dark-2:     #0B1622;
  --dark-3:     #111E2E;
  --dark-4:     #162840;
  --accent:     #1E6FBF;
  --accent-l:   #3B8FD4;
  --accent-em:  #10B981;
  --gold:       #F59E0B;
  --white:      #FFFFFF;
  --gray:       #8B9AB0;
  --gray-l:     #C5CDD8;
  --light-bg:   #F4F7FB;
  --border:     rgba(255,255,255,0.07);
  --border-d:   #E2EBF4;
  --nav-h:      96px;
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.09);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== HEADING FONT ===== */
h1, h2, h3,
.pillar-title, .hero-h1, .hero-rotating,
.section-title, .logo-text, .stat-num { font-family: 'Poppins', 'Inter', sans-serif; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(6,13,24,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--glass-border), 0 4px 40px rgba(0,0,0,0.45);
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -0.3px; }
.logo-text span { display: block; font-weight: 400; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.55; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-link {
  color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.2px;
  transition: color 0.2s; cursor: pointer; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1.5px;
  background: var(--accent-l); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
#navbar.light .nav-link { color: rgba(11,22,34,0.72); }
#navbar.light .nav-link:hover { color: var(--dark-2); }

.nav-cta {
  background: var(--accent); color: #fff;
  padding: 10px 22px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.25s var(--ease);
  text-decoration: none; border: none;
}
.nav-cta:hover { background: var(--accent-l); box-shadow: 0 4px 20px rgba(30,111,191,0.4); transform: translateY(-1px); }

.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 36px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50%; color: rgba(255,255,255,0.70);
  font-size: 14px; text-decoration: none;
  transition: all 0.25s; margin-left: 4px;
}
.nav-social:hover { background: #0077B5; border-color: #0077B5; color: #fff; transform: translateY(-1px); }
#navbar.light .nav-social { border-color: rgba(11,22,34,0.18); color: var(--dark-2); }
#navbar.light .nav-social:hover { background: #0077B5; border-color: #0077B5; color: #fff; }

/* Service icon FA */
.service-icon-fa {
  width: 52px; height: 52px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(30,111,191,0.11) 0%, rgba(30,111,191,0.05) 100%);
  border-radius: 10px; border: 1px solid rgba(30,111,191,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.service-icon-fa i { font-size: 22px; color: var(--accent); }
.service-card:hover .service-icon-fa {
  background: linear-gradient(135deg, rgba(30,111,191,0.18) 0%, rgba(30,111,191,0.08) 100%);
  border-color: rgba(30,111,191,0.35); transform: translateY(-2px);
}
.contact-detail-icon i { font-size: 18px; color: var(--accent); }
.blog-icon-fa { display: flex; align-items: center; justify-content: center; }
.blog-icon-fa i { font-size: 52px; color: rgba(30,111,191,0.40); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; width: 100%; height: calc(100vh - var(--nav-h));
  background: rgba(6,13,24,0.97); backdrop-filter: blur(24px);
  z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
#mobile-menu.open { display: flex; }
.mobile-link {
  color: rgba(255,255,255,0.80); font-size: 22px; font-weight: 600;
  text-decoration: none; padding: 14px 40px; cursor: pointer;
  transition: color 0.2s; width: 100%; text-align: center;
  font-family: 'Poppins', sans-serif;
}
.mobile-link:hover { color: var(--accent-l); }
.mobile-cta {
  margin-top: 24px; background: var(--accent); color: #fff;
  padding: 14px 40px; border-radius: 5px; font-size: 16px; font-weight: 700;
  cursor: pointer; width: 80%; text-align: center;
  font-family: 'Poppins', sans-serif; text-decoration: none;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 5% 80px;
}
/* Fotos de fondo: crossfade entre slides + zoom (Ken Burns) en la que está activa */
.hero-slides-track { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide-img {
  position: absolute; inset: -6%;
  background: center/cover no-repeat;
  transform: scale(1); transition: transform 8s ease-out;
}
.hero-slide.active .hero-slide-img { transform: scale(1.08); }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,9,18,0.55) 0%, rgba(4,9,18,0.40) 40%, rgba(4,9,18,0.80) 80%, rgba(4,9,18,0.97) 100%),
    radial-gradient(ellipse 70% 80% at -10% 50%, rgba(30,111,191,0.20) 0%, transparent 65%);
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(30,111,191,0.22) 0%, transparent 70%); top: -120px; left: -80px; animation-duration: 14s; animation-delay: 0s; }
.hero-orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%); bottom: -60px; right: -40px; animation-duration: 18s; animation-delay: -6s; }
.hero-orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(30,111,191,0.12) 0%, transparent 70%); top: 40%; right: 15%; animation-duration: 11s; animation-delay: -3s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(28px,-22px) scale(1.04); }
  66%     { transform: translate(-18px,18px) scale(0.96); }
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(30,111,191,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30,111,191,0.035) 1px, transparent 1px);
  background-size: 64px 64px; animation: gridMove 28s linear infinite;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 0%, transparent 100%);
}
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(64px); } }
.hero-content {
  position: relative; z-index: 2; max-width: 920px; text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-content.fading { opacity: 0; transform: translateY(18px); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(30,111,191,0.10); border: 1px solid rgba(30,111,191,0.25);
  color: #7CC3F0; font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 7px 18px; border-radius: 100px;
  margin-bottom: 36px; backdrop-filter: blur(12px); font-family: 'Inter', sans-serif;
}
.hero-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-em); animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(16,185,129,0.9);
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.35;transform:scale(0.75)} }
.hero-h1 {
  font-size: clamp(13px, 1.4vw, 17px); font-weight: 700; color: rgba(255,255,255,0.55);
  line-height: 1.3; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px; font-family: 'Inter', sans-serif;
}
.hero-tagline { font-size: clamp(36px, 6vw, 74px); font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -2px; margin-bottom: 8px; }
.hero-rotating-wrap { display: block; margin-bottom: 32px; }
.hero-rotating {
  display: block; font-size: clamp(36px, 6vw, 74px); font-weight: 800;
  letter-spacing: -2px; line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-l) 0%, #8DCBF5 40%, var(--accent-em) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,0.50);
  font-weight: 400; line-height: 1.80; max-width: 580px; margin: 0 auto 52px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-l) 100%);
  color: #fff; padding: 16px 38px; border-radius: 6px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.3s var(--ease); text-decoration: none;
  border: none; box-shadow: 0 4px 28px rgba(30,111,191,0.38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 44px rgba(30,111,191,0.52); }
.btn-outline {
  background: rgba(255,255,255,0.05); color: #fff;
  padding: 16px 38px; border-radius: 6px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.3s var(--ease);
  border: 1.5px solid rgba(255,255,255,0.18); backdrop-filter: blur(12px);
  text-decoration: none;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 36px;
}
.hero-trust-label { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; color: rgba(255,255,255,0.25); text-transform: uppercase; white-space: nowrap; font-family: 'Inter', sans-serif; }
.trust-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.trust-badge {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.42); font-size: 12px; font-weight: 500;
  transition: all 0.3s var(--ease); white-space: nowrap; backdrop-filter: blur(12px); font-family: 'Inter', sans-serif;
}
.trust-badge:hover { border-color: rgba(30,111,191,0.4); color: rgba(255,255,255,0.78); background: rgba(30,111,191,0.08); }
.trust-badge i { font-size: 13px; color: var(--accent-l); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s ease; opacity: 0;
}
#hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.hero-arrow.prev { left: 28px; }
.hero-arrow.next { right: 28px; }
.hero-dots { position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; align-items: center; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; transition: all 0.35s ease; padding: 0; }
.hero-dot.active { background: #fff; width: 28px; border-radius: 4px; }
.hero-scroll { display: none; }

/* ===== SECTIONS COMMON ===== */
.section { padding: 100px 5%; }
.section-dark   { background: var(--dark-2); }
.section-dark-2 { background: var(--dark-3); }
.section-light  { background: var(--light-bg); }
.section-white  { background: #fff; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 20px; font-family: 'Inter', sans-serif;
}
.section-tag::before { content:''; width:20px; height:2px; background: linear-gradient(to right, var(--accent), transparent); }
.section-title { font-size: clamp(28px, 4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; }
.section-title.light { color: #fff; }
.section-title.dark  { color: var(--dark-2); }
.section-sub { font-size: 17px; color: var(--gray); line-height: 1.78; margin-top: 16px; max-width: 560px; font-family: 'Inter', sans-serif; }
.section-sub.light { color: rgba(255,255,255,0.48); }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 16px auto 0; }
.section-header.center .section-tag { justify-content: center; }
.section-header.center .section-tag::before { display:none; }

/* ===== PILLARS ===== */
#pillars { padding: 0; background: var(--dark-2); }
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.pillar {
  padding: 60px 44px; position: relative; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease); cursor: default;
}
.pillar::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: center; transition: transform 0.45s var(--ease);
}
.pillar::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,111,191,0.09) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.pillar:hover { background: rgba(30,111,191,0.05); transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,0.2); }
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover::after  { opacity: 1; }
.pillar-line {
  display: block; position: absolute; bottom: 0; left: 0; right: 0; height: 28px;
  background: linear-gradient(90deg, transparent 0%, rgba(30,111,191,0.12) 35%, rgba(30,111,191,0.45) 70%, rgba(30,111,191,0.80) 100%);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.pillar-num { font-size: clamp(64px, 6vw, 96px); font-weight: 900; line-height: 0.9; letter-spacing: -3px; color: transparent; -webkit-text-stroke: 1.5px rgba(30,111,191,0.28); margin-bottom: 4px; font-family: 'Poppins', sans-serif; }
.pillar-title { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: -0.5px; }
.pillar-text  { font-size: 15px; color: rgba(255,255,255,0.42); line-height: 1.78; font-family: 'Inter', sans-serif; }

/* ===== SERVICES PREVIEW ===== */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card {
  position: relative; overflow: hidden; border-radius: 16px; cursor: pointer;
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,0.30); }
.service-card-bg {
  position: absolute; inset: 0;
  background: url('../img/image-hero.jpg') center/cover no-repeat;
  transition: transform 0.65s var(--ease); will-change: transform;
}
.service-card:hover .service-card-bg { transform: scale(1.07); }
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,13,24,0.20) 0%, rgba(6,13,24,0.55) 40%, rgba(6,13,24,0.92) 100%);
  transition: background 0.35s;
}
.service-card:hover .service-card-overlay { background: linear-gradient(to bottom, rgba(6,13,24,0.30) 0%, rgba(6,13,24,0.65) 40%, rgba(6,13,24,0.96) 100%); }
.service-card-body { position: relative; z-index: 2; padding: 32px 28px 28px; }
.service-card-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px); font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.60); font-family: 'Inter', sans-serif;
  margin-bottom: 16px; width: fit-content;
}
.service-card-tag::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--accent-em); display:inline-block; flex-shrink:0; }
.service-card-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.35; }
.service-card-text  { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.75; font-family: 'Inter', sans-serif; }
.service-card-link  {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 22px; padding: 11px 26px; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.20); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px; font-family: 'Inter', sans-serif;
  transition: all 0.28s var(--ease);
}
.service-card:hover .service-card-link { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 28px rgba(30,111,191,0.50); transform: translateY(-1px); }

/* ===== STATS ===== */
#stats {
  background: linear-gradient(145deg, #1356A8 0%, #1A6BBE 45%, #1560AF 100%);
  padding: 84px 5%; position: relative; overflow: hidden;
}
#stats::before {
  content:''; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
#stats::after {
  content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:700px; height:350px; border-radius:50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 70%); pointer-events:none;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; position:relative; z-index:1; }
.stat { text-align: center; padding: 48px 20px; position: relative; }
.stat::after { content:''; position:absolute; right:0; top:22%; bottom:22%; width:1px; background: rgba(255,255,255,0.14); }
.stat:last-child::after { display:none; }
.stat-num { font-size: clamp(44px, 5.5vw, 70px); font-weight: 900; color: #fff; line-height: 1; letter-spacing: -2px; }
.stat-num span { font-size: 0.5em; font-weight: 700; vertical-align: super; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.62); font-weight: 500; margin-top: 14px; line-height: 1.5; font-family: 'Inter', sans-serif; }

/* ===== BLOG PREVIEW ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { border-radius: 12px; overflow: hidden; border: 1px solid #E8EEF6; background: #fff; cursor: pointer; transition: all 0.35s var(--ease); }
.blog-card:hover { box-shadow: 0 16px 52px rgba(0,0,0,0.10); transform: translateY(-6px); }
.blog-card-img { height: 260px; width: 100%; background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.blog-card-cat { position:absolute; top:16px; left:16px; background: rgba(30,111,191,0.88); color:#fff; backdrop-filter: blur(12px); font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; padding: 5px 12px; border-radius:100px; font-family: 'Inter', sans-serif; }
.blog-card-body { padding: 28px 28px 32px; }
.blog-card-date  { font-size: 12px; color: var(--gray); font-weight: 500; margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.blog-card-title { font-size: 17px; font-weight: 700; color: var(--dark-2); line-height: 1.4; margin-bottom: 12px; }
.blog-card-excerpt { font-size: 14px; color: #64748b; line-height: 1.78; font-family: 'Inter', sans-serif; }
.blog-card-link { display:inline-flex; align-items:center; gap:6px; margin-top:20px; color:var(--accent); font-size:13px; font-weight:600; font-family:'Inter',sans-serif; }

/* ===== CTA BANNER ===== */
#cta-banner {
  background: var(--dark-2); padding: 120px 5%; text-align: center; position: relative; overflow: hidden;
}
#cta-banner::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 55% 90% at 25% 50%, rgba(30,111,191,0.18) 0%, transparent 65%), radial-gradient(ellipse 55% 90% at 75% 50%, rgba(16,185,129,0.07) 0%, transparent 65%);
}
#cta-banner::after {
  content:''; position:absolute; inset:0;
  background-image: linear-gradient(rgba(30,111,191,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30,111,191,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
}
#cta-banner .inner { position:relative; z-index:2; max-width:720px; margin:0 auto; }
#cta-banner h2 { font-size: clamp(28px,4vw,54px); font-weight:800; color:#fff; letter-spacing:-1.5px; line-height:1.08; margin-bottom:20px; }
#cta-banner p  { font-size:18px; color:rgba(255,255,255,0.48); line-height:1.78; margin-bottom:44px; font-family:'Inter',sans-serif; }

/* ===== PAGE HEROES ===== */
.page-hero {
  padding: 160px 5% 100px; position: relative; overflow: hidden;
  background-color: var(--dark);
  background-image:
    linear-gradient(to bottom, rgba(6,13,24,0.72) 0%, rgba(6,13,24,0.55) 40%, rgba(6,13,24,0.88) 80%, rgba(6,13,24,1.00) 100%),
    radial-gradient(ellipse 70% 80% at -10% 50%, rgba(30,111,191,0.22) 0%, transparent 65%),
    url('../img/image-hero.jpg');
  background-size: cover; background-position: center 30%; background-repeat: no-repeat;
  background-blend-mode: normal, screen, normal;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(6,13,24,0.45) 0%, transparent 70%);
  pointer-events:none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; right: 0; height: 28px; width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(30,111,191,0.12) 35%, rgba(30,111,191,0.45) 70%, rgba(30,111,191,0.80) 100%);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.page-hero-tag { color: var(--accent-l); font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; margin-bottom:20px; position:relative; font-family:'Inter',sans-serif; }
.page-hero h1  { font-size:clamp(36px,5vw,66px); font-weight:800; color:#fff; letter-spacing:-1.5px; line-height:1.05; max-width:700px; position:relative; }
.page-hero p   { font-size:18px; color:rgba(255,255,255,0.48); line-height:1.78; max-width:580px; margin-top:24px; position:relative; font-family:'Inter',sans-serif; }

/* ===== ABOUT ===== */
/* Header logo | divisor | tag + título */
.about-header {
  display:flex; align-items:center; justify-content:center; gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid var(--border-d);
  margin-bottom:52px;
}
.about-header-logo { display:flex; align-items:center; }
.about-header-logo img { height:100px; width:auto; display:block; flex-shrink:0; }
.about-header-divider {
  width:1px; height:72px;
  background:var(--border-d); flex-shrink:0;
}
.about-header-title { flex:1; }
.about-header-title .section-tag { margin-bottom:10px; }
.about-header-title h2 {
  font-size:clamp(22px,2.6vw,36px); font-weight:800;
  color:var(--dark-2); letter-spacing:-0.8px; line-height:1.12;
  margin:0; font-family:'Poppins',sans-serif;
}

.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:stretch; }

/* Imagen se estira para igualar la altura de la columna derecha */
.about-img-wrap { border-radius:14px; overflow:hidden; background: linear-gradient(135deg, var(--dark-3) 0%, #1a3a5c 100%); display:flex; align-items:center; justify-content:center; position:relative; border: 1px solid rgba(30,111,191,0.12); box-shadow: 0 0 60px rgba(30,111,191,0.08); min-height:320px; }
.about-img-placeholder { text-align:center; }
.about-img-placeholder .big-letter { font-size:100px; font-weight:900; line-height:1; color: transparent; -webkit-text-stroke: 2px rgba(30,111,191,0.18); font-family:'Poppins',sans-serif; }

/* Cards de valores debajo de la imagen */
.about-values  { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.value-item { padding: 18px 18px 18px 20px; background: var(--light-bg); border-radius: 6px; border-left: 3px solid var(--accent); transition: all 0.3s var(--ease); }
.value-item:hover { background: rgba(30,111,191,0.05); transform: translateX(4px); }
.value-item h4 { font-size:13px; font-weight:700; color:var(--dark-2); margin-bottom:5px; }
.value-item p  { font-size:12px; color:#64748b; line-height:1.55; font-family:'Inter',sans-serif; margin:0; }

/* Columna derecha: solo texto */
.about-text { padding-top: 8px; }
.about-text h2 { font-size:clamp(26px,3vw,42px); font-weight:800; color:var(--dark-2); letter-spacing:-0.8px; line-height:1.12; margin-bottom:24px; }
.about-text p  { font-size:16px; color:#475569; line-height:1.88; margin-bottom:20px; font-family:'Inter',sans-serif; }

/* ===== DIFERENCIADORES ===== */
.diff-section { background: var(--dark-2); padding: 100px 5%; position: relative; overflow: hidden; }
.diff-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:60px; }
.diff-card { padding:44px 36px; border: 1px solid var(--glass-border); border-radius: 12px; position:relative; overflow: hidden; background: var(--glass-bg); transition: all 0.35s var(--ease); }
.diff-card::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, rgba(30,111,191,0.5), transparent); transform: scaleX(0); transform-origin: center; transition: transform 0.4s var(--ease); }
.diff-card:hover { background: rgba(30,111,191,0.05); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.25); }
.diff-card:hover::before { transform: scaleX(1); }
.diff-card-num { font-size: 52px; font-weight: 900; line-height:1; margin-bottom:16px; color: transparent; -webkit-text-stroke: 1px rgba(30,111,191,0.18); font-family:'Poppins',sans-serif; }
.diff-card h3 { font-size:18px; font-weight:700; color:#fff; margin-bottom:12px; }
.diff-card p  { font-size:14px; color:rgba(255,255,255,0.42); line-height:1.78; font-family:'Inter',sans-serif; }

/* ===== SERVICIOS ARCHIVE ===== */
.services-archive { padding:100px 5%; background:#fff; }
.services-archive-layout { display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start; }
.services-archive-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
.service-archive-card.hidden { display:none; }
.service-archive-card { background:#fff; border:1px solid #E8EEF6; border-radius:12px; overflow:hidden; cursor:pointer; transition:all 0.35s var(--ease); }
.service-archive-card:hover { box-shadow:0 20px 60px rgba(0,0,0,0.12); transform:translateY(-8px); }
.service-archive-img { height:240px; position:relative; overflow:hidden; background:var(--dark-3); }
.service-archive-img img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.service-archive-img-overlay { position:absolute; inset:0; background: linear-gradient(to bottom, rgba(6,13,24,0.18) 0%, rgba(6,13,24,0.55) 100%); }
.service-archive-body { padding:32px; }
.service-archive-body h3 { font-size:18px; font-weight:700; color:var(--dark-2); margin-bottom:12px; line-height:1.3; }
.service-archive-body p  { font-size:14px; color:#64748b; line-height:1.78; font-family:'Inter',sans-serif; }
.service-archive-cta { display:inline-flex; align-items:center; gap:6px; margin-top:20px; color:var(--accent); font-size:13px; font-weight:600; font-family:'Inter',sans-serif; }

/* ===== SERVICE SINGLE ===== */
.service-single { padding:100px 5%; }
.service-single-inner { display:grid; grid-template-columns:1fr 380px; gap:80px; align-items:start; }
.service-single-content h1 { font-size:clamp(28px,4vw,48px); font-weight:800; color:var(--dark-2); letter-spacing:-1px; line-height:1.12; margin-bottom:24px; }
.service-single-content .intro { font-size:18px; color:#475569; line-height:1.78; margin-bottom:40px; padding-bottom:40px; border-bottom:1px solid var(--border-d); font-family:'Inter',sans-serif; }
.service-single-content h3 { font-size:16px; font-weight:700; color:var(--dark-2); margin:28px 0 12px; }
.service-single-content ul { list-style:none; display:flex; flex-direction:column; gap:12px; }
.service-single-content ul li { display:flex; gap:12px; font-size:15px; color:#475569; line-height:1.68; font-family:'Inter',sans-serif; }
.service-single-content ul li::before { content:''; min-width:6px; height:6px; background:linear-gradient(135deg,var(--accent),var(--accent-l)); border-radius:50%; margin-top:9px; }
.highlight-box { background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%); color:#fff; padding:36px; border-radius:12px; margin-top:40px; border-left:4px solid var(--accent); box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
.highlight-box p { font-size:15px; line-height:1.78; color:rgba(255,255,255,0.72); font-style:italic; font-family:'Inter',sans-serif; }
.service-sidebar { position:sticky; top:100px; }
.service-sidebar-card { background:var(--light-bg); border-radius:12px; padding:32px; margin-bottom:24px; }
.service-sidebar-card h4 { font-size:12px; font-weight:700; color:var(--dark-2); margin-bottom:16px; letter-spacing:1.5px; text-transform:uppercase; font-family:'Inter',sans-serif; }
.service-list-nav { list-style:none; display:flex; flex-direction:column; gap:4px; }
.service-list-nav li { padding:11px 14px; border-radius:6px; font-size:14px; color:#475569; cursor:pointer; transition:all 0.2s; font-family:'Inter',sans-serif; }
.service-list-nav li:hover  { background:#fff; color:var(--accent); }
.service-list-nav li.active { background:var(--accent); color:#fff; font-weight:600; }

/* ===== BLOG ARCHIVE ===== */
.blog-archive { padding:100px 5%; background:#fff; }
.blog-archive-layout { display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start; }
.blog-archive-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
.blog-archive-card { border-radius:12px; overflow:hidden; border:1px solid #E8EEF6; cursor:pointer; transition:all 0.35s var(--ease); }
.blog-archive-card:hover { box-shadow:0 16px 52px rgba(0,0,0,0.10); transform:translateY(-6px); }
.blog-archive-card.hidden { display:none; }
.blog-archive-img { height:260px; background:var(--dark-3); overflow:hidden; position:relative; }
.blog-archive-img img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.blog-archive-body { padding:32px; background:#fff; }
.blog-archive-body .cat { font-size:11px; font-weight:700; letter-spacing:2px; color:var(--accent); text-transform:uppercase; margin-bottom:10px; font-family:'Inter',sans-serif; }
.blog-archive-body h3  { font-size:18px; font-weight:700; color:var(--dark-2); line-height:1.4; margin-bottom:12px; }
.blog-archive-body p   { font-size:14px; color:#64748b; line-height:1.78; font-family:'Inter',sans-serif; }
.blog-archive-body .meta { font-size:12px; color:var(--gray); margin-top:20px; display:flex; gap:16px; align-items:center; font-family:'Inter',sans-serif; }
.blog-no-results { grid-column:1/-1; text-align:center; padding:60px 0; color:var(--gray); font-family:'Inter',sans-serif; font-size:15px; }
.blog-no-results i { font-size:32px; display:block; margin-bottom:12px; color:var(--gray-l); }

/* Blog Sidebar */
.blog-sidebar { display:flex; flex-direction:column; gap:24px; position:sticky; top:calc(var(--nav-h) + 24px); }
.blog-sidebar-box { background:var(--light-bg); border-radius:14px; padding:28px; border:1px solid #E4EDF8; }
.blog-sidebar-box h5 { font-size:11px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:var(--gray); margin-bottom:18px; font-family:'Inter',sans-serif; }
.blog-search-wrap { position:relative; }
.blog-search-wrap i { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--gray); font-size:14px; pointer-events:none; }
#blog-search-input, #services-search-input {
  width:100%; padding:11px 14px 11px 38px; border:1.5px solid #DCEAF6; border-radius:8px;
  font-family:'Inter',sans-serif; font-size:14px; color:var(--dark-2);
  background:#fff; outline:none; transition:border-color 0.2s, box-shadow 0.2s;
}
#blog-search-input:focus, #services-search-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(30,111,191,0.09); }
#blog-search-input::placeholder, #services-search-input::placeholder { color:var(--gray-l); }
.blog-recent-item { display:flex; gap:12px; align-items:flex-start; cursor:pointer; padding:10px; margin:-10px; border-radius:8px; transition:background 0.2s; }
.blog-recent-item:hover { background:rgba(30,111,191,0.05); }
.blog-recent-item + .blog-recent-item { margin-top:4px; }
.blog-recent-thumb { width:52px; height:52px; min-width:52px; border-radius:8px; background:linear-gradient(135deg,var(--dark-3),var(--dark-4)); display:flex; align-items:center; justify-content:center; }
.blog-recent-thumb i { color:rgba(30,111,191,0.5); font-size:16px; }
.blog-recent-info .r-cat { font-size:10px; font-weight:700; letter-spacing:1.5px; color:var(--accent); text-transform:uppercase; font-family:'Inter',sans-serif; }
.blog-recent-info .r-title { font-size:13px; font-weight:600; color:var(--dark-2); line-height:1.4; margin-top:3px; font-family:'Inter',sans-serif; }
.blog-recent-info .r-date { font-size:11px; color:var(--gray); margin-top:4px; font-family:'Inter',sans-serif; }
.blog-cats-list { display:flex; flex-direction:column; gap:6px; }
.blog-cat-btn { display:flex; justify-content:space-between; align-items:center; padding:9px 14px; border-radius:8px; cursor:pointer; font-size:13px; font-weight:500; color:#475569; font-family:'Inter',sans-serif; background:#fff; border:1.5px solid #E4EDF8; transition:all 0.2s; }
.blog-cat-btn:hover { border-color:var(--accent); color:var(--accent); }
.blog-cat-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
.blog-cat-btn .cat-count { font-size:11px; font-weight:700; background:rgba(0,0,0,0.08); border-radius:20px; padding:2px 8px; }
.blog-cat-btn.active .cat-count { background:rgba(255,255,255,0.22); }

/* ===== BLOG SINGLE ===== */
.post-header { padding: 60px 5% 0; background: #fff; }
.post-header-inner { display: grid; grid-template-columns: 480px 1fr; gap: 56px; align-items: start; max-width: 1280px; margin: 0 auto; }
.post-featured-img { width: 100%; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.13); position: relative; flex-shrink: 0; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.post-featured-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.18); font-size: 48px; }
.post-meta-block { padding-top: 8px; display: flex; flex-direction: column; gap: 20px; }
.post-cat-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(30,111,191,0.08); border: 1px solid rgba(30,111,191,0.18); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; font-family: 'Inter', sans-serif; width: fit-content; }
.post-cat-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-em); display: inline-block; }
.post-title-main { font-size: clamp(24px, 3vw, 40px); font-weight: 800; color: var(--dark-2); letter-spacing: -1px; line-height: 1.12; font-family: 'Poppins', sans-serif; }
.post-wp-meta { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border-d); border-bottom: 1px solid var(--border-d); }
.post-wp-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; font-family: 'Inter', sans-serif; }
.post-wp-meta-item i { color: var(--accent); font-size: 13px; }
.post-wp-meta-item strong { color: var(--dark-2); font-weight: 600; }
.post-excerpt-lead { font-size: 16px; color: #475569; line-height: 1.8; font-family: 'Inter', sans-serif; border-left: 3px solid var(--accent); padding-left: 20px; }
.blog-single { padding: 60px 5% 100px; }
.blog-single-inner { display:grid; grid-template-columns:1fr 340px; gap:80px; max-width:1280px; margin:0 auto; }
.body-text { font-size:16px; color:#334155; line-height:1.9; font-family:'Inter',sans-serif; }
.body-text p  { margin-bottom:24px; }
.body-text h2, .body-text h3 { scroll-margin-top: calc(var(--nav-h) + 24px); }
.body-text h2 { font-size:24px; font-weight:700; color:var(--dark-2); margin:0 0 16px; letter-spacing:-0.5px; }
.body-text h2:not(:first-child) { margin-top:40px; }
.body-text h3 { font-size:19px; font-weight:700; color:var(--dark-2); margin:32px 0 12px; }
.body-text ul, .body-text ol { padding-left:20px; margin-bottom:24px; }
.body-text li { margin-bottom:8px; }
.blog-sidebar-widget { background:var(--light-bg); border-radius:12px; padding:28px; margin-bottom:24px; }
.blog-sidebar-widget h4 { font-size:12px; font-weight:700; color:var(--dark-2); letter-spacing:2px; text-transform:uppercase; margin-bottom:16px; font-family:'Inter',sans-serif; }
.toc-widget { position:sticky; top:calc(var(--nav-h) + 24px); }
.toc-list { list-style:none; display:flex; flex-direction:column; gap:2px; }
.toc-list li a { display:flex; align-items:center; gap:10px; font-size:13px; color:#475569; text-decoration:none; font-family:'Inter',sans-serif; line-height:1.5; padding:7px 10px; border-radius:6px; border-left:2px solid transparent; transition:all 0.2s; }
.toc-list li a:hover { color:var(--accent); background:rgba(30,111,191,0.05); border-left-color:var(--accent); }
.toc-list li a.toc-active { color:var(--accent); font-weight:600; background:rgba(30,111,191,0.07); border-left-color:var(--accent); }
.toc-list li.toc-h3 a { padding-left:22px; font-size:12px; color:#64748b; }
.toc-list li a .toc-num { font-size:11px; font-weight:700; color:var(--accent-em); min-width:18px; font-family:'Inter',sans-serif; }

/* ===== CONTACTO ===== */
.contact-section { padding:100px 5%; background:#fff; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; }
.contact-info h2 { font-size:clamp(28px,4vw,44px); font-weight:800; color:var(--dark-2); letter-spacing:-1px; line-height:1.12; margin-bottom:20px; }
.contact-info p  { font-size:16px; color:#475569; line-height:1.78; margin-bottom:40px; font-family:'Inter',sans-serif; }
.contact-actions { display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.contact-action-card { display:flex; align-items:center; gap:18px; padding:18px 22px; border-radius:14px; border:1.5px solid #E4EDF8; background:#fff; cursor:pointer; text-decoration:none; transition: all 0.25s var(--ease); box-shadow: 0 2px 12px rgba(0,0,0,0.045); position:relative; overflow:hidden; }
.contact-action-card::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(30,111,191,0.04) 0%, transparent 60%); opacity:0; transition:opacity 0.25s; }
.contact-action-card:hover { border-color:var(--accent); transform:translateY(-2px); box-shadow:0 8px 32px rgba(30,111,191,0.13); }
.contact-action-card:hover::before { opacity:1; }
.ca-icon { width:48px; height:48px; min-width:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; transition:transform 0.25s var(--ease); }
.contact-action-card:hover .ca-icon { transform:scale(1.08); }
.ca-icon.whatsapp { background:linear-gradient(135deg,#25D366,#128C7E); color:#fff; }
.ca-icon.email    { background:linear-gradient(135deg,#1E6FBF,#3B8FD4); color:#fff; }
.ca-icon.maps     { background:linear-gradient(135deg,#EA4335,#C5221F); color:#fff; }
.ca-icon.linkedin { background:linear-gradient(135deg,#0077B5,#005C8E); color:#fff; }
.ca-icon.facebook { background:linear-gradient(135deg,#1877F2,#0D5CD7); color:#fff; }
.ca-icon.instagram{ background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
.ca-body { flex:1; min-width:0; }
.ca-label { font-size:12px; font-weight:600; color:var(--gray); text-transform:uppercase; letter-spacing:1.2px; font-family:'Inter',sans-serif; margin-bottom:3px; }
.ca-value { font-size:15px; font-weight:600; color:var(--dark-2); font-family:'Inter',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ca-arrow { font-size:18px; color:var(--gray-l); transition:transform 0.25s var(--ease), color 0.25s; }
.contact-action-card:hover .ca-arrow { transform:translateX(4px); color:var(--accent); }
.ca-socials { display:flex; gap:10px; flex-wrap:wrap; margin-top:2px; }
.ca-social-btn { display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border-radius:30px; font-size:13px; font-weight:600; font-family:'Inter',sans-serif; text-decoration:none; color:#fff; transition:transform 0.2s, box-shadow 0.2s; }
.ca-social-btn:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,0,0,0.18); }
.ca-social-btn.linkedin { background:linear-gradient(135deg,#0077B5,#005C8E); }
.ca-social-btn.facebook { background:linear-gradient(135deg,#1877F2,#0D5CD7); }
.ca-social-btn.instagram{ background:linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.contact-form { background: linear-gradient(135deg, #F8FAFD 0%, var(--light-bg) 100%); border-radius: 16px; padding: 48px 40px; border: 1px solid #E4EDF8; box-shadow: 0 4px 32px rgba(0,0,0,0.055); }
.form-group { margin-bottom:20px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--dark-2); margin-bottom:8px; letter-spacing:0.3px; font-family:'Inter',sans-serif; }
.form-group input, .form-group textarea, .form-group select { width:100%; padding:14px 16px; border:1.5px solid #DCEAF6; border-radius:6px; font-family:'Inter',sans-serif; font-size:15px; color:var(--dark-2); background:#fff; transition: all 0.2s; outline:none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color:var(--accent); box-shadow: 0 0 0 3px rgba(30,111,191,0.09); }
.form-group textarea { min-height:130px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-submit { width:100%; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-l) 100%); color:#fff; padding:16px; border-radius:6px; font-size:15px; font-weight:700; border:none; cursor:pointer; transition: all 0.3s var(--ease); letter-spacing:0.3px; margin-top:8px; box-shadow: 0 4px 24px rgba(30,111,191,0.32); font-family:'Inter',sans-serif; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(30,111,191,0.46); }

/* ===== CHECKBOX TÉRMINOS ===== */
.terms-check-wrap { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.terms-check-wrap input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; accent-color: var(--accent); cursor: pointer; margin-top: 2px; }
.terms-check-wrap label { font-size: 13px; color: #64748B; line-height: 1.5; font-family: 'Inter', sans-serif; cursor: pointer; }
.terms-check-wrap label a { color: var(--accent); text-decoration: underline; font-weight: 600; }
.terms-check-wrap label a:hover { color: var(--accent-l); }
button[type="submit"]:disabled, .form-submit:disabled { opacity: 0.42; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===== SCROLL TO TOP ===== */
#scroll-top { position: fixed; bottom: 32px; right: 32px; z-index: 990; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; box-shadow: 0 6px 24px rgba(30,111,191,0.45); opacity: 0; transform: translateY(16px); transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s; pointer-events: none; }
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { background: var(--accent-l); box-shadow: 0 8px 32px rgba(30,111,191,0.60); }

/* ===== MODAL TÉRMINOS ===== */
.terms-modal-overlay { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(4,9,18,0.70); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 24px; }
.terms-modal-overlay.open { display: flex; }
.terms-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 680px; max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 32px 80px rgba(0,0,0,0.28); }
.terms-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border-d); flex-shrink: 0; }
.terms-modal-header h3 { font-size: 17px; font-weight: 700; color: var(--dark-2); font-family: 'Poppins',sans-serif; }
.terms-modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--light-bg); color: var(--dark-2); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.terms-modal-close:hover { background: #e53e3e; color: #fff; }
.terms-modal-body { overflow-y: auto; padding: 28px; flex: 1; }
.terms-modal-body h2 { font-size: 15px; font-weight: 700; color: var(--dark-2); margin: 24px 0 8px; font-family: 'Poppins',sans-serif; }
.terms-modal-body h2:first-child { margin-top: 0; }
.terms-modal-body p, .terms-modal-body li { font-size: 14px; color: #475569; line-height: 1.75; font-family: 'Inter',sans-serif; margin-bottom: 8px; }
.terms-modal-body ul { padding-left: 18px; margin-bottom: 12px; }
.terms-modal-body li { list-style: disc; }

/* ===== PÁGINAS LEGALES ===== */
.legal-page { padding: 60px 5% 100px; max-width: 860px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(28px,4vw,42px); font-weight: 800; color: var(--dark-2); letter-spacing: -1px; margin-bottom: 8px; }
.legal-page .legal-meta { font-size: 13px; color: #94A3B8; font-family: 'Inter',sans-serif; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border-d); }
.legal-page h2 { font-size: 18px; font-weight: 700; color: var(--dark-2); margin: 36px 0 12px; font-family: 'Poppins',sans-serif; }
.legal-page p, .legal-page li { font-size: 15px; color: #475569; line-height: 1.80; font-family: 'Inter',sans-serif; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; margin-bottom: 16px; }
.legal-page li { list-style: disc; }
.legal-page strong { color: var(--dark-2); }

/* ===== FOOTER ===== */
#footer { background: var(--dark); padding:80px 5% 40px; }
.footer-top { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:0 40px; padding-bottom:60px; border-bottom:1px solid var(--glass-border); }
.footer-brand .logo-text { color:#fff; margin-top:12px; display:block; }
.footer-brand p { font-size:14px; color:rgba(255,255,255,0.33); line-height:1.78; margin-top:16px; max-width:260px; font-family:'Inter',sans-serif; }
.footer-col h5 { font-size:11px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:rgba(255,255,255,0.28); margin-bottom:20px; font-family:'Inter',sans-serif; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:0; }
.footer-col ul li { border-bottom:1px solid rgba(255,255,255,0.045); }
.footer-col ul li:first-child { border-top:1px solid rgba(255,255,255,0.045); }
.footer-col ul li a, .footer-col ul li span {
  display:flex; align-items:center; gap:8px;
  font-size:13.5px; color:rgba(255,255,255,0.48);
  text-decoration:none; cursor:pointer;
  transition:color 0.2s, padding-left 0.2s;
  font-family:'Inter',sans-serif;
  padding:8px 0;
}
.footer-col ul li a:hover, .footer-col ul li span:hover { color:#fff; padding-left:4px; }

/* Icono chevron en links de footer */
.footer-link-icon {
  font-size:8px;
  color:var(--accent);
  flex-shrink:0;
  transition:transform 0.2s;
}
.footer-col ul li a:hover .footer-link-icon { transform:translateX(2px); }

/* Separador vertical entre columnas del footer */
.footer-col--divider {
  border-left:1px solid rgba(255,255,255,0.06);
  padding-left:40px;
}
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:32px; }
.footer-bottom p { font-size:13px; color:rgba(255,255,255,0.22); font-family:'Inter',sans-serif; }
.footer-bottom-links { display:flex; gap:24px; }
.footer-bottom-links a { font-size:13px; color:rgba(255,255,255,0.22); text-decoration:none; transition:color 0.2s; font-family:'Inter',sans-serif; }
.footer-bottom-links a:hover { color:rgba(255,255,255,0.65); }

/* ===== SERVICE SLIDER ===== */
.service-slider-wrap { position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 40px; box-shadow: 0 8px 40px rgba(0,0,0,0.13); cursor: pointer; }
.service-slider-track { display: flex; transition: transform 0.65s cubic-bezier(0.16,1,0.3,1); will-change: transform; }
.service-slider-track.no-transition { transition: none !important; }
.service-slide, .service-slider-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 16/8; overflow: hidden; position: relative; cursor: zoom-in; }
.service-slide img, .service-slider-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; transition: transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.service-slider-wrap:hover .service-slide img, .service-slider-wrap:hover .service-slider-slide img { transform: scale(1.03); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(6,13,24,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; opacity: 0; transition: opacity 0.2s, background 0.2s; }
.service-slider-wrap:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.40); cursor: pointer; transition: all 0.3s; border: none; padding: 0; }
.slider-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(4,9,18,0.94); backdrop-filter: blur(18px); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,0.6); object-fit: contain; display: block; transition: opacity 0.3s; }
.lightbox-close { position: fixed; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10000; }
.lightbox-close:hover { background: #e53e3e; border-color: #e53e3e; }
.lightbox-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10000; }
.lightbox-arrow:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-arrow.lb-prev { left: 24px; }
.lightbox-arrow.lb-next { right: 24px; }
.lightbox-counter { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.45); font-size: 13px; font-family: 'Inter', sans-serif; letter-spacing: 1px; z-index: 10000; }

/* ===== BACK BUTTON ===== */
.back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; background: var(--light-bg); color: var(--dark-2); border: 1.5px solid var(--border-d); font-size: 13px; font-weight: 700; letter-spacing: 0.4px; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.28s var(--ease); text-decoration: none; }
.back-btn::before { content: '←'; font-size: 14px; transition: transform 0.25s; }
.back-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 28px rgba(30,111,191,0.38); transform: translateY(-1px); }
.back-btn:hover::before { transform: translateX(-3px); }

/* ===== BORDES REDONDEADOS ===== */
.btn-primary, .btn-outline, .mobile-cta, .service-card-link,
.back-btn, .mobile-filter-toggle, .blog-cat-btn,
.service-list-nav li { border-radius: 100px !important; }

/* ===== MOBILE FILTER TOGGLE ===== */
.mobile-filter-toggle { display: none; width: 100%; align-items: center; gap: 12px; padding: 14px 20px; margin-bottom: 24px; background: #fff; border: 1.5px solid #E4EDF8; border-radius: 12px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--dark-2); transition: all 0.2s; text-align: left; }
.mobile-filter-toggle i.fa-sliders { color: var(--accent); font-size: 15px; }
.mobile-filter-toggle .mft-label { flex: 1; }
.mobile-filter-toggle .mft-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 2px 8px; display: none; }
.mobile-filter-toggle.has-filter .mft-badge { display: inline-block; }
.mobile-filter-toggle .mft-chevron { color: var(--gray); font-size: 13px; transition: transform 0.3s var(--ease); margin-left: auto; }
.mobile-filter-toggle.open .mft-chevron { transform: rotate(180deg); }
.mobile-filter-toggle:hover, .mobile-filter-toggle.open { border-color: var(--accent); color: var(--accent); }
.sidebar-collapsible { max-height: none; overflow: visible; }
.blog-single-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.reveal-card { opacity: 0; transform: translateY(28px) scale(0.97); transition: opacity 0.70s cubic-bezier(0.16,1,0.3,1), transform 0.70s cubic-bezier(0.16,1,0.3,1); }
.reveal-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.70s cubic-bezier(0.16,1,0.3,1), transform 0.70s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.70s cubic-bezier(0.16,1,0.3,1), transform 0.70s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.fade-up-d1, .reveal-card-d1, .reveal-left-d1, .reveal-right-d1 { transition-delay: 0.08s; }
.fade-up-d2, .reveal-card-d2, .reveal-left-d2, .reveal-right-d2 { transition-delay: 0.16s; }
.fade-up-d3, .reveal-card-d3, .reveal-left-d3, .reveal-right-d3 { transition-delay: 0.24s; }
.fade-up-d4, .reveal-card-d4, .reveal-left-d4, .reveal-right-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { *, .fade-up, .hero-orb, .hero-bg-grid { animation: none !important; transition-duration: 0ms !important; } .fade-up { opacity:1; transform:none; } }
.icon-blue { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .footer-top { grid-template-columns:1fr 1fr; gap:0 32px; }
  .footer-col--divider { border-left:1px solid rgba(255,255,255,0.06); padding-left:32px; }
  .service-single-inner { grid-template-columns:1fr; }
  .service-sidebar { position:static; }
  .post-header-inner { grid-template-columns:1fr; }
  .post-featured-img { aspect-ratio: 16/9; }
  .blog-archive-layout, .services-archive-layout { display:flex; flex-direction:column; align-items:stretch; }
  .blog-sidebar, .blog-sidebar > *, .sidebar-collapsible { width:100%; }
  .blog-single-inner { grid-template-columns:1fr; }
  .blog-sidebar { order:-1; position:static; display:flex; flex-direction:column; gap:0; }
  .blog-single-sidebar { order:-1; }
  .mobile-filter-toggle { display:flex; }
  .toc-widget { position:static; }
  .sidebar-collapsible { overflow: hidden; max-height: 0; transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), margin-bottom 0.45s; margin-bottom: 0; }
  .sidebar-collapsible.open { max-height: 1400px; margin-bottom: 32px; }
}
@media (max-width:768px) {
  :root { --nav-h: 96px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .pillars-grid { grid-template-columns:1fr; }
  .pillar { border: 1px solid var(--glass-border); border-radius:0; }
  .services-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .blog-grid { grid-template-columns:1fr; }
  .blog-archive-grid { grid-template-columns:1fr; }
  .services-archive-grid { grid-template-columns:1fr; }
  .about-header { flex-direction:column; align-items:flex-start; gap:20px; }
  .about-header-divider { width:48px; height:1px; min-height:0; align-self:auto; }
  .about-header-logo img { height:72px; }
  .about-grid { grid-template-columns:1fr; gap:40px; align-items:start; }
  .about-img-wrap { min-height:220px; aspect-ratio:16/9; }
  .about-values { grid-template-columns:1fr 1fr; }
  .diff-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; gap:32px; }
  .footer-col--divider { border-left:none; padding-left:0; border-top:1px solid rgba(255,255,255,0.06); padding-top:32px; }
  .footer-bottom { flex-direction:column; gap:16px; text-align:center; }
  .section { padding:70px 5%; }
  .pillar { padding:40px 28px; }
  .hero-actions { flex-direction:column; align-items:center; }
  .btn-primary, .btn-outline { width:100%; text-align:center; max-width:320px; }
  .contact-form { padding:32px 24px; }
  .hero-trust { gap:16px; flex-direction:column; }
  .stat::after { display:none; }
}
@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .hero-h1 { letter-spacing:-1px; }
}
