/* ==========================================================================
   LOGITRAX TMS — Landing Page
   Concepto: "Operación en Movimiento"
   Paleta: Blue deep spectrum · sin amarillo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS / VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Colores azul — marca principal */
  --blue-900: #002247;
  --blue-800: #002e5f;
  --blue-700: #003B71;
  --blue-600: #0A5091;
  --blue-500: #1a6bb0;
  --blue-400: #3B82C4;
  --blue-100: #E6EEF6;
  --blue-050: #F3F7FB;

  /* Blanco y grises */
  --white:    #FFFFFF;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #0F1724;

  /* Semánticos — success, "Nuevo" */
  --green-600: #059669;
  --green-500: #10B981;
  --green-100: #D1FAE5;

  /* Semantic tokens */
  --bg:        var(--white);
  --bg-alt:    var(--gray-50);
  --fg:        var(--gray-900);
  --fg-muted:  var(--gray-500);
  --primary:   var(--blue-700);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --nav-h: 68px;
  --ann-h: 40px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(0,0,0,.05);
  --sh-md: 0 6px 20px rgba(0, 34, 71, .08);
  --sh-lg: 0 20px 50px rgba(0, 34, 71, .14);
  --sh-xl: 0 30px 70px rgba(0, 34, 71, .2);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-ann { padding-top: calc(var(--nav-h) + var(--ann-h)); }
body:not(.has-ann) { padding-top: var(--nav-h); }

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

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

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }

/* --------------------------------------------------------------------------
   3. UTILIDADES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.eyebrow-dark  { color: var(--blue-600); }
.eyebrow-light { color: rgba(255,255,255,.5); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--blue-900);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-title-light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 auto;
}
.section-sub-light { color: rgba(255,255,255,.65); }

/* --------------------------------------------------------------------------
   4. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.25s, color 0.25s, border-color 0.25s;
  border: 2px solid transparent;
}
.btn i { font-size: 0.88em; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 59, 113, .25);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 59, 113, .35); }

/* Botón secundario sobre fondo oscuro (hero) */
.btn-outline-white {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-outline-blue:hover { background: var(--blue-700); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-ghost:hover { border-color: var(--blue-700); color: var(--blue-700); }

.btn-magnetic { position: relative; }

/* --------------------------------------------------------------------------
   5. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.ann-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ann-h);
  background: var(--blue-900);
  border-bottom: 1px solid rgba(255,255,255,.12);
  z-index: 1001;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.ann-bar.ann-hidden { transform: translateY(-100%); }

.ann-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ann-text {
  color: rgba(255,255,255,.9);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ann-text strong { color: var(--white); font-weight: 700; }
.ann-icon { color: var(--green-500); }

.ann-link {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.ann-link:hover { border-color: var(--white); color: var(--white); opacity: .85; }
.ann-link i { font-size: 0.7em; margin-left: 4px; }

.ann-close {
  color: rgba(255,255,255,.6);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.ann-close:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* --------------------------------------------------------------------------
   6. NAVBAR
   -------------------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: var(--ann-h);
  left: 0; right: 0;
  height: var(--nav-h);
  background: var(--blue-900);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
body:not(.has-ann) #navbar { top: 0; }

#navbar.scrolled {
  background: rgba(0, 34, 71, .97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .22);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo siempre blanco — nav siempre oscuro (transparente sobre hero, navy on scroll) */
.logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.logo-fallback {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-fallback span { color: var(--blue-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-400);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-link-nuevo { display: inline-flex; align-items: center; gap: 8px; }
.nav-nuevo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  50%       { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-login {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-nav-login:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.btn-nav-demo {
  background: var(--blue-500);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav-demo:hover { background: var(--blue-400); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: calc(var(--nav-h) + var(--ann-h));
  left: 0; right: 0;
  background: var(--blue-900);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-150%);
  transition: transform 0.4s var(--ease-out);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
body:not(.has-ann) .mobile-menu { top: var(--nav-h); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:last-child {
  color: var(--white);
  border-bottom: none;
  margin-top: 8px;
  font-weight: 600;
  opacity: .9;
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  background: var(--blue-900);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 120px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

/* SVG de rutas */
.hero-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero-routes .route {
  fill: none;
  stroke: url(#routeGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: route-draw 3.5s var(--ease-out) forwards;
}
.hero-routes .route-1 { animation-delay: 0.3s; }
.hero-routes .route-2 { animation-delay: 0.6s; stroke-width: 1; opacity: 0.7; }
.hero-routes .route-3 { animation-delay: 0.9s; stroke-width: 1; opacity: 0.55; }
.hero-routes .route-4 { animation-delay: 1.2s; stroke-width: 1.2; opacity: 0.6; }

@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}

/* Overlay radial sutil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(10, 80, 145, .4), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 59, 113, .35), transparent 55%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--white);
  margin-bottom: 28px;
}

/* hero-em sin amarillo — subrayado decorativo azul claro */
.hero-em {
  color: var(--white);
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero-em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 4px;
  background: var(--blue-400);
  border-radius: 2px;
  opacity: 0.8;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,.6);
  max-width: 50ch;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats bar */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 820px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}
.hs-item {
  padding: 0 28px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.1);
  min-width: 160px;
}
.hs-item:first-child { border-left: none; }
.hs-num {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.hs-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* News strip */
.hero-news {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-news-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.hero-news-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-news-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-news-pill i { color: var(--green-500); font-size: 0.85em; }
.hero-news-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(16,185,129,.4); transform: translateY(-1px); }

/* Floating cards */
.float-card {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  z-index: 2;
  opacity: 0;
  animation: fc-appear 0.9s var(--ease-out) 1.2s forwards, float 5s ease-in-out 2s infinite;
}
.float-card-1 { top: 18%; left: 6%; animation-delay: 1.2s, 2s; }
.float-card-2 { bottom: 22%; right: 6%; animation-delay: 1.5s, 2.5s; }

.fc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.fc-check { color: var(--green-500); font-size: 1.5rem; }
.fc-num { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.fc-label { font-size: 0.72rem; color: rgba(255,255,255,.6); margin-top: 2px; }

@keyframes fc-appear {
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   8. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--white);
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-top: -50px;
  position: relative;
  z-index: 3;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.client-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s, transform 0.2s;
}
.client-logo-pill:hover { border-color: var(--blue-700); transform: translateY(-2px); }
.client-logo-pill img { height: 22px; }

/* --------------------------------------------------------------------------
   9. FEATURES (alternating rows)
   -------------------------------------------------------------------------- */
.features-section {
  background: var(--white);
  padding: 100px 0 0;
}

.feat-row {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.3s ease;
}
.feat-row-a { background: var(--gray-50); }
.feat-row-b { background: var(--white); }
.feat-row-last { border-bottom: none; }
.feat-row:hover { background: #f5f8fc; }
.feat-row-b:hover { background: var(--gray-50); }

.feat-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feat-col-text { max-width: 500px; }

.feat-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--blue-700);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 59, 113, .2);
}

.feat-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--blue-900);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.feat-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 44ch;
}

.feat-col-num { position: relative; }

.feat-num {
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}
.feat-row-a .feat-num { color: rgba(0, 59, 113, .08); }
.feat-row-b .feat-num { color: var(--gray-100); }

.feat-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(0, 59, 113, .08);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   10. DIFERENCIADORES — azul medio (reemplaza sección amarilla)
   -------------------------------------------------------------------------- */
.diff-section {
  background: var(--blue-700);
  padding: 140px 0 120px;
  margin-top: -40px;
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  position: relative;
  color: var(--white);
}

.diff-head {
  text-align: left;
  max-width: 720px;
  margin-bottom: 60px;
}
.diff-head .eyebrow { color: rgba(255,255,255,.5); }

.diff-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
  letter-spacing: -0.03em;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.diff-item {
  padding: 0;
  border-top: 2px solid rgba(255,255,255,.2);
  padding-top: 24px;
}

.diff-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255,255,255,.18);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.diff-item-title {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.diff-item-desc {
  font-size: 0.98rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. NOVEDADES (dark section)
   -------------------------------------------------------------------------- */
.novedades-section {
  background: var(--blue-900);
  padding: 160px 0 120px;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%);
  margin-top: -40px;
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.nov-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(10rem, 20vw, 20rem);
  font-weight: 900;
  color: var(--white);
  opacity: 0.025;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.novedades-section .container { position: relative; z-index: 1; }

.section-head-dark { text-align: center; margin-bottom: 60px; }

.novedades-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.nov-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.nov-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.09);
  border-color: rgba(59, 130, 196, .4);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.nov-card-big {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.nov-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.nov-icon-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(10, 80, 145, .8);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.nov-card-big .nov-icon-tile {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

/* Badge "Nuevo" — verde: feature ya disponible */
.badge-nuevo {
  background: var(--green-600);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}

/* Badge "Próximamente" — azul claro: roadmap */
.badge-pronto {
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}

.nov-title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.nov-card-big .nov-title { font-size: 1.9rem; }

.nov-desc {
  color: rgba(255,255,255,.7);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.nov-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nov-list li {
  color: rgba(255,255,255,.8);
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nov-list i {
  color: var(--green-500);
  font-size: 0.85em;
  background: rgba(16, 185, 129, .12);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nov-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
}
.nov-chip-green {
  background: rgba(16, 185, 129, .15);
  color: #34d5a8;
  border: 1px solid rgba(16, 185, 129, .3);
}
.nov-chip-blue {
  background: rgba(59, 130, 196, .15);
  color: #7cb9f0;
  border: 1px solid rgba(59, 130, 196, .35);
}

.nov-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   12. PRICING
   -------------------------------------------------------------------------- */
.pricing-section {
  background: var(--gray-50);
  padding: 100px 0;
}

.pricing-wrap { position: relative; }

.pricing-scroll-hint {
  display: none;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.pricing-scroll-hint i { color: var(--blue-700); margin-right: 6px; }

.pricing-scroll {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.pricing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table thead th {
  position: sticky;
  top: var(--nav-h);
  background: var(--white);
  padding: 28px 20px 24px;
  vertical-align: top;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  z-index: 5;
}
body.has-ann .pricing-table thead th {
  top: calc(var(--nav-h) + var(--ann-h));
}

.pt-feat-col { width: 38%; text-align: left !important; }
.pt-plan-col { width: 20.66%; position: relative; }

/* Columna Business destacada — borde azul-500 */
.pt-plan-featured {
  background: linear-gradient(180deg, rgba(59, 130, 196, .07), transparent 60%);
  border-left: 2px solid var(--blue-500);
  border-right: 2px solid var(--blue-500);
  position: relative;
}
.pt-plan-featured::before {
  content: '';
  position: absolute;
  top: 0; left: -2px; right: -2px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  z-index: 2;
}

.pt-pop-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 34, 71, .3);
}

.pt-plan-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pt-plan-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 4px;
}
.pt-plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pt-plan-price sup { font-size: 0.9rem; vertical-align: top; position: relative; top: 0.5em; }
.pt-mo { font-size: 0.82rem; font-weight: 500; color: var(--fg-muted); }
.pt-plan-iva { font-size: 0.74rem; color: var(--fg-muted); margin-bottom: 12px; }

.pt-cat-row td {
  background: var(--gray-100);
  color: var(--blue-900);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.pt-cat-row td i { color: var(--blue-700); margin-right: 8px; }

/* Categoría "Próximamente" — fondo más oscuro para separar visualmente */
.pt-cat-pronto td {
  background: var(--blue-050);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-top: 2px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
}
.pt-cat-pronto td i { color: var(--blue-500); margin-right: 8px; }

.pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.pt-feat-name {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.92rem;
}
/* Filas de roadmap — opacidad reducida */
.pt-pronto-row .pt-feat-name {
  color: var(--fg-muted);
  font-style: italic;
}
.pt-cell { text-align: center; }
.pt-cell-featured {
  background: rgba(59, 130, 196, .04);
  border-left: 2px solid var(--blue-500);
  border-right: 2px solid var(--blue-500);
}
.pt-check {
  color: var(--blue-700);
  font-size: 0.95rem;
  background: rgba(0, 59, 113, .08);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.pt-dash { color: var(--gray-300); font-size: 1.1rem; }
.pt-text { color: var(--fg); font-weight: 600; font-size: 0.88rem; }

/* Filas "Nuevo" — borde izquierdo verde */
.pt-new-row .pt-feat-name {
  background: var(--green-100);
  border-left: 3px solid var(--green-600);
  padding-left: 15px;
}

/* Badge inline Nuevo — verde */
.badge-nuevo-inline {
  display: inline-block;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Badge inline Próximamente — azul claro */
.badge-pronto-inline {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Last row rounding */
.pricing-table tbody tr:last-child td { border-bottom: none; }

/* Nota al pie de tabla */
.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 18px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   13. TESTIMONIAL
   -------------------------------------------------------------------------- */
.testimonial-section {
  background: var(--white);
  padding: 100px 0;
}

.test-card {
  background: var(--blue-900);
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.test-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--blue-400);
}

.test-quote-mark {
  font-size: 2.4rem;
  color: var(--blue-400);
  opacity: 0.7;
  margin-bottom: 20px;
}

.test-quote {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.test-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.test-name { font-weight: 700; font-size: 1rem; }
.test-role { font-size: 0.85rem; color: rgba(255,255,255,.55); margin-top: 2px; }

.test-logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 12px 18px;
  border-radius: var(--r-md);
}
.test-logo-box img { height: 28px; }
.test-logo-name { font-weight: 700; font-size: 0.92rem; }
.test-logo-sub { font-size: 0.78rem; color: rgba(255,255,255,.55); margin-top: 1px; }

/* --------------------------------------------------------------------------
   14. ROADMAP — "Lo que viene"
   -------------------------------------------------------------------------- */
.roadmap-section {
  background: var(--blue-900);
  padding: 160px 0 120px;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
  margin-top: -40px;
  position: relative;
  overflow: hidden;
}

/* Watermark decorativo */
.roadmap-section::before {
  content: 'LOGITRAX';
  position: absolute;
  bottom: -40px; right: -60px;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 900;
  color: var(--white);
  opacity: 0.018;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.roadmap-section .container { position: relative; z-index: 1; }

/* Cabecera */
.roadmap-head {
  text-align: center;
  margin-bottom: 80px;
}

/* Bloque Enterprise */
.roadmap-enterprise {
  margin-bottom: 80px;
}

.roadmap-block-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 16px;
  margin-bottom: 36px;
  width: 100%;
}
.roadmap-block-label i { color: var(--blue-400); }

/* Card hero del chatbot IA — ancho completo */
.roadmap-ai-hero {
  background: linear-gradient(135deg, rgba(10, 80, 145, .5), rgba(0, 34, 71, .8));
  border: 1px solid rgba(59, 130, 196, .3);
  border-radius: var(--r-xl);
  padding: 48px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.roadmap-ai-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59, 130, 196, .12), transparent 60%);
  pointer-events: none;
}

.roadmap-ai-content { position: relative; z-index: 1; }

.roadmap-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 196, .15);
  border: 1px solid rgba(59, 130, 196, .3);
  color: var(--blue-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

.roadmap-ai-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.roadmap-ai-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 44ch;
}

.roadmap-ai-tag {
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
}
.roadmap-ai-tag strong { color: rgba(255,255,255,.7); font-style: normal; }

/* Mockup de chat para la card IA */
.roadmap-ai-mockup {
  position: relative;
  z-index: 1;
  background: rgba(0, 34, 71, .7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.chat-bubble-user { flex-direction: row-reverse; }

.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-avatar-ai {
  background: var(--blue-600);
  color: var(--white);
}
.chat-avatar-user {
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 0.6rem;
}

.chat-text {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 80%;
}
.chat-text-ai {
  background: rgba(59, 130, 196, .2);
  color: rgba(255,255,255,.9);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
}
.chat-text-user {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  border-radius: var(--r-md) 4px var(--r-md) var(--r-md);
}

.chat-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--blue-400);
  border-radius: 1px;
  animation: blink 1s ease-in-out infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Grid de features roadmap (excepto chatbot) */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.roadmap-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roadmap-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  border-color: rgba(59, 130, 196, .3);
}

.roadmap-card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: rgba(10, 80, 145, .6);
  color: var(--blue-400);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  opacity: 0.85;
}

.roadmap-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.roadmap-card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
  flex: 1;
}

/* Bloque Business — roadmap */
.roadmap-business {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 40px;
}

.roadmap-business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CTA Enterprise roadmap */
.roadmap-enterprise-cta {
  text-align: center;
  margin-top: 48px;
  padding: 36px;
  background: rgba(59, 130, 196, .08);
  border: 1px solid rgba(59, 130, 196, .2);
  border-radius: var(--r-xl);
}
.roadmap-enterprise-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}
.roadmap-enterprise-cta strong { color: var(--white); }

/* Nota legal */
.roadmap-legal {
  text-align: center;
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--gray-50);
  padding: 100px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--blue-600); }
.faq-item[open] {
  border-color: var(--blue-700);
  box-shadow: var(--sh-md);
}

.faq-q {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }

.faq-icon {
  color: var(--blue-700);
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-a {
  padding: 0 24px 22px;
  color: var(--fg-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   16. CONTACTO
   -------------------------------------------------------------------------- */
.contact-section {
  background: var(--white);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title { text-align: left; margin-bottom: 18px; }
.contact-info .section-sub { text-align: left; margin: 0 0 28px; }

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-size: 0.95rem;
}
.contact-info-list i {
  color: var(--blue-700);
  background: rgba(0, 59, 113, .08);
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-md);
  background: var(--white);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 59, 113, .12);
}
.form-group textarea { min-height: 100px; resize: vertical; }

.btn-submit { width: 100%; justify-content: center; margin-top: 8px; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-success-icon {
  font-size: 3rem;
  color: var(--green-500);
  margin-bottom: 14px;
}
.form-success-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
}
.form-success-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 80px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo img {
  height: 30px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-logo-fb {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-logo-fb span { color: var(--blue-400); }

.footer-brand-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 360px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,.45); }
.footer-bottom-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   18. FABS (WhatsApp + ScrollTop)
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
  z-index: 900;
  transition: transform 0.25s var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.08); }

#scrolltop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 900;
  box-shadow: 0 10px 25px rgba(0, 59, 113, .3);
}
#scrolltop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scrolltop:hover { background: var(--blue-600); }

/* --------------------------------------------------------------------------
   19. REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

.hero .reveal {
  animation: fade-up 800ms var(--ease-out) forwards;
}
.hero .reveal-delay-1 { animation-delay: 150ms; opacity: 0; }
.hero .reveal-delay-2 { animation-delay: 300ms; opacity: 0; }
.hero .reveal-delay-3 { animation-delay: 450ms; opacity: 0; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   20. PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-routes .route { stroke-dashoffset: 0; }
  .float-card { opacity: 1; }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Large desktop */
@media (max-width: 1280px) {
  .container { max-width: 1120px; }
}

/* Desktop → tablet */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions .btn-nav-login { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 80px 20px 100px; }
  .float-card-1 { top: 12%; left: 3%; }
  .float-card-2 { bottom: 18%; right: 3%; }

  .feat-row-inner { gap: 32px; }

  .novedades-grid { grid-template-columns: 1fr; }
  .nov-stack { flex-direction: row; }
  .nov-card { flex: 1; }

  .roadmap-ai-hero { grid-template-columns: 1fr; gap: 32px; }
  .roadmap-ai-mockup { display: none; }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet → mobile */
@media (max-width: 768px) {
  /* Ann bar oculta en móvil — evita desbordamiento sobre el navbar */
  .ann-bar { display: none; }
  body.has-ann { --ann-h: 0px; }

  body.has-ann { padding-top: var(--nav-h); }
  #navbar { top: 0; }
  .mobile-menu { top: var(--nav-h); }

  .hero {
    min-height: auto;
    padding: 80px 18px 100px;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
  .hero-title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-sub { font-size: 0.96rem; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }

  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hs-item { flex: 1 0 45%; padding: 12px 16px; min-width: 0; border-left: none; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.08); }
  .hs-item:nth-child(even) { border-right: none; }
  .hs-item:nth-last-child(-n+2) { border-bottom: none; }
  .hs-num { font-size: 1.6rem; }
  .hs-label { font-size: 0.7rem; }

  .float-card { display: none; }

  .trust-inner { flex-direction: column; gap: 16px; }

  .features-section { padding: 70px 0 0; }
  .feat-row { padding: 48px 0; }
  .feat-row-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .feat-row .feat-col-num { order: 2; }
  .feat-row .feat-col-text { order: 1; }
  .feat-num { font-size: clamp(4rem, 18vw, 6rem); }

  .diff-section {
    padding: 100px 0 80px;
    clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  }
  .diff-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .diff-item-title { font-size: 1.15rem; }
  .diff-item-desc { font-size: 0.9rem; }

  .novedades-section {
    padding: 120px 0 80px;
    clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
  }
  .nov-stack { flex-direction: column; }
  .nov-card, .nov-card-big { padding: 24px; }
  .nov-card-big .nov-title { font-size: 1.5rem; }

  .pricing-section { padding: 70px 0; }
  .pricing-scroll-hint { display: block; }
  .pricing-table thead th { top: var(--nav-h); padding: 22px 12px 18px; }
  .pt-plan-price { font-size: 1.5rem; }
  .pricing-table td { padding: 12px 14px; font-size: 0.85rem; }
  .pt-cat-row td { padding: 12px 14px; font-size: 0.72rem; }
  .pt-cat-pronto td { padding: 12px 14px; font-size: 0.72rem; }

  .testimonial-section { padding: 70px 0; }
  .test-card { padding: 36px 24px; }

  .roadmap-section {
    padding: 120px 0 80px;
    clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
  }
  .roadmap-ai-hero { padding: 28px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-business-grid { grid-template-columns: 1fr; }
  .roadmap-business { padding: 24px; }

  .faq-section, .contact-section { padding: 70px 0; }
  .faq-q { font-size: 0.95rem; padding: 18px 20px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  footer { padding: 60px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-fab { width: 48px; height: 48px; font-size: 1.4rem; bottom: 18px; left: 18px; }
  #scrolltop { width: 40px; height: 40px; bottom: 18px; right: 18px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .hero-title { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats { flex-wrap: wrap; }
  .hs-item { flex: 1 0 45%; }

  .hero-news { padding: 8px 14px; flex-direction: column; gap: 10px; }

  .diff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .roadmap-enterprise-cta { padding: 24px; }
}
