/* ==========================================================================
   DOIS Consultora — Design System
   Paleta conservada de la identidad original (navy/azul/rosa + acentos de
   pilares) reinterpretada en clave editorial-corporativa cálida.
   ========================================================================== */

/* ---- Fuentes: Fraunces + Manrope cargadas vía Google Fonts en el <head> - */

/* ---- Design tokens -------------------------------------------------------*/
:root {
  /* Identidad de marca (extraída del sitio original) */
  --ink: #072130;              /* navy institucional — header/footer */
  --ink-800: #0e3245;
  --ink-700: #164257;
  --blue-600: #0c71c3;         /* azul de marca — titulares/enlaces */
  --blue-500: #2ea3f2;         /* azul claro — hover/foco */
  --rose-500: #bf5773;         /* rosa firma — CTA y estado activo */
  --rose-600: #a2455f;

  /* Acentos de los 4 pilares (conservados del original) */
  --violet-400: #7a69e6;
  --coral-400: #fa5e5d;
  --orange-400: #f98d5e;
  --green-400: #76ce44;

  /* Neutros cálidos (papel editorial, no blanco frío de plantilla) */
  --paper: #fbf9f6;
  --paper-alt: #f3efe8;
  --paper-deep: #ece6db;
  --white: #ffffff;
  --text: #22282e;
  --text-soft: #4b545c;
  --text-muted: #737f89;
  --border: #e3ddd1;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Tipografía */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.3125rem;
  --text-2xl: clamp(1.6rem, 1.4rem + 1vw, 2.05rem);
  --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 1.9rem + 2.8vw, 3.75rem);
  --text-5xl: clamp(3rem, 2.1rem + 4vw, 4.75rem);

  /* Espaciado */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  --container-w: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(7, 33, 48, 0.06);
  --shadow-md: 0 12px 32px -8px rgba(7, 33, 48, 0.16);
  --shadow-lg: 0 24px 60px -12px rgba(7, 33, 48, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---- Reset ---------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
strong { font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--rose-500); color: var(--white); }

/* ---- Utilidades ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px; left: 1rem;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-500);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section { padding-block: var(--space-3xl); position: relative; }
.section--tight { padding-block: var(--space-2xl); }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: rgba(255,255,255,0.86); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--space-xl); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: var(--text-lg); margin-top: var(--space-sm); }

.lede { font-size: var(--text-xl); color: var(--text-soft); max-width: 62ch; }

.text-serif { font-family: var(--font-display); }
.text-balance { text-wrap: balance; }

/* ---- Botones --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--rose-500);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--rose-600); box-shadow: var(--shadow-lg); }
.btn--outline {
  border-color: currentColor;
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--outline-ink {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline-ink:hover { background: var(--ink); color: var(--white); }
.btn--ghost { color: var(--blue-600); padding-inline: 0.2em; }
.btn--ghost::after { content: '→'; transition: transform 0.3s var(--ease); }
.btn--ghost:hover::after { transform: translateX(4px); }
.btn--sm { padding: 0.7em 1.4em; font-size: var(--text-xs); }

/* ---- Header / navegación --------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 33, 48, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 33, 48, 0.94);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav__list { display: flex; align-items: center; gap: var(--space-md); }
.nav__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
  padding-block: 0.4em;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--rose-500);
  transition: right 0.3s var(--ease);
  border-radius: 2px;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--white); }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-active::after { right: 0; }
.nav__link.is-active { color: var(--rose-500); }
.nav__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero (motivo de onda vectorial propio, no stock) ------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(46, 163, 242, 0.35), transparent 60%),
    radial-gradient(55% 60% at 10% 95%, rgba(250, 94, 93, 0.28), transparent 65%),
    radial-gradient(80% 80% at 50% 50%, rgba(191, 87, 115, 0.14), transparent 70%),
    var(--ink);
}
.hero__lines { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.hero__inner { position: relative; max-width: 880px; }
.hero .eyebrow { color: var(--orange-400); }
.hero h1 { font-size: var(--text-5xl); color: var(--white); margin-block: var(--space-sm) var(--space-md); }
.hero .lede { color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); align-items: center; }
.hero__langs { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl); }
.hero__langs p { font-size: var(--text-sm); color: rgba(255,255,255,0.6); }
.hero__langs strong { color: rgba(255,255,255,0.85); }

/* ---- Pilares / grid de cards -------------------------------------------*/
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color .4s;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  margin-bottom: var(--space-md);
}
.pillar-card__icon svg { width: 26px; height: 26px; }
.pillar-card--violet .pillar-card__icon { background: color-mix(in srgb, var(--violet-400) 16%, white); color: var(--violet-400); }
.pillar-card--coral .pillar-card__icon { background: color-mix(in srgb, var(--coral-400) 16%, white); color: var(--coral-400); }
.pillar-card--orange .pillar-card__icon { background: color-mix(in srgb, var(--orange-400) 16%, white); color: var(--orange-400); }
.pillar-card--green .pillar-card__icon { background: color-mix(in srgb, var(--green-400) 16%, white); color: var(--green-400); }
.pillar-card h3 { font-size: var(--text-lg); margin-bottom: 0.4em; }
.pillar-card p { color: var(--text-muted); font-size: var(--text-sm); }

/* ---- Split media/texto -------------------------------------------------*/
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split__media::before {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 65%; height: 65%;
  background: linear-gradient(135deg, var(--orange-400), var(--rose-500));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.16;
}
.split__body h2 { margin-bottom: var(--space-sm); }
.split__body p { color: var(--text-soft); margin-bottom: var(--space-sm); }
.split__body p strong { color: var(--ink); }

/* ---- Sectores ------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.sector-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--ink);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.sector-chip:hover { border-color: var(--blue-500); background: var(--paper-alt); transform: translateX(4px); }
.sector-chip svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--rose-500); }

/* ---- Estadísticas / contador ------------------------------------------*/
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}
.stat-card { text-align: center; }
.stat-card__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--blue-600);
  display: block;
  line-height: 1;
}
.section--ink .stat-card__num { color: var(--orange-400); }
.stat-card__label {
  display: block;
  margin-top: 0.6em;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.section--ink .stat-card__label { color: rgba(255,255,255,0.65); }

/* ---- Tarjetas de servicios / soluciones -------------------------------*/
.services-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.service-row:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.service-row__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--paper-alt);
  color: var(--blue-600);
}
.service-row__icon svg { width: 28px; height: 28px; }
.service-row h3 { font-size: var(--text-lg); margin-bottom: 0.3em; }
.service-row p { color: var(--text-muted); font-size: var(--text-sm); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: var(--space-sm); }
.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-full);
  background: var(--paper-alt);
  color: var(--text-soft);
}

/* ---- Timeline (Modelo DOIS) -------------------------------------------*/
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); counter-reset: step; }
.timeline__step {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.timeline__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--rose-500);
  display: block;
  margin-bottom: var(--space-xs);
}
.timeline__step h4 { font-size: var(--text-base); margin-bottom: 0.3em; }
.timeline__step p { font-size: var(--text-xs); color: var(--text-muted); }

/* ---- Founders / equipo --------------------------------------------- */
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.founder-card { display: flex; flex-direction: column; gap: var(--space-md); }
.founder-card__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-md); }
.founder-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card__role { color: var(--rose-500); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.founder-card h3 { font-size: var(--text-xl); margin-block: 0.2em 0.3em; }
.founder-card p { color: var(--text-soft); font-size: var(--text-sm); }
.founder-card__social { display: inline-flex; margin-top: 0.4em; color: var(--blue-600); }
.founder-card__social svg { width: 20px; height: 20px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.value-card { text-align: center; padding: var(--space-lg); }
.value-card__num { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--blue-600); }
.value-card h3 { margin-top: var(--space-xs); font-size: var(--text-lg); }
.value-card p { color: var(--text-muted); font-size: var(--text-sm); margin-top: 0.4em; }

/* ---- Blockquote / cita -------------------------------------------------*/
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  line-height: 1.3;
  max-width: 900px;
  color: var(--ink);
}
.quote--light { color: var(--white); }
.quote cite { display: block; margin-top: var(--space-md); font-style: normal; font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); }

/* ---- CTA final ---------------------------------------------------------*/
.cta-band {
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  background: var(--ink);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 120%, rgba(46,163,242,0.35), transparent 70%);
}
.cta-band__inner { position: relative; }
.cta-band h2 { color: var(--white); font-size: var(--text-3xl); max-width: 680px; margin-inline: auto; }
.cta-band .btn--primary { margin-top: var(--space-lg); }
.cta-band__socials { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.social-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background .3s, transform .3s var(--ease);
}
.social-btn:hover { background: var(--rose-500); transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; }

/* ---- Footer -------------------------------------------------------------*/
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-top: var(--space-2xl); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand__logo { height: 47.6px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: var(--text-sm); max-width: 32ch; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.footer-col p, .footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,0.68); display: block; margin-bottom: 0.4em; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}
.footer-bottom__socials { display: flex; gap: var(--space-xs); }
.footer-bottom__socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); }
.footer-bottom__socials svg { width: 16px; height: 16px; }

/* ---- WhatsApp flotante --------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  animation: whatsapp-pulse 2.8s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: white; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---- Formularios --------------------------------------------------------*/
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-field { display: flex; flex-direction: column; gap: 0.4em; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-soft); }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.9em 1.1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--text-sm);
  transition: border-color .3s, box-shadow .3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-500) 18%, transparent);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-xs); }
.form-status { font-size: var(--text-sm); font-weight: 600; margin-top: var(--space-sm); min-height: 1.4em; }
.form-status[data-state="success"] { color: #2e7d4f; }
.form-status[data-state="error"] { color: var(--coral-400); }

/* ---- Grano / textura editorial global ------------------------------------*/
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* ---- Fondos con profundidad: auroras -------------------------------------*/
.container { position: relative; z-index: 1; }
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
  animation: drift 24s ease-in-out infinite;
}
.aurora span:nth-child(1) { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; top: -12%; left: -8%; background: var(--violet-400); opacity: 0.3; }
.aurora span:nth-child(2) { width: 26vw; height: 26vw; max-width: 400px; max-height: 400px; bottom: -14%; right: -6%; background: var(--coral-400); opacity: 0.26; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 20vw; height: 20vw; max-width: 320px; max-height: 320px; top: 38%; left: 58%; background: var(--blue-500); opacity: 0.2; animation-delay: -15s; }
.aurora--soft span { filter: blur(80px); }
.aurora--soft span:nth-child(1) { opacity: 0.16; }
.aurora--soft span:nth-child(2) { opacity: 0.14; }
.aurora--soft span:nth-child(3) { opacity: 0.12; }
@media (max-width: 640px) {
  .aurora span { animation: none; }
}

/* ---- Separadores orgánicos entre secciones -------------------------------*/
.section-wave {
  position: absolute;
  left: 0; right: 0;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.section-wave--bottom { bottom: -1px; }
.section-wave--top { top: -1px; transform: scaleY(-1); }
.section-wave svg { width: 100%; height: 64px; display: block; }

/* ---- Acento superior en cards al hover (detalle premium) -----------------*/
.pillar-card, .service-row, .value-card {
  position: relative;
  overflow: hidden;
}
.pillar-card::before, .service-row::before, .value-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-400), var(--rose-500), var(--orange-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.pillar-card:hover::before, .service-row:hover::before, .value-card:hover::before { transform: scaleX(1); }

/* ---- Perspectiva para tilt 3D en cards (aplicado por JS) -----------------*/
.tilt-target {
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.4s var(--ease), border-color 0.4s;
  will-change: transform;
}

/* ---- Botones magnéticos (aplicado por JS) --------------------------------*/
.magnetic { transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1); }

/* ---- Split-text reveal (palabra por palabra) -----------------------------*/
.split-text { overflow: visible; }
.split-text .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-text .word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.7s var(--ease);
  transition-delay: var(--word-delay, 0s);
}
.split-text.is-visible .word-inner { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .split-text .word-inner { transform: none !important; transition: none !important; }
}

/* ---- Barra de progreso de scroll -----------------------------------------*/
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-400), var(--blue-500));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---- Parallax de imágenes (aplicado por JS) ------------------------------*/
.parallax-img { will-change: transform; }

/* ---- Breadcrumbs ---------------------------------------------------------*/
.breadcrumbs { display: flex; gap: 0.5em; font-size: var(--text-xs); color: rgba(255,255,255,0.55); margin-bottom: var(--space-md); }
.breadcrumbs a { color: rgba(255,255,255,0.7); }
.breadcrumbs a:hover { color: var(--white); }

/* ---- Página 404 / utilidades genéricas ----------------------------------*/
.center-block { text-align: center; max-width: 640px; margin-inline: auto; }
