:root {
  --primary: #2563eb;
  --primary-dark: #0a1f44;
  --secondary: #64748b;
  --bg: #f8fafc;
  --text: #1e293b;
  --accent: #ff7a00;
  --success: #22c55e;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 31, 68, 0.12);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding: 0.625rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-link img.logo-full {
  height: 68px;
  width: auto;
  display: block;
}

.logo-link img.logo-compact {
  display: none;
  height: 32px;
  width: 32px;
}

.logo-compact-text {
  display: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.logo-link .logo-wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.brand-divider {
  display: none;
  flex-shrink: 0;
  width: 1px;
  height: 30px;
  margin-inline: 0.875rem;
  background: rgba(100, 116, 139, 0.35);
}

.brand-descriptor {
  display: none;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1;
}

@media (min-width: 768px) {
  .brand-divider,
  .brand-descriptor {
    display: block;
  }
}

/* Billing toggle Mensual / Anual */
.billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(15, 76, 129, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.1);
}

.billing-toggle button {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.billing-toggle button.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 1px 4px rgba(15, 76, 129, 0.12);
}

.billing-toggle-hint {
  font-size: 0.8125rem;
  color: var(--secondary);
}

.expansion-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.expansion-banner strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.pricing-nav-links {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.pricing-nav-links a {
  font-weight: 600;
}

.price-card .amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.price-card .price-suffix {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  color: var(--secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a.active {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #1d4ed8;
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: #e56e00;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.2);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(15, 76, 129, 0.06);
  color: var(--primary-dark);
}

.header-actions .btn-ghost.active {
  color: var(--primary-dark);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-actions .btn {
  flex: 1 1 auto;
  min-width: fit-content;
}

@media (min-width: 480px) {
  .card-actions--row .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.25rem 0 1.25rem;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a:not(.btn) {
  padding: 0.75rem 0;
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  border-bottom: 1px solid rgba(15, 76, 129, 0.06);
}

.nav-mobile a:not(.btn):hover {
  color: var(--primary);
}

.nav-mobile a:not(.btn).active {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.nav-mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 52px;
    padding: 0.375rem 0;
    gap: 0.5rem;
  }

  .logo-link img.logo-full {
    display: none !important;
  }

  .logo-link img.logo-compact {
    display: block;
  }

  .logo-compact-text {
    display: block;
  }

  /* Barra móvil: isotipo + nombre + menú; CTAs en el drawer */
  .site-header .header-actions a.header-cta-desktop {
    display: none !important;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(15, 76, 129, 0.06);
    outline: none;
  }
}

@media (min-width: 768px) {
  .logo-link img.logo-compact {
    display: none !important;
  }

  .logo-compact-text {
    display: none !important;
  }

  .nav-mobile-cta {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 1rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--secondary);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--secondary);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 76, 129, 0.06);
}

.section-alt .card {
  background: var(--bg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--primary-dark);
}

.card p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.9375rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 76, 129, 0.08);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: rgba(15, 76, 129, 0.04);
  border-color: rgba(15, 76, 129, 0.18);
  box-shadow: none;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  color: var(--primary-dark);
}

.price-card .plan-for {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-card .amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--secondary);
}

.price-card li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}


/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0;
  background: var(--white);
  border-bottom: 1px solid rgba(15, 76, 129, 0.06);
}

.page-hero--tight {
  padding-bottom: 1rem;
}

.section--tight-top {
  padding-top: 1.25rem;
}

.section--tight-top .prose > h2:first-child {
  margin-top: 0;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--primary-dark);
}

.page-hero p {
  margin: 0;
  color: var(--secondary);
  max-width: 40rem;
  line-height: 1.6;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 1.25rem 0 0.375rem;
}

.prose h2 + h3 {
  margin-top: 0.875rem;
}

.prose p,
.prose li {
  color: var(--secondary);
}

.prose ul {
  padding-left: 1.25rem;
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(15, 76, 129, 0.2);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.75rem 0 0;
  margin-top: 3rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 0.85fr 0.85fr 1.1fr;
    gap: 1.5rem;
  }
}

.footer-brand {
  max-width: 18rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.footer-logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.1;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-logo-descriptor {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.85);
}

.footer-slogan {
  margin: 0 0 0.375rem;
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.footer-tagline .footer-domain {
  display: block;
  margin-top: 0.375rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-tagline .footer-domain:hover {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-heading {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.375rem;
}

.footer-links a,
.footer-cta-text a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:focus-visible,
.footer-logo:focus-visible,
.btn-footer-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.footer-col--legal-group {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) and (max-width: 959px) {
  .footer-col--legal-group {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.footer-cta-text {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-footer-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy,
.footer-meta {
  margin: 0;
}

@media (max-width: 639px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

.slogan {
  font-style: italic;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}
