/**
 * Landings SEO (módulos, blog, comparativas). Cargar después de Bootstrap + styles.css.
 */
body.seo-subpage {
  --sp-primary: #6366f1;
  --sp-text: #374151;
  --sp-radius: 12px;
  padding-top: 76px;
}

.sp-navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sp-navbar-brand {
  color: #111827 !important;
}

.sp-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.sp-nav-cta {
  border-radius: 8px;
  font-weight: 600;
}

body.seo-subpage .seo-main {
  min-height: 60vh;
}

body.seo-subpage .seo-identity-box {
  background: #f3f4f6;
  border-left: 4px solid var(--sp-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
  max-width: 900px;
}

body.seo-subpage .seo-identity-box p {
  margin: 0;
  line-height: 1.65;
  color: var(--sp-text);
}

body.seo-subpage .seo-section {
  padding: 3.5rem 0;
}

body.seo-subpage .seo-section-alt {
  background: #f9fafb;
}

body.seo-subpage .seo-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

body.seo-subpage .seo-benefit-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--sp-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.seo-subpage .seo-benefit-card h2,
body.seo-subpage .seo-benefit-card h3 {
  margin-top: 0;
  color: var(--sp-primary);
  font-size: 1.15rem;
}

body.seo-subpage .seo-faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

body.seo-subpage .seo-faq-item:last-child {
  border-bottom: none;
}

body.seo-subpage .seo-faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #4f46e5;
}

body.seo-subpage .seo-cta-final {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.08));
  border-radius: var(--sp-radius);
  margin: 3rem 0;
}

body.seo-subpage .comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--sp-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.seo-subpage .comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}

body.seo-subpage .comparison-table th,
body.seo-subpage .comparison-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

body.seo-subpage .comparison-table thead th {
  background: #f3f4f6;
  font-weight: 700;
}

body.seo-subpage .sp-hero-subpage {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

body.seo-subpage .sp-hero-subpage h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

body.seo-subpage .article-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.seo-subpage .article-prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

body.seo-subpage .article-prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

body.seo-subpage .sp-site-footer a {
  color: inherit;
  text-decoration: none;
}

body.seo-subpage .sp-site-footer a:hover {
  text-decoration: underline;
  color: var(--sp-primary);
}

body.seo-subpage .btn-primary {
  background: var(--sp-primary);
  border-color: var(--sp-primary);
}

body.seo-subpage .btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

/* Precios */
body.seo-subpage .sp-pricing-hero-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 2rem 0 1rem;
}

body.seo-subpage .sp-pricing-pill {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sp-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.seo-subpage .sp-pricing-pill strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

body.seo-subpage .sp-pricing-pill span {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.45;
}

body.seo-subpage .sp-pricing-callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--sp-radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

body.seo-subpage .sp-pricing-callout h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #1f2937;
}

body.seo-subpage .sp-pricing-callout ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: #374151;
  line-height: 1.65;
}

body.seo-subpage .sp-pricing-calc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  max-width: 420px;
  margin: 1.5rem 0;
}

body.seo-subpage .sp-pricing-calc label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
}

body.seo-subpage .sp-pricing-calc .sp-pricing-big {
  font-size: 1.75rem;
  font-weight: 800;
  color: #4f46e5;
  margin-top: 0.75rem;
}

body.seo-subpage .sp-pricing-process-list {
  display: grid;
  gap: 0.5rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

body.seo-subpage .sp-pricing-process-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
}

body.seo-subpage .sp-pricing-process-list a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

body.seo-subpage .sp-pricing-process-list a:hover {
  text-decoration: underline;
}

body.seo-subpage .sp-pricing-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  line-height: 1.55;
}

/* Precios — layout estilo SaaS (tarjetas + toggles) */
body.seo-subpage .sp-page-precios .sp-hero-precios {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

body.seo-subpage .sp-page-precios .sp-hero-precios .lead a {
  color: var(--sp-primary);
  font-weight: 600;
}

body.seo-subpage .sp-pricing-controls-section {
  padding: 1.75rem 0 0.5rem;
  background: #fff;
}

body.seo-subpage .sp-price-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1.75rem 2.5rem;
  margin-bottom: 0.75rem;
}

body.seo-subpage .sp-price-toolbar--single {
  justify-content: center;
  margin-bottom: 0;
}

body.seo-subpage .sp-igv-disclaimer {
  max-width: 640px;
  margin: 1.25rem auto 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

body.seo-subpage .sp-price-toggle-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

body.seo-subpage .sp-price-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

body.seo-subpage .sp-price-segment {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  padding: 4px;
  border-radius: 12px;
  gap: 2px;
}

body.seo-subpage .sp-price-segment input.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.seo-subpage .sp-price-segment-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0;
  border: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

body.seo-subpage .sp-price-segment input:focus-visible + .sp-price-segment-btn {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

body.seo-subpage .sp-price-segment input:checked + .sp-price-segment-btn {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.seo-subpage .sp-badge-hot {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: #e11d48;
  border-radius: 999px;
  vertical-align: middle;
}

body.seo-subpage .sp-price-fx-note {
  padding-bottom: 0.5rem;
}

body.seo-subpage .sp-pricing-cards-section {
  padding: 2rem 0 3.5rem;
  background: #f3f4f6;
}

body.seo-subpage .sp-price-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  body.seo-subpage .sp-price-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  body.seo-subpage .sp-price-card--featured {
    order: -1;
  }
}

body.seo-subpage .sp-price-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.seo-subpage .sp-price-card:hover {
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.12);
}

body.seo-subpage .sp-price-card--featured {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18);
  transform: scale(1.02);
  z-index: 1;
}

@media (max-width: 991px) {
  body.seo-subpage .sp-price-card--featured {
    transform: none;
  }
}

body.seo-subpage .sp-price-card__ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  width: 140px;
  text-align: center;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
  pointer-events: none;
}

body.seo-subpage .sp-price-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

body.seo-subpage .sp-price-card__tagline {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  min-height: 2.6rem;
}

body.seo-subpage .sp-price-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.35rem;
}

body.seo-subpage .sp-price-card__amount {
  font-size: 2rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1;
}

body.seo-subpage .sp-price-card__period {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}

body.seo-subpage .sp-price-card__hint {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.4;
  margin: 0 0 1.25rem;
  min-height: 2.5rem;
}

body.seo-subpage .sp-price-card__divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

body.seo-subpage .sp-price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

body.seo-subpage .sp-price-card__features li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

body.seo-subpage .sp-price-card__features li i {
  color: #4f46e5;
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

body.seo-subpage .sp-price-card__cta {
  margin-top: auto;
  border-radius: 10px;
  font-weight: 600;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

body.seo-subpage .sp-impl-banner {
  max-width: 1120px;
  margin: 2rem auto 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

body.seo-subpage .sp-pricing-process-list--boxed {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--sp-radius);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Precios: referencia en soles (PyME) */
body.seo-subpage .sp-price-card__pen {
  text-align: center;
  margin: 0.35rem 0 0.25rem;
}
body.seo-subpage .sp-pen-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
body.seo-subpage .sp-pen-footnote {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}
body.seo-subpage .sp-impl-pen {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f766e;
  margin-top: 0.35rem;
}

/* Blog índice: cards */
body.seo-subpage .sp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
body.seo-subpage .sp-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--sp-radius);
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body.seo-subpage .sp-blog-card:hover {
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.12);
  transform: translateY(-3px);
  color: inherit;
}
body.seo-subpage .sp-blog-card-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  position: relative;
}
body.seo-subpage .sp-blog-card-cover--tributario {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
body.seo-subpage .sp-blog-card-cover--produccion {
  background: linear-gradient(135deg, #0369a1, #0d9488);
}
body.seo-subpage .sp-blog-card-cover--gestion {
  background: linear-gradient(135deg, #b45309, #ea580c);
}
body.seo-subpage .sp-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem 0;
  font-size: 0.8rem;
  color: #6b7280;
}
body.seo-subpage .sp-blog-card-category {
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
}
body.seo-subpage .sp-blog-card-body {
  padding: 0.5rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
body.seo-subpage .sp-blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: #111827;
}
body.seo-subpage .sp-blog-card-excerpt {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}
body.seo-subpage .sp-blog-card-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: #4f46e5;
}
