/* ===============================
   GOOGLE FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ===============================
   VARIABLES TEMA OSCURO (default)
================================ */
:root {
  --green:        #00ff88;
  --green-dark:   #00cc6f;
  --green-subtle: rgba(0, 255, 136, 0.08);
  --green-border: rgba(0, 255, 136, 0.15);

  --bg:           #0b0f0d;
  --bg-card:      #111a14;
  --bg-card-hov:  #152019;
  --bg-glass:     rgba(11, 15, 13, 0.92);
  --surface:      #1a2620;
  --border:       rgba(0, 255, 136, 0.1);
  --border-hov:   rgba(0, 255, 136, 0.35);

  --text:         #e8f0eb;
  --text-muted:   #7a9485;
  --text-faint:   #4a6457;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'Inter', sans-serif;

  --radius:       0.75rem;
  --radius-sm:    0.4rem;
  --radius-lg:    1.25rem;
  --header-h:     64px;
  --ease:         0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===============================
   TEMA CLARO
================================ */
[data-theme="light"] {
  --green:        #009955;
  --green-dark:   #007a42;
  --green-subtle: rgba(0, 153, 85, 0.07);
  --green-border: rgba(0, 153, 85, 0.18);

  --bg:           #f0f7f3;
  --bg-card:      #ffffff;
  --bg-card-hov:  #f5fbf7;
  --bg-glass:     rgba(240, 247, 243, 0.95);
  --surface:      #e2f0e8;
  --border:       rgba(0, 153, 85, 0.12);
  --border-hov:   rgba(0, 153, 85, 0.4);

  --text:         #0d1f18;
  --text-muted:   #3d6652;
  --text-faint:   #7aab92;
}

/* ===============================
   RESET BASE
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===============================
   GRID TECH DE FONDO
================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0,153,85,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,153,85,0.04) 1px, transparent 1px);
}

/* ===============================
   CONTAINER
================================ */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.25rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =============================================
   HEADER
============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}
.logo span        { color: var(--green); }
.logo .logo-dot   { color: var(--text-faint); font-weight: 400; }

/* Nav desktop */
.main-nav {
  flex: 1;
  display: none;
}
.main-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--green);
  background: var(--green-subtle);
}

/* Acciones del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Botones icono */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--ease);
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 16px rgba(0,255,136,0.2);
}

/* Botón Suscribirse */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: #022c22;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}
.btn-subscribe:hover {
  background: var(--green-dark);
  box-shadow: 0 0 18px rgba(0,255,136,0.4);
  transform: translateY(-1px);
}
.btn-subscribe .btn-label { display: none; }
@media (min-width: 400px) {
  .btn-subscribe .btn-label { display: inline; }
}

/* Hamburguesa */
.btn-menu {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--ease);
  flex-shrink: 0;
}
.btn-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-menu.open span:nth-child(2) { opacity: 0; }
.btn-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-menu:hover { border-color: var(--green); color: var(--green); }

/* =============================================
   MENÚ MÓVIL (overlay fijo debajo del header)
============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 190;
  padding: 1.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  animation: slide-down 0.25s ease;
}
.mobile-menu.open { display: flex; }

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
  display: block;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu .mobile-subscribe {
  margin-top: 1.5rem;
  background: var(--green);
  color: #022c22;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 999px;
  text-align: center;
  border: none;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: all var(--ease);
}

/* =============================================
   BARRA DE BÚSQUEDA
============================================= */
.search-bar {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 180;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
  animation: slide-down 0.2s ease;
}
.search-bar.open { display: block; }

.search-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.search-inner input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 2.5rem 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: all var(--ease);
}
.search-inner input::placeholder { color: var(--text-faint); }
.search-inner input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-subtle);
}
.search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

/* =============================================
   TICKER
============================================= */
.news-ticker {
  background: var(--green);
  overflow: hidden;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #022c22;
  white-space: nowrap;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ticker-item::before {
  content: '▶';
  font-size: 0.4rem;
  opacity: 0.55;
}

/* =============================================
   HERO
============================================= */
.hero {
  padding: 3.5rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0,255,136,0.055) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  width: fit-content;
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.hero-text h1 .accent { color: var(--green); }

.hero-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Imagen hero */
.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: var(--surface);
}
.hero-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,15,13,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  gap: 0.4rem;
}
.hero-img-overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

/* =============================================
   BOTONES
============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green);
  color: #022c22;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 0 22px rgba(0,255,136,0.4);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
}
.btn-secondary:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-subtle);
}

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  position: relative;
  z-index: 1;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stats-inner::-webkit-scrollbar { display: none; }
.stat-item { flex-shrink: 0; min-width: 85px; }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.18rem;
}
.stat-label {
  font-size: 0.67rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* =============================================
   SECCIONES
============================================= */
.section-wrap {
  padding: 2.5rem 1.25rem;
  position: relative;
  z-index: 1;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity var(--ease);
}
.section-link:hover { opacity: 1; text-decoration: underline; }

/* =============================================
   GRIDS
============================================= */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* =============================================
   CARDS
============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.2), 0 0 0 1px var(--green-border);
}
.card-img-wrap { overflow: hidden; }
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.04); }

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-category {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.45rem;
  transition: color var(--ease);
}
.card:hover .card-title { color: var(--green); }
.card-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-faint);
}
.read-more {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  transition: letter-spacing var(--ease);
}
.card:hover .read-more { letter-spacing: 0.04em; }

/* =============================================
   CATEGORÍAS NAV
============================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: all var(--ease);
  text-decoration: none;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  transform: translateY(-2px);
}
.cat-icon  { font-size: 1.4rem; line-height: 1; margin-bottom: 0.1rem; }
.cat-name  { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--text); }
.cat-count { font-family: var(--font-mono); font-size: 0.63rem; color: var(--text-faint); }

/* =============================================
   NEWSLETTER
============================================= */
.newsletter-section { padding: 2rem 1.25rem 3rem; position: relative; z-index: 1; }
.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--green-subtle) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-label { font-family: var(--font-mono); font-size: 0.67rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.55rem; }
.newsletter-title { font-family: var(--font-display); font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-weight: 800; color: var(--text); margin-bottom: 0.55rem; }
.newsletter-desc  { font-size: 0.9rem; color: var(--text-muted); max-width: 420px; margin: 0 auto 1.4rem; line-height: 1.65; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: all var(--ease);
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-subtle); }
.newsletter-form .btn-primary { width: 100%; justify-content: center; padding: 0.75rem; }
.newsletter-note { font-size: 0.68rem; color: var(--text-faint); margin-top: 0.55rem; position: relative; z-index: 1; }

/* =============================================
   ARTICLE PAGE
============================================= */
.article-hero { padding: 2.5rem 1.25rem 1.5rem; position: relative; z-index: 1; }
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.67rem; color: var(--text-faint); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--green); }
.article-meta-top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.article-title { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); margin-bottom: 0.8rem; }
.article-subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.35rem; }
.article-author-bar { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-subtle); border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; color: var(--green); flex-shrink: 0; }
.author-info { flex-grow: 1; }
.author-name { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.author-date { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-faint); }
.article-share { display: flex; gap: 0.4rem; }
.share-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.75rem; transition: all var(--ease); }
.share-btn:hover { border-color: var(--green); color: var(--green); }
.article-cover { max-width: 760px; margin: 0 auto 2rem; padding: 0 1.25rem; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.img-caption { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-faint); text-align: center; margin-top: 0.5rem; }
.article-content { max-width: 760px; margin: 0 auto; padding: 0 1.25rem 3rem; position: relative; z-index: 1; }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text-muted); }
.article-body h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 2.5rem 0 0.85rem; }
.article-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.65rem; }
.article-body p  { margin-bottom: 1.3rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a  { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--green); margin: 2rem 0; padding: 1rem 1.4rem; background: var(--green-subtle); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--text); }
.article-body blockquote footer { font-style: normal; font-size: 0.8rem; color: var(--text-faint); margin-top: 0.45rem; }
.article-body code { background: var(--surface); color: var(--green); font-family: var(--font-mono); font-size: 0.83em; padding: 0.12em 0.38em; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.tag { font-family: var(--font-mono); font-size: 0.67rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 0.26rem 0.68rem; border-radius: 999px; cursor: pointer; transition: all var(--ease); }
.tag:hover { color: var(--green); border-color: var(--green); }

/* =============================================
   CATEGORY PAGE
============================================= */
.category-hero { padding: 2.5rem 1.25rem 2rem; text-align: center; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.category-hero-inner { max-width: 560px; margin: 0 auto; }
.cat-hero-icon  { font-size: 2.2rem; margin-bottom: 0.75rem; }
.cat-hero-title { font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; margin-bottom: 0.65rem; }
.cat-hero-desc  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.category-articles { padding: 2rem 1.25rem; position: relative; z-index: 1; }
.filters { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.75rem; padding-bottom: 0.2rem; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; padding: 0.36rem 0.88rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all var(--ease); }
.filter-btn:hover, .filter-btn.active { background: var(--green); color: #022c22; border-color: var(--green); }

/* =============================================
   FOOTER
============================================= */
footer { border-top: 1px solid var(--border); padding: 2.5rem 1.25rem 1.5rem; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand .logo { margin-bottom: 0.6rem; }
.footer-tagline { font-size: 0.84rem; color: var(--text-muted); max-width: 260px; line-height: 1.6; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.5rem; }
.social-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; cursor: pointer; transition: all var(--ease); text-decoration: none; }
.social-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-subtle); }
.footer-nav-title { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.8rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.84rem; color: var(--text-muted); transition: color var(--ease); }
.footer-links a:hover { color: var(--green); }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; }
.footer-copy { font-family: var(--font-mono); font-size: 0.67rem; color: var(--text-faint); }
.footer-made  { font-family: var(--font-mono); font-size: 0.67rem; color: var(--green); opacity: 0.5; }

/* =============================================
   SCROLL TOP
============================================= */
.scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: var(--green); color: #022c22; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; font-weight: 700; z-index: 150; box-shadow: 0 4px 16px rgba(0,255,136,0.35); transition: all var(--ease); }
.scroll-top.visible { display: flex; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,255,136,0.5); }

/* =============================================
   ANIMACIONES SCROLL
============================================= */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* =============================================
   RESPONSIVE TABLET ≥ 768px
============================================= */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .btn-menu  { display: none; }

  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .newsletter-form { flex-direction: row; }
  .newsletter-form .btn-primary { width: auto; white-space: nowrap; flex-shrink: 0; }

  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* =============================================
   RESPONSIVE DESKTOP ≥ 1024px
============================================= */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
