/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #0f1f4b;
  --blue-800: #1a2f6e;
  --blue-700: #1e40af;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --cyan: #0ea5e9;
  --grad: linear-gradient(135deg, #1e40af, #0ea5e9);
  --grad-hero: linear-gradient(135deg, #0f1f4b 0%, #1e3a8a 50%, #1e40af 100%);

  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-blue: rgba(37, 99, 235, .2);
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 16px 48px rgba(30, 64, 175, .12);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, .25);
  --radius: 1rem;
  --radius-sm: .5rem;
  --transition: .3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-600);
  border-radius: 3px;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg2);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-tag-light {
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .25);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--blue-900);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, .35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost-dark:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--blue-700);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo-img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  object-position: left center;
}

.logo-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.navbar:not(.scrolled) .logo-wordmark {
  background: none;
  -webkit-text-fill-color: #fff;
}

.navbar.scrolled .logo-wordmark {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0 0 0 3rem;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  padding: .5rem 1rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  transition: all var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-50);
}

.nav-links .nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  padding: .5rem 1.2rem !important;
  margin-left: .5rem;
  box-shadow: var(--shadow-blue);
}

.nav-links .nav-cta:hover {
  opacity: .9;
}

.navbar.scrolled .nav-links .nav-cta {
  color: #fff !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .burger span {
  background: var(--text);
}

/* MOBILE MENU — panel desde la derecha */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(15,31,75,.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

/* Overlay */
.mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  background: rgba(15,31,75,.45);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s ease;
}
.mobile-menu.open::before { opacity: 1; pointer-events: auto; }

/* Cabecera */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  flex-shrink: 0;
}
.mm-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.mm-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.mm-close:hover { background: rgba(255,255,255,.3); }

/* Nav links */
.mm-nav {
  display: flex;
  flex-direction: column;
  padding: 1.25rem .875rem;
  flex: 1;
  gap: .25rem;
  background: #fff;
}
.mobile-menu .mobile-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: #1e293b;
  padding: .8rem 1rem;
  border-radius: .75rem;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link.active {
  background: #eff6ff;
  color: #2563eb;
  transform: translateX(3px);
}
.mobile-menu .mobile-link.active {
  font-weight: 700;
  position: relative;
}
.mobile-menu .mobile-link.active::after {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2563eb;
}
.mobile-menu .mobile-link.active .mm-icon {
  background: #dbeafe;
  color: #1d4ed8;
}
.mobile-menu .mobile-link.mm-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  margin-top: .5rem;
}
.mobile-menu .mobile-link.mm-cta:hover,
.mobile-menu .mobile-link.mm-cta.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #fff;
  transform: translateX(3px);
}
.mobile-menu .mobile-link.mm-cta.active::after { display: none; }
.mm-icon {
  width: 34px; height: 34px;
  background: #eff6ff;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  transition: background .2s, color .2s;
}
.mobile-link:hover .mm-icon { background: #dbeafe; color: #1d4ed8; }
.mobile-link.mm-cta .mm-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Footer del panel */
.mm-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.mm-footer-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
  margin-bottom: .6rem;
}
.mm-socials {
  display: flex;
  gap: .6rem;
  margin-bottom: .875rem;
}
.mm-socials a {
  width: 34px; height: 34px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb;
  transition: all .2s;
  text-decoration: none;
}
.mm-socials a:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.mm-footer-copy {
  font-size: .73rem;
  color: #94a3b8;
  margin: 0;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
  background-color: #0f1f4b;
}

/* Imagen de fondo con zoom lento */
.hero-bg-img {
  position: absolute;
  inset: -10%;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1) translateX(0);
  }

  to {
    transform: scale(1.1) translateX(-2%);
  }
}

/* Overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 20, 60, .65) 0%, rgba(30, 58, 138, .50) 55%, rgba(14, 165, 233, .35) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  animation: blobFloat 10s ease-in-out infinite;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: #2563eb;
  top: -250px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: #0ea5e9;
  bottom: -200px;
  right: -150px;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #1d4ed8;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2.5s;
}

/* Grid decorativo hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -40px) scale(1.06);
  }

  66% {
    transform: translate(-25px, 25px) scale(.94);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-scroll {
  z-index: 2;
}

/* Entrada escalonada */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeUp .8s ease forwards;
  animation-delay: var(--d, 0s);
}

/* Blobs animados */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 2;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, .35);
  top: -100px;
  left: -150px;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, .25);
  bottom: -80px;
  right: -100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(30, 64, 175, .2);
  top: 40%;
  left: 60%;
  animation: blobFloat 7s ease-in-out infinite 2s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(.97);
  }
}

/* Partículas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  animation: particleFloat linear infinite;
}

.hero-particles span:nth-child(1) {
  left: 10%;
  top: 20%;
  width: 3px;
  height: 3px;
  animation-duration: 12s;
  animation-delay: 0s;
}

.hero-particles span:nth-child(2) {
  left: 25%;
  top: 60%;
  width: 5px;
  height: 5px;
  animation-duration: 16s;
  animation-delay: 2s;
}

.hero-particles span:nth-child(3) {
  left: 45%;
  top: 15%;
  width: 2px;
  height: 2px;
  animation-duration: 10s;
  animation-delay: 4s;
}

.hero-particles span:nth-child(4) {
  left: 65%;
  top: 75%;
  width: 4px;
  height: 4px;
  animation-duration: 14s;
  animation-delay: 1s;
}

.hero-particles span:nth-child(5) {
  left: 80%;
  top: 30%;
  width: 3px;
  height: 3px;
  animation-duration: 11s;
  animation-delay: 3s;
}

.hero-particles span:nth-child(6) {
  left: 15%;
  top: 85%;
  width: 5px;
  height: 5px;
  animation-duration: 18s;
  animation-delay: 5s;
}

.hero-particles span:nth-child(7) {
  left: 90%;
  top: 55%;
  width: 2px;
  height: 2px;
  animation-duration: 13s;
  animation-delay: 2s;
}

.hero-particles span:nth-child(8) {
  left: 55%;
  top: 45%;
  width: 3px;
  height: 3px;
  animation-duration: 15s;
  animation-delay: 6s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: .6;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(-120px) rotate(360deg);
    opacity: 0;
  }
}

.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.hero-social a svg {
  width: 20px;
  height: 20px;
}

.hero-social a:hover {
  background: rgba(255, 255, 255, .3);
  transform: translateY(-3px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  padding: .4rem 1.1rem;
  border-radius: 100px;
  font-size: .85rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, .9);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
  color: #fff;
}

#typewriter {
  white-space: nowrap;
  display: inline;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .75);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 1.5rem 2.5rem;
  display: inline-flex;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.stat-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
  display: block;
  margin-top: .2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .4;
  }

  50% {
    opacity: 1;
  }
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 10rem 1.5rem 5.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay base para page-hero — se sobreescribe por clase específica */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 20, 60, .68) 0%, rgba(15, 31, 75, .55) 60%, rgba(15, 31, 75, .72) 100%);
  z-index: 0;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.page-hero h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.1rem;
}

/* ===== ABOUT ===== */
.about-grid,
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p,
.about-home-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.certs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-align: left;
  font-family: inherit;
}

.cert-badge:hover {
  background: #dbeafe;
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .12);
}

.cert-icon {
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.cert-badge strong {
  display: block;
  font-size: .9rem;
  color: var(--blue-900);
}

.cert-badge span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ===== CERT MODALS ===== */
.cert-modal-card {
  background: #fff;
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
  animation: certIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes certIn {
  from {
    opacity: 0;
    transform: scale(.9) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cert-modal-header {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.cert-modal-header.iso9001 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.cert-modal-header.iso14001 {
  background: linear-gradient(135deg, #052e16 0%, #166534 100%);
}

.cert-modal-header.iso27001 {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.cert-modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.cert-modal-x:hover {
  background: rgba(255, 255, 255, .28);
}

.cert-modal-thumb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-image: url('../img/certificaciones.png');
  background-size: 300% auto;
  background-repeat: no-repeat;
  background-position-y: center;
  border: 3px solid rgba(255, 255, 255, .25);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

.cert-modal-thumb.show-27001 {
  background-position-x: 0%;
}

.cert-modal-thumb.show-9001 {
  background-position-x: 50%;
}

.cert-modal-thumb.show-14001 {
  background-position-x: 100%;
}

.cert-modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .3rem;
}

.cert-modal-header p {
  color: rgba(255, 255, 255, .65);
  font-size: .875rem;
}

.cert-modal-body {
  padding: 1.75rem 2rem 2rem;
}

.cert-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.cert-modal-body ul li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .875rem;
  color: var(--text);
  line-height: 1.5;
}

.cert-modal-body ul li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .05rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-issued {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1rem;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cert-issued-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.cert-issued strong {
  display: block;
  font-size: .85rem;
  color: var(--text);
  margin-bottom: .15rem;
}

.cert-issued span {
  font-size: .78rem;
  color: var(--text-muted);
}

.about-values,
.about-home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.value-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--blue-900);
}

.value-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== SERVICES HOME GRID ===== */
/* ===== SERVICIOS HOME (nuevo diseño) ===== */
.shome-section {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

/* ===== SERVICE CAROUSEL ===== */
.sc-carousel {
  position: relative;
  padding: 0 0 3rem;
}
.sc-viewport {
  overflow: hidden;
  border-radius: 1.25rem;
}
.sc-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.sc-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}
.sc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.5rem));
  width: 48px; height: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 2;
  color: var(--blue-900);
}
.sc-btn:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); transform: translateY(calc(-50% - 1.5rem)) scale(1.08); }
.sc-btn:disabled { opacity: .3; pointer-events: none; }
.sc-prev { left: -24px; }
.sc-next { right: -24px; }
.sc-dots {
  position: absolute;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.sc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer; padding: 0;
  transition: all .2s;
}
.sc-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--blue-600);
}

.shome-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .4s ease;
  position: relative;
}

.shome-card:hover {
  transform: translateY(-10px);
  border-color: var(--blue-400);
  box-shadow: var(--shadow-lg);
}

.shome-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.shome-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.shome-card:hover .shome-img img {
  transform: scale(1.1);
}

.shome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 31, 75, .2) 0%, rgba(15, 31, 75, .75) 100%);
  transition: opacity .4s ease;
}

.shome-card:hover .shome-overlay {
  opacity: .7;
}

.shome-num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .1em;
  z-index: 2;
}

.shome-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all .3s ease;
}

.shome-card:hover .shome-icon {
  background: var(--grad);
  border-color: transparent;
}

.shome-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.shome-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shome-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: .75rem;
}

.shome-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: .6rem;
  line-height: 1.3;
}

.shome-body p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.shome-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-400);
  transition: all .3s ease;
}

.shome-card:hover .shome-cta {
  color: var(--cyan);
  gap: .6rem;
}

/* ===== SERVICES FULL ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-500);
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue-600);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--blue-900);
}

.service-card p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.service-list {
  margin-bottom: 1.5rem;
}

.service-list li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: .3rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-size: .75rem;
}

.service-list-wide {
  columns: 2;
  gap: 2rem;
}

.service-link {
  font-size: .875rem;
  color: var(--blue-600);
  font-weight: 600;
  transition: color var(--transition);
}

/* ===== PILARES (FORMACIÓN) ===== */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.pilar-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.pilar-card:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pilar-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -2px;
}

.pilar-icon {
  width: 70px;
  height: 70px;
  background: var(--blue-50);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.pilar-card:hover .pilar-icon {
  background: var(--blue-100);
  border-color: var(--blue-300);
}

.pilar-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--blue-600);
}

.pilar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pilar-divider {
  width: 50px;
  height: 4px;
  background: var(--grad);
  margin-bottom: 1.5rem;
  border-radius: 10px;
}

.pilar-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pilar-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: auto;
}

.pilar-benefits span {
  font-size: .8rem;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: .5rem .9rem;
  border-radius: 100px;
  border: 1px solid var(--blue-100);
  font-weight: 600;
}

.pilar-card:hover .pilar-benefits span {
  background: var(--blue-100);
  color: var(--blue-900);
}

@media (max-width: 1024px) {
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pilares-grid {
    grid-template-columns: 1fr;
  }
}

.service-link:hover {
  color: var(--blue-800);
}

/* ===== SERVICE DETAIL ===== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail-grid-rev {
  direction: rtl;
}

.service-detail-grid-rev>* {
  direction: ltr;
}

.service-num-large {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .18;
  line-height: 1;
  margin-bottom: -.5rem;
}

.service-detail-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.feature-list {
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  margin-top: .55rem;
}

.feature-item strong {
  display: block;
  font-size: .95rem;
  color: var(--blue-900);
  margin-bottom: .2rem;
}

.feature-item p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
}

.service-icon-big {
  width: 100%;
  aspect-ratio: 1;
  max-width: 250px;
  margin: 0 auto 2rem;
  background: var(--blue-50);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.service-icon-big svg {
  width: 100%;
  height: 100%;
  stroke: var(--blue-400);
}

.strategy-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.strategy-box h4 {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.strategy-box ul li {
  font-size: .875rem;
  color: var(--text-muted);
  padding: .4rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.strategy-box ul li:last-child {
  border-bottom: none;
}

.strategy-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-weight: 700;
  font-size: .75rem;
}

/* ===== SERVICE IMAGES ===== */
.service-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.service-img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.service-img-wrap:hover img {
  transform: scale(1.04);
}

.cert-img-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 1.5rem;
}

.cert-img-wrap img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.pfc-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pfc-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pfc-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .pfc-body-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-600), var(--cyan));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-left: .5rem;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--blue-50);
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--blue-300, #93c5fd);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--blue-900);
}

.timeline-content p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== PROJECTS ===== */
.projects-grid,
.projects-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-home-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-home-card:hover {
  transform: translateY(-4px);
}

.phc-img {
  height: 160px;
  overflow: hidden;
}

.phc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-home-card:hover .phc-img img {
  transform: scale(1.06);
}

.phc-body {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-top: none;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-home-card:hover .phc-body {
  background: rgba(255, 255, 255, .16);
}

.project-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--blue-600);
  margin-bottom: .75rem;
}

.project-home-card .project-tag {
  color: rgba(255, 255, 255, .7);
}

.project-card h3,
.project-home-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--blue-900);
}

.project-home-card h3 {
  color: #fff;
}

.project-card p,
.project-home-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-home-card p {
  color: rgba(255, 255, 255, .72);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.project-tags span {
  font-size: .73rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: .2rem .65rem;
  border-radius: 100px;
  font-weight: 600;
}

.project-home-card .project-tags span {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .2);
}

/* Project Full Card */
.project-full-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.project-full-card-dark {
  background: var(--bg2);
}

.pfc-img {
  height: 450px;
  overflow: hidden;
}

.pfc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.project-full-card:hover .pfc-img img {
  transform: scale(1.05);
}

.pfc-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--blue-50), #f0f9ff);
}

.project-full-card-dark .pfc-header {
  background: linear-gradient(135deg, rgba(30, 64, 175, .08), rgba(14, 165, 233, .04));
}

.pfc-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: .5rem;
  color: var(--blue-900);
}

.pfc-body {
  padding: 2rem;
}

.pfc-body>p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.pfc-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.pfc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.pfc-tags span {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: .35rem .85rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
}

/* ===== SECTION GRADIENT (dark blue con imagen) ===== */
.section-gradient {
  background-image: url('../img/produccion-video.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.section-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 20, 60, .82) 0%, rgba(15, 35, 100, .75) 100%);
  pointer-events: none;
  z-index: 0;
}

.section-gradient>.container {
  position: relative;
  z-index: 1;
}

/* ===== IMPACT ===== */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.impact-actions {
  margin-top: 2rem;
}

.impact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(5px);
  transition: all var(--transition);
}

.impact-item:hover {
  background: rgba(255, 255, 255, .12);
}

.impact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.impact-item strong {
  display: block;
  font-size: .9rem;
  margin-bottom: .25rem;
  color: #fff;
}

.impact-item p {
  font-size: .825rem;
  color: rgba(255, 255, 255, .65);
  margin: 0;
  line-height: 1.55;
}

.reasons-card {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 2rem;
}

.reasons-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.reason {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.reason:last-of-type {
  border-bottom: none;
}

.reason-check {
  width: 28px;
  height: 28px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.reason strong {
  display: block;
  font-size: .9rem;
  color: #fff;
  margin-bottom: .2rem;
}

.reason p {
  font-size: .825rem;
  color: rgba(255, 255, 255, .65);
  margin: 0;
  line-height: 1.55;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--blue-900);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-icon {
  font-size: 1.2rem;
  width: 28px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .3rem;
}

.contact-item a {
  color: var(--text);
  font-size: .95rem;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--blue-600);
}

.contact-item span {
  font-size: .9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* intl-tel-input overrides */
.iti {
  width: 100%;
}

.iti__tel-input {
  background: var(--bg2) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .95rem !important;
  width: 100% !important;
  height: 50px !important;
  transition: border-color .2s, box-shadow .2s !important;
}

.iti__tel-input:focus {
  outline: none !important;
  border-color: var(--blue-500) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15) !important;
}

.iti__country-list {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: .875rem;
}

.iti__country.iti__highlight {
  background: var(--blue-50);
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
}

.contact-success-big {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.contact-success-big h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--blue-900);
}

.contact-success-big p {
  color: var(--text-muted);
}

/* MAP */
.map-section {
  padding: 0;
}

.map-wrapper {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(.85) contrast(1.05);
}

.map-header {
  background: var(--blue-900);
  padding: 1.1rem 0;
}

.map-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.map-header-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}

.map-header-item svg {
  stroke: var(--blue-400);
  flex-shrink: 0;
}

.map-header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .15);
}

.map-header-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  background: var(--grad);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 100px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

.map-header-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 4rem 0;
  background: var(--bg2);
}

.cta-box {
  background-image: url('../img/reparto-publicidad.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 20, 60, .78) 0%, rgba(14, 165, 233, .55) 100%);
  border-radius: 1.5rem;
}

.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-box h2 .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-box p {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== PERFIL CONTRATANTE ===== */
.contratante-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contratante-table thead {
  background: var(--grad);
  color: #fff;
}

.contratante-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}

.contratante-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.contratante-table tbody tr:last-child td {
  border-bottom: none;
}

.contratante-table tbody tr:hover {
  background: var(--blue-50);
}

.estado-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}

.estado-abierta {
  background: #dcfce7;
  color: #15803d;
}

.estado-cerrada {
  background: #fee2e2;
  color: #b91c1c;
}

.estado-pendiente {
  background: #fef9c3;
  color: #a16207;
}

.contratante-nota {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--blue-700);
  font-size: .9rem;
}

.contratante-nota svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-900);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 4.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  align-items: start;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  margin-bottom: .5rem;
}

.footer-cert {
  font-size: .8rem;
  color: var(--blue-400) !important;
}

.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, .7);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-links-group h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1.25rem;
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-group ul li {
  margin-bottom: .65rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.footer-contact-list li svg {
  stroke: var(--blue-400);
  flex-shrink: 0;
  margin-top: .15rem;
}

.footer-links-group ul li a,
.footer-links-group ul li {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  transition: color var(--transition);
}

.footer-links-group ul li a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .35);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-legal button {
  font-size: .8rem;
  color: rgba(255, 255, 255, .35);
  transition: color .2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: rgba(255, 255, 255, .75);
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preloader-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .1em;
  animation: preloaderPulse 1.5s ease-in-out infinite .2s;
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, .15);
  border-radius: 100px;
  overflow: hidden;
  margin-top: .5rem;
}

.preloader-progress {
  height: 100%;
  background: var(--grad);
  border-radius: 100px;
  animation: preloaderFill 1.2s ease forwards;
}

@keyframes preloaderFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ===== CURSOR PERSONALIZADO ===== */

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, scale .2s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  scale: 1.1;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  pointer-events: none;
}

.toast {
  background: #fff;
  border-radius: .875rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--blue-900);
  border-left: 4px solid var(--blue-600);
  animation: toastIn .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
  pointer-events: all;
  min-width: 280px;
}

.toast.toast-success {
  border-color: #16a34a;
}

.toast.toast-error {
  border-color: #dc2626;
}

.toast-icon {
  font-size: 1.2rem;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== FLOATING LABELS ===== */
.form-group.floating {
  position: relative;
}

.form-group.floating label {
  position: absolute;
  top: .9rem;
  left: 1rem;
  font-size: .95rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all .2s ease;
  background: transparent;
  padding: 0 .25rem;
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label {
  top: -.55rem;
  font-size: .75rem;
  color: var(--blue-600);
  background: var(--bg2);
}

/* ===== BANNER COOKIES ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9998;
  width: calc(100% - 3rem);
  max-width: 980px;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 0 1px var(--border);
  padding: 1.5rem 2rem;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .4s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: .3rem;
}

.cookie-text p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: .55rem 1.2rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.cookie-btn-manage {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.cookie-btn-manage:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.cookie-btn-reject {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.cookie-btn-reject:hover {
  border-color: var(--text-muted);
}

.cookie-btn-accept {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.cookie-btn-accept:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Preferencias de cookies */
.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-pref-item:last-of-type {
  border-bottom: none;
}

.cookie-pref-info {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}

.cookie-pref-info strong {
  font-size: .9rem;
  color: var(--blue-900);
}

.cookie-pref-info span {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-toggle input {
  display: none;
}

.cookie-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  transition: background .25s;
  flex-shrink: 0;
}

.cookie-toggle input:checked+.cookie-toggle-track,
.cookie-toggle-track.active {
  background: var(--grad);
}

.cookie-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .25s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.cookie-toggle input:checked+.cookie-toggle-track .cookie-toggle-thumb,
.cookie-toggle-track.active .cookie-toggle-thumb {
  left: 23px;
}

.cookie-toggle-disabled {
  cursor: default;
  opacity: .7;
}

.cookie-toggle span {
  font-size: .75rem;
  color: var(--text-light);
  white-space: nowrap;
}

.cookie-pref-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* ===== MODALES LEGALES ===== */
.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal.open {
  display: flex;
}

.legal-modal-box {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .2);
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
}

.legal-modal-close {
  background: var(--bg2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.legal-modal-close:hover {
  background: var(--border);
}

.legal-modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  line-height: 1.75;
  color: var(--text-muted);
  font-size: .9rem;
}

.legal-modal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 1.5rem 0 .5rem;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body ul {
  padding-left: 1.25rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.legal-modal-body a {
  color: var(--blue-600);
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: all var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .6);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item-wide {
  grid-column: 2 / 4;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.gallery-item-wide img {
  height: 260px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, .7), rgba(14, 165, 233, .6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: .75rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
  animation: lbFadeIn .25s ease;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  padding: 1rem;
  user-select: none;
  transition: color .2s;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

/* CERT SECTION */
.cert-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cert-img-display {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.cert-img-display img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item-wide {
    grid-column: 1 / -1;
  }

  .cert-section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-wide {
    grid-column: 1;
  }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-slide { flex: 0 0 calc((100% - 1.5rem) / 2); }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .about-home-grid,
  .impact-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-detail-grid-rev {
    direction: ltr;
  }

  .service-icon-big {
    max-width: 180px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .services-home-grid {
    grid-template-columns: 1fr;
  }

  .sc-slide { flex: 0 0 100%; }
  .sc-prev { left: 0; }
  .sc-next { right: 0; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide .service-list-wide {
    columns: 1;
  }

  .projects-grid,
  .projects-home-grid {
    grid-template-columns: 1fr;
  }

  .about-values,
  .about-home-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .hero-stats {
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

.label-optional {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ===== TYPEWRITER CURSOR ===== */
.tw-cursor {
  display: inline-block;
  width: 5px;
  height: .88em;
  background: #4CB2F9;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(76, 178, 249, .7);
  animation: twBlink .75s step-end infinite;
}

@keyframes twBlink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ===== CÓMO TRABAJAMOS ===== */
.process-section {
  background: var(--blue-900);
}

.process-section .section-title {
  color: #fff;
}

.process-section .section-desc {
  color: rgba(255, 255, 255, .65);
}

.process-section .section-tag {
  color: var(--cyan);
  border-color: rgba(14, 165, 233, .3);
  background: rgba(14, 165, 233, .08);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-step {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  position: relative;
  transition: background .3s, transform .3s, border-color .3s;
}

.process-step.active,
.process-step:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(99, 179, 237, .3);
  transform: translateY(-4px);
}

.process-icon {
  width: 52px;
  height: 52px;
  background: var(--grad);
  border-radius: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}

.process-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .6rem;
}

.process-step p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TESTIMONIOS ===== */
.testimonials-section {
  background: var(--bg2);
  overflow: hidden;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.testimonial-card>p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: .9rem;
  color: var(--blue-900);
}

.testimonial-author span {
  font-size: .8rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: none;
}

@media (max-width: 768px) {
  .testimonials-track {
    grid-template-columns: 1fr;
  }
}

/* ===== LOGOS CLIENTES ===== */
.logos-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--bg2);
}

.logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.logo-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 100px;
  transition: box-shadow .25s, transform .25s;
}

.logo-item.logo-item-wide {
  width: 240px;
}

.logo-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.logo-item img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .25s;
}

.logo-item.logo-item-wide img {
  max-height: 56px;
}

.logo-item:hover img {
  filter: grayscale(0%);
}