/* ══════════════════════════════════════════════════════════════
   NivelAgentico — Design System
   Aesthetic: Tech/Serious · Dark · Corporate
   ══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --color-bg-primary:    #0a0e17;
  --color-bg-secondary:  #0f1420;
  --color-bg-tertiary:   #141a28;
  --color-bg-card:       #111827;
  --color-bg-card-hover: #161e30;
  --color-bg-input:      #0d1220;

  --color-accent:        #0ea5e9;
  --color-accent-bright: #38bdf8;
  --color-accent-dim:    rgba(14, 165, 233, 0.15);
  --color-accent-glow:   rgba(14, 165, 233, 0.35);

  --color-text-primary:  #f1f5f9;
  --color-text-secondary:#94a3b8;
  --color-text-muted:    #64748b;

  --color-border:        rgba(148, 163, 184, 0.08);
  --color-border-accent: rgba(14, 165, 233, 0.25);
  --color-border-input:  rgba(148, 163, 184, 0.12);

  --color-success:       #22c55e;
  --color-error:         #ef4444;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Roboto Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ─── Utility: Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ─── Grid Background Pattern (applied via pseudo-elements) ─── */
.solutions,
.methodology {
  position: relative;
}
.solutions::before,
.methodology::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.nav--scrolled {
  background: rgba(10, 14, 23, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  z-index: 1001;
}

.nav__logo-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  filter: drop-shadow(0 0 8px var(--color-accent-glow));
  transition: transform var(--duration-base) var(--ease-spring);
}

.nav__logo:hover .nav__logo-icon {
  transform: rotate(60deg) scale(1.1);
}

.nav__logo-accent {
  color: var(--color-accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link--cta {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  margin-left: var(--space-sm);
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  color: var(--color-bg-primary);
  background: var(--color-accent);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: var(--space-sm);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle--active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle--active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  color: var(--color-bg-primary);
  background: var(--color-accent);
  box-shadow:
    0 0 20px var(--color-accent-glow),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-bright);
  box-shadow:
    0 0 35px var(--color-accent-glow),
    0 4px 15px rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-accent);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border-color: var(--color-accent);
}

.btn--full {
  width: 100%;
}

.btn__arrow {
  transition: transform var(--duration-base) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.section-header--left {
  text-align: left;
}

.section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header--left .section-header__desc {
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradient overlays */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(56, 189, 248, 0.04) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--color-bg-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* Metrics */
.hero__metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding: var(--space-xl) var(--space-2xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero__metric-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.hero__metric-suffix {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent-bright);
}

.hero__metric-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.hero__metric-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ═══════════════════════════════════════════════════════════════
   SOLUTIONS
   ═══════════════════════════════════════════════════════════════ */
.solutions {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-secondary);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.solution-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.solution-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--color-accent-dim);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.solution-card:hover .solution-card__icon-wrap {
  background: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 20px var(--color-accent-dim);
}

.solution-card__icon {
  color: var(--color-accent);
}

.solution-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.solution-card__desc {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.solution-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.solution-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.825rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.solution-card__features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   METHODOLOGY
   ═══════════════════════════════════════════════════════════════ */
.methodology {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-primary);
}

.methodology__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.method-step {
  display: flex;
  gap: var(--space-2xl);
  position: relative;
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.method-step:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-accent);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.method-step:last-child {
  margin-bottom: 0;
}

.method-step__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 60px;
}

.method-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  z-index: 1;
  transition: all var(--duration-base) var(--ease-out);
}

.method-step:hover .method-step__number {
  background: rgba(14, 165, 233, 0.25);
  box-shadow: 0 0 20px var(--color-accent-dim);
  transform: scale(1.05);
}

.method-step__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-border-accent), transparent);
  min-height: 40px;
}

.method-step:last-child .method-step__line {
  display: none;
}

.method-step__content {
  padding-bottom: var(--space-3xl);
}

.method-step:last-child .method-step__content {
  padding-bottom: 0;
}

.method-step__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.method-step__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 550px;
}

.method-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.method-step__tag {
  display: inline-flex;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent-bright);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}


.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(100%);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-dim), transparent);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact__info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.contact__detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.contact__detail-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ─── Contact Form ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form__label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.contact-form__label span {
  color: var(--color-accent);
}

.contact-form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
  appearance: none;
  -webkit-appearance: none;
}

.contact-form__input::placeholder {
  color: var(--color-text-muted);
}

.contact-form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.contact-form__input.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.contact-form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form__select option {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__error {
  font-size: 0.75rem;
  color: var(--color-error);
  min-height: 1em;
}

.contact-form__status {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.5em;
}

.contact-form__status--success {
  color: var(--color-success);
}

.contact-form__status--error {
  color: var(--color-error);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 240ms; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .solutions__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

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

  .contact__info {
    position: static;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Nav mobile */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out),
                visibility var(--duration-base);
  }

  .nav__menu--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 1.25rem;
    padding: var(--space-md) var(--space-xl);
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  /* Hero mobile */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero__metrics {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }

  .hero__metric-divider {
    width: 60px;
    height: 1px;
  }

  /* Methodology mobile */
  .method-step {
    gap: var(--space-lg);
  }

  .method-step__indicator {
    width: 40px;
  }

  .method-step__number {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  /* Contact form mobile */
  .contact-form {
    padding: var(--space-lg);
  }

  /* Footer mobile */
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .footer__links {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .hero__title {
    font-size: 1.85rem;
  }

  .section-header__title {
    font-size: 1.5rem;
  }
}

/* ─── Prefers Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BRANDING & LOGO STYLES
   ═══════════════════════════════════════════════════════════════ */
.nav__logo-img {
  height: 42px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.25));
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.03);
}

.footer__logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: var(--space-xs);
}

.hero__brand-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.35), 0 0 80px rgba(0, 114, 255, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: pulseLogo 4s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: translateY(0); box-shadow: 0 0 30px rgba(14, 165, 233, 0.3); }
  100% { transform: translateY(-4px); box-shadow: 0 0 50px rgba(14, 165, 233, 0.55), 0 0 90px rgba(0, 114, 255, 0.3); }
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED CARDS
   ═══════════════════════════════════════════════════════════════ */
.solution-card--featured {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
}

.solution-card__badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.25);
  color: var(--color-accent-bright);
  border: 1px solid rgba(56, 189, 248, 0.4);
}


/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (POLÍTICAS, TÉRMINOS, ELIMINACIÓN DE DATOS)
   ═══════════════════════════════════════════════════════════════ */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  min-height: 80vh;
}

.legal-page__header {
  margin-bottom: var(--space-3xl);
  max-width: 800px;
}

.legal-page__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-page__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-page__content {
  max-width: 900px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.legal-section {
  margin-bottom: var(--space-2xl);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-accent);
}

.legal-section p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-section ul, .legal-section ol {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.legal-section li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.legal-section a {
  color: var(--color-accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}

.deletion-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.deletion-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.footer__link--active {
  color: var(--color-accent-bright) !important;
  font-weight: 600;
}


/* ─── Security Section ─── */
.security {
  padding: var(--section-padding, 100px 0);
  background: var(--color-bg-section, #0b1120);
  position: relative;
  overflow: hidden;
}
.security::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-subtle, rgba(56,189,248,0.3)), transparent);
}
.security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg, 24px);
  margin-top: var(--space-xl, 48px);
}
.security__card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-lg, 24px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.security__card:hover {
  border-color: var(--color-accent-subtle, rgba(56,189,248,0.3));
  transform: translateY(-2px);
}
.security__icon { font-size: 2rem; margin-bottom: var(--space-sm, 12px); line-height: 1; }
.security__title { font-size: 1.1rem; font-weight: 600; color: var(--color-text-primary, #f1f5f9); margin-bottom: var(--space-xs, 8px); }
.security__desc { font-size: 0.9rem; color: var(--color-text-secondary, #94a3b8); line-height: 1.6; }
.security__links {
  display: flex; flex-wrap: wrap; gap: var(--space-md, 16px);
  justify-content: center; margin-top: var(--space-xl, 48px);
  padding-top: var(--space-lg, 24px);
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
}
@media (max-width: 768px) {
  .security__grid { grid-template-columns: 1fr; }
  .security__links { flex-direction: column; align-items: center; }
}

/* ─── Footer ─── */
.footer {
  background: #060b18;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand .nav__logo-icon { font-size: 1.5rem; }
.footer__brand .nav__logo-text { font-size: 1.2rem; font-weight: 700; }
.footer__brand .nav__logo-accent { color: var(--color-accent-bright, #38bdf8); }
.footer__logo-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer__tagline { color: #64748b; font-size: 0.9rem; margin: 0; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-title { color: #f1f5f9; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }
.footer__link { color: #94a3b8; font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer__link:hover { color: #38bdf8; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; text-align: center; }
.footer__copyright { color: #475569; font-size: 0.85rem; margin: 0; }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-c