/* Modern 2026 Layer - minimal overrides atop main.css */

:root {
  --radius-lg: 18px;
  --radius-xl: 28px;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-xl: 0 10px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10);
  --shadow-md: 0 6px 16px rgba(0,0,0,.08);
  --accent: #0d83fd;
}

/* Floating rounded header (glassmorphism) */
.header {
  background: transparent;
  border: 0;
  padding-top: 10px;
}

.header .header-container {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 10px 18px;
  margin: 12px auto;
  max-width: 1180px;
}

/* Rounded nav links */
.navmenu a,
.navmenu a:focus {
  border-radius: 12px;
  padding: 10px 14px;
}

/* ERP badge next to logo */
.header .logo { gap: 8px; }
.header .logo .logo-erp-badge {
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 14px;
  color: var(--accent);
  background: rgba(13,131,253,.12);
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
}

.navmenu li:hover > a,
.navmenu .active,
.navmenu .active:focus {
  background: linear-gradient(180deg, rgba(13,131,253,0.12), rgba(13,131,253,0.08));
}

/* Mega menu base */
.navmenu .dropdown.mega { position: static; }
.navmenu .dropdown .mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s ease;
  width: min(1100px, calc(100vw - 32px));
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 18px;
  z-index: 999;
}

.navmenu .dropdown:hover .mega-menu,
.navmenu .dropdown .mega-menu:hover { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Hover bridge to avoid flicker when moving cursor from tab to mega */
.navmenu .dropdown .mega-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -12px;
  height: 12px;
}

/* Mega grid */
.mega-menu .mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.mega-menu .mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
  min-width: 0;      /* prevent flex overflow in grid */
  overflow: hidden;  /* clip any spill */
}

.mega-menu .mega-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: rgba(255,255,255,0.75); }
.mega-menu .mega-icon { font-size: 22px; color: var(--accent); margin-top: 2px; }
.mega-menu .mega-item > div { min-width: 0; }
.mega-menu .mega-title { font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-menu .mega-desc { font-size: 0.92rem; color: #4d5b74; margin: 0; line-height: 1.35; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.mega-menu a { text-decoration: none; color: inherit; display: block; width: 100%; }

/* Hide old dropdown UL on desktop for mega dropdowns */
@media (min-width: 1200px) {
  .navmenu .dropdown.mega > ul { display: none !important; }
}

/* Mobile: keep standard dropdown; hide mega */
@media (max-width: 1199.98px) {
  .navmenu .dropdown .mega-menu { display: none; }
}

/* Subtle 2025 tweaks */
.hero .company-badge {
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.features-cards .feature-box { border-radius: 16px; }
.pricing .pricing-card { border-radius: 18px; }
.btn, .contact .contact-form .btn { border-radius: 12px; }

/* Feature detail enhancements */
.hero .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: 10px;
  border-radius: 12px;
  background: rgba(13,131,253,.12);
  color: var(--accent);
  border: 1px solid var(--glass-border);
}

.section .lead {
  font-size: 1.15rem;
  color: #3f4b63;
}

.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.feature-chips .chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: .92rem;
  color: #42526e;
}

.cta-band {
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.6));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 28px;
}

/* Header primary CTA */
.navmenu .btn-cta-contrata {
  color: #fff !important;
  background: linear-gradient(180deg, #3fa2ff, #0d83fd);
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(13,131,253,.28);
  margin-left: 12px; /* space from Contacto */
}
.navmenu .btn-cta-contrata:hover { background: linear-gradient(180deg, #69b8ff, #2b94ff); box-shadow: 0 8px 22px rgba(13,131,253,.36); }

@media (max-width: 1199.98px) {
  .mobile-nav-active .navmenu .btn-cta-contrata { margin: 10px; text-align: center; }
}

@media (max-width: 1199.98px) {
  .mobile-nav-active .header .header-container {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 1199.98px) {
  .navmenu,
  .navmenu ul {
    transition: 0.12s ease;
  }
}

/* ============================================================
   2026 ENHANCEMENTS
   ============================================================ */

/* --- Aurora hero blobs: brighter + animated --- */
@keyframes aurora-drift {
  0%   { transform: translate(0, 0)    scale(1);    }
  50%  { transform: translate(30px,-20px) scale(1.06); }
  100% { transform: translate(-15px,15px) scale(.97);  }
}

.hero::before {
  background: radial-gradient(circle, rgba(13,131,253,.22) 0%, transparent 62%);
  width: 1000px;
  height: 1000px;
  top: -25%;
  right: -12%;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.hero::after {
  background: radial-gradient(circle, rgba(80,170,255,.16) 0%, transparent 62%);
  width: 750px;
  height: 750px;
  bottom: -12%;
  left: -8%;
  animation: aurora-drift 24s ease-in-out infinite alternate-reverse;
}

/* Extra aurora blob (center-top) */
.hero .hero-content::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 220px;
  background: radial-gradient(ellipse, rgba(13,131,253,.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: aurora-drift 20s ease-in-out infinite;
}

/* --- Hero typography: tighter, larger --- */
.hero .hero-content h1 {
  font-size: 4.6rem;
  letter-spacing: -.045em;
  line-height: 1.05;
}

@media (max-width: 992px) {
  .hero .hero-content h1 { font-size: 2.75rem; }
}

@media (max-width: 575px) {
  .hero .hero-content h1 { font-size: 2.1rem; }
}

/* --- Company badge: pulsing verified dot --- */
.hero .company-badge {
  gap: 8px;
  font-size: .88rem;
  letter-spacing: .01em;
  border-color: rgba(13,131,253,.18);
}

.hero .company-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulse-dot 2.4s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,.55); }
  60%  { box-shadow: 0 0 0 8px rgba(34,197,94,0);   }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);   }
}

/* --- Hero primary CTA: stronger glow + lift --- */
.hero .btn-primary {
  box-shadow: 0 6px 22px rgba(13,131,253,.38);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,131,253,.48);
}

/* --- Section titles: replace old underline bar with pill tag --- */
.section-title h2::after {
  display: none;
}

.section-title h2 {
  font-size: 2.4rem;
  letter-spacing: -.03em;
  padding-bottom: 0;
  margin-bottom: .6rem;
}

.section-title {
  padding-bottom: 48px;
}

.section-title p {
  font-size: 1.08rem;
  color: #52647e;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Feature cards: gradient top accent on hover --- */
.features-cards .feature-box {
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.features-cards .feature-box:hover {
  border-color: rgba(13,131,253,.22);
  box-shadow: 0 -3px 0 0 rgba(13,131,253,.7), var(--card-hover-shadow);
}

/* --- Pricing popular card: deep dark gradient instead of flat blue --- */
.pricing .pricing-card.popular {
  background: linear-gradient(145deg, #0d1a2e 0%, #0a2a50 55%, #103a70 100%);
  border: 1px solid rgba(13,131,253,.4);
  box-shadow:
    0 0 0 1px rgba(13,131,253,.12),
    0 28px 56px rgba(13,131,253,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.pricing .pricing-card.popular .popular-badge {
  background: linear-gradient(135deg, #3b9ffe, #0d60d8);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(13,131,253,.4);
}

.pricing .pricing-card.popular .price .period {
  color: rgba(255,255,255,.65);
}

.pricing .pricing-card.popular .description {
  color: rgba(255,255,255,.75);
}

.pricing .pricing-card.popular h4 {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
}

/* --- Non-popular pricing cards: subtle top line --- */
.pricing .pricing-card:not(.popular) {
  border: 1px solid rgba(0,0,0,.06);
  border-top: 2px solid transparent;
  background-image:
    linear-gradient(white, white),
    linear-gradient(90deg, rgba(13,131,253,.5), rgba(80,170,255,.3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform .22s ease, box-shadow .22s ease;
}

.pricing .pricing-card:not(.popular):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,131,253,.12);
}

/* --- Smooth gradient separator between sections --- */
.section + .section,
.section + .light-background,
.light-background + .section {
  position: relative;
}

/* --- Chip style refresh --- */
.feature-chips .chip {
  background: rgba(13,131,253,.07);
  border-color: rgba(13,131,253,.14);
  color: #1d4185;
  font-weight: 500;
  font-size: .875rem;
  transition: background .18s, border-color .18s;
}

.feature-chips .chip:hover {
  background: rgba(13,131,253,.13);
  border-color: rgba(13,131,253,.26);
}

/* ---- Stats row ---- */
.stats-row { background: var(--surface-color); border-top: 1px solid rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.05); }
.stats-row .stat-item { text-align: center; padding: 32px 16px; }
.stats-row .stat-number { font-size: 2.8rem; font-weight: 900; color: var(--accent-color); line-height: 1; letter-spacing: -.04em; display: block; }
.stats-row .stat-label  { font-size: .9rem; color: #52647e; margin-top: 6px; font-weight: 500; display: block; line-height: 1.3; }
.stats-row .stat-item + .stat-item { border-left: 1px solid rgba(0,0,0,.07); }
@media (max-width: 767px) {
  .stats-row .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(0,0,0,.07); }
  .stats-row .stat-number { font-size: 2.2rem; }
}

/* ---- Check list ---- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 13px; font-size: .97rem; color: #3a4a62; line-height: 1.45; }
.check-list li i { color: var(--accent-color); font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }

/* ---- How it works steps ---- */
.how-it-works .step-wrap { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.how-it-works .step-num { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--accent-color); color: #fff; font-weight: 800; font-size: .88rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(13,131,253,.28); flex-shrink: 0; }
.how-it-works .step-body h5 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; color: var(--heading-color); }
.how-it-works .step-body p  { font-size: .9rem; color: #52647e; margin: 0; line-height: 1.45; }

/* ---- Feature detail headings ---- */
.feature-detail h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 18px; }
