/* ============================================================
   AXION CLINICAL — Paleta clara, profesional médica
   ============================================================ */

:root {
  --ax-navy:    #4A678C;
  --ax-navy-d:  #3A4B62;
  --ax-mint:    #7FB3A4;
  --ax-metal:   #BFC1C3;
  --ax-white:   #FFFFFF;
  --ax-bg:      #F7F9FC;
  --ax-shadow:  #3A4B62;
  --ax-grad:    linear-gradient(135deg, var(--ax-navy), var(--ax-mint));
}

body {
  background: var(--ax-bg);
  color: var(--ax-navy);
}

/* -- Header -- */
.site-header {
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(74,103,140,.08);
}
.brand-text { color: var(--ax-navy); display: inline-flex; align-items: center; gap: 6px; }
.brand-text span { color: var(--ax-mint); }
.menu-toggle { color: var(--ax-navy); }

.nav-links a { color: var(--ax-navy); }
.nav-links a:hover,
.nav-links a.active { background: rgba(74,103,140,.08); color: var(--ax-mint); }
.nav-links .divider { background: rgba(74,103,140,.15); }
.nav-dropdown > .nav-drop-toggle { color: var(--ax-navy); }
.nav-dropdown:hover > .nav-drop-toggle,
.nav-dropdown > .nav-drop-toggle.active { background: rgba(74,103,140,.08); color: var(--ax-mint); }
.nav-drop-menu a { color: var(--ax-navy); }
.nav-drop-menu a:hover { background: rgba(74,103,140,.07); color: var(--ax-mint); }

@media (max-width: 900px) {
  .nav-links {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(74,103,140,.06);
  }
  .nav-dropdown > .nav-drop-toggle:hover,
  .nav-dropdown.open > .nav-drop-toggle {
    background: rgba(74,103,140,.06);
  }
  .nav-drop-menu {
    background: rgba(74,103,140,.05);
    border: 1px solid rgba(74,103,140,.08);
  }
  .nav-drop-menu a:hover {
    background: rgba(74,103,140,.08);
  }
}

/* -- Badges -- */
.badge-ax { background: rgba(127,179,164,.15); color: var(--ax-navy); }

/* -- Buttons -- */
.btn-ax       { background: var(--ax-grad); color: var(--ax-white); }
.btn-ax:hover { box-shadow: 0 0 24px rgba(127,179,164,.35); transform: translateY(-2px); }
.btn-ghost-ax { background: transparent; border-color: var(--ax-navy); color: var(--ax-navy); }
.btn-ghost-ax:hover { background: var(--ax-navy); color: var(--ax-white); }

/* -- Hero -- */
.hero-ax {
  background: var(--ax-white);
  color: var(--ax-navy);
  border-radius: 0 0 40px 40px;
}
.hero-ax .lead { color: var(--ax-shadow); }

/* -- Cards -- */
.card {
  background: var(--ax-white);
  border-color: rgba(74,103,140,.1);
  color: var(--ax-navy);
}
.card:hover {
  border-color: var(--ax-mint);
  box-shadow: 0 8px 30px rgba(74,103,140,.1);
}
.card p { color: var(--ax-shadow); }

/* -- Steps -- */
.step {
  background: var(--ax-white);
  border-color: rgba(74,103,140,.1);
}
.step::before { background: var(--ax-grad); color: var(--ax-white); }
.step p { color: var(--ax-shadow); }

/* -- Stats -- */
.stat-value {
  background: var(--ax-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -- Pricing -- */
.price-card {
  background: var(--ax-white);
  border-color: rgba(74,103,140,.1);
}
.price-card.featured {
  border-color: var(--ax-mint);
  box-shadow: 0 0 40px rgba(127,179,164,.12);
}
.price-card li::before { color: var(--ax-mint); }

/* -- Testimonials -- */
.testimonial {
  border-left-color: var(--ax-mint);
  background: rgba(74,103,140,.04);
  color: var(--ax-navy);
}

/* -- FAQ -- */
.faq-item { border-bottom: 1px solid rgba(74,103,140,.1); }
.faq-item summary::before { color: var(--ax-mint); }
.faq-item p { color: var(--ax-shadow); }

/* -- Forms -- */
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid rgba(74,103,140,.15);
  background: rgba(74,103,140,.04);
  color: var(--ax-navy);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--ax-mint);
  box-shadow: 0 0 0 3px rgba(127,179,164,.15);
}
.form-card {
  background: var(--ax-white);
  border-color: rgba(74,103,140,.1);
}

/* -- Integrations -- */
.integration-item {
  background: var(--ax-white);
  border-color: rgba(74,103,140,.1);
  color: var(--ax-navy);
}
.integration-item:hover { border-color: var(--ax-mint); }
.integration-item p { color: var(--ax-shadow); }

/* -- Integrations (grouped layout) -- */
.integ-group {
  margin-bottom: 2.5rem;
}
.integ-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ax-navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid rgba(127,179,164,.3);
}
.integ-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.integ-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(74,103,140,.07);
  transition: background .2s ease, transform .2s ease;
  border-radius: 8px;
}
.integ-row:last-child {
  border-bottom: none;
}
.integ-row:hover {
  background: rgba(127,179,164,.06);
  transform: translateX(4px);
}
.integ-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,179,164,.1);
  border-radius: 12px;
}
.integ-content {
  flex: 1;
  min-width: 0;
}
.integ-content h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ax-navy);
  margin-bottom: .25rem;
}
.integ-content p {
  font-size: .85rem;
  color: var(--ax-shadow);
  margin: 0;
  line-height: 1.5;
}
.integ-tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(127,179,164,.12);
  color: var(--ax-mint);
  letter-spacing: .02em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .integ-row {
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem;
  }
  .integ-tag {
    margin-left: auto;
  }
}

/* -- Blog -- */
.blog-card {
  background: var(--ax-white);
  border-color: rgba(74,103,140,.1);
  color: var(--ax-navy);
}
.blog-card:hover { border-color: var(--ax-mint); }
.blog-card .thumb { background: var(--ax-grad); }
.blog-card p { color: var(--ax-shadow); }

/* -- Scroll Integrations -- */
.scroll-integ {
  position: relative;
}
.scroll-slide {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.scroll-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-slide .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 860px;
}
.scroll-card {
  background: var(--ax-white);
  border: 1px solid rgba(74,103,140,.1);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 24px rgba(74,103,140,.06);
  transition: box-shadow .3s ease;
}
.scroll-card:hover {
  box-shadow: 0 8px 40px rgba(74,103,140,.12);
}
.scroll-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.scroll-card-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,179,164,.1);
  border-radius: 14px;
  flex-shrink: 0;
}
.scroll-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ax-navy);
  margin: .25rem 0 0;
}
.scroll-card-header .integ-tag {
  display: inline-block;
  margin-bottom: .15rem;
}
.scroll-card > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ax-shadow);
  margin: 0;
}
.scroll-benefits {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.scroll-benefits li {
  font-size: .92rem;
  color: var(--ax-navy);
  padding-left: 1.6rem;
  position: relative;
  line-height: 1.5;
}
.scroll-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ax-mint);
  font-weight: 700;
}
.scroll-video {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74,103,140,.06), rgba(127,179,164,.08));
  border: 1px solid rgba(74,103,140,.08);
}
.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--ax-navy);
}
.video-placeholder span {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,179,164,.15);
  border-radius: 50%;
  transition: transform .3s ease, background .3s ease;
  cursor: pointer;
}
.video-placeholder span:hover {
  transform: scale(1.1);
  background: rgba(127,179,164,.3);
}
.video-placeholder p {
  font-size: .9rem;
  opacity: .5;
  margin: 0;
}
@media (max-width: 768px) {
  .scroll-slide {
    padding: 1rem 0;
  }
  .scroll-card {
    padding: 1.25rem;
  }
}

/* -- Footer -- */
.site-footer {
  background: var(--ax-navy);
  color: var(--ax-white);
  border-top: none;
}
.footer-grid a { color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: var(--ax-mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }

/* -- Product link badge (link to VintraTech) -- */
.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 800;
  letter-spacing: 2px;
  background: rgba(138,92,245,.1); color: #8A5CF5;
  transition: .25s ease;
}
.product-link:hover { background: rgba(138,92,245,.2); }

/* -- Section bg alt -- */
.section-alt { background: rgba(74,103,140,.04); }

/* ============================================================
   RESPONSIVE — Tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Product link in mobile nav */
  .product-link { font-size: .78rem; padding: 6px 14px; }

  /* Scroll integration */
  .scroll-card { padding: 1.25rem 1.5rem; }
  .scroll-card-header h3 { font-size: 1.15rem; }
  .scroll-card-icon { width: 50px; height: 50px; font-size: 1.8rem; }

  /* Override inline 2-col grids for legal cards in seguridad */
  .cards-grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Contact page two-column layout → single column */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤600px)
   ============================================================ */
@media (max-width: 600px) {
  /* Hero */
  .hero-ax { border-radius: 0 0 20px 20px; }
  .hero-ax .lead { font-size: .92rem; }

  /* Product link */
  .product-link { font-size: .75rem; padding: 5px 12px; font-weight: 700; letter-spacing: 1px; }

  /* Scroll integration */
  .scroll-card { padding: 1rem; }
  .scroll-card-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .scroll-card-header h3 { font-size: 1.05rem; }
  .scroll-card-icon { width: 44px; height: 44px; font-size: 1.5rem; border-radius: 10px; }
  .scroll-card > p { font-size: .9rem; }
  .scroll-benefits li { font-size: .85rem; }

  /* Integration rows */
  .integ-row { padding: .75rem; gap: .5rem; }
  .integ-icon { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 10px; }
  .integ-content h4 { font-size: .88rem; }
  .integ-content p { font-size: .8rem; }
  .integ-group-title { font-size: 1rem; }

  /* Inline 2-col grid override for contact form and legal cards */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  .cards-grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Forms — make them full width */
  .form-group input, .form-group textarea, .form-group select {
    font-size: .9rem;
    padding: 10px 14px;
  }

  /* Price cards */
  .price-card { padding: 24px 20px; }
  .price-card .price { font-size: 1.8rem; }
}

/* ============================================================
   RESPONSIVE — Small mobile (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero-ax { border-radius: 0; }
  .product-link { font-size: .7rem; padding: 4px 10px; letter-spacing: .5px; }
  .scroll-card-icon { width: 38px; height: 38px; font-size: 1.2rem; }
}
