/* ═══════════════════════════════════════════════════════
   NEURALEFEED — Design System
   Dark SaaS Professional Theme
   Fuentes: Syne (headings) + DM Sans (body) + JetBrains Mono (code)
═══════════════════════════════════════════════════════ */

/* ─── TOKENS DE DISEÑO ─── */
:root {
  /* Colores base */
  --bg-0: #080b10;
  --bg-1: #0d1117;
  --bg-2: #131920;
  --bg-3: #1a2230;
  --bg-card: #111620;
  --bg-card-hover: #161d2a;

  /* Bordes */
  --border: #1e2a3a;
  --border-light: #253347;

  /* Texto */
  --text-primary: #e8edf5;
  --text-secondary: #8899aa;
  --text-muted: #4a5a6a;
  --text-inverse: #080b10;

  /* Acento — cyan eléctrico */
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --accent-dark: #0099bb;

  /* Acento 2 — violeta profundo */
  --accent2: #7b5ea7;
  --accent2-dim: rgba(123, 94, 167, 0.15);

  /* Semánticos */
  --success: #00e676;
  --warning: #ffab00;
  --danger: #ff5252;
  --info: var(--accent);

  /* Categorías-color */
  --cat-ai: #00d4ff;
  --cat-ml: #a78bfa;
  --cat-py: #fbbf24;
  --cat-se: #34d399;

  /* Tipografía */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Radio */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 24px var(--accent-glow);

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms var(--ease);
  --t-med: 250ms var(--ease);
  --t-slow: 400ms var(--ease);

  /* Layout */
  --max-w: 1280px;
  --header-h: 64px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Selección de texto */
::selection { background: var(--accent-dim); color: var(--accent); }

/* ─── CONTENEDOR ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* ─── TIPOGRAFÍA ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
em { font-style: normal; color: var(--accent); }
.section-title { margin-bottom: var(--space-xl); }

/* ─── BOTONES ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.625rem 1.375rem;
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--t-med);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: var(--t-med);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-light); background: var(--bg-2); }
.btn-ghost.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--t-med);
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.6); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: var(--header-h);
}

.logo {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; color: var(--accent); line-height: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo-text em { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }
.nav-link {
  padding: 0.4rem 0.875rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: var(--t-fast);
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-3);
}
.nav-link.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: var(--space-md); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--t-med); }

/* Header AdSense banner */
.ad-banner-header {
  padding: 6px 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.ad-banner-header ins { width: 100%; }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-xl);
  gap: var(--space-xs);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { display: block; padding: 0.75rem 1rem; border-radius: var(--radius-md); }

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  opacity: 0.4;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.hero-glow-1 { width: 600px; height: 400px; top: -200px; left: -100px; background: var(--accent); }
.hero-glow-2 { width: 500px; height: 350px; top: -150px; right: -50px; background: var(--accent2); }

.hero-content {
  position: relative; z-index: 1;
  max-width: 780px;
  animation: fadeUp 0.7s var(--ease) both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); opacity: 1; }
  50% { box-shadow: 0 0 0 6px transparent; opacity: 0.8; }
}

.hero h1 { margin-bottom: var(--space-lg); }
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-xl);
  font-weight: 300;
}
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ─── CATEGORY BAR ─── */
.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(8, 11, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.category-bar-inner {
  display: flex; align-items: center; gap: var(--space-md); flex-wrap: nowrap; overflow-x: auto;
}
.category-bar-inner::-webkit-scrollbar { height: 0; }

.category-label {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; flex-shrink: 0;
}
.category-pills { display: flex; gap: var(--space-xs); }
.pill {
  padding: 0.35rem 0.875rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: var(--t-fast);
  white-space: nowrap;
}
.pill:hover { color: var(--text-primary); border-color: var(--border-light); }
.pill.active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

.sort-control { margin-left: auto; flex-shrink: 0; }
.sort-control select {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem; font-size: 0.8125rem;
  appearance: none; cursor: pointer;
  transition: var(--t-fast);
}
.sort-control select:hover { border-color: var(--border-light); color: var(--text-primary); }

/* ─── MAIN CONTENT ─── */
.main-content { padding: var(--space-2xl) 0 var(--space-3xl); }

/* ─── SKELETON LOADING ─── */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
}
.sk {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}
.sk-img { height: 180px; border-radius: var(--radius-md); margin-bottom: var(--space-md); }
.sk-tag { height: 20px; width: 80px; margin-bottom: var(--space-md); }
.sk-title { height: 24px; margin-bottom: 8px; }
.sk-text { height: 14px; width: 75%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── NEWS GRID ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  animation: fadeUp 0.4s var(--ease) both;
}

/* ─── ARTICLE CARD ─── */
.article-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--t-med);
  display: flex;
  flex-direction: column;
  group: 1;
}
.article-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.article-card:hover .card-img img { transform: scale(1.04); }

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.card-img img { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  font-size: 2.5rem; opacity: 0.4;
}
.card-source-badge {
  position: absolute; bottom: var(--space-sm); left: var(--space-sm);
  padding: 2px 8px;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-secondary); letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

.card-body { padding: var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.card-category {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cat-ai    { background: rgba(0,212,255,0.12); color: var(--cat-ai); border: 1px solid rgba(0,212,255,0.2); }
.cat-ml    { background: rgba(167,139,250,0.12); color: var(--cat-ml); border: 1px solid rgba(167,139,250,0.2); }
.cat-py    { background: rgba(251,191,36,0.12); color: var(--cat-py); border: 1px solid rgba(251,191,36,0.2); }
.cat-se    { background: rgba(52,211,153,0.12); color: var(--cat-se); border: 1px solid rgba(52,211,153,0.2); }
.cat-def   { background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); }

.card-date {
  margin-left: auto;
  font-size: 0.75rem; color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  transition: color var(--t-fast);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .card-title { color: var(--accent); }

.card-desc {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: var(--space-lg);
  font-weight: 300;
  flex: 1;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-read-btn {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700;
  color: var(--accent); transition: var(--t-fast);
  display: flex; align-items: center; gap: 4px;
}
.card-read-btn:hover { gap: 8px; }

.card-actions { display: flex; gap: var(--space-xs); }
.btn-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--text-muted);
  transition: var(--t-fast);
  border: 1px solid var(--border);
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.btn-icon.favorited { color: var(--warning); border-color: var(--warning); background: rgba(255,171,0,0.1); }

/* ─── AD MID-GRID ─── */
.ad-mid-grid {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── ESTADOS ─── */
.hidden { display: none !important; }

.error-state, .empty-state {
  text-align: center; padding: var(--space-3xl) var(--space-xl);
  color: var(--text-secondary);
}
.error-icon, .empty-icon {
  font-size: 3rem; margin-bottom: var(--space-lg); opacity: 0.4;
}
.error-state h3, .empty-state h3 {
  color: var(--text-primary); margin-bottom: var(--space-sm);
}
.error-state p, .empty-state p { margin-bottom: var(--space-xl); }

/* ─── FAVORITOS ─── */
.favorites-section { margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--border); }

/* ─── NEWSLETTER ─── */
.newsletter-section {
  position: relative; overflow: hidden;
  padding: var(--space-3xl) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter-bg { position: absolute; inset: 0; pointer-events: none; }
.newsletter-glow {
  position: absolute; width: 600px; height: 400px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--accent2) 0%, transparent 70%);
  opacity: 0.07; filter: blur(60px);
}

.newsletter-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center;
}

.newsletter-badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: var(--accent2-dim);
  border: 1px solid var(--accent2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.7rem; color: #c4b5fd;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.newsletter-content h2 { margin-bottom: var(--space-md); }
.newsletter-content > p {
  color: var(--text-secondary); margin-bottom: var(--space-xl); font-weight: 300; font-size: 1.05rem;
}

.benefits-list { display: flex; flex-direction: column; gap: var(--space-md); }
.benefits-list li {
  display: flex; align-items: flex-start; gap: var(--space-md);
}
.benefit-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.benefits-list strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--text-primary); }
.benefits-list span { font-size: 0.8125rem; color: var(--text-muted); }

/* Newsletter form */
.newsletter-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
  font-family: var(--font-display);
}
.form-group input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 0.9375rem;
  transition: var(--t-fast); outline: none;
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-group input::placeholder { color: var(--text-muted); }

.form-disclaimer {
  margin-top: var(--space-md); font-size: 0.75rem; color: var(--text-muted); text-align: center;
}
.form-disclaimer a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border); }
.form-disclaimer a:hover { color: var(--accent); }

.newsletter-success {
  text-align: center; padding: var(--space-xl);
}
.success-icon {
  width: 56px; height: 56px; background: rgba(0,230,118,0.15);
  border: 1px solid var(--success); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--success); margin: 0 auto var(--space-lg);
}
.newsletter-success h3 { color: var(--success); margin-bottom: var(--space-sm); }
.newsletter-success p { color: var(--text-secondary); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-xl);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%; max-width: 420px;
  position: relative;
  transform: translateY(16px);
  transition: transform var(--t-med);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 1.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-fast);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-3); }

.modal-header { text-align: center; margin-bottom: var(--space-xl); }
.modal-logo { font-size: 2rem; color: var(--accent); display: block; margin-bottom: var(--space-md); }
.modal-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-header p { color: var(--text-secondary); font-size: 0.875rem; }

.modal-divider {
  text-align: center; position: relative; margin: var(--space-lg) 0;
  color: var(--text-muted); font-size: 0.8125rem;
}
.modal-divider::before, .modal-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px;
  background: var(--border);
}
.modal-divider::before { left: 0; } .modal-divider::after { right: 0; }
.modal-note { text-align: center; font-size: 0.8125rem; color: var(--text-muted); }
.modal-note a { color: var(--accent); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-lg);
}

.footer-social { display: flex; gap: var(--space-sm); }
.social-link {
  width: 36px; height: 36px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--text-secondary);
  transition: var(--t-fast);
}
.social-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

.footer-col h3 {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700;
  color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a {
  font-size: 0.875rem; color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md);
}
.footer-bottom p { font-size: 0.8125rem; color: var(--text-muted); }
.footer-powered a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border); }
.footer-powered a:hover { color: var(--accent); }

/* ─── TOAST ─── */
.toast-container {
  position: fixed; bottom: var(--space-xl); right: var(--space-xl);
  z-index: 300; display: flex; flex-direction: column; gap: var(--space-sm);
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; gap: var(--space-md);
  min-width: 260px; max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease-bounce) both;
  font-size: 0.875rem; color: var(--text-secondary);
}
.toast.success { border-color: rgba(0,230,118,0.3); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: rgba(255,82,82,0.3); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--accent); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-msg { flex: 1; }
.toast-close { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; transition: var(--t-fast); }
.toast-close:hover { color: var(--text-primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ─── ANIMACIONES GLOBALES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-enter { animation: fadeUp 0.4s var(--ease) both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding-inline: var(--space-lg); }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-primary { display: none; }

  .hero { padding: var(--space-2xl) 0 var(--space-xl); }
  .hero-cta { flex-direction: column; align-items: flex-start; }

  .news-grid { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .toast-container { bottom: var(--space-md); right: var(--space-md); left: var(--space-md); }
  .toast { min-width: unset; max-width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .category-bar-inner { gap: var(--space-sm); }
  .newsletter-form-wrap { padding: var(--space-lg); }
}