/* ============================================================
   COMMON — Reset, tipografía, utilidades y componentes base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- Scrollbar moderna ---------- */
/* Chrome / Edge / Safari */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #4A678C;
  border-radius: 20px;
  border: none;
}
*::-webkit-scrollbar-thumb:hover { background: #3A4B62; }
*::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-button:start:decrement { display: none; }
*::-webkit-scrollbar-button:end:increment { display: none; }
*::-webkit-scrollbar-button:start:increment { display: none; }
*::-webkit-scrollbar-button:end:decrement { display: none; }
*::-webkit-scrollbar-corner { display: none; background: transparent; }

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #4A678C transparent;
}
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.text-center { text-align: center; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: .25s ease; text-decoration: none;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  overflow: visible;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px;
  position: relative;
  overflow: visible;
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
}
.brand {
  font-size: 1.1rem; font-weight: 800; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-wrap: nowrap; flex-shrink: 0;
}
.brand img { height: 30px; flex-shrink: 0; }
.brand-axion-logo { height: 24px; flex-shrink: 0; }
.brand-text { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.brand-sep { opacity: .35; margin: 0 2px; font-weight: 400; }
.brand a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: inherit; }
.nav-links { display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; flex: 1; justify-content: flex-start; margin-left: 16px; overflow: visible; }
.nav-links a {
  padding: 8px 10px; border-radius: 6px; font-size: .85rem; font-weight: 500;
  transition: .25s ease; white-space: nowrap;
}
.nav-links .divider { width: 1px; height: 20px; margin: 0 6px; }
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  transition: transform .3s ease;
  line-height: 1;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.menu-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

/* ---------- Nav Dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-drop-toggle {
  padding: 8px 14px; border-radius: 6px; font-size: .88rem; font-weight: 500;
  transition: .25s ease; white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none;
  font-family: inherit; color: inherit;
}
.nav-dropdown > .nav-drop-toggle::after {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -2px; transition: transform .25s ease;
}
.nav-dropdown:hover > .nav-drop-toggle::after,
.nav-dropdown.open > .nav-drop-toggle::after { transform: rotate(-135deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 280px; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.1); border: 1px solid rgba(128,128,128,.1);
  padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateX(-50%) translateY(6px);
  z-index: 200;
  overflow: visible;
}
.nav-dropdown:hover > .nav-drop-menu,
.nav-dropdown.open > .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; transition: .2s ease;
}
.nav-drop-menu a:hover { background: rgba(128,128,128,.07); }
.nav-drop-menu a span {
  display: block; font-size: .75rem; opacity: .55; font-weight: 400; margin-top: 2px;
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: center;
    position: absolute;
    top: 100%; left: 0; right: 0; z-index: 150;
    padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid rgba(128,128,128,.15);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-radius: 0 0 16px 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links .divider { display: none; }
  .nav-links a {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .92rem;
    text-align: center;
    width: 100%;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > .nav-drop-toggle {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .92rem;
    justify-content: center;
    gap: 8px;
  }
  /* On mobile: only rotate arrow when .open, not on :hover (sticky on touch) */
  .nav-dropdown:hover > .nav-drop-toggle::after { transform: rotate(45deg); }
  .nav-dropdown.open > .nav-drop-toggle::after { transform: rotate(-135deg); }
  .nav-drop-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none; border: none; min-width: auto;
    display: none;
    background: rgba(74,103,140,.04);
    border-radius: 12px;
    padding: 8px;
    margin: 4px 0;
    width: 100%;
    z-index: auto;
  }
  .nav-drop-menu a {
    display: block;
    padding: 10px 14px;
    font-size: .85rem;
    border-radius: 8px;
    white-space: normal;
    text-align: center;
  }
  .nav-drop-menu a span {
    font-size: .72rem;
    line-height: 1.3;
    text-align: center;
  }
  .nav-dropdown.open > .nav-drop-menu {
    display: flex; flex-direction: column; gap: 2px;
    transform: none !important;
  }
  /* Product link at bottom of mobile nav */
  .product-link {
    align-self: center;
    margin-top: 8px;
  }
}

/* ---------- Hero ---------- */
.hero { padding: 100px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; opacity: .85; }
.hero .actions, .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- General button spacing ---------- */
.lead + .btn,
.lead + .hero-actions,
p + .btn,
h2 + .btn { margin-top: 28px; }
p + .hero-actions { margin-top: 32px; }

/* ---------- Section Titles ---------- */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.section-title p  { font-size: 1.05rem; opacity: .7; max-width: 600px; margin: 0 auto; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  border-radius: 12px; padding: 28px; transition: .25s ease;
  border: 1px solid transparent;
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p  { font-size: .92rem; opacity: .75; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px; counter-reset: step;
}
.step {
  position: relative; padding: 32px 24px 24px; border-radius: 12px;
  border: 1px solid transparent; counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}
.step h3 { margin-bottom: 6px; }
.step p  { font-size: .9rem; opacity: .75; }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; padding: 40px 0; }
.stat { text-align: center; }
.stat-value { font-size: 2.6rem; font-weight: 800; }
.stat-label { font-size: .88rem; opacity: .65; margin-top: 4px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card {
  border-radius: 12px; padding: 32px 28px; text-align: center;
  transition: .25s ease; border: 1px solid transparent;
}
.price-card h3 { margin-bottom: 8px; }
.price-card .price { font-size: 2.2rem; font-weight: 800; margin: 12px 0; }
.price-card ul { text-align: left; margin: 18px 0; }
.price-card li { padding: 6px 0; font-size: .9rem; opacity: .8; }
.price-card li::before { content: "✓ "; font-weight: 700; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 700px; margin: 0 auto; text-align: center;
  font-style: italic; font-size: 1.1rem; opacity: .85;
  padding: 40px 24px; border-left: 4px solid; border-radius: 0 12px 12px 0;
}
.testimonial cite {
  display: block; margin-top: 14px; font-style: normal; font-weight: 600; font-size: .9rem; opacity: .65;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; }
.faq-item summary::before { content: "＋ "; }
.faq-item[open] summary::before { content: "－ "; }
.faq-item p { margin-top: 8px; font-size: .92rem; opacity: .75; padding-left: 24px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: 8px; font-size: .95rem;
  transition: .25s ease;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-card {
  max-width: 560px; margin: 0 auto; border-radius: 12px; padding: 36px;
  border: 1px solid transparent;
}

/* ---------- Integrations ---------- */
.integrations-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.integration-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px; border-radius: 12px; border: 1px solid transparent;
  transition: .25s ease;
}
.integration-item .int-icon { font-size: 1.8rem; flex-shrink: 0; }
.integration-item h4 { font-size: .95rem; margin-bottom: 4px; }
.integration-item p  { font-size: .85rem; opacity: .7; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  border-radius: 12px; overflow: hidden; transition: .25s ease;
  border: 1px solid transparent;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card .thumb { height: 180px; display: grid; place-items: center; font-size: 2rem; color: #fff; }
.blog-card .body  { padding: 20px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p  { font-size: .88rem; opacity: .7; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 24px; font-size: .88rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-grid h4 { margin-bottom: 12px; font-size: .95rem; }
.footer-grid a { display: block; padding: 4px 0; opacity: .65; transition: .25s ease; }
.footer-grid a:hover { opacity: 1; }
.footer-bottom {
  text-align: center; padding-top: 20px; opacity: .5; font-size: .82rem;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ---------- Accessibility — 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;
  }
  html { scroll-behavior: auto; }
  .fadeUp { opacity: 1; transform: none; }
  .animate-in { animation: none; opacity: 1; }
}

/* ============================================================
   RESPONSIVE — Tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 48px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .lead { font-size: 1.05rem; }

  .brand { font-size: 1.1rem; gap: 8px; letter-spacing: 1.5px; }
  .brand img { height: 30px; }
  .brand-axion-logo { height: 24px; }
  .header-inner { padding: 12px 20px; }

  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }

  .stats { gap: 28px; }
  .stat-value { font-size: 2.2rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .integrations-list { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤600px)
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero .lead { font-size: .95rem; margin-bottom: 20px; }
  .hero .actions, .hero-actions { gap: 10px; flex-direction: column; align-items: center; }

  .btn { padding: 10px 22px; font-size: .88rem; }

  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .section-title p { font-size: .92rem; }

  .brand { font-size: .9rem; gap: 6px; letter-spacing: 1px; }
  .brand img { height: 24px; }
  .brand-axion-logo { height: 20px; }
  .header-inner { padding: 10px 16px; }
  .menu-toggle { width: 36px; height: 36px; font-size: 1.3rem; }

  .card { padding: 22px 18px; }

  .stats { flex-direction: column; gap: 16px; }
  .stat-value { font-size: 1.8rem; }
  .stat-label { font-size: .82rem; }

  .form-card { padding: 24px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
  .site-footer { padding: 32px 0 16px; }
  /* Override inline flex on footer-bottom for stacked layout on mobile */
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    padding-top: 16px;
  }
  .footer-bottom img {
    height: 50px !important;
  }

  .testimonial { padding: 24px 16px; font-size: .95rem; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step { padding: 28px 20px 20px; }

  .integrations-list { gap: 14px; }
  .integration-item { padding: 16px; gap: 12px; }
}

/* ============================================================
   RESPONSIVE — Small mobile (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 1.4rem; }
  .brand { font-size: .82rem; }
  .brand img { height: 22px; }
  .brand-axion-logo { height: 18px; }
  .btn { padding: 10px 18px; font-size: .84rem; }
  .card { padding: 18px 14px; }
  .form-card { padding: 20px 14px; }
}

/* ---------- Footer & Main spacing ---------- */
.site-footer .footer-grid { margin-bottom: 40px; }
.site-footer .container { padding-bottom: 24px; }
.site-footer .footer-bottom { margin-top: 24px; padding-top: 24px; }
main, .section:last-of-type { margin-bottom: 0; }
.vt-cta, .ax-cta, .mb-cta, .ts-cta { margin-bottom: 0; }
/* ---------- Social Icons ---------- */
.social-icons { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); transition: .25s ease; opacity: .6; }
.social-icons a:hover { opacity: 1; background: rgba(255,255,255,.15); transform: translateY(-2px); }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }
.header-inner .social-icons { margin-top: 0; margin-left: 8px; }
/* ---------- Header CTA Button ---------- */
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; margin-left: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d5a80, #5fa892) !important;
  color: #fff !important; font-weight: 700; font-size: .95rem;
  letter-spacing: .3px;
  text-decoration: none !important; white-space: nowrap;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 3px 14px rgba(61,90,128,.3);
  flex-shrink: 0; border: none;
}
.header-cta:hover {
  background: linear-gradient(135deg, #2c4a6e, #4a9580) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,90,128,.45);
  text-decoration: none !important;
}
@media (max-width: 900px) {
  .header-cta { margin: 12px auto 0; padding: 14px 34px; font-size: 1rem; }
}