/* =========================================================
   GSecurity — Custom Styles
   Base: Tailwind (CDN) + Inter/Poppins
   ========================================================= */

:root {
  --navy: #0A2540;
  --navy-900: #07182B;
  --brand: #1E88E5;
  --cta: #F59E0B;
  --gold: #C9A84C;
  --ok: #10B981;
  --danger: #EF4444;
  --ink: #1A202C;
  --muted: #4A5568;
  --canvas: #F5F7FA;
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

::selection { background: rgba(245, 158, 11, 0.25); color: var(--navy); }

/* ============== SKIP LINK ============== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============== NAV ============== */
.nav-link {
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all .2s ease;
}
.nav-link:hover { background: rgba(10,37,64,.06); color: var(--navy); }
.nav-active { color: var(--brand); }
.nav-active::after {
  content: ""; display: block; height: 2px; width: 18px; background: var(--cta);
  margin: 4px auto 0; border-radius: 2px;
}

#site-header.scrolled { box-shadow: 0 2px 20px -8px rgba(10,37,64,0.15); background: rgba(255,255,255,0.95); }

/* Mega menu — click-or-hover, with invisible bridge */
.nav-dropdown { position: relative; }
.nav-toggle { background: transparent; border: none; cursor: pointer; font: inherit; }
.dd-chev { transition: transform .2s ease; }
.nav-dropdown.is-open .dd-chev,
.nav-dropdown:hover .dd-chev { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 0; padding-top: 14px; /* invisible bridge to prevent hover loss */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 50;
}
.mega-menu > div {
  background: #fff; border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(10,37,64,.25), 0 0 0 1px rgba(10,37,64,.06);
  border: 1px solid rgba(10,37,64,.06);
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu,
.nav-dropdown.is-open .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }

.mega-item {
  display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px;
  align-items: flex-start;
  transition: background .15s ease;
}
.mega-item:hover { background: rgba(10,37,64,.04); }
.mega-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(30,136,229,.12), rgba(10,37,64,.06));
  color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
  padding: 8px;
}
.mega-item--featured {
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(30,136,229,.04));
  border: 1px solid rgba(245,158,11,.2);
}
.mega-item--featured .mega-ic {
  background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(217,119,6,.1));
  color: var(--cta);
}
.mega-item--all {
  background: var(--navy);
  color: #fff;
}
.mega-item--all:hover { background: var(--navy-900); }
.mega-item--all .mega-ic { background: rgba(255,255,255,.1); color: var(--cta); }
.mega-item--all .mega-desc { color: rgba(255,255,255,.65); }
.mega-pill {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--cta); color: #fff; padding: 2px 7px; border-radius: 999px;
}
.mega-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mega-mini {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: background .15s ease;
}
.mega-mini:hover { background: rgba(10,37,64,.05); color: var(--navy); }

/* Mobile submenu */
.mobile-details summary { list-style: none; cursor: pointer; }
.mobile-details summary::-webkit-details-marker { display: none; }
.mobile-details[open] summary i { transform: rotate(180deg); }
.mobile-details summary i { transition: transform .2s ease; }
.mobile-sub {
  padding: 10px 14px;
  font-size: 14px; color: var(--muted);
  border-left: 2px solid rgba(10,37,64,.08);
  margin-left: 6px;
  transition: color .15s ease, border-color .15s ease;
}
.mobile-sub:hover { color: var(--brand); border-left-color: var(--brand); }

/* Site logo */
.site-logo {
  display: inline-flex; align-items: center;
  transition: transform .2s ease;
}
.site-logo:hover { transform: scale(1.02); }
.logo-img {
  height: 42px; width: auto; display: block;
  max-width: 180px; object-fit: contain;
}
@media (max-width: 640px) {
  .logo-img { height: 36px; max-width: 150px; }
}

/* Mobile nav */
.mobile-link {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(10,37,64,.05);
  font-weight: 500;
}

/* ============== BUTTONS ============== */
.btn-primary, .btn-primary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px -10px rgba(245,158,11,.6);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn-primary:hover, .btn-primary-lg:hover {
  background: #D97706; transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(245,158,11,.7);
}
.btn-primary-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--navy); color: var(--navy);
  padding: 10px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  transition: all .2s ease; background: transparent;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.3); color: #fff;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: all .2s ease; backdrop-filter: blur(8px);
  background: rgba(255,255,255,.05);
}
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: transform .18s ease, background .18s ease;
}
.btn-dark:hover { background: var(--navy-900); transform: translateY(-1px); }

/* ============== HERO ============== */
.hero-bullet {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.88); font-size: 16px;
}

/* Form fields (dark) */
.field { display: block; }
.field > span {
  display: block; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.7); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 11px 14px;
  font-size: 14px; font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cta); background: rgba(255,255,255,.1);
}
.field select option { background: var(--navy-900); color: #fff; }

.input-dark {
  width: 100%;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 11px 14px;
  font-size: 14px;
}
.input-dark option { background: var(--navy-900); }

/* ============== EYEBROW ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--brand); text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--cta); border-radius: 2px;
}

/* ============== BRAND LOGOS ============== */
.brand-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: rgba(10,37,64,.35);
  text-align: center;
  transition: color .25s ease, transform .25s ease;
  filter: grayscale(100%);
}
.brand-logo:hover { color: var(--navy); filter: grayscale(0%); transform: translateY(-2px); }

/* ============== STATS ============== */
.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .25s ease;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); }
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cta);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 10px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600;
}
.stat-sub {
  margin-top: 8px;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.45;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* ============== PROBLEM CARDS ============== */
.problem-card {
  background: #fff;
  border: 1px solid rgba(10,37,64,.06);
  border-radius: 16px;
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(10,37,64,.2); }
.problem-ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.problem-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: 6px;
}
.problem-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============== ACCESSORY CARDS ============== */
.acc-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  border-radius: 18px;
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.acc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10,37,64,.22);
  border-color: rgba(245,158,11,.35);
}
.acc-featured {
  border: 2px solid var(--cta);
  background: linear-gradient(180deg, #fff, #FFFBF2);
  box-shadow: 0 20px 40px -20px rgba(245,158,11,.35);
}
.acc-badge {
  position: absolute; top: -12px; right: 16px;
  background: var(--cta); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: .05em; text-transform: uppercase;
}
.acc-ic {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.acc-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--ink); margin-bottom: 8px;
}
.acc-card > p {
  color: var(--muted); font-size: 14px; line-height: 1.55;
  margin-bottom: 14px;
}
.acc-list {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink);
  padding-top: 12px; border-top: 1px dashed rgba(10,37,64,.1);
}
.acc-list li { position: relative; padding-left: 18px; }
.acc-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--cta); font-weight: 700;
}
.acc-more {
  margin-top: 14px;
  border-top: 1px dashed rgba(10,37,64,.1);
  padding-top: 12px;
}
.acc-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
  transition: color .2s ease;
}
.acc-more > summary::-webkit-details-marker { display: none; }
.acc-more > summary::after {
  content: "▼";
  font-size: 10px;
  transition: transform .25s ease;
}
.acc-more[open] > summary::after { transform: rotate(180deg); }
.acc-more > summary:hover { color: var(--cta); }
.acc-more-body {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  animation: accFade .25s ease;
}
.acc-more-body h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-top: 10px; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}
.acc-more-body h4:first-child { margin-top: 0; }
.acc-more-body ul { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.acc-more-body p { margin: 0 0 6px; }
@keyframes accFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== REPORT CARDS ============== */
.report-card {
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  border-radius: 16px;
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.report-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(10,37,64,.2); }
.report-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 16px;
  margin-bottom: 6px; color: var(--ink);
}
.report-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ============== CHIPS ============== */
.chip {
  display: inline-flex; align-items: center;
  background: rgba(10,37,64,.06);
  color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(10,37,64,.08);
}

/* ============== SERVICE CARDS ============== */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  border-radius: 20px;
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 0% 0%, rgba(30,136,229,.05), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,37,64,.3); border-color: rgba(30,136,229,.2); }
.service-card:hover::before { opacity: 1; }
.service-card--featured {
  background: linear-gradient(180deg, #fff, #fff), linear-gradient(180deg, rgba(245,158,11,.25), rgba(30,136,229,.25));
  border: 2px solid transparent;
  background-origin: border-box; background-clip: padding-box, border-box;
}
.service-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--cta); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.service-ic {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: var(--cta);
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -10px rgba(10,37,64,.4);
}
.service-ic--cta { background: linear-gradient(135deg, var(--cta), #D97706); color: #fff; }
.service-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 20px;
  color: var(--ink); margin-bottom: 8px;
}
.service-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.service-list { list-style: none; padding: 0; margin: 0 0 24px; }
.service-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink); padding: 6px 0;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; font-size: 14px;
  transition: gap .2s ease;
}
.service-link:hover { gap: 10px; color: var(--navy); }

/* ============== INDUSTRIAS TABS ============== */
.ind-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.ind-tab:hover { border-color: var(--brand); color: var(--brand); }
.ind-tab.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 10px 25px -10px rgba(10,37,64,.4);
}

.ind-panel { display: none; animation: fadeUp .4s ease; }
.ind-panel.is-active { display: grid; }

.badge-result {
  background: var(--ok); color: #fff;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 20px -5px rgba(16,185,129,.4);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== STEPS / PROCESS ============== */
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,37,64,.06);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(10,37,64,.25); }
.step-ic {
  position: relative;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--brand));
  border-radius: 16px;
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 15px 30px -15px rgba(30,136,229,.6);
}
.step-n {
  position: absolute; top: -8px; right: -8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cta); color: #fff;
  font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
  border: 3px solid #fff;
}
.step-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: 4px;
}
.step-day {
  color: var(--brand); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.step-card > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============== FEATURE LI ============== */
.feature-li {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); font-size: 16px; font-weight: 500;
}
.feature-li i { flex-shrink: 0; }

/* ============== ROI CALCULATOR ============== */
.roi-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin-top: 10px;
  background: rgba(255,255,255,.1);
  border-radius: 999px; outline: none;
  background-image: linear-gradient(var(--cta), var(--cta));
  background-repeat: no-repeat;
}
.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cta);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(245,158,11,.4);
  transition: transform .15s ease;
}
.roi-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--cta); cursor: pointer;
}

/* ============== POST CARDS ============== */
.post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(10,37,64,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10,37,64,.3); }
.post-img { aspect-ratio: 16/10; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-body { padding: 24px; }
.post-tag {
  display: inline-block;
  background: rgba(30,136,229,.1); color: var(--brand);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.post-body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 18px; line-height: 1.35;
  color: var(--ink); margin-bottom: 10px;
}
.post-body p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.post-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; font-size: 14px;
  transition: gap .2s ease;
}
.post-link:hover { gap: 10px; }

/* ============== FAQ ============== */
.faq {
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  border-radius: 14px;
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(10,37,64,.02); }
.faq summary i { color: var(--brand); transition: transform .25s ease; flex-shrink: 0; }
.faq[open] summary i { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 20px; color: var(--muted); line-height: 1.6;
  animation: fadeUp .3s ease;
}

/* ============== CONTACT BOX ============== */
.contact-box {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 14px 16px;
  transition: background .2s ease, transform .2s ease;
}
.contact-box:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ============== FOOTER ============== */
.foot-h {
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.foot-list li { padding: 4px 0; line-height: 1.5; }
.foot-list a { color: rgba(255,255,255,.7); transition: color .2s ease; }
.foot-list a:hover { color: #fff; }

.social-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff;
  transition: all .2s ease;
}
.social-ic:hover { background: var(--cta); border-color: var(--cta); transform: translateY(-2px); }

/* ============== WA FLOAT ============== */
.wa-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.6);
  z-index: 50;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .5;
  animation: pingWa 1.8s ease-out infinite;
}
@keyframes pingWa {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============== REVEAL ANIM ============== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Stagger hero children */
.lg\:col-span-7 .reveal:nth-child(1) { transition-delay: 0.05s; }
.lg\:col-span-7 .reveal:nth-child(2) { transition-delay: 0.15s; }
.lg\:col-span-7 .reveal:nth-child(3) { transition-delay: 0.25s; }
.lg\:col-span-7 .reveal:nth-child(4) { transition-delay: 0.35s; }
.lg\:col-span-7 .reveal:nth-child(5) { transition-delay: 0.45s; }
.lg\:col-span-7 .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ============== A11Y ============== */
*:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============== IND MINI CARDS ============== */
.ind-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  border-radius: 14px;
  font-weight: 600; color: var(--ink);
  transition: all .25s ease;
}
.ind-mini i { color: var(--brand); width: 20px; height: 20px; flex-shrink: 0; }
.ind-mini:hover { border-color: var(--brand); background: rgba(30,136,229,.03); transform: translateY(-2px); box-shadow: 0 15px 30px -15px rgba(10,37,64,.2); }
.ind-mini--all { background: var(--navy); color: #fff; border-color: var(--navy); }
.ind-mini--all i { color: var(--cta); }
.ind-mini--all:hover { background: var(--navy-900); }

/* ============== BREADCRUMBS ============== */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--muted); transition: color .15s ease; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { color: rgba(10,37,64,.3); }
.breadcrumbs .current { color: var(--navy); font-weight: 600; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, rgba(30,136,229,.3));
  color: #fff;
  padding: 80px 0 72px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}
.page-hero::after {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(245,158,11,.2), transparent 70%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

/* Prose for article */
.prose-custom h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 40px; margin-bottom: 16px; color: var(--navy);
  line-height: 1.25;
}
.prose-custom h3 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 20px; margin-top: 28px; margin-bottom: 12px; color: var(--navy);
}
.prose-custom p {
  font-size: 17px; line-height: 1.75; color: var(--ink);
  margin-bottom: 20px;
}
.prose-custom ul, .prose-custom ol { margin: 16px 0 24px; padding-left: 24px; }
.prose-custom ul li, .prose-custom ol li {
  font-size: 17px; line-height: 1.7; color: var(--ink); margin-bottom: 8px;
}
.prose-custom ul li::marker { color: var(--cta); }
.prose-custom blockquote {
  border-left: 4px solid var(--cta);
  padding: 12px 20px;
  background: rgba(245,158,11,.06);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic; color: var(--navy);
}
.prose-custom a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose-custom a:hover { color: var(--navy); }
.prose-custom code {
  background: rgba(10,37,64,.06); padding: 2px 6px;
  border-radius: 4px; font-size: 15px;
}
.prose-custom img {
  border-radius: 14px; margin: 24px 0;
  width: 100%; height: auto;
}

/* ============== RESPONSIVE TWEAKS ============== */
@media (max-width: 768px) {
  .eyebrow::before { width: 16px; }
}

/* ============== GLOBAL SEARCH ============== */
.search-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.6);
  transition: all .15s ease;
  cursor: pointer;
}
.search-trigger:hover {
  background: var(--brand); color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(30,136,229,.5);
}
.search-trigger:active { transform: translateY(0); }

.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7,24,43,.55); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 80px 16px 16px;
  animation: searchFadeIn .15s ease-out;
}
.search-overlay.is-open { display: flex; }
@keyframes searchFadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-modal {
  width: 100%; max-width: 640px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  animation: searchSlideUp .2s ease-out;
}
@keyframes searchSlideUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,.07);
}
.search-input-wrap svg { color: rgba(0,0,0,.4); flex-shrink: 0; }
.search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--ink);
  font-family: inherit;
}
.search-input::placeholder { color: rgba(0,0,0,.35); }
.search-close {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 8px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 6px;
  background: #fff; font-size: 11px; font-weight: 600;
  color: rgba(0,0,0,.5); cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.search-close:hover { background: rgba(0,0,0,.04); }

.search-results {
  max-height: 60vh; overflow-y: auto;
  padding: 6px;
}
.search-result {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px;
  text-decoration: none; color: inherit;
  cursor: pointer; transition: background .12s ease;
}
.search-result:hover, .search-result.is-active {
  background: rgba(30,136,229,.08);
}
.search-result-ic {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 9px; background: rgba(30,136,229,.1);
  color: var(--brand);
  display: grid; place-items: center;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
  font-weight: 700; font-size: 14px; color: var(--navy);
  margin: 0 0 2px;
}
.search-result-title mark {
  background: rgba(245,158,11,.25); color: inherit;
  padding: 0 2px; border-radius: 3px;
}
.search-result-desc {
  font-size: 12.5px; color: var(--muted);
  line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.search-result-url {
  font-size: 11px; color: rgba(0,0,0,.4);
  margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.search-result-arrow {
  color: rgba(0,0,0,.25); align-self: center; flex-shrink: 0;
}
.search-result.is-active .search-result-arrow { color: var(--brand); }

.search-empty {
  padding: 40px 20px; text-align: center; color: var(--muted);
  font-size: 14px;
}
.search-empty strong { color: var(--ink); display: block; margin-bottom: 4px; }

.search-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px;
  border-top: 1px solid rgba(0,0,0,.07);
  font-size: 11px; color: rgba(0,0,0,.5);
  background: rgba(0,0,0,.015);
}
.search-footer .kbd-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-footer kbd {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; color: rgba(0,0,0,.65);
}
.search-footer kbd span {
  display: inline-block; min-width: 16px; height: 16px;
  padding: 0 4px; line-height: 14px; text-align: center;
  border: 1px solid rgba(0,0,0,.15); border-radius: 4px;
  background: #fff; font-weight: 600;
}

/* ============== DIAGNÓSTICO INTERACTIVO ============== */
.diag-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  box-shadow: 0 30px 60px -25px rgba(10,37,64,.18);
  overflow: hidden;
}
.diag-progress-bar {
  height: 5px;
  background: rgba(0,0,0,.06);
  position: relative;
}
.diag-progress-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--cta));
  transition: width .35s ease;
}
.diag-step { display: none; padding: 32px; }
.diag-step.is-active { display: block; animation: diagFade .25s ease-out; }
@keyframes diagFade { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:translateY(0);} }
.diag-step-num {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 12px;
}
.diag-q {
  font-family: 'Poppins'; font-size: 28px; font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 6px;
}
.diag-help { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.diag-select {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 12px;
  font-size: 15px; color: var(--ink); background: #fff;
  transition: border .15s ease, box-shadow .15s ease;
}
.diag-select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,136,229,.15); }

.diag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12); background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; user-select: none;
  transition: all .15s ease;
}
.diag-chip:hover { border-color: rgba(30,136,229,.5); color: var(--brand); }
.diag-chip.is-selected {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.diag-chip.is-selected .check { display: inline-block; }
.diag-chip .check { display: none; width: 14px; height: 14px; }

.diag-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.diag-radio {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12); background: #fff;
  cursor: pointer; transition: all .15s ease;
}
.diag-radio:hover { border-color: rgba(30,136,229,.5); background: rgba(30,136,229,.03); }
.diag-radio.is-selected {
  border-color: var(--brand); background: rgba(30,136,229,.06);
}
.diag-radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2); flex-shrink: 0;
  display: grid; place-items: center; transition: all .15s;
}
.diag-radio.is-selected .diag-radio-dot {
  border-color: var(--brand);
}
.diag-radio.is-selected .diag-radio-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}
.diag-radio-text { flex: 1; font-size: 14.5px; color: var(--ink); }

.diag-actions {
  display: flex; gap: 10px; justify-content: space-between;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.06);
}
.diag-back, .diag-next {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.diag-back {
  background: transparent; border: 1px solid rgba(0,0,0,.12); color: var(--ink);
}
.diag-back:hover { background: rgba(0,0,0,.04); }
.diag-back:disabled { opacity: .35; cursor: not-allowed; }
.diag-next {
  background: var(--cta); border: 1px solid var(--cta); color: var(--navy);
  margin-left: auto;
}
.diag-next:hover { background: var(--cta-600); border-color: var(--cta-600); transform: translateY(-1px); }
.diag-next:disabled { opacity: .4; cursor: not-allowed; transform: none; background: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); color: rgba(0,0,0,.4); }

/* Resultados */
.diag-result-hero {
  background: linear-gradient(135deg, #07182B 0%, #0A2540 50%, #122F52 100%);
  color: #fff; padding: 36px 32px; position: relative; overflow: hidden;
}
.diag-result-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.diag-result-hero > * { position: relative; }
.diag-result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(245,158,11,.18); color: var(--cta);
  border: 1px solid rgba(245,158,11,.35);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 14px;
}
.diag-rec-list { display: grid; gap: 12px; padding: 28px 32px; }
.diag-rec {
  display: flex; gap: 14px; padding: 16px;
  border-radius: 14px; background: var(--canvas); border: 1px solid rgba(0,0,0,.05);
}
.diag-rec-ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(30,136,229,.1); color: var(--brand);
}
.diag-rec h4 { font-family: 'Poppins'; font-weight: 700; font-size: 15px; color: var(--navy); margin: 0 0 4px; }
.diag-rec p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.diag-rec a { color: var(--brand); font-size: 12.5px; font-weight: 600; }

.diag-benefits { background: var(--canvas); padding: 24px 32px; border-top: 1px solid rgba(0,0,0,.06); }
.diag-benefits h3 { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--navy); margin: 0 0 14px; }
.diag-benefits ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.diag-benefits li {
  display: flex; gap: 10px; font-size: 14px; color: var(--ink);
}
.diag-benefits li svg { color: var(--ok); flex-shrink: 0; margin-top: 2px; }

.diag-cta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 24px 32px; background: #fff; border-top: 1px solid rgba(0,0,0,.06);
}
.diag-restart {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid rgba(0,0,0,.1); cursor: pointer;
}
.diag-restart:hover { background: rgba(0,0,0,.04); color: var(--ink); }

@media (max-width: 640px) {
  .diag-step { padding: 24px 20px; }
  .diag-q { font-size: 22px; }
  .diag-rec-list, .diag-benefits, .diag-cta-row, .diag-result-hero { padding-left: 20px; padding-right: 20px; }
}

/* ============== HERO MODERNO V2 (Dashboard floating cards) ============== */
.hero-v2 {
  background: radial-gradient(120% 80% at 50% 0%, #1a3d75 0%, #0f2c5c 45%, #0a2547 100%);
  position: relative; overflow: hidden;
}
.hero-v2::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 85%);
}
.hero-v2::after {
  content: ''; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 600px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(79,158,255,.22) 0%, transparent 60%);
}

.hero-v2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .18em;
}

.hero-v2-mega {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  margin-top: 24px;
}
.hero-v2-mega .gradient {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 35%, #D97706 70%, #C9A84C 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

.hero-v2-h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 500; line-height: 1.4;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: 0; color: rgba(255,255,255,.7);
  max-width: 600px;
}
.hero-v2-h1 .gradient {
  background: linear-gradient(135deg, #4f9eff 0%, #8b6dff 45%, #d946a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-v2-sub {
  font-size: 17px; line-height: 1.65;
  color: rgba(255,255,255,.65);
  max-width: 540px;
}
.hero-v2-sub strong { color: #fff; font-weight: 600; }

.hero-v2-pills {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}
@media (max-width: 768px) { .hero-v2-pills { grid-template-columns: 1fr; gap: 12px; } }
.hero-v2-pill {
  display: flex; gap: 12px; align-items: flex-start;
}
.hero-v2-pill-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(79,158,255,.12); color: #4f9eff;
  border: 1px solid rgba(79,158,255,.2);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-v2-pill-text h4 {
  font-family: 'Poppins'; font-weight: 700; font-size: 14px;
  color: #fff; margin: 0 0 2px;
}
.hero-v2-pill-text p {
  font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.45; margin: 0;
}

.hero-v2-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px;
}
.hero-v2-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  background-size: 200% 200%;
  color: #0A2540; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(245,158,11,.6),
              inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s ease, box-shadow .15s ease, background-position .4s ease;
}
.hero-v2-btn-primary svg {
  color: #0A2540;
  stroke: #0A2540;
}
.hero-v2-btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 40px -10px rgba(245,158,11,.85),
              inset 0 1px 0 rgba(255,255,255,.5);
}
.hero-v2-btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  background: rgba(255,255,255,.04); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  font-weight: 600; font-size: 15px;
  transition: all .15s ease;
}
.hero-v2-btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }

.hero-v2-microtext {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-top: 28px; font-size: 12.5px; color: rgba(255,255,255,.5);
}
.hero-v2-microtext .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.hero-v2-microtext .item {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-v2-microtext .item svg { color: #4f9eff; }

/* ------ Visual hero (foto + floating cards) ------ */
.hero-v2-visual { position: relative; min-height: 460px; }
@media (max-width: 1024px) { .hero-v2-visual { margin-top: 40px; min-height: 380px; } }

.hero-v2-photo {
  position: relative; width: 100%;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7),
              0 0 0 1px rgba(255,255,255,.04);
  aspect-ratio: 16/11;
}
.hero-v2-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-v2-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,17,36,.4) 0%, transparent 40%, rgba(5,6,16,.2) 100%);
  pointer-events: none;
}

/* Floating cards */
.float-card {
  position: absolute;
  background: rgba(13,17,36,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff; font-size: 12px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  animation: floatIn .6s ease-out;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.float-card-live {
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.35);
}
.float-card-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10B981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.5);
  animation: livePulse 1.5s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.float-card-live span:not(.dot) { color: #10B981; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.float-card-route {
  top: 28%; left: 8%;
  display: flex; gap: 10px; align-items: center;
  min-width: 180px;
}
.float-card-route .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(79,158,255,.18); color: #4f9eff;
  display: grid; place-items: center;
}
.float-card-route .label { font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.float-card-route .name { font-weight: 700; font-size: 14px; }

.float-card-efficiency {
  top: 22%; right: -10px;
  display: flex; gap: 12px; align-items: center;
  min-width: 200px;
}
.float-card-efficiency .donut {
  width: 48px; height: 48px; flex-shrink: 0;
  background: conic-gradient(#4f9eff 0% 92%, rgba(255,255,255,.08) 92% 100%);
  border-radius: 50%; position: relative;
  display: grid; place-items: center;
}
.float-card-efficiency .donut::after {
  content: ''; position: absolute; inset: 6px;
  background: #0d1124; border-radius: 50%;
}
.float-card-efficiency .donut-label {
  position: relative; font-weight: 700; font-size: 13px; color: #fff;
}
.float-card-efficiency .label { font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.float-card-efficiency .text { font-size: 13px; font-weight: 600; line-height: 1.2; }

.float-card-savings {
  bottom: 22%; right: -8px;
  min-width: 180px;
}
.float-card-savings .label { font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.float-card-savings .value {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'Poppins'; font-weight: 800; font-size: 26px; color: #4ade80;
  line-height: 1;
}
.float-card-savings .value .arrow { font-size: 18px; }
.float-card-savings .sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; }

.float-card-ai {
  bottom: 12px; left: 8%; right: 14%;
  padding: 14px 16px;
}
.float-card-ai .head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.float-card-ai .badge {
  padding: 3px 8px; border-radius: 6px;
  background: linear-gradient(135deg, #4f9eff, #8b6dff);
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.float-card-ai .title { font-weight: 700; font-size: 13px; }
.float-card-ai .desc { font-size: 11.5px; color: rgba(255,255,255,.55); line-height: 1.45; }
.float-card-ai svg.chart { width: 100%; height: 32px; margin-top: 6px; }

/* ------ Bottom stats bar ------ */
.hero-v2-stats {
  margin-top: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  padding: 22px 28px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px; align-items: center;
}
@media (max-width: 768px) {
  .hero-v2-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px; }
}
.hero-v2-stat {
  display: flex; gap: 14px; align-items: center;
  border-right: 1px solid rgba(255,255,255,.08); padding-right: 22px;
}
.hero-v2-stat:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 768px) {
  .hero-v2-stat:nth-child(2n) { border-right: 0; padding-right: 0; }
}
.hero-v2-stat-ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(79,158,255,.12); color: #4f9eff;
  border: 1px solid rgba(79,158,255,.18);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-v2-stat-ic.stars { background: rgba(245,158,11,.12); color: #f59e0b; border-color: rgba(245,158,11,.2); }
.hero-v2-stat-value {
  font-family: 'Poppins'; font-weight: 800; font-size: 22px; color: #fff; line-height: 1;
}
.hero-v2-stat-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }
.hero-v2-stat-stars {
  display: inline-flex; align-items: center; gap: 1px;
  margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.55);
}
.hero-v2-stat-stars svg { color: #f59e0b; fill: #f59e0b; }
.hero-v2-stat-stars .ml-1 { margin-left: 6px; }

/* Star row */
.star-row { display: inline-flex; gap: 2px; }
.star-row svg { width: 16px; height: 16px; color: #f59e0b; fill: #f59e0b; }

/* ============== MOVIMIENTO Y MICROINTERACCIONES ============== */

/* Smooth scroll global */
html { scroll-behavior: smooth; }

/* Animated gradient para el gradient text del H1 */
.hero-v2-h1 .gradient {
  background: linear-gradient(135deg, #4f9eff 0%, #8b6dff 35%, #d946a8 70%, #4f9eff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Float subtle en hero photo */
.hero-v2-photo { animation: floatUp 6s ease-in-out infinite; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating cards con micro-flotación desfasada */
.float-card-route { animation: floatIn .6s ease-out, floatCard1 5s ease-in-out 1s infinite; }
.float-card-efficiency { animation: floatIn .6s ease-out, floatCard2 6s ease-in-out 1.5s infinite; }
.float-card-savings { animation: floatIn .6s ease-out, floatCard1 5.5s ease-in-out 2s infinite; }
.float-card-ai { animation: floatIn .6s ease-out, floatCard2 6.5s ease-in-out .5s infinite; }
@keyframes floatCard1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -6px); }
}
@keyframes floatCard2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, 6px); }
}

/* Hero microtext dots con pulse */
.hero-v2-microtext .item svg { animation: subtlePulse 2.5s ease-in-out infinite; }
@keyframes subtlePulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* Marquee para tarjetas de clientes y credibility */
.marquee-track {
  display: flex; gap: 60px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}
.marquee-wrap {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* Service cards con hover lift + glow */
.svc-card, .service-card, .problem-card {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.svc-card:hover, .service-card:hover, .problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -20px rgba(10,37,64,.25);
}

/* Botones con efecto shimmer */
.btn-primary, .btn-primary-lg, .hero-v2-btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::before, .btn-primary-lg::before, .hero-v2-btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .6s ease;
}
.btn-primary:hover::before, .btn-primary-lg:hover::before, .hero-v2-btn-primary:hover::before {
  left: 100%;
}

/* Reveal entry mejorado */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1).in { transition-delay: .05s; }
.reveal:nth-child(2).in { transition-delay: .15s; }
.reveal:nth-child(3).in { transition-delay: .25s; }
.reveal:nth-child(4).in { transition-delay: .35s; }
.reveal:nth-child(5).in { transition-delay: .45s; }

/* Eyebrow con icono pulsante */
.eyebrow i { animation: subtlePulse 2.5s ease-in-out infinite; }

/* Number cards / stats con elevación al hover */
.stat-card { transition: transform .3s ease, background .3s ease; }
.stat-card:hover { transform: translateY(-4px) scale(1.02); }

/* Iconos lucide con hover scale en cards */
.problem-ic, .step-ic, .mega-ic, .diag-rec-ic { transition: transform .3s ease; }
.problem-card:hover .problem-ic, .step-card:hover .step-ic, .mega-item:hover .mega-ic, .diag-rec:hover .diag-rec-ic {
  transform: scale(1.1) rotate(-3deg);
}

/* WhatsApp float con pulso permanente */
.wa-float { animation: waBounce 2s ease-in-out infinite; }
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Section transition arrow indicators */
.scroll-indicator {
  display: flex; justify-content: center; padding: 16px 0;
  opacity: .4;
}
.scroll-indicator i {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(6px); opacity: .9; }
}

/* Background mesh animado en sections oscuras */
.bg-mesh-animated {
  position: relative; overflow: hidden;
}
.bg-mesh-animated::before {
  content: ''; position: absolute; inset: -50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(79,158,255,.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139,109,255,.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(217,70,168,.08) 0%, transparent 35%);
  animation: meshMove 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, -5%) rotate(2deg); }
  66% { transform: translate(-3%, 4%) rotate(-1deg); }
}

/* CTA final dark con mesh */
.cta-dark-final { position: relative; overflow: hidden; }

/* Live ping efecto general */
.live-ping {
  position: relative;
}
.live-ping::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: livePing 1.5s ease-out infinite;
  opacity: 0;
}
@keyframes livePing {
  0% { opacity: .6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============== PROBLEMS HORIZONTAL SCROLL ============== */
.prob-scroll {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,37,64,.3) transparent;
}
.prob-scroll::-webkit-scrollbar { height: 8px; }
.prob-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,.04); border-radius: 4px; }
.prob-scroll::-webkit-scrollbar-thumb { background: rgba(10,37,64,.25); border-radius: 4px; }
.prob-scroll::-webkit-scrollbar-thumb:hover { background: rgba(10,37,64,.45); }

.prob-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 22px;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 12px -6px rgba(10,37,64,.08);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.prob-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30,136,229,.3);
  box-shadow: 0 20px 40px -16px rgba(10,37,64,.2);
}
@media (min-width: 768px) { .prob-card { flex: 0 0 300px; } }

.prob-card-ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.prob-card h3 {
  font-family: 'Poppins'; font-weight: 700; font-size: 18px;
  color: var(--navy); margin: 0 0 8px;
}
.prob-card p {
  font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 14px;
  flex: 1;
}
.prob-card-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(30,136,229,.08); color: var(--brand);
  border: 1px solid rgba(30,136,229,.15);
  width: fit-content;
}

.prob-nav {
  width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid rgba(0,0,0,.1);
  background: #fff; color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer; transition: all .15s;
}
.prob-nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.prob-nav:active { transform: translateY(0); }

/* ============== VEHICLE MARQUEE (Todo tipo de vehículos) ============== */
.vehicle-marquee-wrap {
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  padding: 8px 0 36px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.vehicle-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: vehicleScroll 80s linear infinite;
}
.vehicle-track-reverse {
  animation: vehicleScrollReverse 90s linear infinite;
}
@keyframes vehicleScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes vehicleScrollReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.vehicle-marquee-wrap:hover .vehicle-track { animation-play-state: paused; }

.vehicle-card {
  flex: 0 0 170px;
  background: transparent;
  border: none;
  padding: 0 0 22px;
  text-align: center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  cursor: default;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-card:hover {
  transform: translateY(-3px);
}
.vehicle-img {
  width: 100%; height: 110px;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
  background: transparent;
}
.vehicle-card:hover .vehicle-img {
  transform: scale(1.08);
}
.vehicle-card-name {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translate(-50%, 8px);
  background: var(--navy);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(10,37,64,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  z-index: 5;
}
.vehicle-card-name::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 1px;
}
.vehicle-card:hover .vehicle-card-name {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vehicle-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin-top: 36px;
  padding: 22px 28px;
  background: var(--navy);
  border-radius: 16px;
  color: #fff;
}
@media (max-width: 768px) {
  .vehicle-features { padding: 18px; gap: 18px; }
}
.vehicle-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.vehicle-feature-ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(79,158,255,.15); color: #4f9eff;
  display: grid; place-items: center; flex-shrink: 0;
}
.vehicle-feature b { color: #fff; font-family: 'Poppins'; font-weight: 700; }
.vehicle-feature span:not(.vehicle-feature-ic) { color: rgba(255,255,255,.65); font-size: 12px; }
