@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;500;600&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400;1,500&family=Nunito+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #F0F7FF;
  --bg-secondary: #E0EEFF;
  --stone-600: #5070A1;
  --stone-800: #2C3E5A;
  --stone-900: #1A2B42;
  --terracotta: #5C92FF;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-medium: 0 8px 32px rgba(44, 62, 90, 0.08);
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, sans-serif;
  --font-brand-acronym: 'IBM Plex Mono', ui-monospace, monospace;
  --plataforma-max: 1200px;
  --plataforma-gutter: clamp(14px, 4vw, 40px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  color: var(--stone-800);
  background: var(--bg-primary);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.nav-soft {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 247, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(136, 165, 214, 0.25);
}

.nav-container {
  max-width: var(--plataforma-max);
  margin: 0 auto;
  padding: 4px var(--plataforma-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand-soft {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-soft .brand-soft.brand-soft-with-tagline {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nav-soft .brand-acronym {
  display: block;
  font-family: var(--font-brand-acronym);
  font-size: clamp(9px, 1.35vw, 11px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--stone-600);
  line-height: 1.3;
  max-width: min(22rem, 52vw);
}

@media (max-width: 520px) {
  .nav-soft .brand-acronym {
    font-size: 8px;
    max-width: 11rem;
    letter-spacing: 0.02em;
  }
}

/* Hasta ~escritorio ancho: ocultar el claim bajo el logo y dar prioridad al menú */
@media (max-width: 1320px) {
  .nav-soft .brand-acronym {
    display: none;
  }
}

.nav-soft .logo-soft {
  height: 52px;
  width: auto;
  max-height: calc(100% - 8px);
  object-fit: contain;
  display: block;
}

.nav-links-soft {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/*
 * Pantallas estrechas / portátiles: el menú ya no comparte fila con la marca.
 * Primera fila: enlaces (centrados); segunda fila: logo dragonSAC centrado (como el hueco del tag en la landing).
 */
@media (max-width: 1320px) {
  .nav-container {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-links-soft {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-self: stretch;
    flex: none;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    row-gap: 10px;
    column-gap: 8px;
    min-width: 0;
  }

  .nav-pill {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .brand-soft {
    order: 2;
    align-self: center;
  }

  .nav-soft .brand-soft.brand-soft-with-tagline {
    align-items: center;
  }

  /* Landing municipal: el logo pasa al hero (hueco del tag), la sticky solo lleva el menú */
  body.page-landing-sac .nav-soft .brand-soft {
    display: none;
  }
}

@media (max-width: 576px) {
  .nav-links-soft {
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-self: stretch;
  }
}

.nav-pill {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--stone-600);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pill:hover {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(136, 165, 214, 0.4);
}

.nav-pill.primary {
  background: var(--terracotta);
  color: #fff;
}

.nav-pill.primary:hover {
  color: #fff;
  filter: brightness(1.05);
  border-color: transparent;
}

.nav-pill.nav-active {
  border-color: rgba(92, 146, 255, 0.55);
  background: rgba(255, 255, 255, 0.85);
  color: var(--stone-900);
}

main {
  width: 100%;
  max-width: var(--plataforma-max);
  margin: 0 auto;
  padding: 42px 40px 72px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main {
    padding: 24px 12px 48px;
  }
}

.page-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  color: var(--stone-900);
  line-height: 1.2;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.12rem;
  color: var(--stone-800);
  margin-bottom: 40px;
}

main > h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--stone-900);
  margin: 40px 0 14px;
}

main > h2:first-of-type {
  margin-top: 28px;
}

p {
  margin-bottom: 14px;
}

ul {
  margin: 12px 0 18px 1.25rem;
}

li {
  margin-bottom: 8px;
}

.highlight-box {
  margin: 28px 0;
  padding: clamp(18px, 2.5vw, 24px) clamp(16px, 2.5vw, 28px);
  background: linear-gradient(135deg, #fff 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(136, 165, 214, 0.35);
  box-shadow: var(--shadow-medium);
}

.highlight-box h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.highlight-box h3.datatool-subheading {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--stone-800);
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.cta-row {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(136, 165, 214, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--terracotta);
  color: #fff;
  transition: filter 0.2s;
}

.btn-cta:hover {
  filter: brightness(1.06);
}

.btn-cta.outline {
  background: #fff;
  color: var(--stone-800);
  border: 1px solid rgba(136, 165, 214, 0.5);
}

.btn-cta.outline:hover {
  filter: none;
  border-color: var(--terracotta);
  color: var(--terracotta);
}

footer.site-footer-marketing {
  text-align: center;
  padding: 24px var(--plataforma-gutter) 40px;
  font-size: 0.85rem;
  color: var(--stone-600);
  max-width: var(--plataforma-max);
  margin: 0 auto;
}

footer.site-footer-marketing a {
  color: var(--stone-600);
}

.faq-item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(136, 165, 214, 0.28);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h2 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 10px;
  line-height: 1.35;
}

.faq-item p {
  margin-bottom: 0;
}
