/* TELEGAN Landing — Design System alineado con PWA (tokens + loader) */

:root {
  --g: #6dbe45;
  --g-dark: #5aa838;
  --b: #4da1d9;
  --blue: #244575;
  --blue-title: #03477d;
  --alert: #d98233;
  --bg: #f9f9fb;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --dk: #070e18;
  --gradient-primary: linear-gradient(135deg, #6dbe45 0%, #5aa838 100%);
  --gradient-brand: linear-gradient(135deg, #6dbe45 0%, #244575 100%);
  --shadow-md: 0 8px 24px rgba(36, 69, 117, 0.12);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* ─── Hero (estética loader.html) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #0f2318 0%, #0a1520 50%, #050d10 100%);
  color: #fff;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 190, 69, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 190, 69, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 420px; height: 420px;
  top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(109, 190, 69, 0.25) 0%, transparent 70%);
}
.hero__orb--2 {
  width: 360px; height: 360px;
  bottom: -10%; left: -8%;
  background: radial-gradient(circle, rgba(77, 161, 217, 0.2) 0%, transparent 70%);
}

.hero__coords {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(109, 190, 69, 0.75);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.28s ease;
}

.hero__satellite {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  color: var(--alert);
  opacity: 0.9;
  animation: float 4s ease-in-out infinite;
}

.hero__deco {
  position: absolute;
  opacity: 0.35;
  animation: float 5s ease-in-out infinite;
}
.hero__deco--cow { top: 12%; left: 8%; color: var(--b); width: 32px; animation-delay: -1s; }
.hero__deco--leaf { bottom: 28%; right: 6%; color: var(--g); width: 28px; animation-delay: -2s; }

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

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.hero__logo-scene {
  position: relative;
  width: clamp(160px, 40vw, 220px);
  height: clamp(160px, 40vw, 220px);
  margin: 0 auto 1.5rem;
}

.hero__radar-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(109, 190, 69, 0.25);
  border-radius: 50%;
  animation: radarPulse 3s ease-out infinite;
}
.hero__radar-ring:nth-child(2) { animation-delay: 0.75s; }
.hero__radar-ring:nth-child(3) { animation-delay: 1.5s; }

@keyframes radarPulse {
  0% { transform: scale(0.55); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

.hero__radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(109, 190, 69, 0.15) 40deg, transparent 80deg);
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.hero__logo-circle {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(7, 14, 24, 0.85);
  border: 2px solid rgba(109, 190, 69, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(109, 190, 69, 0.2);
}

.hero__logo-circle img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(109, 190, 69, 0.35));
}

.hero__brand {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero__brand span { color: var(--g); }

.hero__tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}

.hero__sub {
  font-size: 0.875rem;
  color: rgba(168, 200, 225, 0.9);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(109, 190, 69, 0.45);
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(109, 190, 69, 0.55); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0;
}

/* Cintillo institucional (TELEGAN · IICA · Canadá) entre chips y “Desliza” */
.hero__cintillo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(92vw, 520px);
  margin: clamp(1.75rem, 5vh, 2.75rem) auto 4.25rem;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
  display: flex;
  justify-content: center;
}
.hero__cintillo-frame {
  width: 100%;
  padding: clamp(0.6rem, 2.5vw, 0.9rem) clamp(0.85rem, 3.5vw, 1.35rem);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(109, 190, 69, 0.12);
}
.hero__cintillo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(52px, 14vw, 80px);
  object-fit: contain;
  object-position: center;
}
.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(109, 190, 69, 0.15);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(109, 190, 69, 0.35);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Secciones claras (app shell) ─── */
.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-dark);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-title);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* Módulos */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.module-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(36, 69, 117, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(36, 69, 117, 0.15);
}

.module-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.module-card__icon--green { background: rgba(109, 190, 69, 0.15); }
.module-card__icon--blue { background: rgba(36, 69, 117, 0.12); }
.module-card__icon--orange { background: rgba(217, 130, 51, 0.15); }

.module-card h3 {
  font-size: 1.125rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.module-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-pill {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(109, 190, 69, 0.2);
  box-shadow: var(--shadow-md);
}

.feature-pill__val {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feature-pill__lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* CTA band */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 50px rgba(36, 69, 117, 0.25);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}
.cta-band p {
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer a { color: var(--blue); font-weight: 600; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero__coords { font-size: 0.6rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}
