/* =============================================================
   DESIGN SYSTEM — SAAS SERVICES
   Colores: #2F2F2F · #FAFEFF · #8778DD · #DDF45B
   Tipografías: Nico Moji (primaria) · Darker Grotesque (secundaria)
============================================================= */

/* === FUENTES === */
@font-face {
  font-family: 'Nico Moji';
  src: url('../fonts/NicoMoji-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Darker Grotesque';
  src: url('../fonts/DarkerGrotesque-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --dark:   #2F2F2F;
  --light:  #FAFEFF;
  --purple: #8778DD;
  --lime:   #DDF45B;

  --font-primary:   'Nico Moji', Georgia, serif;
  --font-secondary: 'Darker Grotesque', system-ui, sans-serif;

  --nav-h:           80px;
  --section-pad:     clamp(64px, 9vw, 128px);
  --container-max:   1360px;
  --container-px:    clamp(20px, 5vw, 80px);

  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   32px;
  --r-full: 9999px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur:    0.35s;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-secondary);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.section { padding: var(--section-pad) 0; }

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); line-height: 1.05; }

.display {
  font-size: clamp(3.5rem, 9vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.heading-xl {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.heading-lg {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
}
.heading-md {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 400;
}
.body-xl { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.7; }
.body-lg { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.65; }
.label {
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: var(--r-full);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lime { background: var(--lime); color: var(--dark); border-color: var(--lime); }
.btn-lime:hover { background: transparent; color: var(--lime); }

.btn-dark { background: var(--dark); color: var(--light); border-color: var(--dark); }
.btn-dark:hover { background: transparent; color: var(--dark); }

.btn-light { background: var(--light); color: var(--dark); border-color: var(--light); }
.btn-light:hover { background: transparent; color: var(--light); }

.btn-outline-light { background: transparent; color: var(--light); border-color: rgba(250,254,255,0.5); }
.btn-outline-light:hover { background: var(--light); color: var(--dark); border-color: var(--light); }

.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--light); }

.btn-purple { background: var(--purple); color: var(--light); border-color: var(--purple); }
.btn-purple:hover { background: transparent; color: var(--purple); }

/* === NAVEGACIÓN === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(47, 47, 47, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(250, 254, 255, 0.85);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { color: var(--light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  padding: 10px 26px;
  border-radius: var(--r-full);
  background: var(--lime);
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-cta:hover { background: var(--purple); color: var(--light); transform: translateY(-2px); }
.nav-cta::after { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile .nav-link {
  font-size: 2rem;
  color: var(--light);
  letter-spacing: 0.04em;
}
.nav-mobile .nav-link::after { bottom: -6px; }
.nav-mobile .nav-cta { font-size: 1rem; padding: 16px 40px; margin-top: 16px; }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0;
  animation: glow-in 1.2s var(--ease) forwards;
}
.hero-glow-1 {
  width: 700px; height: 700px;
  background: var(--purple);
  top: -200px; right: -150px;
  opacity: 0;
  animation-delay: 0.3s;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--lime);
  bottom: -100px; left: -80px;
  animation-delay: 0.6s;
}
@keyframes glow-in {
  to { opacity: 0.12; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vh, 100px) 0 clamp(80px, 10vh, 140px);
}
.hero-label {
  color: var(--lime);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s var(--ease) 0.2s forwards;
}
.hero-display {
  color: var(--light);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.8s var(--ease) 0.4s forwards;
}
.hero-display .word-lime { color: var(--lime); }
.hero-display .word-purple { color: var(--purple); }

/* Texto rotante */
.hero-rotating-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-rotating {
  display: inline-block;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-body {
  color: rgba(250, 254, 255, 0.65);
  max-width: 560px;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease) 0.6s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease) 0.8s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 1.2s forwards;
}
.hero-scroll .label { color: rgba(250,254,255,0.4); }
.scroll-pill {
  width: 24px; height: 40px;
  border: 2px solid rgba(250,254,255,0.2);
  border-radius: 12px;
  position: relative;
}
.scroll-pill::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--lime);
  border-radius: 4px;
  animation: pill-scroll 2s ease-in-out infinite;
}
@keyframes pill-scroll {
  0%   { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* === MARQUEE === */
.marquee-section {
  background: var(--lime);
  padding: 18px 0;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dark);
  opacity: 0.4;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === SECCIÓN SERVICIOS (preview) === */
.services-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}
.services-intro .heading-xl { max-width: 600px; }
.services-intro-right { max-width: 400px; flex-shrink: 0; }
.services-intro-right .body-lg { color: rgba(47,47,47,0.65); margin-bottom: 32px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(47, 47, 47, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(47, 47, 47, 0.1);
  border-bottom: 1px solid rgba(47, 47, 47, 0.1);
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease);
  cursor: default;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-child(4), .service-card:nth-child(5), .service-card:nth-child(6) { border-bottom: none; }

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--purple);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  color: var(--purple);
  margin-bottom: 28px;
  transition: color var(--dur) var(--ease);
}
.service-card:hover .service-num { color: rgba(221,244,91,0.7); }

.service-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 16px;
  transition: color var(--dur) var(--ease);
}
.service-card:hover h3 { color: var(--light); }

.service-card p {
  font-size: 0.95rem;
  color: rgba(47,47,47,0.65);
  line-height: 1.65;
  margin-bottom: 36px;
  transition: color var(--dur) var(--ease);
}
.service-card:hover p { color: rgba(250,254,255,0.75); }

.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid rgba(47,47,47,0.2);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all var(--dur) var(--ease);
}
.service-card:hover .service-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark);
  transform: rotate(45deg);
}

/* === STATS === */
.stats-section { background: var(--dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(250,254,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item {
  padding: 56px 40px;
  text-align: center;
  border-right: 1px solid rgba(250,254,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  color: var(--lime);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.95rem;
  color: rgba(250,254,255,0.5);
  font-weight: 500;
}

/* === ¿POR QUÉ NOSOTROS? === */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-label { color: var(--purple); margin-bottom: 20px; }
.why-heading { margin-bottom: 28px; }
.why-body { color: rgba(47,47,47,0.65); margin-bottom: 48px; }
.why-features { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.why-feature-text h4 {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-feature-text p {
  font-size: 0.93rem;
  color: rgba(47,47,47,0.62);
  line-height: 1.6;
}
.why-visual {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.why-visual-logo { width: 180px; height: auto; }
.why-visual-text {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--light);
  line-height: 1.2;
}
.why-visual-sub { font-size: 0.9rem; color: rgba(250,254,255,0.45); }
.why-visual-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(221,244,91,0.12);
  border: 1px solid rgba(221,244,91,0.25);
  border-radius: var(--r-full);
  padding: 10px 20px;
  color: var(--lime);
  font-size: 0.88rem;
  font-weight: 600;
}
.why-visual-pill::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* === CTA SECTION === */
.cta-section {
  background: var(--purple);
  padding: var(--section-pad) 0;
  overflow: hidden;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(221,244,91,0.1);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-label { color: rgba(221,244,91,0.7); margin-bottom: 24px; }
.cta-heading { color: var(--light); margin-bottom: 28px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-body { color: rgba(250,254,255,0.75); max-width: 520px; margin: 0 auto 52px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  padding: 80px 0 40px;
}

/* Toggle bar (visible solo en móvil/tablet) */
.footer-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--container-px);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(250,254,255,0.06);
  cursor: pointer;
}
.footer-toggle-icon {
  color: rgba(250,254,255,0.45);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.footer.is-open .footer-toggle-icon {
  transform: rotate(180deg);
}
.footer-toggle-logo { height: 26px; width: auto; }

/* Cuerpo colapsable */
.footer-body {
  /* desktop: siempre visible */
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}
.footer-brand {}
.footer-logo { height: 32px; width: auto; margin-bottom: 20px; }
.footer-brand p {
  color: rgba(250,254,255,0.5);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 28px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250,254,255,0.15);
  color: rgba(250,254,255,0.5);
  font-size: 0.9rem;
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover { border-color: var(--lime); color: var(--lime); }

.footer-col h4 {
  font-family: var(--font-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,254,255,0.35);
  margin-bottom: 24px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  color: rgba(250,254,255,0.7);
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease);
}
.footer-col ul a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(250,254,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-bottom p { color: rgba(250,254,255,0.3); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  color: rgba(250,254,255,0.3);
  font-size: 0.85rem;
  transition: color var(--dur) var(--ease);
}
.footer-legal a:hover { color: var(--lime); }

/* === PAGE HERO (páginas interiores) === */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 72px) 0 88px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
}
.page-hero .label { color: var(--lime); margin-bottom: 20px; }
.page-hero .heading-xl { color: var(--light); margin-bottom: 20px; }
.page-hero .body-xl { color: rgba(250,254,255,0.6); max-width: 600px; }

/* === SERVICIOS (página detalle) === */
.service-detail-section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid rgba(47,47,47,0.07);
}
.service-detail-section:last-child { border-bottom: none; }
.service-detail-section.alt { background: rgba(135,120,221,0.03); }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-detail-section.alt .service-detail-grid { direction: rtl; }
.service-detail-section.alt .service-detail-content,
.service-detail-section.alt .service-detail-visual { direction: ltr; }

.service-detail-content .label { color: var(--purple); margin-bottom: 16px; }
.service-detail-content .heading-md { margin-bottom: 20px; }
.service-detail-content p {
  color: rgba(47,47,47,0.65);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
}
.service-checklist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.service-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  font-weight: 600;
}
.service-checklist li::before {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='%232F2F2F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.service-detail-visual {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.service-detail-icon { font-size: 5rem; }

/* === NOSOTROS === */
.nosotros-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.nosotros-label { color: var(--purple); margin-bottom: 20px; }
.nosotros-body { color: rgba(47,47,47,0.65); margin-top: 20px; }

.nosotros-visual {
  background: var(--lime);
  border-radius: var(--r-lg);
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nosotros-visual-logo { width: 200px; }
.nosotros-stat {
  display: flex;
  flex-direction: column;
}
.nosotros-stat-num {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--dark);
  line-height: 1;
}
.nosotros-stat-lbl { font-size: 0.95rem; font-weight: 600; color: rgba(47,47,47,0.7); }

.values-section { background: var(--dark); }
.values-label { color: var(--lime); margin-bottom: 20px; }
.values-heading { color: var(--light); margin-bottom: 64px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.value-card {
  background: rgba(250,254,255,0.04);
  border: 1px solid rgba(250,254,255,0.08);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.value-card:hover { border-color: var(--purple); background: rgba(135,120,221,0.08); }
.value-icon { font-size: 2.5rem; margin-bottom: 20px; }
.value-card h3 { font-size: 1.5rem; color: var(--light); margin-bottom: 12px; }
.value-card p { font-size: 0.93rem; color: rgba(250,254,255,0.5); line-height: 1.65; }

.mision-section {
  padding: var(--section-pad) 0;
}
.mision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.mision-card {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 48px 44px;
}
.mision-card .label { color: var(--lime); margin-bottom: 16px; }
.mision-card p { font-size: 1.05rem; color: rgba(250,254,255,0.7); line-height: 1.75; }
.mision-card .heading-md { color: var(--light); margin-bottom: 20px; }

/* === CONTACTO === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.contact-info-label { color: var(--purple); margin-bottom: 20px; }
.contact-info-heading { margin-bottom: 16px; }
.contact-info-body { color: rgba(47,47,47,0.65); margin-bottom: 48px; }
.contact-info-items { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-info-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(47,47,47,0.5);
  margin-bottom: 4px;
}
.contact-info-item a, .contact-info-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* Formulario */
.contact-form {
  background: white;
  border: 1px solid rgba(47,47,47,0.08);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(47,47,47,0.5);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid rgba(47,47,47,0.12);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--dark);
  background: var(--light);
  transition: border-color var(--dur) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: white;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: rgba(47,47,47,0.45);
}
.form-note a { color: var(--purple); text-decoration: underline; }
.form-success {
  display: none;
  background: rgba(221,244,91,0.12);
  border: 1px solid var(--lime);
  border-radius: var(--r-md);
  padding: 20px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}
.form-success.visible { display: block; }

/* === PÁGINAS LEGALES === */
.legal-section { padding: var(--section-pad) 0; }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 48px 0 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: rgba(47,47,47,0.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 28px;
  margin-bottom: 16px;
}
.legal-content ul li {
  color: rgba(47,47,47,0.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-content a { color: var(--purple); text-decoration: underline; }

/* === ANIMACIONES SCROLL === */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n)  { border-right: 1px solid rgba(47,47,47,0.1); }
  .service-card:nth-child(2n)  { border-right: none; }
  .service-card:nth-child(5),
  .service-card:nth-child(6)   { border-bottom: none; }
  .service-card:nth-child(4)   { border-bottom: 1px solid rgba(47,47,47,0.1); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(250,254,255,0.08); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .why-grid, .nosotros-intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-section.alt .service-detail-grid { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .mision-grid { grid-template-columns: 1fr; }
}

/* ---- TABLET (≤ 900px) — footer colapsable ---- */
@media (max-width: 900px) {
  .footer {
    padding: 0;
  }
  .footer-toggle {
    display: flex;
  }
  .footer-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s var(--ease);
  }
  .footer.is-open .footer-body {
    max-height: 2400px;
  }
  .footer-body .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }

  .why-visual { padding: 40px 32px; }
  .nosotros-visual { padding: 40px; }
  .service-detail-visual { padding: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-scroll { display: none; }

  .hero-display { font-size: clamp(2.6rem, 11vw, 4.5rem); }
  .hero-body { font-size: 1rem; margin-bottom: 36px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 14px 28px; font-size: 0.93rem; }
  .hero-content { padding-top: clamp(36px, 6vh, 72px); padding-bottom: clamp(60px, 8vh, 110px); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; padding: 36px 28px; }
  .service-card:not(:last-child) { border-bottom: 1px solid rgba(47,47,47,0.1) !important; }
  .service-card:last-child { border-bottom: none !important; }

  .services-intro { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
  .services-intro-right { max-width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 36px 24px; }
  .stat-item:nth-child(2) { border-right: none; }

  .cta-body { font-size: 1rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { flex-wrap: wrap; gap: 16px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }

  .why-grid, .nosotros-intro-grid { gap: 40px; }
  .why-features { gap: 20px; }
  .why-visual { padding: 36px 24px; }

  .nosotros-visual { padding: 32px 28px; }
  .nosotros-visual-logo { width: 160px; }

  .mision-card { padding: 36px 28px; }
  .contact-grid { gap: 40px; }

  .page-hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .section { padding: clamp(48px, 8vw, 96px) 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
  .stat-item:not(:last-child) { border-bottom: 1px solid rgba(250,254,255,0.08); }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .btn { padding: 14px 24px; }

  .service-card { padding: 28px 20px; }
  .stat-item { padding: 28px 20px; }

  .why-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .why-feature { gap: 14px; }

  .cta-actions .btn { max-width: 100%; }
}
