:root {
  --blue: #1a5fb4;
  --blue-dark: #124a8f;
  --blue-deep: #0d3a72;
  --orange: #ff3d0d;
  --orange-soft: #ff5a2e;
  --ink: #16233a;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e4eaf2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16,40,80,0.08), 0 2px 6px rgba(16,40,80,0.04);
  --shadow-md: 0 4px 12px rgba(16,40,80,0.10), 0 1px 3px rgba(16,40,80,0.06);
  --shadow-lg: 0 8px 20px rgba(16,40,80,0.13), 0 2px 5px rgba(16,40,80,0.07);
}

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

.svg-fallback svg { width: 100%; height: 100%; display: block; }

html { scroll-behavior: smooth; background: var(--bg); overflow-x: hidden; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: "Poppins", sans-serif; line-height: 1.15; color: var(--ink); }

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

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--blue-deep);
  color: #dbe7f7;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.5rem 0; flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.2s; }
.topbar-item .icon { width: 15px; height: 15px; stroke: var(--orange-soft); }
.topbar-item:hover { color: #fff; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.brand-logo { height: 46px; width: auto; display: block; transition: transform 0.3s; }
.brand:hover .brand-logo { transform: scale(1.04); }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
  position: relative; padding: 0.5rem 0.85rem; font-size: 0.94rem; font-weight: 500;
  color: var(--ink); border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue); }
.nav-cta {
  background: var(--orange); color: #fff; margin-left: 0.4rem;
  border-radius: var(--radius-sm);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--orange-soft); color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.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 {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 500px at 90% -10%,
      rgba(26,95,180,0.07) 0%, transparent 65%),
    var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: rgba(255, 255, 255, 0.4); }
.grid-lines {
  display: none;
}
.unmute-btn {
  position: absolute; bottom: 24px; left: 24px; z-index: 10; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(11, 26, 48, 0.7); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px; padding: 0.5rem 1rem; font-size: 0.85rem; font-family: "Inter", sans-serif;
  cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s, transform 0.2s;
}
.unmute-btn:hover { background: rgba(11, 26, 48, 0.95); transform: translateY(-2px); }
.unmute-btn .icon { width: 16px; height: 16px; stroke: currentColor; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); background: rgba(255,61,13,0.1);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 1.1rem; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 520px; margin-bottom: 1.2rem; }
.hero-slogan { font-size: 0.88rem; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* Hero dashboard card */
.hero-card { perspective: 1000px; }
.dash {
  background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2); transform: rotate3d(1, -1, 0, 2deg);
  transition: transform 0.4s; backdrop-filter: blur(6px);
  color: #fff;
}
.hero-card:hover .dash { transform: rotate3d(0,0,0,0deg); }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.dash-title { font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.live-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; color: #16a34a; letter-spacing: 0.06em;
}
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.stat { background: rgba(255, 255, 255, 0.15); border-radius: var(--radius-sm); padding: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.1); }
.stat-label { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.8); }
.stat-value { font-family: "Poppins"; font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-unit { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); margin-left: 0.2rem; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 0 4px; }
.dash-bars span { flex: 1; background: var(--blue); border-radius: 4px 4px 0 0; height: var(--h); }
.dash-bars span.orange { background: var(--orange); }
.dash-legend { display: flex; gap: 1rem; margin-top: 0.5rem; padding: 0 4px; }
.legend-item { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: rgba(255, 255, 255, 0.8); }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend-dot.blue { background: var(--blue); }
.legend-dot.orange { background: var(--orange); }
.dash-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- STRIP ---------- */
.strip { background: var(--blue-deep); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 0; text-align: center; color: #fff; }
.strip-item { border-right: 1px solid rgba(255,255,255,0.12); }
.strip-item:last-child { border-right: 0; }
.strip-num { font-family: "Poppins"; font-size: 2.4rem; font-weight: 800; }
.strip-suf { font-family: "Poppins"; font-size: 1.4rem; font-weight: 700; color: var(--orange-soft); }
.strip-suf svg { display: inline-block; vertical-align: middle; width: 1.2em; height: 1.2em; stroke: var(--orange-soft); }
.strip-item p { color: #b9cbe6; font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- SECTIONS ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.section-head--left { text-align: left; max-width: none; }
.section-head--small .section-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.section-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
.section-lead { color: var(--muted); margin-top: 0.8rem; font-size: 1.05rem; }

/* Presentation */
.present-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.present-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.present-text strong { color: var(--ink); }
.present-who { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.present-who h3 { color: var(--blue); margin-bottom: 0.6rem; }
.present-who p { color: var(--muted); margin-bottom: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { font-size: 0.85rem; font-weight: 600; color: var(--blue); background: #eaf1fb; padding: 0.4rem 0.85rem; border-radius: 999px; }

/* Cards (avantages) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card.featured {
  background: var(--blue-deep); border-color: transparent;
}
.card.featured h3 { color: #fff; }
.card.featured p { color: rgba(205,221,243,0.85); }
.card.featured .card-ic { background: rgba(255,255,255,0.12); color: #fff; }
.card-ic {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: #eaf1fb; color: var(--blue); margin-bottom: 0.9rem;
}
.card-ic .icon { width: 26px; height: 26px; }
.card-ic img { width: 34px; height: 34px; object-fit: contain; }
.card-ic span { font-size: 26px; }
.card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.card p { font-size: 0.88rem; color: var(--muted); }

/* Feature tabs */
.feat-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 1.6rem;
}
.feat-tab {
  padding: 0.6rem 1.1rem; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s; font-family: "Inter", sans-serif;
}
.feat-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.feat-tab:hover:not(.active) { color: var(--ink); }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.feat {
  display: flex; gap: 0.85rem; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 1.1rem;
  transition: transform 0.25s;
}
.feat:hover { transform: translateY(-3px); }
.feat-ic {
  flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.feat-ic .icon { width: 24px; height: 24px; }
.feat-ic img { width: 30px; height: 30px; object-fit: contain; }
.feat-ic span { font-size: 24px; }
.feat h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.feat p { font-size: 0.84rem; color: var(--muted); }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.app {
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
}
.app:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.app-ic {
  width: 64px; height: 64px; margin: 0 auto 0.9rem; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff;
}
.app:nth-child(even) .app-ic { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); }
.app-ic .icon { width: 30px; height: 30px; }
.app-ic img { width: 40px; height: 40px; object-fit: contain; }
.app-ic span { font-size: 30px; }
.app h3 { font-size: 0.97rem; }
.app p { font-size: 0.84rem; color: var(--muted); margin-top: 0.25rem; }

.app-action { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-code { width: 110px; height: 110px; border: 4px solid #fff; border-radius: 8px; box-shadow: var(--shadow-sm); }
.qr-text { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; font-weight: 500; }

.btn-google {
  color: #fff; background-color: #111; border: 1px solid #000;
  padding: 10px 16px 8px 42px; position: relative; font-weight: 600; font-size: 1rem;
  border-radius: 6px; display: inline-block; text-decoration: none;
  min-width: 140px; text-align: left; transition: background 0.2s;
  line-height: 1.1; font-family: "Inter", sans-serif;
}
.btn-google:hover { background-color: #333; color: #fff; }
.btn-google:before {
  content: ""; 
  background-image: url(https://4.bp.blogspot.com/-52U3eP2JDM4/WSkIT1vbUxI/AAAAAAAArQA/iF1BeARv2To-2FGQU7V6UbNPivuv_lccACLcB/s30/nexus2cee_ic_launcher_play_store_new-1.png); 
  background-size: cover; background-repeat: no-repeat; 
  width: 24px; height: 24px; position: absolute; left: 10px; top: 50%; margin-top: -12px;
}
.btn-google:after {
  content: "DISPONIBLE SUR\A"; 
  white-space: pre; font-size: 0.65rem; font-weight: 400; 
  display: block; line-height: 1; color: #ccc; margin-bottom: 2px;
}

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); color: #fff; }
.cta-inner { text-align: center; padding: 3rem 0; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.4rem; }
.cta-inner > p:not(.cta-proof) { color: #cdddf3; margin-bottom: 0.8rem; font-size: 1.05rem; }
.cta-proof {
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em; margin-bottom: 1.6rem;
}

/* Contact */
.contact-info { max-width: 480px; margin: 0 auto; }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 2.4rem;
}
.contact-logo { height: 44px; width: auto; margin-bottom: 1.4rem; display: block; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); }
.contact-list .icon { flex: none; stroke: var(--orange); margin-top: 2px; }
.contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--blue); }
.contact-phones { display: flex; flex-wrap: wrap; gap: 0.2rem 0.1rem; align-items: center; }
.contact-phones a { color: var(--muted); }
.contact-phones a:hover { color: var(--blue); }
.contact-phones .sep { color: var(--line); margin: 0 0.15rem; }

/* Footer */
.footer { background: #0b1a30; color: #b9cbe6; padding-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo { height: 42px; width: auto; background: rgba(255,255,255,0.95); padding: 4px 6px; border-radius: 4px; margin-bottom: 0.9rem; display: block; }
.footer-brand p { max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col a, .footer-col span { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.2rem 0; font-size: 0.85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a:hover { color: #fff; }

/* To top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-soft); transform: translateY(-3px); }

/* ---------- REVEAL ANIM ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-inner, .present-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .cards, .apps { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(11,26,48,0.4); backdrop-filter: blur(3px);
    z-index: 35; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78%, 320px); flex-direction: column;
    height: 100vh; height: 100dvh;
    align-items: stretch; justify-content: flex-start; gap: 0.4rem; padding: 5rem 1.2rem;
    background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform 0.35s ease; z-index: 40;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { padding: 0.8rem 1rem; }
  .nav-cta { text-align: center; }
  .burger { display: flex; z-index: 45; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .strip-item:nth-child(2) { border-right: 0; }
  .feat-grid, .footer-inner { grid-template-columns: 1fr; }
  .topbar-social { display: none; }
  .contact-card { padding: 1.5rem 1.2rem; }
}
@media (max-width: 460px) {
  .cards, .apps { grid-template-columns: 1fr; }
  .topbar-contact { gap: 0.6rem; }
  .feat-tabs { gap: 0; }
  .feat-tab { padding: 0.5rem 0.7rem; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
