/* ============================================================
   SatelitalTrack — Landing Page CSS
   Paleta: Azul #0f4c81 | Cyan #00c2d1 | Blanco | Gris claro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --blue-deep:    #0f4c81;
  --blue-mid:     #1a6fbd;
  --blue-light:   #e8f2fb;
  --cyan:         #00c2d1;
  --cyan-light:   #e0f9fb;
  --cyan-dark:    #009aad;
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #475569;
  --gray-800:     #1e293b;
  --gray-900:     #0f172a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(15,76,129,.08), 0 1px 2px rgba(15,76,129,.06);
  --shadow-md:  0 4px 16px rgba(15,76,129,.12), 0 2px 6px rgba(15,76,129,.08);
  --shadow-lg:  0 12px 40px rgba(15,76,129,.16), 0 4px 12px rgba(15,76,129,.1);
  --shadow-cyan: 0 0 32px rgba(0,194,209,.18);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --nav-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue-deep); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--cyan-light); color: var(--cyan-dark);
  margin-bottom: 16px;
}
.badge svg { width: 14px; height: 14px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white); box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent; color: var(--blue-deep);
  border: 2px solid var(--blue-deep);
}
.btn-outline:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--white); box-shadow: var(--shadow-cyan);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(0,194,209,.3); }
.btn-ghost { color: var(--gray-600); padding: 13px 20px; }
.btn-ghost:hover { color: var(--blue-deep); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner {
  height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue-deep);
  flex-shrink: 1; min-width: 0;
}
.navbar__logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  display: flex; align-items: center; justify-content: center;
}
.navbar__logo-icon svg { width: 20px; height: 20px; color: white; }
.navbar__nav { display: flex; align-items: center; gap: 4px; }
.navbar__nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--gray-600);
  transition: var(--transition);
}
.navbar__nav a:hover { color: var(--blue-deep); background: var(--blue-light); }
.navbar__cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-sm);
  flex-shrink: 0; margin-left: auto;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px;
  transition: var(--transition); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 16px 20px 24px; box-shadow: var(--shadow-lg);
  flex-direction: column; gap: 12px;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 1rem; color: var(--gray-800);
}
.mobile-menu__nav a:hover { background: var(--blue-light); color: var(--blue-deep); }
.mobile-menu__actions {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--gray-200);
}
.mobile-menu__actions .btn { width: 100%; justify-content: center; }
.theme-toggle--menu {
  width: 100%; justify-content: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  color: var(--gray-600); font-size: .95rem; font-weight: 500;
}
.theme-toggle--menu:hover { background: var(--blue-light); color: var(--blue-deep); border-color: transparent; }
.theme-toggle__label { font-family: var(--font-body); }
body.menu-open { overflow: hidden; }

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 48px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0,194,209,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(15,76,129,.06) 0%, transparent 60%),
    var(--gray-50);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f4c81' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero__content { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan-light));
  border: 1px solid rgba(0,194,209,.3);
  font-size: .82rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 20px;
  letter-spacing: .03em;
}
.hero__eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); display: inline-block; animation: pulse-dot 2s infinite; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cyan-dark); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}
.hero__desc { font-size: 1.15rem; color: var(--gray-600); margin-bottom: 36px; max-width: 480px; }
.hero__btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 32px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.hero__stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--blue-deep); }
.hero__stat-label { font-size: .82rem; color: var(--gray-400); margin-top: 2px; }

/* ── Dashboard mockup ── */
.hero__visual { position: relative; }
.dashboard-mockup {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gray-200);
  overflow: hidden;
}
.dashboard-bar {
  height: 44px; background: var(--blue-deep);
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
.dashboard-bar span { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-bar span:nth-child(1) { background: #ff5f57; }
.dashboard-bar span:nth-child(2) { background: #ffbd2e; }
.dashboard-bar span:nth-child(3) { background: #28c840; }
.dashboard-bar .logo-bar { margin-left: 12px; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.8); }
.dashboard-body { padding: 20px; background: var(--gray-50); }
.dashboard-header { display: flex; gap: 12px; margin-bottom: 16px; }
.dash-stat {
  flex: 1; background: var(--white); border-radius: var(--radius-md); padding: 14px;
  border: 1px solid var(--gray-200);
}
.dash-stat__label { font-size: .72rem; color: var(--gray-400); font-weight: 500; margin-bottom: 4px; }
.dash-stat__val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--gray-900); }
.dash-stat__val.online { color: #16a34a; }
.dash-stat__val.warn { color: var(--cyan-dark); }
.dashboard-map {
  border-radius: var(--radius-md); overflow: hidden;
  height: 200px; background: #e8f0f7; position: relative;
  border: 1px solid var(--gray-200);
}
.map-bg {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #d0e8f5 0%, #b8d8ef 40%, #cde9d4 100%);
}
.map-road {
  position: absolute; background: rgba(255,255,255,.6);
  border-radius: 2px;
}
.map-pin {
  position: absolute; width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.map-pin svg { transform: rotate(45deg); width: 14px; height: 14px; }
.map-pin.online { background: var(--blue-deep); color: white; }
.map-pin.moving { background: var(--cyan); color: white; }
.map-pin.idle { background: #f59e0b; color: white; }
.ping-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0;
  animation: ping 2s cubic-bezier(0,0,.2,1) infinite;
}
.map-pulse { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.device-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.device-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 10px 12px; border: 1px solid var(--gray-200);
}
.device-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.device-dot.online { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.device-dot.moving { background: var(--cyan); box-shadow: 0 0 0 3px rgba(0,194,209,.2); }
.device-dot.idle { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.device-name { font-size: .8rem; font-weight: 600; color: var(--gray-800); }
.device-info { font-size: .72rem; color: var(--gray-400); margin-top: 1px; }
.device-speed { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--cyan-dark); margin-left: auto; }
.float-card {
  position: absolute; background: var(--white);
  border-radius: var(--radius-md); padding: 12px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-200);
  animation: float-y 4s ease-in-out infinite;
}
.float-card--tl { top: -16px; left: -24px; min-width: 140px; }
.float-card--br { bottom: -16px; right: -24px; min-width: 150px; }
.float-card__label { font-size: .7rem; color: var(--gray-400); font-weight: 500; }
.float-card__val { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--blue-deep); margin-top: 2px; }
.float-card--br { animation-delay: -2s; }

/* ── Section headers ── */
.section-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-header p { font-size: 1.1rem; color: var(--gray-600); margin-top: 14px; }

/* ── Benefits grid ── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.benefit-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--cyan); }
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: var(--transition);
}
.benefit-icon svg { width: 24px; height: 24px; color: var(--blue-deep); }
.benefit-card:hover .benefit-icon { background: var(--blue-deep); }
.benefit-card:hover .benefit-icon svg { color: white; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 8px; }
.benefit-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* ── Features alternadas ── */
.features-section { background: var(--gray-50); }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-label {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue-light); color: var(--blue-deep); margin-bottom: 16px;
}
.feature-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 16px; }
.feature-content p { color: var(--gray-600); margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--gray-700);
}
.feature-list li::before {
  content: '';
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan-light); border: 2px solid var(--cyan);
  flex-shrink: 0; margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300c2d1'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.feature-visual-card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  overflow: hidden;
}

/* ── API Preview ── */
.api-section { background: var(--gray-900); color: var(--white); }
.api-section .section-header { color: var(--white); }
.api-section .section-header h2, .api-section .section-header p { color: rgba(255,255,255,.9); }
.api-section .section-header p { color: rgba(255,255,255,.6); }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.api-feature { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.api-feature:first-child { padding-top: 0; }
.api-feature:last-child { border-bottom: none; padding-bottom: 0; }
.api-feature h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.api-feature h3 svg { color: var(--cyan); width: 18px; height: 18px; }
.api-feature p { color: rgba(255,255,255,.55); font-size: .88rem; }
.code-window {
  background: #0d1b2a; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.code-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-topbar span { width: 10px; height: 10px; border-radius: 50%; }
.code-topbar span:nth-child(1) { background: #ff5f57; }
.code-topbar span:nth-child(2) { background: #ffbd2e; }
.code-topbar span:nth-child(3) { background: #28c840; }
.code-topbar .code-title { margin-left: 8px; font-size: .78rem; color: rgba(255,255,255,.4); font-family: var(--font-mono); }
.code-content { padding: 20px 24px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.8; }
.code-content .c-comment { color: #4a6880; }
.code-content .c-key { color: #7dd3fc; }
.code-content .c-str { color: #86efac; }
.code-content .c-num { color: #fdba74; }
.code-content .c-bracket { color: rgba(255,255,255,.5); }
.code-content .c-method { color: var(--cyan); }
.code-content .c-url { color: #c4b5fd; }

/* ── Use Cases ── */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-200);
  transition: var(--transition); cursor: default;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card__image {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.case-card__body { padding: 24px; }
.case-card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-card__body p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* ── Dashboard preview full ── */
.preview-section { background: var(--blue-deep); overflow: hidden; }
.preview-section .section-header h2 { color: var(--white); }
.preview-section .section-header p { color: rgba(255,255,255,.65); }
.preview-wrapper {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
  background: var(--gray-50);
}
.preview-nav {
  background: var(--blue-deep); height: 52px;
  display: flex; align-items: center; padding: 0 20px; gap: 16px;
}
.preview-nav .pn-logo { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 8px; }
.preview-nav .pn-logo svg { width: 20px; height: 20px; color: var(--cyan); }
.preview-tabs { display: flex; gap: 4px; margin-left: auto; }
.preview-tabs span {
  padding: 5px 12px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.5); cursor: pointer; transition: var(--transition);
}
.preview-tabs span.active { background: rgba(255,255,255,.15); color: white; }
.preview-body { display: grid; grid-template-columns: 260px 1fr; min-height: 400px; }
.preview-sidebar { background: var(--gray-900); padding: 16px; border-right: 1px solid rgba(255,255,255,.06); }
.preview-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: .82rem; color: rgba(255,255,255,.5);
  transition: var(--transition); cursor: pointer; margin-bottom: 2px;
}
.preview-sidebar-item svg { width: 16px; height: 16px; }
.preview-sidebar-item.active { background: rgba(0,194,209,.15); color: var(--cyan); }
.preview-sidebar-item:hover:not(.active) { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
.preview-main { padding: 20px; background: var(--gray-50); }
.preview-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.pstat {
  background: var(--white); border-radius: var(--radius-md); padding: 14px;
  border: 1px solid var(--gray-200);
}
.pstat__label { font-size: .72rem; color: var(--gray-400); }
.pstat__val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-top: 2px; }
.pstat__val.g { color: #16a34a; }
.pstat__val.b { color: var(--blue-deep); }
.pstat__val.c { color: var(--cyan-dark); }
.preview-map-area {
  background: linear-gradient(145deg, #d0e8f5, #b8d4e8);
  border-radius: var(--radius-md); height: 220px; position: relative;
  border: 1px solid var(--gray-200); overflow: hidden;
}
.pmap-label {
  position: absolute; background: rgba(255,255,255,.9);
  border-radius: var(--radius-sm); padding: 6px 10px;
  font-size: .72rem; font-weight: 600; color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}

/* ── Pricing / Plans ── */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.plan-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 36px 32px;
  display: flex; flex-direction: column; transition: var(--transition);
}
.plan-card.featured {
  border-color: var(--cyan); background: linear-gradient(145deg, #f0fefe, var(--white));
  box-shadow: 0 0 0 4px rgba(0,194,209,.1), var(--shadow-md);
  transform: scale(1.02);
}
.plan-card:hover:not(.featured) { border-color: var(--blue-mid); box-shadow: var(--shadow-md); }
.plan-badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: white; margin-bottom: 16px; width: fit-content;
}
.plan-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.plan-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--blue-deep); margin: 12px 0 4px; }
.plan-price span { font-size: 1rem; color: var(--gray-400); font-weight: 400; }
.plan-desc { font-size: .88rem; color: var(--gray-600); margin-bottom: 24px; }
.plan-features { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-feat { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--gray-700); }
.plan-feat svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.plan-feat.off { color: var(--gray-400); }
.plan-feat.off svg { color: var(--gray-300); }
.plan-card .btn { width: 100%; justify-content: center; }

/* ── CTA final ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a3a5c 50%, #0d2e4a 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,209,.12) 0%, transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
.cta-inner { text-align: center; position: relative; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem,3vw,2.8rem); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.65); font-size: 1.1rem; margin-bottom: 36px; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-trust { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.cta-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .82rem; }
.cta-trust-item svg { color: rgba(255,255,255,.4); width: 16px; height: 16px; }

/* ── Footer ── */
.footer { background: var(--gray-900); color: rgba(255,255,255,.7); }
.footer-top {
  padding: 64px 0 48px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand { }
.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  transition: var(--transition);
}
.footer-logo:hover { opacity: .92; transform: translateY(-1px); }
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.footer-col h4 { color: white; font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: .88rem; color: rgba(255,255,255,.45); transition: var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-bottom a:hover { color: var(--cyan); }

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ping {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  transform: translateY(24px);
}
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── Counter ── */
.counter-num { font-variant-numeric: tabular-nums; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2,1fr); }
  .cases-grid { grid-template-columns: repeat(2,1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan-card.featured { transform: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .navbar__nav { display: none; }
  .navbar__cta--desktop { display: none; }
  .hamburger { display: flex; }
  .navbar__inner { padding: 0 16px; gap: 12px; }
  .navbar__logo-img { height: 34px; max-width: min(150px, 48vw); }
  .container { padding: 0 16px; }
}
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .float-card--tl { top: -8px; left: -8px; }
  .float-card--br { bottom: -8px; right: -8px; }
  .hero__stats { gap: 20px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .api-grid { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .preview-stats { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cases-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .hero__btns .btn { text-align: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 12px; }
  .navbar__logo-img { height: 30px; max-width: min(130px, 52vw); }
  .hero__stats { flex-wrap: wrap; }
  .float-card--tl, .float-card--br { display: none; }
  .dashboard-mockup { border-radius: var(--radius-lg); }
  .section { padding: 64px 0; }
  .section--sm { padding: 48px 0; }
}

/* ── T01 — Logo en navbar y footer ── */
.navbar__logo-img {
  width: auto; height: 40px; max-width: 180px; object-fit: contain; object-position: left center;
  flex-shrink: 1;
}
.footer-logo-img {
  width: auto; height: 56px; max-width: 220px; object-fit: contain; flex-shrink: 0; display: block;
}
.pn-logo-img { width: auto; height: 22px; max-width: 90px; object-fit: contain; flex-shrink: 0; }

/* ── T01 — Formulario de contacto ── */
.contact-form {
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md); color: white;
  font-family: var(--font-body); font-size: .95rem;
  transition: var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--cyan); background: rgba(255,255,255,.12);
}
.contact-form select option { background: var(--gray-900); color: white; }
.form-disclaimer { font-size: .78rem; color: rgba(255,255,255,.4); text-align: center; }
.contact-form .btn { justify-content: center; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── T03 — Testimonios ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; }
.testimonial-text { color: var(--gray-600); font-size: .95rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue-deep);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-name { font-weight: 600; font-size: .9rem; color: var(--gray-900); }
.testimonial-role { font-size: .8rem; color: var(--gray-600); }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── T04 — Sticky CTA mobile ── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  padding: 12px 20px; background: var(--white);
  border-top: 1px solid var(--gray-200); box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  transform: translateY(100%); transition: transform .3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
@media (max-width: 768px) { .sticky-cta { display: block; } }

/* ── T06 — Animaciones hero ── */
@keyframes pulse-ring {
  0% { transform: rotate(-45deg) scale(1); opacity: .6; }
  100% { transform: rotate(-45deg) scale(2.5); opacity: 0; }
}
.map-pin.online .ping-ring { animation: pulse-ring 2s cubic-bezier(0,0,.2,1) infinite; }
.map-pin.moving .ping-ring { animation: pulse-ring 1.5s cubic-bezier(0,0,.2,1) infinite; }
.hero-typing { border-right: 2px solid var(--cyan); }
.hero-typing.typing-done { border-right-color: transparent; }

/* ── T08 — Dark mode toggle ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  color: var(--gray-600); transition: var(--transition);
}
.theme-toggle:hover { background: var(--blue-light); color: var(--blue-deep); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] {
  --white:     #0f172a;
  --gray-50:   #1e293b;
  --gray-100:  #334155;
  --gray-200:  #475569;
  --gray-800:  #e2e8f0;
  --gray-900:  #f8fafc;
}
[data-theme="dark"] .navbar { background: rgba(15,23,42,.95); border-color: var(--gray-200); }
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .case-card,
[data-theme="dark"] .testimonial-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mobile-menu { background: var(--white); }
[data-theme="dark"] .sticky-cta { background: var(--white); }

/* ── Footer social ── */
.footer-social { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500;
  color: rgba(255,255,255,.65); transition: var(--transition);
}
.footer-social a svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }
.footer-social a:hover { color: var(--white); }
.footer-social a:hover svg { color: var(--white); }

/* ── Botón flotante WhatsApp ── */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 16px;
  background: #25d366;
  color: var(--white);
  border-radius: 99px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, .55);
  color: var(--white);
}
.whatsapp-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-float__label { white-space: nowrap; }
@media (max-width: 768px) {
  .whatsapp-float { bottom: 88px; padding: 12px; border-radius: 50%; }
  .whatsapp-float__label { display: none; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ── T12 — Accesibilidad WCAG ── */
.section-header p { color: var(--gray-600); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
