/* ============================================================
   Ciberseguridad Municipal de Peñalolén - Propuesta v2
   Dark theme con acentos tecnicos. HTML/CSS/JS puro.
   ============================================================ */

:root {
  /* Base oscura - escala Azul Andino institucional (#222957) */
  --bg-900: #0d1020;
  --bg-800: #131728;
  --bg-700: #1a2035;
  --bg-600: #222957;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* Acentos institucionales - Kit de Marca IMP */
  --accent: #FF8500;       /* Naranjo Impulso */
  --accent-2: #0250C0;     /* Azul Progreso */
  --accent-soft: rgba(255, 133, 0, 0.15);

  /* Colores institucionales */
  --blue: #0250C0;
  --blue-deep: #222957;
  --orange: #FF8500;

  /* Texto - blanco institucional */
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.42);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: 'Roboto', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografia y heads de seccion ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 7px 16px;
  border: 1px solid rgba(255, 133, 0, 0.45);
  border-radius: 999px;
  background: rgba(255, 133, 0, 0.18);
  margin-bottom: 20px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.section-lead { margin-top: 18px; color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: #e07600; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  padding: 10px 0;
  background: rgba(13, 16, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.brand-text {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; flex-direction: column;
}
.brand-text strong { color: var(--text); font-weight: 900; letter-spacing: 0.02em; }

.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 999px;
  position: relative;
  transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  color: #FFFFFF !important;
  background: var(--accent);
  font-weight: 700;
}
.nav-cta:hover { background: #e07600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(2, 80, 192, 0.20), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(255, 133, 0, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 60%, var(--bg-900) 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 35%, transparent 80%);
}
.hero-glow {
  position: absolute; z-index: 1; top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(2, 80, 192, 0.12), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.hero-content { position: relative; z-index: 3; padding: 120px 24px 100px; max-width: 880px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--text-dim);
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 133, 0, 0.60); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 133, 0, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.03;
  margin-bottom: 24px;
}
.hero-title .grad {
  color: var(--accent);
}
.hero-sub { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--text-dim); max-width: 640px; margin-bottom: 38px; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text-faint); font-weight: 600; }
.tick { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); position: relative; flex-shrink: 0; }
.tick::after { content: ''; position: absolute; left: 3px; top: 5px; width: 6px; height: 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   METRICAS
   ============================================================ */
.metrics { padding: 110px 0; background: linear-gradient(180deg, var(--bg-900), var(--bg-800)); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.metric-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.metric-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.metric-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 24px 50px -24px rgba(2, 80, 192, 0.45); }
.metric-card:hover::before { opacity: 1; }
.metric-icon { position: relative; width: 52px; height: 52px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.metric-icon svg { width: 26px; height: 26px; }
.metric-num { position: relative; font-family: var(--font-head); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--accent); margin-bottom: 12px; }
.metric-label { position: relative; font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }

/* ============================================================
   PILARES
   ============================================================ */
.pillars { padding: 110px 0; background: var(--bg-800); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), border-color .4s, box-shadow .4s;
  will-change: transform;
}
.pillar-glow {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 80, 192, 0.25), transparent 65%);
  top: var(--my, 50%); left: var(--mx, 50%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.pillar-card:hover { border-color: var(--border-strong); box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.8); }
.pillar-card:hover .pillar-glow { opacity: 1; }
.pillar-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; transform: translateZ(40px); }
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 12px; transform: translateZ(28px); }
.pillar-card p { font-size: 0.92rem; color: var(--text-dim); transform: translateZ(16px); }

/* ============================================================
   TIMELINE (marco normativo)
   ============================================================ */
.timeline-section { padding: 110px 0; background: linear-gradient(180deg, var(--bg-800), var(--bg-900)); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.timeline-line { position: absolute; top: 16px; left: 8%; right: 8%; height: 2px; background: var(--border); border-radius: 2px; z-index: 0; }
.timeline-progress { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; transition: width 1.4s var(--ease); box-shadow: 0 0 12px rgba(255, 133, 0, 0.60); }

.tl-item { position: relative; z-index: 1; padding-top: 56px; }
.tl-marker {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-900); border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--accent);
  box-shadow: 0 0 0 6px rgba(6, 10, 22, 0.9), 0 0 18px rgba(255, 133, 0, 0.40);
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), border-color .4s, box-shadow .4s;
  will-change: transform;
}
.tl-card:hover { border-color: var(--accent); box-shadow: 0 24px 50px -26px rgba(2, 80, 192, 0.50); }
.tl-date { font-family: var(--font-head); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); }
.tl-card h3 { font-size: 1.1rem; font-weight: 700; margin: 12px 0 14px; }
.tl-decreto {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  color: var(--accent); padding: 5px 12px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft); margin-bottom: 14px;
}
.tl-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ============================================================
   NOTICIAS
   ============================================================ */
.news { padding: 110px 0; background: var(--bg-900); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.news-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.news-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.07); }
.news-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13,16,32,0.55)); }
.news-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF;
  background: var(--accent);
  padding: 6px 12px; border-radius: 8px;
}
.news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 0.8rem; color: var(--text-faint); font-weight: 600; margin-bottom: 10px; }
.news-body h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.news-body p { font-size: 0.9rem; color: var(--text-dim); flex: 1; margin-bottom: 18px; }
.news-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.news-link svg { transition: transform .3s var(--ease); }
.news-link:hover svg { transform: translateX(4px); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 40px 0 60px; background: var(--bg-900); }
.cta-box {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(700px 400px at 80% -30%, rgba(2, 80, 192, 0.22), transparent 60%),
    radial-gradient(600px 360px at 0% 130%, rgba(255, 133, 0, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg-700), var(--bg-600));
  border: 1px solid var(--border-strong);
}
.cta-pattern {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}
.cta-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 16px; }
.cta-content p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 30px; }
.cta-btns { display: flex; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--bg-800); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 42px; }
.footer-brand span { font-family: var(--font-head); font-size: 0.82rem; line-height: 1.2; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.04em; }
.footer-brand strong { color: var(--text); font-weight: 900; }
.footer-desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; max-width: 320px; }
.footer-addr { color: var(--text-faint); font-size: 0.88rem; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-tags li { color: var(--text-dim); font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom span { color: var(--text-faint); font-size: 0.85rem; }
.footer-muni-logo { height: 30px; opacity: 0.85; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* delays escalonados dentro de grids */
.metrics-grid .reveal:nth-child(2), .pillars-grid .reveal:nth-child(2), .news-grid .reveal:nth-child(2), .timeline .tl-item:nth-child(3) { transition-delay: .1s; }
.metrics-grid .reveal:nth-child(3), .pillars-grid .reveal:nth-child(3), .news-grid .reveal:nth-child(3), .timeline .tl-item:nth-child(4) { transition-delay: .2s; }
.metrics-grid .reveal:nth-child(4), .pillars-grid .reveal:nth-child(4), .timeline .tl-item:nth-child(5) { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .metrics-grid, .pillars-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }
  .tl-item { padding-top: 0; }
  .tl-marker { position: static; transform: none; margin-bottom: 16px; box-shadow: 0 0 18px rgba(255, 133, 0, 0.40); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: rgba(13, 16, 32, 0.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .4s var(--ease);
    padding: 96px 28px 28px; z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-link { display: block; padding: 14px 18px; font-size: 1rem; }
  .nav-cta { text-align: center; }

  .metrics-grid, .pillars-grid, .timeline, .news-grid, .footer-grid { grid-template-columns: 1fr; }
  .metrics, .pillars, .timeline-section, .news { padding: 72px 0; }
  .hero-content { padding: 130px 24px 90px; }
  .hero-btns .btn { flex: 1; justify-content: center; }
  .cta-box { padding: 48px 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PAGINAS INTERIORES
   ============================================================ */
.page-hero, .page-header-section {
  background: linear-gradient(180deg, var(--bg-800) 0%, var(--bg-900) 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 48px;
}
.page-hero .breadcrumbs, .page-header-section .breadcrumbs { margin-bottom: 16px; font-size: 0.85rem; color: var(--text-faint); }
.page-hero .breadcrumbs a, .page-header-section .breadcrumbs a { color: var(--text-faint); }
.page-hero .breadcrumbs a:hover, .page-header-section .breadcrumbs a:hover { color: var(--accent); }
.page-hero .breadcrumbs .sep, .page-header-section .breadcrumbs .sep { margin: 0 8px; }
.page-hero h1, .page-header-section h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
.page-hero .page-hero-sub, .page-header-section p { margin-top: 12px; color: var(--text-dim); font-size: 1.05rem; }

/* Noticias grid (noticias.html) */
.noticias-page { padding: 72px 0; background: var(--bg-900); }

/* Noticia detalle (noticias/*.html) */
.noticia-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 60px 0 80px; }
.noticia-body {}
.noticia-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.noticia-meta .tag { background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 8px; }
.noticia-meta .fecha { color: var(--text-faint); font-size: 0.9rem; }
.noticia-titulo { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 24px; }
.noticia-imagen-principal { width: 100%; border-radius: var(--radius); margin-bottom: 28px; background: var(--bg-700); }
.noticia-contenido p { color: var(--text-dim); margin-bottom: 18px; line-height: 1.75; }
.noticia-contenido h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 14px; color: var(--text); }
.noticia-contenido ul { color: var(--text-dim); padding-left: 22px; margin-bottom: 18px; }
.noticia-contenido ul li { margin-bottom: 8px; line-height: 1.65; }
.noticia-contenido strong { color: var(--text); }
.noticia-contenido .destacado { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 28px 0; color: var(--text-dim); font-style: italic; }
.noticia-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.noticia-nav a { color: var(--text-dim); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; transition: color .25s; }
.noticia-nav a:hover { color: var(--accent); }

/* Sidebar noticias */
.noticia-sidebar {}
.sidebar-bloque { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.sidebar-bloque-titulo { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.sidebar-doc { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); font-size: 0.9rem; transition: color .25s; }
.sidebar-doc:last-child { border-bottom: none; }
.sidebar-doc:hover { color: var(--accent); }
.sidebar-doc-ico { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.sidebar-noticia { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-noticia:last-child { border-bottom: none; }
.sidebar-noticia img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-noticia-texto {}
.sidebar-noticia-fecha { font-size: 0.75rem; color: var(--text-faint); }
.sidebar-noticia-titulo { font-size: 0.88rem; color: var(--text-dim); line-height: 1.3; transition: color .25s; }
.sidebar-noticia:hover .sidebar-noticia-titulo { color: var(--accent); }

/* Tabs infórmate */
.informate-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer; transition: all .25s; }
.tab-btn.active, .tab-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Ayuda */
.canales-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.canal-card-v2 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .3s; }
.canal-card-v2:hover { border-color: var(--accent); }
.canal-card-v2 h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.canal-card-v2 p { color: var(--text-dim); font-size: 0.9rem; }
.canal-card-v2 a { color: var(--accent); }

@media (max-width: 900px) {
  .noticia-layout { grid-template-columns: 1fr; }
  .noticia-sidebar { display: none; }
  .canales-grid-v2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .canales-grid-v2 { grid-template-columns: 1fr; }
}
