/* ============================================
   ZERGARADAR — Estilos globales
   ============================================ */

:root {
  --bg: #0a0f1e;
  --bg2: #0f1628;
  --bg3: #141c35;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --accent3: #7c3aed;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --text: #e8edf5;
  --text-muted: #8892a4;
  --border: rgba(0,212,255,0.15);
  --card: rgba(255,255,255,0.04);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 32px; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.lang-btn {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn button {
  padding: 6px 14px;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn button.active { background: var(--accent); color: var(--bg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  top: 40%; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ============================================
   AVISO EJERCICIO FISCAL
   ============================================ */
.ejercicio-banner {
  position: relative;
  z-index: 1;
  background: rgba(0,212,255,0.05);
  border-bottom: 1px solid rgba(0,212,255,0.15);
  padding: 12px 40px;
  padding-top: 72px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ejercicio-banner strong { color: var(--accent); }

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: #00eeff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.3);
}
.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
}
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-tag {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
}

/* ============================================
   BLOQUES HOME — GRID DE TARJETAS
   ============================================ */
.bloques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bloque-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.bloque-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
}

.bloque-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bloque-valoracion {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bloque-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.bloque-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.bloque-arrow {
  font-size: 0.85rem;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-top: auto;
  padding-top: 8px;
}

/* Borde de color según valoración */
.bloque-card.positivo { border-left: 3px solid var(--green); }
.bloque-card.neutro { border-left: 3px solid var(--yellow); }
.bloque-card.negativo { border-left: 3px solid var(--red); }

/* ============================================
   PÁGINAS DE DETALLE
   ============================================ */
.detalle-header {
  padding: 140px 40px 60px;
  position: relative;
  z-index: 1;
}
.detalle-header-inner {
  max-width: 800px;
  margin: 0 auto;
}
.detalle-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.detalle-back:hover { color: var(--accent); }

.detalle-valoracion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.badge-positivo { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.badge-neutro { background: rgba(245,158,11,0.1); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }
.badge-negativo { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }

.detalle-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.detalle-header .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.detalle-content {
  position: relative;
  z-index: 1;
  padding: 0 40px 80px;
}
.detalle-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Bloques de contenido dentro del detalle */
.detalle-bloque {
  margin-bottom: 40px;
}
.detalle-bloque h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.detalle-bloque p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.detalle-bloque p strong { color: var(--text); font-weight: 500; }
.detalle-bloque ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.detalle-bloque ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.detalle-bloque ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

/* Caja de herramienta oficial */
.herramienta-box {
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.herramienta-box .herramienta-icon { font-size: 2rem; flex-shrink: 0; }
.herramienta-box .herramienta-text { flex: 1; min-width: 200px; }
.herramienta-box .herramienta-text p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Caja de nuestra valoración */
.valoracion-box {
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}
.valoracion-box.positivo {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.2);
  border-left: 3px solid var(--green);
}
.valoracion-box.neutro {
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid var(--yellow);
}
.valoracion-box.negativo {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  border-left: 3px solid var(--red);
}
.valoracion-box .valoracion-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.valoracion-box.positivo .valoracion-title { color: var(--green); }
.valoracion-box.neutro .valoracion-title { color: var(--yellow); }
.valoracion-box.negativo .valoracion-title { color: var(--red); }
.valoracion-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Caja de aviso */
.aviso-box {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.aviso-box strong { color: var(--yellow); }

/* Disclaimer al pie */
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.6;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================
   SUSCRIPCIÓN
   ============================================ */
.subscribe-section { background: var(--bg3); }
.subscribe-box { max-width: 560px; margin: 0 auto; text-align: center; }
.subscribe-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.subscribe-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.subscribe-form { display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text-muted); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); opacity: 0.5; }

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .bloques-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .detalle-header { padding: 100px 20px 40px; }
  .detalle-content { padding: 0 20px 60px; }
  .ejercicio-banner { padding: 12px 20px; }
  footer { padding: 24px 20px; }
  .herramienta-box { flex-direction: column; }
}
