/* ============================================================
   FUNDLITE — CSS
   Paleta: Navy #0B1F4B | Accent #4DB8FF | Bg #F8FAFC / #fff
   ============================================================ */

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

:root {
  --navy:        #0B1F4B;
  --navy-light:  #1a3366;
  --accent:      #4DB8FF;
  --accent-dark: #2299e0;
  --accent-glow: rgba(77, 184, 255, 0.18);
  --white:       #ffffff;
  --bg:          #F8FAFC;
  --bg-2:        #EFF4FB;
  --text:        #1a2a4a;
  --text-muted:  #5a6a8a;
  --border:      #dde5f0;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(11,31,75,0.08);
  --shadow-lg:   0 12px 48px rgba(11,31,75,0.14);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1160px;
  --header-h:    72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Section ---------- */
.section { padding-block: 100px; }
@media (max-width: 768px) { .section { padding-block: 64px; } }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 64px;
}
@media (max-width: 768px) { .section-header { margin-bottom: 40px; } }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  padding: 13px 26px;
  box-shadow: 0 4px 16px rgba(11,31,75,0.25);
}
.btn--primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11,31,75,0.3);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  padding: 12px 24px;
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--bg);
}

.btn--lg { padding: 15px 32px; font-size: 0.95rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo__icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo__wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo__fund { font-weight: 800; color: var(--navy); }
.logo__lite { font-weight: 300; color: var(--navy); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(11,31,75,0.07);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--navy); }
.nav__link--cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px;
  margin-left: 8px;
  box-shadow: 0 2px 10px rgba(11,31,75,0.2);
}
.nav__link--cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,31,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,75,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(77,184,255,0.12), transparent 70%);
  top: -100px; right: -100px;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(11,31,75,0.06), transparent 70%);
  bottom: 0; left: -80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero__content { max-width: 540px; }

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero__title .highlight {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero__trust { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
}

.hero__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: absolute;
}

.hero__card--main {
  padding: 28px 32px;
  width: 280px;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.hero-card__icon {
  width: 44px; height: 44px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.hero-card__label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.hero-card__amount { font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; margin-bottom: 8px; }
.hero-card__tag {
  display: inline-block;
  background: rgba(77,184,255,0.12);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.hero__card--secondary {
  padding: 18px 22px;
  width: 200px;
}
.hero__card--top {
  top: 30px; right: 10px;
  z-index: 3;
  animation: float 4s ease-in-out infinite 0.8s;
}
.hero__card--bottom {
  bottom: 40px; right: 30px;
  z-index: 1;
  animation: float 6s ease-in-out infinite 1.5s;
}
.hero-card__small-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.hero-card__saving { font-size: 1.4rem; font-weight: 800; color: #16a34a; letter-spacing: -0.03em; }
.hero-card__banks { display: flex; align-items: center; gap: 10px; }
.hero-card__banks span { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.bank-dots { display: flex; gap: 4px; }
.bank-dots i {
  display: block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  opacity: 0.5;
}
.bank-dots i:nth-child(1) { opacity: 1; }
.bank-dots i:nth-child(2) { opacity: 0.8; }
.bank-dots i:nth-child(3) { opacity: 0.6; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- Proof Bar ---------- */
.proof-bar {
  background: var(--bg);
  border-block: 1px solid var(--border);
  padding-block: 28px;
}
.proof-bar__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.proof-bar__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bank-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  transition: var(--transition);
}
.bank-chip:hover { color: var(--navy); border-color: var(--navy); }

/* ---------- Process (Cómo funciona) ---------- */
.how { background: var(--white); }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 56px;
}

.process__track {
  position: absolute;
  top: 40px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--bg-2) 100%);
  z-index: 0;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step__number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.step__icon {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--border);
}
.process__step:hover .step__icon {
  background: var(--navy);
  border-color: var(--navy);
}
.process__step:hover .step__icon svg path,
.process__step:hover .step__icon svg circle,
.process__step:hover .step__icon svg rect {
  stroke: var(--white);
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}
.stats__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(77,184,255,0.08), transparent),
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(77,184,255,0.06), transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat { text-align: center; }

.stat__number {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  line-height: 1.4;
}

/* Dividers */
.stats__grid .stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.1);
}

/* ---------- Por qué nosotros ---------- */
.why { background: var(--bg); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
  opacity: 0;
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card:hover::before { opacity: 1; }

.why-card__icon {
  width: 56px; height: 56px;
  background: var(--bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.why-card:hover .why-card__icon {
  background: rgba(77,184,255,0.12);
}

.why-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.why-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(77,184,255,0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---------- Servicios ---------- */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-card__visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 32px;
  display: flex;
  align-items: flex-start;
}
.service-card__visual--2 { background: linear-gradient(135deg, #1a3366, #0f2550); }
.service-card__visual--3 { background: linear-gradient(135deg, #0d2a5c, #1a3d7a); }
.service-card__visual--4 { background: linear-gradient(135deg, #0B1F4B, #132d6b); }

.service-card__icon-wrap {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.service-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card__list {
  margin-bottom: 20px;
  flex: 1;
}
.service-card__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px solid var(--bg);
}
.service-card__list li:last-child { border-bottom: none; }
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}
.service-card__link:hover { color: var(--accent-dark); gap: 10px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 50% 60% at 100% 0%, rgba(77,184,255,0.08), transparent);
  pointer-events: none;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.contact__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item__icon {
  width: 38px; height: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item__label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.contact-item__value { font-size: 0.9rem; color: var(--navy); font-weight: 600; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.required { color: var(--accent-dark); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-input.valid { border-color: #22c55e; }

.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235a6a8a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }

.form-textarea { resize: vertical; min-height: 100px; }

.form-group--checkbox { margin-top: 4px; }
.form-checkbox { display: flex; gap: 12px; cursor: pointer; align-items: flex-start; }
.form-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-checkbox__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: var(--transition);
  position: relative;
  background: var(--white);
}
.form-checkbox input:checked + .form-checkbox__box {
  background: var(--navy);
  border-color: var(--navy);
}
.form-checkbox input:checked + .form-checkbox__box::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.form-checkbox__text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.form-checkbox__text a { color: var(--accent-dark); text-decoration: underline; }

.form-error { font-size: 0.75rem; color: #ef4444; min-height: 16px; }

.form-success, .form-error-global {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-error-global { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Spinner */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand .logo .logo__fund,
.footer__brand .logo .logo__lite { color: var(--white); }

.footer__tagline {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 220px;
}

.footer__nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-col a {
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-block;
}
.footer__nav-col a:hover { color: var(--white); transform: translateX(3px); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 24px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.82rem; }
.footer__reg { font-size: 0.75rem; opacity: 0.5; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ---------- Animations ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--transition) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
[data-delay="0"]  { animation-delay: 0ms; }
[data-delay="100"] { animation-delay: 100ms; }
[data-delay="200"] { animation-delay: 200ms; }
[data-delay="300"] { animation-delay: 300ms; }
[data-delay="400"] { animation-delay: 400ms; }

/* Stagger reveals inside grids */
.why__grid .why-card:nth-child(1) { transition-delay: 0ms; }
.why__grid .why-card:nth-child(2) { transition-delay: 80ms; }
.why__grid .why-card:nth-child(3) { transition-delay: 160ms; }
.why__grid .why-card:nth-child(4) { transition-delay: 240ms; }

.services__grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services__grid .service-card:nth-child(2) { transition-delay: 80ms; }
.services__grid .service-card:nth-child(3) { transition-delay: 160ms; }
.services__grid .service-card:nth-child(4) { transition-delay: 240ms; }

.process__step:nth-child(2) { transition-delay: 80ms; }
.process__step:nth-child(3) { transition-delay: 160ms; }
.process__step:nth-child(4) { transition-delay: 240ms; }
.process__step:nth-child(5) { transition-delay: 320ms; }

.stats__grid .stat:nth-child(2) { transition-delay: 100ms; }
.stats__grid .stat:nth-child(3) { transition-delay: 200ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner { gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact__inner { gap: 48px; }
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .process__track { display: none; }
  .services__grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .nav {
    position: fixed;
    top: var(--header-h);   /* justo debajo de la barra del logo */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: #ffffff;    /* blanco 100% opaco, sin rgba ni transparencia */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-y: auto;
    padding: 24px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 1000;
    box-shadow: -8px 0 40px rgba(11,31,75,0.15);
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav__link { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); width: 100%; }
  .nav__link--cta {
    margin: 16px 0 0;
    display: inline-flex;
    border-bottom: none;
    padding: 13px 24px;
  }
  .burger { display: flex; }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 56px;
    min-height: auto;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { height: 300px; }
  .hero__card--main { width: 240px; padding: 22px 24px; }
  .hero__card--top { right: 0; top: 10px; }
  .hero__card--bottom { right: 12px; bottom: 10px; }
  .br-desktop { display: none; }
  .hero__scroll-indicator { display: none; }

  /* Process */
  .process { grid-template-columns: 1fr; gap: 24px; }

  /* Stats */
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats__grid .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
  .stats__grid .stat:last-child { border-bottom: none; padding-bottom: 0; }

  /* Why */
  .why__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__form-wrap { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__visual { display: none; }
}
