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

:root {
  --blue:      #C1121F;
  --blue-lt:   #FF4558;
  --blue-dk:   #96000D;
  --black:     #060810;
  --gray-50:   #F7F8FC;
  --gray-100:  #EDEEF4;
  --gray-400:  #9299B0;
  --gray-600:  #545B78;
  --white:     #FFFFFF;
  --radius:    16px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(0,87,255,.35);
}
.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,87,255,.45);
}
.btn-outline-white {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--blue);
  font-size: 17px;
  padding: 18px 44px;
  box-shadow: 0 4px 32px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 44px rgba(0,0,0,.2); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-100);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo con símbolo + nombre + subtítulo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-symbol {
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,87,255,.12);
  border-radius: 8px;
  width: 36px; height: 36px;
  flex-shrink: 0;
  transition: background .3s;
}
.navbar.scrolled .logo-symbol { background: rgba(0,87,255,.1); }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  line-height: 1;
  transition: color .3s;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  line-height: 1;
  transition: color .3s;
}
.logo-sub b {
  font-weight: 700;
  color: var(--blue-lt);
}
.navbar.scrolled .logo-name { color: var(--black); }
.navbar.scrolled .logo-sub { color: var(--gray-400); }
.navbar.scrolled .logo-sub b { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover { color: var(--black); }
.btn-nav { color: rgba(255,255,255,.9) !important; font-weight: 700 !important; font-family: var(--font-head) !important; }
.navbar.scrolled .btn-nav { color: var(--blue) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all .25s;
}
.navbar.scrolled .hamburger span { background: var(--black); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: #0d0405; /* fallback si el vídeo no carga */
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay fuera del wrapper del vídeo, siempre visible */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10,4,6,.72) 0%,
    rgba(10,4,6,.55) 50%,
    rgba(10,4,6,.80) 100%
  );
}

/* ECG line decoration */
.hero-ecg-line {
  position: absolute;
  bottom: 80px; left: 0; right: 0;
  z-index: 3;
  height: 80px;
  opacity: .45;
}
.hero-ecg-line svg { width: 100%; height: 100%; }
.ecg-line {
  fill: none;
  stroke: #FF4558;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255,69,88,.8));
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 860px;
  padding-top: 76px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #96000D 0%, #C1121F 25%, #FF6B75 50%, #FFB3B8 65%, #C1121F 85%, #96000D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cursor {
  display: inline-block;
  color: #FF4558;
  animation: blink .7s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.2); }
}

/* ===== Ticker ===== */
.ticker {
  background: var(--black);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ticker-dot {
  color: var(--blue) !important;
  font-weight: 700 !important;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Stats ===== */
.stats {
  background: var(--black);
  padding: 72px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat { flex: 1; text-align: center; padding: 0 40px; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--white), rgba(255,255,255,.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: .04em;
}
.stat-divider { width: 1px; height: 64px; background: rgba(255,255,255,.08); flex-shrink: 0; }

/* ===== Misión ===== */
.mision { padding: 130px 0; background: var(--white); }
.mision-inner { max-width: 920px; }
.mision-tag {
  display: inline-block;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--gray-100);
  margin-bottom: 32px;
}
.mision-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 52px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mision-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mision-cols p { font-size: 17px; color: var(--gray-600); line-height: 1.85; }

/* ===== Beneficios ===== */
.beneficios { padding: 130px 0; background: var(--gray-50); position: relative; overflow: hidden; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-head { margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-top: 12px;
}
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 44px 40px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: default;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.09);
  border-color: rgba(0,87,255,.18);
}
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #FCEEF0, #F9D6D9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 28px;
  transition: transform .3s ease;
}
.card:hover .card-icon { transform: scale(1.1); }
.card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.card p { font-size: 15px; color: var(--gray-600); line-height: 1.75; }

/* ===== CTA ===== */
.cta-section {
  position: relative;
  background: var(--black);
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}
.cta-deco { position: absolute; inset: 0; pointer-events: none; }
.cta-blob {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,18,31,.3), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.eyebrow-white { color: rgba(255,255,255,.4) !important; margin-bottom: 20px; }
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,.55);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.75;
}
.cta-note {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.28);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.footer {
  background: #03040A;
  padding: 44px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo-wrap {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.footer-logo-symbol {
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,87,255,.15);
  border-radius: 6px;
  width: 28px; height: 28px;
}
.footer-logo-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .08em;
}
.footer p { font-size: 13px; color: rgba(255,255,255,.28); }
.footer p a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer p a:hover { color: rgba(255,255,255,.75); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.15) !important; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .mision-cols { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    padding: 16px 32px 32px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--gray-600) !important; padding: 14px 0; border-bottom: 1px solid var(--gray-100); font-size: 16px; }
  .btn-nav { color: var(--blue) !important; }
  .stats-inner { flex-direction: column; gap: 44px; }
  .stat-divider { width: 60px; height: 1px; }
  .hero-ecg-line { bottom: 60px; }
  .mision, .beneficios, .cta-section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .card { padding: 32px 28px; }
}
