:root {
  --dark: #0f172a;
  --dark-light: #1e293b;
  --bg: #f1f5f9;
  --cream: #faf6f1;
  --white: #ffffff;
  --accent: #ec4899;
  --accent-hover: #db2777;
  --accent-glow: rgba(236, 72, 153, 0.25);
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: 80px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── ANIMACIONES ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--white); text-decoration: none;
}
.nav-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); border-radius: 6px;
  font-size: 1rem; color: white; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 20px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color .2s;
  flex-shrink: 0;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: white;
  padding: 8px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ── BOTONES ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: all .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all .2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border);
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--dark);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { margin: 0 auto; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 120px 0 60px;
  background: var(--dark);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  position: relative; z-index: 1;
}
.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-top: 12px;
  position: relative; z-index: 1;
}

/* ── FOOTER ── */
footer {
  background: var(--dark-light);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── CARD ── */
.card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all .3s;
}
.card:hover { border-color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .page-header { padding: 100px 0 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── CONTENIDO RICO ── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin: 48px 0 16px;
}
.prose h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--dark);
  margin: 32px 0 12px;
}
.prose p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose ul, .prose ol { margin: 12px 0 20px; padding-left: 24px; }
.prose li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.prose code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent);
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}
.prose pre {
  background: var(--dark);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 20px 0;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: rgba(236, 72, 153, 0.08);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 48px; height: 48px;
  stroke: var(--border); fill: none; stroke-width: 1.5;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
