/* ------------------------------------------------------------------
   style.css - La Veta News
   Dashboard "Real-time live coverage" · Estilo institucional técnico
   Colores: #291753, #5612e2, acentos #4adfdd
   Fuentes: Inter (sans) y JetBrains Mono para toques técnicos
------------------------------------------------------------------ */

/* ---------- RESET Y VARIABLES GLOBALES ---------- */
:root {
  --primary-dark: #291753;
  --primary-deep: #5612e2;
  --accent-cyan: #4adfdd;
  --accent-cyan-dark: #2bc0be;
  --gray-bg-light: #f8fafc;
  --gray-card-bg: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --border-glow: rgba(86, 18, 226, 0.15);
  --shadow-card: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(86, 18, 226, 0.05);
  --shadow-hover: 0 25px 40px -14px rgba(41, 23, 83, 0.15);
}

body.dashboard-live {
  background: #f0f4f9;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  color: var(--text-main);
  scroll-behavior: smooth;
  padding-top: 82px; /* espacio para navbar fija */
}

/* tipografía técnica y neutral */
h1, h2, h3, .brand-text, .card-title, .section-header h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-header h2, .dashboard-title {
  font-weight: 700;
}

.navbar, .btn, .card-tag, .status-badge, .live-ticker-bar {
  font-family: 'Inter', monospace;
  font-weight: 500;
}

/* ---------- BARRA FIJA (glassmorph + colores institucionales) ---------- */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 0 rgba(86, 18, 226, 0.1);
  border-bottom: 1px solid rgba(86, 18, 226, 0.2);
  padding: 0.65rem 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(12%) sepia(72%) saturate(3000%) hue-rotate(248deg) brightness(98%);
  /* transforma logo a tono primario oscuro pero se adapta */
}

.logo-placeholder {
  background: #fff;
  border-radius: 10px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

.brand-text .light-accent {
  color: var(--accent-cyan);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-weight: 700;
}

.nav-link {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.2s;
  border-radius: 40px;
  padding: 0.5rem 1rem;
}
.nav-link:hover, .nav-link:focus {
  color: var(--primary-deep);
  background: rgba(86, 18, 226, 0.08);
}

.btn-outline-facebook {
  border: 1.5px solid #1877f2;
  color: #1877f2;
  background: transparent;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
}
.btn-outline-facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}
.btn-outline-accent {
  border: 1.5px solid var(--accent-cyan);
  color: var(--primary-deep);
  border-radius: 40px;
  background: transparent;
}
.btn-outline-accent:hover {
  background: var(--accent-cyan);
  color: var(--primary-dark);
}

/* ---------- HERO / TICKER EN VIVO ---------- */
.hero-engage {
  padding: 1.8rem 2rem 0.5rem 2rem;
}
.live-ticker-bar {
  background: rgba(41, 23, 83, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(74, 223, 221, 0.3);
}
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.3);
  animation: pulseLive 1.4s infinite;
}
@keyframes pulseLive {
  0% { opacity: 0.4; transform: scale(0.8);}
  100% { opacity: 1; transform: scale(1.2);}
}
.ticker-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--primary-dark);
  font-weight: 500;
}

.hero-card {
  background: white;
  border-radius: 32px;
  padding: 2rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(86,18,226,0.1);
}
.dashboard-title {
  font-size: 2rem;
  font-weight: 800;
}
.title-badge {
  display: inline-block;
  background: rgba(74,223,221,0.2);
  color: var(--primary-deep);
  font-size: 0.7rem;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.4px;
}
.lead-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 90%;
}
.btn-facebook-live, .btn-email-live {
  border-radius: 40px;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  margin: 0.2rem;
  transition: 0.2s;
}
.btn-facebook-live {
  background: #1877f2;
  color: white;
  border: none;
}
.btn-facebook-live:hover {
  background: #0e63cf;
  transform: translateY(-2px);
}
.btn-email-live {
  background: var(--primary-dark);
  color: white;
  border: none;
}
.btn-email-live:hover {
  background: var(--primary-deep);
}

/* ---------- DASHBOARD SECTIONS (live coverage look) ---------- */
.dashboard-main {
  padding: 0 2rem 2rem 2rem;
}
.dashboard-section {
  margin-bottom: 3rem;
}
.section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  border-left: 5px solid var(--accent-cyan);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.section-icon {
  font-size: 1.7rem;
  color: var(--primary-deep);
  margin-right: 12px;
  background: rgba(86,18,226,0.08);
  padding: 8px;
  border-radius: 18px;
}
.section-header h2 {
  font-size: 1.65rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-badge {
  background: rgba(41, 23, 83, 0.06);
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(74,223,221,0.5);
}

/* CARDS: estilo dashboard métricas, bordes suaves, fondo claro */
.coverage-card {
  background: var(--gray-card-bg);
  border: none;
  border-radius: 28px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.dashboard-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent-cyan);
  transition: transform 0.4s ease;
}
.coverage-card:hover .dashboard-img {
  transform: scale(1.02);
}
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(86, 18, 226, 0.08);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 0.75rem;
  color: var(--primary-deep);
  font-weight: 600;
  letter-spacing: -0.2px;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.full-text-content {
  background: rgba(41, 23, 83, 0.02);
  border-radius: 24px;
  border-left: 3px solid var(--accent-cyan);
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 450;
}

/* background metálico neutro */
.bg-dashboard-meta {
  background: linear-gradient(110deg, #ffffff 0%, #f9fafb 100%);
}

/* ---------- FOOTER Y BOTONES FINALES ---------- */
.follow-engage-bottom {
  margin-top: 2rem;
}
.dashboard-footer-card {
  background: white;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(74,223,221,0.3);
}
.btn-follow-facebook {
  background: #1877f2;
  color: white;
  border-radius: 60px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
}
.btn-follow-facebook:hover {
  background: #0f5fcc;
  color: white;
}
.btn-contact-email {
  background: var(--primary-dark);
  color: white;
  border-radius: 60px;
  padding: 0.7rem 1.6rem;
}
.btn-contact-email:hover {
  background: #3b1b7a;
}
.mini-live-badge {
  background: rgba(74,223,221,0.12);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
}
.footer-divider {
  margin: 1.5rem 0 1rem 0;
  border-top: 2px dashed rgba(86,18,226,0.15);
}
.footer-note {
  font-style: italic;
  font-size: 0.85rem;
}

/* ---------- RESPONSIVE (mobile first, ajuste de dashboard) ---------- */
@media (max-width: 768px) {
  body.dashboard-live {
    padding-top: 70px;
  }
  .dashboard-main {
    padding: 0 1rem 1.5rem 1rem;
  }
  .hero-card {
    padding: 1.2rem;
  }
  .dashboard-title {
    font-size: 1.5rem;
  }
  .lead-text {
    max-width: 100%;
  }
  .section-header h2 {
    font-size: 1.3rem;
  }
  .status-badge {
    font-size: 0.6rem;
    margin-top: 8px;
  }
  .coverage-card .dashboard-img {
    height: 160px;
  }
  .btn-follow-facebook, .btn-contact-email {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  .brand-text {
    font-size: 1.2rem;
  }
  .nav-logo-img {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .hero-engage {
    padding: 1rem 0.5rem 0.2rem 0.5rem;
  }
  .social-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .btn-facebook-live, .btn-email-live {
    width: 100%;
    text-align: center;
  }
  .section-header {
    flex-direction: column;
  }
  .dashboard-footer-card {
    padding: 1.2rem;
  }
}

/* ---------- EFECTOS LIVE / DASHBOARD (pequeñas animaciones) ---------- */
.status-badge i, .live-dot {
  transition: all 0.1s ease;
}
.coverage-card {
  transition: transform 0.2s ease, box-shadow 0.25s;
}
.nav-link i {
  margin-right: 4px;
  font-size: 0.85rem;
}

/* Imagen alternativa: efecto moderno sutil */
.dashboard-img {
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.coverage-card:hover .dashboard-img {
  filter: brightness(0.98) contrast(1.02);
}

/* scroll suave */
html {
  scroll-padding-top: 90px;
}

/* enlaces de anclaje */
a[href^="#"] {
  scroll-margin-top: 85px;
}
/* ---------- LOGO GRANDE SOLO IMAGEN ---------- */
.navbar-brand {
  padding: 0;
  margin: 0;
}


.nav-logo-img:hover {
  transform: scale(1.02);
}

.logo-placeholder {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Ajuste para móviles - logo más grande también en mobile */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 50px;
    max-width: 180px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .nav-logo-img {
    height: 42px;
    max-width: 150px;
  }
}
.nav-logo-img {
  height: 65px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: none;  /* Fuerza a que no tenga ningún filtro */
  transition: transform 0.2s ease;
}
