/* Capa de diseño Aerostatic para la guía de beneficios tributarios (public/beneficios-tributarios).
   Se agrega al publicar (build.mjs) sin tocar el contenido: si se quita este archivo, la guía vuelve a su diseño original. */
:root {
  --bg: #08070f; --bg-2: #0e0c1a; --surface: #14112a; --surface-2: #1b1736;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f5f3fc; --muted: #aaa5c2; --turq: #3cdbd3; --orange: #e9511d; --violet: #542583;
  --grad: linear-gradient(100deg, #3cdbd3 0%, #e9511d 38%, #c2185b 68%, #8d5bd6 100%);
  --grad-soft: linear-gradient(135deg, rgba(60,219,211,.18), rgba(233,81,29,.14) 45%, rgba(84,37,131,.25));
  color-scheme: dark;
}
html { background: var(--bg) !important; }
body { background: var(--bg) !important; color: var(--text) !important; font-family: 'Manrope', system-ui, sans-serif !important; line-height: 1.65 !important; }
h1, h2, h3, h4, .logo { font-family: 'Syne', system-ui, sans-serif !important; letter-spacing: -.01em; }
h1, h2, h3, h4 { color: var(--text) !important; }
p, li, td, .card p, .contact-box p, .contact-info p, .contacts p, .footer p { color: var(--muted) !important; }
strong, b, .benefit-box strong, .benefit-card strong, .opportunity-card strong, .contacts strong { color: var(--text) !important; }
em { color: var(--turq) !important; }
a { color: var(--turq) !important; }
hr { border: 0 !important; border-top: 1px solid var(--line) !important; }

/* Navegación */
nav { background: rgba(8,7,15,.85) !important; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
nav a, .logo { color: var(--text) !important; }
nav a:hover { color: var(--turq) !important; }
nav ul { flex-wrap: wrap; gap: 6px 22px !important; }
@media (max-width: 900px) {
  nav .container { height: auto !important; flex-direction: column; align-items: flex-start !important; gap: 10px; padding-block: 14px !important; }
  nav ul { gap: 6px 16px !important; font-size: .92rem; }
}

/* Encabezados de página */
.hero, .header { background: var(--grad-soft), var(--bg-2) !important; border: 1px solid var(--line-2) !important; color: var(--text) !important; border-radius: 20px !important; }
.hero h1, .header h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.hero p, .header p { color: var(--muted) !important; }
@media (max-width: 700px) { .hero h1, .header h1 { font-size: 2em !important; } }

/* Tarjetas y cajas */
.card, .benefit-card, .opportunity-card, .sector-card, .grid-item, .contact-box, .contact-info, .contacts, .toc, .content, .section, .requirements, .benefit-box {
  background: linear-gradient(170deg, var(--surface-2), var(--surface)) !important; color: var(--text) !important;
  border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 16px !important;
}
.content { background: transparent !important; border: 0 !important; }
.card h2, .contacts h2, .toc h2, .opportunity-card h3, .sector-card h4, .grid-item h4 { color: var(--turq) !important; }
.card:hover, .benefit-card:hover { border-color: var(--line-2) !important; box-shadow: 0 20px 50px -25px rgba(0,0,0,.8) !important; }
.highlight, .highlight-box, .section.highlight, blockquote, [style*="#fff3cd"] {
  background: rgba(233,81,29,.1) !important; border: 1px solid rgba(233,81,29,.45) !important; border-left: 4px solid var(--orange) !important; color: var(--text) !important;
}
.stat-box { background: var(--grad-soft), var(--surface) !important; border: 1px solid var(--line-2) !important; color: var(--text) !important; }
.stat-number { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-family: 'Syne', system-ui, sans-serif; }
.badge, .badge-hot, .badge-new { background: var(--grad) !important; color: #fff !important; border-radius: 999px !important; }

/* Botones */
.btn, .card-btn { background: var(--grad) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important; font-weight: 700; }
.btn:hover, .card-btn:hover { filter: brightness(1.1); }

/* Tablas */
table { background: var(--surface) !important; border-color: var(--line) !important; border-radius: 12px; overflow: hidden; }
th { background: var(--surface-2) !important; color: var(--turq) !important; }
td, th { border-color: var(--line) !important; }
tr:hover td { background: rgba(255,255,255,.03) !important; }
/* Las tablas se desplazan dentro de su recuadro en pantallas angostas */
table { display: block !important; max-width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
html, body { overflow-x: clip; }

/* Índice */
.toc a { color: var(--text) !important; }
.toc a:hover { color: var(--turq) !important; }

/* Colores sueltos del contenido */
[style*="#dc3545"] { color: #ff8a65 !important; }
[style*="#28a745"] { color: var(--turq) !important; }
[style*="border-top: 1px solid #ddd"] { border-top-color: var(--line) !important; }

/* Pie */
footer, .footer { background: var(--bg-2) !important; border-top: 1px solid var(--line) !important; color: var(--muted) !important; }

@media print {
  html, body { background: #fff !important; color: #111 !important; }
  p, li, td, strong, h1, h2, h3, h4 { color: #111 !important; -webkit-text-fill-color: #111 !important; }
}
