/*
 * Nexora — pages.css
 * Estilos para páginas interiores: About, Servicios, Contacto, Blog, Legal
 * ──────────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════
   0. PAGE HERO (compartido por todas las páginas)
═══════════════════════════════════════════════════ */
.page-hero {
  padding: 100px 28px 72px;
  background: linear-gradient(160deg, var(--nx-primary-bg, #F0F0FF) 0%, #fff 60%);
  border-bottom: 1.5px solid var(--nx-border, #E5E7EB);
  text-align: center;
}
.page-hero--compact { padding: 72px 28px 48px; }

.page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.page-hero-inner h1 {
  font-family: var(--nx-font-h, 'Inter', sans-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--nx-ink, #0F0F1A);
  margin: 16px 0 20px;
  line-height: 1.1;
}
.page-hero-inner p {
  font-size: 18px;
  color: var(--nx-muted, #6B7280);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-hero-inner .nx-badge { margin: 0 auto 16px; }

/* ── gradient text helper ── */
.gradient-text {
  background: linear-gradient(135deg, var(--nx-primary, #5B5CFF) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── section title ── */
.section-title {
  font-family: var(--nx-font-h, 'Inter', sans-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--nx-ink, #0F0F1A);
  margin: 16px 0 0;
  line-height: 1.15;
}

/* ═══════════════════════════════════════════════════
   1. ABOUT — Stats
═══════════════════════════════════════════════════ */
.about-stats {
  padding: 72px 28px;
  background: var(--nx-bg-gray, #F9FAFB);
  border-bottom: 1.5px solid var(--nx-border, #E5E7EB);
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.about-stat-card {
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.about-stat-card:hover { box-shadow: 0 8px 32px rgba(91,92,255,.10); border-color: var(--nx-primary, #5B5CFF); }
.about-stat-num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--nx-primary, #5B5CFF) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.about-stat-label {
  font-size: 14px;
  color: var(--nx-muted, #6B7280);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   1b. ABOUT — Mission
═══════════════════════════════════════════════════ */
.about-mission { padding: 80px 28px; }
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-mission-text { color: var(--nx-muted, #6B7280); line-height: 1.8; }

/* ═══════════════════════════════════════════════════
   1c. ABOUT — Team
═══════════════════════════════════════════════════ */
.about-team {
  padding: 80px 28px;
  background: var(--nx-bg-gray, #F9FAFB);
}
.about-team-header { text-align: center; margin-bottom: 48px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.team-card {
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(91,92,255,.10); border-color: var(--nx-primary, #5B5CFF); }
.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--nx-primary-bg, #F0F0FF);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--nx-primary, #5B5CFF);
}
.team-name { font-size: 18px; font-weight: 800; color: var(--nx-ink, #0F0F1A); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--nx-primary, #5B5CFF); font-weight: 600; margin-bottom: 12px; }
.team-bio  { font-size: 14px; color: var(--nx-muted, #6B7280); line-height: 1.6; margin-bottom: 16px; }
.team-linkedin a { font-size: 13px; font-weight: 600; color: var(--nx-primary, #5B5CFF); text-decoration: none; }
.team-linkedin a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   2. SERVICIOS — Cards
═══════════════════════════════════════════════════ */
.services-grid { padding: 80px 28px; }
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(91,92,255,.12); border-color: var(--nx-primary, #5B5CFF); transform: translateY(-4px); }
.service-card.featured {
  border-color: var(--nx-primary, #5B5CFF);
  box-shadow: 0 8px 32px rgba(91,92,255,.15);
  background: linear-gradient(160deg, #F0F0FF 0%, #fff 60%);
}
.service-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nx-primary, #5B5CFF);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.service-icon { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.service-title { font-size: 20px; font-weight: 800; color: var(--nx-ink, #0F0F1A); }
.service-price { font-size: 16px; font-weight: 700; color: var(--nx-primary, #5B5CFF); }
.service-desc  { font-size: 14px; color: var(--nx-muted, #6B7280); line-height: 1.65; flex-grow: 1; }
.service-features { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.service-features li {
  font-size: 14px;
  color: var(--nx-medium, #3D3D5C);
  padding-left: 24px;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--nx-primary-bg, #F0F0FF);
  border-radius: 50%;
  border: 2px solid var(--nx-primary, #5B5CFF);
}

/* ── CTA final (páginas servicios / about) ── */
.cta-final { padding: 80px 28px; background: var(--nx-bg-gray, #F9FAFB); }
.cta-final-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-final-inner h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; letter-spacing: -.03em; color: var(--nx-ink, #0F0F1A); margin: 0; }
.cta-final-inner p  { font-size: 16px; color: var(--nx-muted, #6B7280); max-width: 480px; margin: 0; }
.cta-disclaimer     { font-size: 12px !important; color: var(--nx-xmuted, #9CA3AF) !important; margin: 0 !important; }

/* ═══════════════════════════════════════════════════
   3. CONTACTO
═══════════════════════════════════════════════════ */
.contact-section { padding: 80px 28px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Info */
.contact-info-header { margin-bottom: 36px; }
.contact-info-title {
  font-family: var(--nx-font-h, 'Inter', sans-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--nx-ink, #0F0F1A);
  margin: 12px 0 12px;
  line-height: 1.15;
}
.contact-info-sub { font-size: 15px; color: var(--nx-muted, #6B7280); line-height: 1.65; margin: 0; }

.contact-channels { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-channel-card:hover { border-color: var(--nx-primary, #5B5CFF); box-shadow: 0 4px 16px rgba(91,92,255,.08); }
.contact-channel-icon {
  width: 44px;
  height: 44px;
  background: var(--nx-primary-bg, #F0F0FF);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-primary, #5B5CFF);
  flex-shrink: 0;
}
.contact-channel-icon svg { width: 20px; height: 20px; }
.contact-channel-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nx-xmuted, #9CA3AF); margin-bottom: 2px; }
.contact-channel-value { font-size: 15px; font-weight: 600; color: var(--nx-ink, #0F0F1A); text-decoration: none; }
a.contact-channel-value:hover { color: var(--nx-primary, #5B5CFF); }

.contact-social { border-top: 1.5px solid var(--nx-border, #E5E7EB); padding-top: 24px; }
.contact-social-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nx-xmuted, #9CA3AF); margin-bottom: 12px; }
.contact-social-links { display: flex; gap: 10px; }
.contact-social-btn {
  width: 40px; height: 40px;
  background: var(--nx-primary-bg, #F0F0FF);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nx-primary, #5B5CFF);
  transition: background .2s, color .2s, transform .15s;
}
.contact-social-btn svg { width: 18px; height: 18px; }
.contact-social-btn:hover { background: var(--nx-primary, #5B5CFF); color: #fff; transform: translateY(-2px); }

/* Formulario */
.contact-form-card {
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(15,15,26,.06);
}
.contact-form-header { margin-bottom: 28px; }
.contact-form-header h3 { font-size: 22px; font-weight: 800; color: var(--nx-ink, #0F0F1A); margin: 0 0 6px; }
.contact-form-header p  { font-size: 14px; color: var(--nx-muted, #6B7280); margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-field { display: flex; flex-direction: column; gap: 6px; }
.contact-form-field label { font-size: 13px; font-weight: 600; color: var(--nx-medium, #3D3D5C); }
.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 10px;
  font-size: 14px;
  color: var(--nx-ink, #0F0F1A);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-sizing: border-box;
}
.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--nx-primary, #5B5CFF);
  box-shadow: 0 0 0 3px rgba(91,92,255,.12);
}
.contact-form-field textarea { resize: vertical; min-height: 140px; }
.contact-form-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.contact-form-privacy { flex-direction: row; align-items: flex-start; }
.contact-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--nx-muted, #6B7280); line-height: 1.5; }
.contact-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--nx-primary, #5B5CFF); }
.contact-checkbox-label a { color: var(--nx-primary, #5B5CFF); }

.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--nx-primary, #5B5CFF);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-family: inherit;
}
.contact-submit-btn:hover { background: var(--nx-primary-h, #4a4bef); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,92,255,.30); }

.contact-error {
  padding: 14px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  font-size: 14px;
  color: #B91C1C;
  margin-bottom: 4px;
}
.contact-success {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-success-icon {
  width: 64px; height: 64px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #059669;
}
.contact-success-icon svg { width: 32px; height: 32px; }
.contact-success h4 { font-size: 22px; font-weight: 800; color: var(--nx-ink, #0F0F1A); margin: 0; }
.contact-success p  { font-size: 15px; color: var(--nx-muted, #6B7280); margin: 0; }

/* FAQ */
.contact-faq { padding: 80px 28px; background: var(--nx-bg-gray, #F9FAFB); }
.contact-faq-header { text-align: center; margin-bottom: 48px; }
.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-faq-item {
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 16px;
  padding: 24px;
  transition: border-color .2s;
}
.contact-faq-item:hover { border-color: var(--nx-primary, #5B5CFF); }
.contact-faq-q { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 700; color: var(--nx-ink, #0F0F1A); margin-bottom: 10px; line-height: 1.4; }
.contact-faq-a { font-size: 14px; color: var(--nx-muted, #6B7280); line-height: 1.65; }

/* ═══════════════════════════════════════════════════
   4. BLOG
═══════════════════════════════════════════════════ */
.blog-section { padding: 64px 28px 96px; }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}
.blog-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-medium, #3D3D5C);
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.blog-filter-btn:hover,
.blog-filter-btn.is-active {
  border-color: var(--nx-primary, #5B5CFF);
  background: var(--nx-primary-bg, #F0F0FF);
  color: var(--nx-primary, #5B5CFF);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 12px 40px rgba(91,92,255,.10); border-color: var(--nx-primary, #5B5CFF); transform: translateY(-4px); }

.blog-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--nx-primary-bg, #F0F0FF);
}
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img { transform: scale(1.04); }

.nx-img--placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.nx-img--placeholder svg { width: 60px; height: 60px; }

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--nx-primary, #5B5CFF);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nx-xmuted, #9CA3AF); }
.blog-card-sep  { color: var(--nx-border, #E5E7EB); }
.blog-card-title { font-size: 18px; font-weight: 800; color: var(--nx-ink, #0F0F1A); line-height: 1.35; margin: 0; }
.blog-card-title a { text-decoration: none; color: inherit; transition: color .2s; }
.blog-card-title a:hover { color: var(--nx-primary, #5B5CFF); }
.blog-card-excerpt { font-size: 14px; color: var(--nx-muted, #6B7280); line-height: 1.6; flex-grow: 1; margin: 0; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1.5px solid var(--nx-border, #E5E7EB); margin-top: auto; }
.blog-card-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--nx-medium, #3D3D5C); }
.blog-card-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.blog-card-link { font-size: 13px; font-weight: 700; color: var(--nx-primary, #5B5CFF); text-decoration: none; transition: letter-spacing .15s; }
.blog-card-link:hover { letter-spacing: .02em; }

.blog-pagination { display: flex; gap: 8px; justify-content: center; padding-top: 48px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--nx-medium, #3D3D5C);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  border-color: var(--nx-primary, #5B5CFF);
  color: var(--nx-primary, #5B5CFF);
  background: var(--nx-primary-bg, #F0F0FF);
}

.blog-empty {
  text-align: center;
  padding: 80px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.blog-empty-icon { font-size: 64px; opacity: .4; }
.blog-empty h3   { font-size: 24px; font-weight: 800; color: var(--nx-ink, #0F0F1A); margin: 0; }
.blog-empty p    { font-size: 15px; color: var(--nx-muted, #6B7280); margin: 0; }

/* ═══════════════════════════════════════════════════
   5. LEGAL / PRIVACIDAD
═══════════════════════════════════════════════════ */
.legal-last-updated { font-size: 13px !important; color: var(--nx-xmuted, #9CA3AF) !important; margin-top: 12px !important; }

.legal-section { padding: 64px 28px 96px; }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

/* Table of contents */
.legal-toc-inner {
  position: sticky;
  top: calc(var(--nx-nav-h, 68px) + 24px);
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 16px;
  padding: 20px;
}
.legal-toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--nx-xmuted, #9CA3AF); margin-bottom: 12px; }
.legal-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.legal-toc-list li a { display: block; font-size: 13px; font-weight: 500; color: var(--nx-muted, #6B7280); text-decoration: none; padding: 6px 8px; border-radius: 8px; transition: color .15s, background .15s; line-height: 1.4; }
.legal-toc-list li a:hover,
.legal-toc-list li a.is-active { color: var(--nx-primary, #5B5CFF); background: var(--nx-primary-bg, #F0F0FF); }
.legal-toc-sub a { padding-left: 20px !important; font-size: 12px !important; }

/* Contenido legal */
.legal-content h2 { font-size: 22px; font-weight: 800; color: var(--nx-ink, #0F0F1A); margin: 40px 0 16px; padding-top: 8px; }
.legal-content h3 { font-size: 18px; font-weight: 700; color: var(--nx-ink, #0F0F1A); margin: 28px 0 12px; }
.legal-content p  { font-size: 15px; color: var(--nx-medium, #3D3D5C); line-height: 1.75; margin: 0 0 16px; }
.legal-content ul,
.legal-content ol { font-size: 15px; color: var(--nx-medium, #3D3D5C); line-height: 1.75; margin: 0 0 16px; padding-left: 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a  { color: var(--nx-primary, #5B5CFF); }
.legal-content strong { color: var(--nx-ink, #0F0F1A); font-weight: 700; }
.legal-content blockquote {
  border-left: 4px solid var(--nx-primary, #5B5CFF);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--nx-primary-bg, #F0F0FF);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--nx-medium, #3D3D5C);
}
.legal-content hr { border: none; border-top: 1.5px solid var(--nx-border, #E5E7EB); margin: 32px 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.legal-content th { background: var(--nx-bg-gray, #F9FAFB); font-weight: 700; padding: 10px 14px; border: 1px solid var(--nx-border, #E5E7EB); text-align: left; }
.legal-content td { padding: 10px 14px; border: 1px solid var(--nx-border, #E5E7EB); color: var(--nx-medium, #3D3D5C); }

.legal-cta { padding: 48px 28px; border-top: 1.5px solid var(--nx-border, #E5E7EB); }
.legal-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.legal-cta-inner p { font-size: 15px; color: var(--nx-muted, #6B7280); margin: 0; }

/* ═══════════════════════════════════════════════════
   BOTONES (helpers si main.css no los incluye)
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary, .btn-gold {
  background: var(--nx-primary, #5B5CFF);
  color: #fff;
  border-color: var(--nx-primary, #5B5CFF);
}
.btn-primary:hover, .btn-gold:hover {
  background: var(--nx-primary-h, #4a4bef);
  border-color: var(--nx-primary-h, #4a4bef);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,92,255,.30);
}
.btn-outline {
  background: transparent;
  color: var(--nx-medium, #3D3D5C);
  border-color: var(--nx-border, #E5E7EB);
}
.btn-outline:hover {
  border-color: var(--nx-primary, #5B5CFF);
  color: var(--nx-primary, #5B5CFF);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   ANIMACIONES FADE-UP
═══════════════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-cards   { grid-template-columns: repeat(2, 1fr); }
  .blog-grid        { grid-template-columns: repeat(2, 1fr); }
  .legal-layout     { grid-template-columns: 1fr; }
  .legal-toc-inner  { position: static; }
}

@media (max-width: 768px) {
  .page-hero            { padding: 72px 20px 52px; }
  .page-hero-inner h1   { font-size: 28px; }
  .page-hero-inner p    { font-size: 15px; }

  .about-stats          { padding: 48px 20px; }
  .about-stats-grid     { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-stat-num       { font-size: 28px; }
  .about-mission        { padding: 48px 20px; }
  .about-mission-grid   { grid-template-columns: 1fr; gap: 32px; }
  .about-team           { padding: 48px 20px; }
  .team-grid            { grid-template-columns: 1fr; }

  .services-grid        { padding: 48px 20px; }
  .services-cards       { grid-template-columns: 1fr; }

  .contact-section      { padding: 48px 20px; }
  .contact-grid         { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-card    { padding: 24px 20px; }
  .contact-form-row     { grid-template-columns: 1fr; }
  .contact-faq          { padding: 48px 20px; }
  .contact-faq-grid     { grid-template-columns: 1fr; }

  .blog-section         { padding: 48px 20px 64px; }
  .blog-grid            { grid-template-columns: 1fr; }

  .legal-section        { padding: 40px 20px 64px; }

  .cta-final            { padding: 48px 20px; }
}

/* ═══════════════════════════════════════════════════
   6. SERVICIOS (template-services.php)
═══════════════════════════════════════════════════ */
.srv-section {
  padding: 80px 28px;
}
.srv-section--alt {
  background: var(--nx-surface, rgba(255,255,255,.03));
  border-top: 1px solid var(--nx-border, rgba(255,255,255,.08));
  border-bottom: 1px solid var(--nx-border, rgba(255,255,255,.08));
}
.srv-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.srv-section-sub {
  font-size: 16px;
  color: var(--nx-muted, #6B7280);
  line-height: 1.7;
  margin: 16px 0 0;
}

/* Grid de cards */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.srv-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 20px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.srv-card:hover {
  box-shadow: 0 12px 40px rgba(91,92,255,.10);
  border-color: var(--nx-primary, #5B5CFF);
  transform: translateY(-4px);
}
.srv-card--featured {
  border-color: var(--nx-primary, #5B5CFF);
  box-shadow: 0 8px 32px rgba(91,92,255,.14);
  background: linear-gradient(160deg, #F0F0FF 0%, #fff 55%);
}
.srv-card--featured:hover {
  box-shadow: 0 16px 48px rgba(91,92,255,.20);
}

.srv-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nx-primary, #5B5CFF);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .04em;
}

.srv-card-icon {
  width: 52px;
  height: 52px;
  background: var(--nx-primary-bg, #F0F0FF);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-primary, #5B5CFF);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.srv-card-icon svg { width: 24px; height: 24px; }

.srv-card-body { flex: 1; }
.srv-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--nx-ink, #0F0F1A);
  margin: 0 0 8px;
  line-height: 1.3;
}
.srv-card-price {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-primary, #5B5CFF);
  background: var(--nx-primary-bg, #F0F0FF);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.srv-card-desc {
  font-size: 14px;
  color: var(--nx-muted, #6B7280);
  line-height: 1.65;
  margin: 0 0 24px;
}
.srv-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-medium, #3D3D5C);
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 10px;
  transition: border-color .2s, color .2s, background .2s;
  align-self: flex-start;
  margin-top: auto;
}
.srv-card-cta:hover {
  border-color: var(--nx-primary, #5B5CFF);
  color: var(--nx-primary, #5B5CFF);
}
.srv-card-cta--primary {
  background: var(--nx-primary, #5B5CFF);
  color: #fff;
  border-color: var(--nx-primary, #5B5CFF);
}
.srv-card-cta--primary:hover {
  background: var(--nx-primary-h, #4a4bef);
  border-color: var(--nx-primary-h, #4a4bef);
  color: #fff;
}

/* ── Proceso ── */
.srv-process {
  padding: 80px 28px;
  background: var(--nx-bg-gray, #F9FAFB);
}
.srv-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.srv-step {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.srv-step:hover {
  border-color: var(--nx-primary, #5B5CFF);
  box-shadow: 0 8px 24px rgba(91,92,255,.08);
}
.srv-step-num {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--nx-primary, #5B5CFF) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.srv-step-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--nx-ink, #0F0F1A);
  margin-bottom: 8px;
}
.srv-step-desc {
  font-size: 14px;
  color: var(--nx-muted, #6B7280);
  line-height: 1.6;
}

/* ── Why us ── */
.srv-why { padding: 80px 28px; }
.srv-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}
.srv-why-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.srv-reason {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--nx-border, #E5E7EB);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.srv-reason:hover {
  border-color: var(--nx-primary, #5B5CFF);
  box-shadow: 0 4px 16px rgba(91,92,255,.08);
}
.srv-reason-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.srv-reason-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--nx-ink, #0F0F1A);
  margin-bottom: 4px;
}
.srv-reason-desc {
  font-size: 13px;
  color: var(--nx-muted, #6B7280);
  line-height: 1.6;
}

/* ── Responsive servicios ── */
@media (max-width: 1024px) {
  .srv-grid  { grid-template-columns: repeat(2, 1fr); }
  .srv-steps { grid-template-columns: repeat(2, 1fr); }
  .srv-why-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .srv-section  { padding: 48px 20px; }
  .srv-process  { padding: 48px 20px; }
  .srv-why      { padding: 48px 20px; }
  .srv-grid     { grid-template-columns: 1fr; }
  .srv-steps    { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   LANDING DE SERVICIO — Hero
══════════════════════════════════════════════════ */
.nx-landing-hero {
  padding: 96px 0 72px; text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, var(--nx-primary-bg, #F0F0FF) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--nx-bg-gray, #F9FAFB) 100%);
}
.nx-landing-hero-inner { max-width: 780px; margin: 0 auto; }
.nx-landing-hero-inner .nx-badge { margin: 0 auto 20px; }
.nx-landing-title {
  font-size: 46px; font-weight: 800; line-height: 1.12;
  letter-spacing: -1.4px; color: var(--nx-ink); margin-bottom: 18px;
}
.nx-landing-sub {
  font-size: 18px; color: var(--nx-muted); line-height: 1.7;
  max-width: 620px; margin: 0 auto 30px;
}
.nx-landing-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nx-landing-hero-trust {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px; font-size: 13.5px; color: var(--nx-muted); font-weight: 500;
}

/* ══════════════════════════════════════════════════
   NX-PROSE — Tipografía para contenido de páginas/landings
══════════════════════════════════════════════════ */
.nx-landing-article { padding: 64px 0 8px; }
.nx-prose { max-width: 740px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--nx-medium, #3D3D5C); }

.nx-prose > * + * { margin-top: 1.15em; }

/* Si el contenido trae un h1, se degrada visualmente a h2 (el H1 real es el título del hero) */
.nx-prose h1, .nx-prose h2 {
  font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.8px;
  color: var(--nx-ink); margin-top: 1.9em; margin-bottom: .5em;
}
.nx-prose h2::after {
  content: ''; display: block; width: 44px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--nx-primary), var(--nx-primary-bg, #F0F0FF));
  margin-top: 12px;
}
.nx-prose h3 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: var(--nx-ink); margin-top: 1.7em; margin-bottom: .4em; }
.nx-prose h4 { font-size: 17px; font-weight: 700; color: var(--nx-ink); margin-top: 1.5em; }
.nx-prose > :first-child { margin-top: 0; }

.nx-prose strong { color: var(--nx-ink); font-weight: 700; }
.nx-prose a { color: var(--nx-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nx-primary-bg, #F0F0FF); text-underline-offset: 3px; }
.nx-prose a:hover { text-decoration-color: var(--nx-primary); }

.nx-prose ul, .nx-prose ol { padding-left: 4px; }
.nx-prose ul li, .nx-prose ol li { margin: .55em 0; padding-left: 30px; position: relative; list-style: none; }
.nx-prose ul li::before {
  content: ''; position: absolute; left: 0; top: .38em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--nx-primary-bg, #F0F0FF) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5CFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
.nx-prose ol { counter-reset: nxol; }
.nx-prose ol li { counter-increment: nxol; }
.nx-prose ol li::before {
  content: counter(nxol); position: absolute; left: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 50%; background: var(--nx-primary);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.nx-prose blockquote {
  border-left: 4px solid var(--nx-primary); background: var(--nx-primary-bg, #F0F0FF);
  padding: 18px 22px; border-radius: 0 12px 12px 0; font-style: normal;
  color: var(--nx-ink); font-weight: 500;
}
.nx-prose blockquote p { margin: 0; }

.nx-prose img {
  border-radius: 16px; box-shadow: 0 16px 40px rgba(20,20,50,.12);
  height: auto; max-width: 100%; margin: 8px auto; display: block;
}
.nx-prose figure { margin: 1.6em 0; }
.nx-prose figcaption { text-align: center; font-size: 13px; color: var(--nx-xmuted, #9CA3AF); margin-top: 10px; }

.nx-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nx-prose table th { background: var(--nx-bg-gray, #F9FAFB); font-weight: 700; color: var(--nx-ink); text-align: left; }
.nx-prose table th, .nx-prose table td { padding: 12px 14px; border: 1px solid var(--nx-border, #E5E7EB); }

.nx-prose hr { border: 0; height: 1px; background: var(--nx-border, #E5E7EB); margin: 2.4em 0; }

/* Bloques anchos (imágenes destacadas de secciones) */
.nx-prose .alignwide  { max-width: 980px; margin-left: 50%; transform: translateX(-50%); width: min(980px, 92vw); }
.nx-prose .alignfull  { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); width: 100vw; border-radius: 0; }

@media (max-width: 640px) {
  .nx-landing-hero { padding: 64px 0 48px; }
  .nx-landing-title { font-size: 30px; letter-spacing: -1px; }
  .nx-landing-sub { font-size: 15.5px; }
  .nx-landing-hero-ctas .nx-btn { width: 100%; justify-content: center; }
  .nx-prose { font-size: 16px; }
  .nx-prose h1, .nx-prose h2 { font-size: 24px; }
  .nx-prose h3 { font-size: 19px; }
}
