/* ── Fuentes (rutas relativas desde /landing/css/) ───────────────────── */
@font-face {
  font-family: 'Gilroy';
  src: url('../../fonts/FontsFree-Net-Gilroy-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../../fonts/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../../fonts/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../../fonts/Gilroy-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dewi';
  src: url('../../fonts/RFDewiExtended-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dewi';
  src: url('../../fonts/RFDewiExtended-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary:  #0F2E3D;
  --accent:   #07d2fe;
  --accent-dark: #05aacf;
  --white:    #ffffff;
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Evitar max-width:100vw en html: en Safari puede desplazar layout al incluir barra/bordes */
}

body {
  font-family: 'Gilroy', 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 40px;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 32px;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  font-family: 'Dewi', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: #0a1f2a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--gray-50); }

.btn-accent {
  background: var(--accent);
  color: var(--primary);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(7,210,254,0.35); }

.btn-lg {
  font-size: 13px;
  padding: 14px 32px;
}

/* ── Páginas internas (about, planes) ──────────── */
.page-main {
  padding-top: 64px;
}

.page-hero {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 72px 80px 56px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero h1 .accent { color: var(--accent); }

.page-hero .lead {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

.content-section {
  padding: 64px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.content-section.wide {
  max-width: 1100px;
}

.prose h2 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  margin: 40px 0 16px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.prose ul {
  margin: 16px 0 16px 1.25rem;
  color: var(--gray-800);
  line-height: 1.7;
}

.prose li { margin-bottom: 8px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
}

.value-card h3 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ── Planes / pricing ──────────────────────────── */
.pricing-section {
  padding: 64px 80px 100px;
  background: var(--gray-50);
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header h2 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--primary);
  margin-bottom: 12px;
}

.pricing-header p {
  color: var(--gray-600);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.plan-card:hover {
  border-color: rgba(7,210,254,0.4);
  box-shadow: 0 16px 40px rgba(15,46,61,0.08);
  transform: translateY(-2px);
}

.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(7,210,254,0.15);
  position: relative;
  padding-top: 44px;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-family: 'Dewi', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.plan-name {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 3em;
}

.plan-price {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.plan-features {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  flex: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--gray-800);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  padding-left: 24px;
  position: relative;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.plan-features li:last-child { border-bottom: none; }

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ── HERO (home) ───────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(7,210,254,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  padding: 80px 40px 80px 80px;
  max-width: 580px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7,210,254,0.1);
  border: 1px solid rgba(7,210,254,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 24px;
}

.hero-eyebrow span {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.hero-stat-number {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 4px;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 500px;
  padding-right: 40px;
}

.hero-image img.runner {
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.hero-badge {
  position: absolute;
  bottom: 48px;
  right: 56px;
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(7,210,254,0.5);
  z-index: 3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hero-bg-circle {
  position: absolute;
  bottom: -80px; right: -80px;
  width: 380px; height: 380px;
  background: var(--gray-100);
  border-radius: 50%;
  z-index: 0;
}

/* ── FEATURES ───────────────────────────────────── */
.features {
  background: var(--gray-50);
  padding: 100px 80px;
}

.features-header {
  margin-bottom: 64px;
}

.features-header h2 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--primary);
  max-width: 480px;
  line-height: 1.15;
}

.features-header h2 .accent { color: var(--accent); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}

.features-center-col {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.features-device {
  width: 300px;
  filter: drop-shadow(0 24px 48px rgba(15,46,61,0.15));
}

.features-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--accent);
  border-radius: 0 0 4px 0;
  transition: height 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15,46,61,0.1);
  border-color: transparent;
}

.feature-card:hover::before { height: 100%; }

.feature-icon {
  width: 52px; height: 52px;
  background: var(--gray-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(7,210,254,0.12);
}

.feature-card h3 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
}

.feature-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.feature-link:hover { gap: 10px; }

.feature-card-wide {
  max-width: 480px;
  width: 100%;
}

/* ── HOW IT WORKS ───────────────────────────────── */
.how {
  padding: 100px 80px;
  background: var(--white);
}

.section-label {
  font-family: 'Dewi', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  align-self: center;
  margin-top: -16px;
}

.step h3 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── CONTRACT TYPES ──────────────────────────────── */
.contracts {
  background: var(--gray-50);
  padding: 100px 80px;
}

.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.contract-pill {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.25s;
  cursor: default;
}

.contract-pill:hover {
  border-color: var(--accent);
  background: rgba(7,210,254,0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7,210,254,0.12);
}

.contract-pill-icon {
  width: 38px; height: 38px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── VIDEO DEMO ─────────────────────────────────── */
/* El video tiene ancho intrínseco (píxeles del archivo); hay que acotar el árbol para no desbordar el viewport. */
/* Safari: evitar aspect-ratio+video absoluto (bugs de ancho); usar solo padding-bottom 16:9. */
.video-demo {
  background: var(--white);
  padding: 100px 80px;
  border-top: 1px solid var(--gray-200);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.video-demo-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.video-demo .section-title {
  margin-bottom: 16px;
}

.video-demo-lead {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
}

.video-demo-player {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  background: #0a1620;
  box-shadow: 0 12px 40px rgba(15, 46, 61, 0.12);
  align-self: stretch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Embed 16:9 sin aspect-ratio (más estable en Safari que aspect-ratio + video absoluto). */
.video-demo-aspect {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #0a1620;
  overflow: hidden;
}

.video-demo-video {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* ── FOOTER CTA ─────────────────────────────────── */
.footer-cta {
  background: var(--primary);
  padding: 100px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(7,210,254,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.footer-cta-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-cta h2 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 44px);
  color: var(--white);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.2;
}

.footer-cta p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: #07131b;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img {
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .navbar {
    padding: 12px 20px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .navbar-logo { justify-self: center; }
  .navbar-logo img { height: 26px; }

  .navbar-menu {
    justify-content: center;
    order: unset;
    width: 100%;
    padding-bottom: 2px;
  }

  .navbar-actions {
    width: 100%;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-content {
    padding: 60px 24px 40px;
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-image {
    min-height: 320px;
    padding: 0 24px 40px;
  }

  .hero-image img.runner { max-height: 300px; }
  .hero-badge { bottom: 48px; right: 32px; }

  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .features-center-col { display: none; }
  .features-bottom { display: block; }
  .feature-card-wide { max-width: 100%; }

  .how { padding: 60px 24px; }
  .steps { grid-template-columns: 1fr; }

  .contracts { padding: 60px 24px; }

  .video-demo { padding: 60px 24px; }

  .footer-cta { padding: 60px 24px; }
  .footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .page-hero { padding: 56px 24px 40px; }
  .content-section { padding: 40px 24px; }
  .pricing-section { padding: 48px 24px 72px; }
}

@media (max-width: 600px) {
  .navbar-actions .btn-outline { display: none; }
}

/* ── ANIMATIONS ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
