:root {
  --blue: #3c00ff;
  --blue-dark: #2A00B5;
  --blue-light: #EDE6FF;
  --blue-mid: #6B40FF;
  --blue-lighter: #F5F0FF;
  --navy: #0F0F2D;
  --text: #1A1A3A;
  --muted: #6B6B8A;
  --border: #E5E5F0;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --green: #00B578;
  --amber: #F59E0B;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(60,0,255,0.08);
  --shadow-lg: 0 16px 48px rgba(60,0,255,0.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.25; color: var(--navy); letter-spacing: -0.5px; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

/* NAV — same as landing */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { display: block; height: 38px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; font-family: 'Sora', sans-serif; cursor: pointer; transition: all .2s; border: none; text-decoration: none; }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 4px 16px rgba(60,0,255,0.3); }
.btn-primary:hover { background: var(--blue-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(60,0,255,0.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-login { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-login:hover { background: var(--blue-light); color: var(--blue); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* PAGE HERO — premium gradient with decorative shapes */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #F0E9FF 0%, #E5DAFF 50%, #F0E9FF 100%);
  padding: 160px 2rem 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before, .page-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,0,255,0.15), transparent 70%);
  pointer-events: none;
}
.page-hero::before { width: 480px; height: 480px; top: -120px; left: -120px; }
.page-hero::after { width: 360px; height: 360px; bottom: -100px; right: -100px; }
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .12em;
  font-family: 'Sora', sans-serif;
  background: rgba(255,255,255,0.7); padding: 6px 16px; border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(60,0,255,0.15);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.page-hero h1 em { color: var(--blue); font-style: normal; }
.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* PAGE CONTENT — wider with optional sidebar */
.page-section { padding: 80px 2rem; }
.page-section.bg-light { background: var(--bg); }
.page-section.bg-navy { background: var(--navy); color: white; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

/* Two-column layout with sticky TOC */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.legal-toc-title {
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1rem;
}
.legal-toc ul { list-style: none; }
.legal-toc li { margin-bottom: 4px; }
.legal-toc a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--muted); font-weight: 500;
  transition: all .2s; line-height: 1.4;
}
.legal-toc a:hover, .legal-toc a.active { background: var(--blue-light); color: var(--blue); }
.legal-main { min-width: 0; }
.legal-updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  font-size: 12.5px; font-weight: 600; font-family: 'Sora', sans-serif;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 2.5rem;
}

/* Numbered sections for legal */
.legal-section {
  position: relative;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:first-of-type { padding-top: 0; }
.legal-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.legal-section-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 1.25rem;
}
.legal-section-num {
  width: 36px; height: 36px;
  background: var(--blue); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.legal-section h2 {
  font-size: 1.4rem; font-weight: 700; margin: 0;
}
.legal-section h3 {
  font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .75rem;
  color: var(--navy);
}
.legal-section p { margin-bottom: 1rem; color: var(--text); font-size: 15.5px; }
.legal-section ul, .legal-section ol {
  margin: 1rem 0 1.5rem; padding-left: 1.5rem;
  color: var(--text);
}
.legal-section li {
  margin-bottom: .5rem; padding-left: .25rem; font-size: 15.5px;
}
.legal-section strong { color: var(--navy); font-weight: 600; }

/* Callout boxes */
.callout {
  display: flex; gap: 16px;
  background: linear-gradient(135deg, var(--blue-light) 0%, #F8F4FF 100%);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout-warning {
  background: linear-gradient(135deg, #FFF8E6 0%, #FFFAF0 100%);
  border-left-color: var(--amber);
}
.callout-icon {
  font-size: 22px; flex-shrink: 0; line-height: 1;
}
.callout-content p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.callout-content strong { color: var(--navy); }

/* Section label & intro */
.section-label {
  font-size: 12px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .1em;
  font-family: 'Sora', sans-serif;
  display: inline-block; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 1rem; color: var(--navy);
}
.section-sub {
  font-size: 17px; color: var(--muted); line-height: 1.7;
  max-width: 600px;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* CONTACT CARDS — like landing features */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.contact-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.25rem 1.75rem; text-align: center;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
}
.contact-card:hover {
  border-color: var(--blue);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.contact-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 28px;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.contact-card:hover .contact-icon { transform: scale(1.1) rotate(-3deg); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.contact-card-text { font-size: 14px; color: var(--muted); margin-bottom: 1.25rem; flex: 1; line-height: 1.6; }
.contact-card-action {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--blue); color: white;
  font-size: 13.5px; font-weight: 600; font-family: 'Sora', sans-serif;
  margin-top: auto; transition: all .2s;
}
.contact-card-action:hover { background: var(--blue-dark); color: white; transform: translateY(-1px); }

/* FEATURE GRID — for partners / sobre nosotros */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .35s cubic-bezier(.16,1,.3,1);
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 26px;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-2deg); }
.feature-card h3 {
  font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px; color: var(--navy);
}
.feature-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* VALUES — for sobre nosotros */
.values-list {
  display: grid; gap: 1.25rem;
}
.value-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.value-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.value-item h3 {
  font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700;
  margin-bottom: 4px; color: var(--navy);
}
.value-item p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* STATS BLOCK */
.stats-block {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin: 3rem 0;
}
.stat-item {}
.stat-value {
  font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800;
  letter-spacing: -2px; line-height: 1;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 8px; }

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, #F0E9FF 0%, #E5DAFF 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  border: 1px solid rgba(60,0,255,0.15);
  margin-top: 3rem;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  margin-bottom: .75rem; letter-spacing: -1px;
}
.cta-banner p { font-size: 16px; color: var(--muted); margin-bottom: 2rem; }

/* BLOG EMPTY STATE */
.empty-state {
  text-align: center;
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
}
.empty-state-icon {
  width: 90px; height: 90px; margin: 0 auto 1.5rem;
  background: var(--blue-light); border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.empty-state h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.empty-state p { color: var(--muted); max-width: 500px; margin: 0 auto 2rem; line-height: 1.7; }
.empty-state-topics {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 2rem 0 2.5rem;
}
.empty-state-topic {
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}

/* PROCESS STEPS — for partners */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue), var(--blue-light));
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num {
  width: 64px; height: 64px; border-radius: 50%; background: white;
  border: 3px solid var(--blue); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--blue);
  box-shadow: 0 0 0 8px var(--blue-light);
}
.process-step h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* MINI-FAQ */
.mini-faq {
  max-width: 720px; margin: 0 auto;
}
.mini-faq-item {
  border-bottom: 1px solid var(--border);
}
.mini-faq-q {
  width: 100%; text-align: left; padding: 1.25rem 0; background: none; border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 15.5px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.mini-faq-q:hover { color: var(--blue); }
.mini-faq-arrow { font-size: 18px; color: var(--blue); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.mini-faq-a {
  font-size: 14.5px; color: var(--muted); line-height: 1.7;
  max-height: 0; overflow: hidden; padding-bottom: 0; opacity: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding-bottom .4s ease, opacity .3s ease .05s;
}
.mini-faq-item.open .mini-faq-a { max-height: 400px; padding-bottom: 1.25rem; opacity: 1; }
.mini-faq-item.open .mini-faq-arrow { transform: rotate(180deg); }

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }
.reveal.delay-6 { transition-delay: .48s; }

/* FOOTER */
footer { background: var(--navy); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); display: block; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 280px; }
.footer-col-title { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 1rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 1.25rem; height: 60px; }
  .nav-logo img { height: 32px; }
  .nav-links { display: none; }
  .nav-cta .btn { padding: 9px 18px; font-size: 13px; }
  .page-hero { padding: 110px 1.25rem 70px; }
  .page-section { padding: 60px 1.25rem; }
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 50px 1.25rem;
    gap: 2rem;
  }
  .legal-toc { position: static; }
  .legal-toc ul {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .legal-toc li { margin: 0; }
  .legal-toc a { padding: 6px 12px; background: var(--bg); }
  .contact-grid, .feature-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .process-steps::before { display: none; }
  .stats-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 1.5rem; }
  .stat-value { font-size: 2.5rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .legal-section-num { width: 32px; height: 32px; font-size: 13px; }
  .legal-section h2 { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  nav { padding: 0 1rem; height: 56px; }
  .nav-cta .btn { padding: 8px 14px; font-size: 12.5px; }
  .nav-cta { gap: 6px; }
  .page-hero { padding: 90px 1rem 50px; }
  .page-section { padding: 50px 1rem; }
  .legal-layout { padding: 40px 1rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .page-hero p { font-size: 15px; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  footer { padding: 3rem 1.25rem 1.5rem; }
  .callout { flex-direction: column; gap: 8px; }
  .legal-section { padding: 1.5rem 0 2rem; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
