/* ==========================================================================
   Star Comunicaciones - Microsite: Monitorización Inteligente de Emisiones
   Estilo: Corporativo Luminoso (Broadcast Tech Light Mode)
   ========================================================================== */

:root {
  /* Colores corporativos Starcom + Broadcast Tech */
  --sc-blue: #009fe3;
  --sc-blue-dark: #0277bd;
  --sc-blue-deep: #0c4a6e;
  --sc-blue-light: #e0f4fe;
  --sc-blue-subtle: #f0f9ff;
  --sc-orange: #f39200;
  --sc-orange-dark: #d97706;
  --sc-orange-light: #fef3c7;

  /* Paleta neutra modo claro */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f7fb;
  --bg-tertiary: #edf2f9;
  --surface-card: #ffffff;
  --surface-dark: #0f172a;
  --surface-dark-2: #1e293b;

  /* Textos */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Bordes y sombras */
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(2, 132, 199, 0.14), 0 8px 20px -6px rgba(15, 23, 42, 0.06);

  /* Colores de métricas */
  --metric-music: #2563eb;
  --metric-word: #f39200;
  --metric-ads: #ef4444;
  --metric-editorial: #4f46e5;
  --metric-news: #dc2626;
  --metric-traffic: #16a34a;
  --metric-weather: #ea580c;
  --metric-sports: #0891b2;
  --metric-culture: #9333ea;

  /* Radios y contenedores */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container-max: 1240px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Barra Superior Corporativa (Topbar)
   ========================================================================== */
.topbar {
  background-color: var(--surface-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #38bdf8;
  font-weight: 600;
}

.topbar__badge-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
  font-weight: 500;
}

.topbar__link:hover {
  color: var(--sc-orange);
}

/* ==========================================================================
   Cabecera / Navegación Principal
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-strong);
}

.brand__product {
  display: flex;
  flex-direction: column;
}

.brand__product-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-blue-dark);
}

.brand__product-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sc-blue), var(--sc-orange));
  transition: width var(--transition);
}

.main-nav__link:hover {
  color: var(--sc-blue-dark);
}

.main-nav__link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Botones y Etiquetas Comunes
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  line-height: 1.2;
}

.btn--primary {
  background: linear-gradient(135deg, var(--sc-blue) 0%, var(--sc-blue-dark) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(0, 159, 227, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(0, 159, 227, 0.55);
}

.btn--accent {
  background: linear-gradient(135deg, var(--sc-orange) 0%, var(--sc-orange-dark) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(243, 146, 0, 0.35);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(243, 146, 0, 0.5);
}

.btn--outline {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--sc-blue);
  color: var(--sc-blue-dark);
  background-color: var(--sc-blue-subtle);
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.86rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background-color: var(--sc-blue-light);
  color: var(--sc-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-eyebrow--orange {
  background-color: var(--sc-orange-light);
  color: #b45309;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 100%;
  width: 100%;
}

/* ==========================================================================
   1. HERO PRINCIPAL
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 159, 227, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 12% 80%, rgba(243, 146, 0, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero__wave-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 85%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.25rem, 4.2vw, 3.45rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero__title span {
  color: var(--sc-blue);
}

.hero__lead {
  margin-top: 1.35rem;
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero__badges {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.hero__pill svg {
  color: var(--sc-blue);
  flex-shrink: 0;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Tarjeta Resumen En Vivo en el Hero */
.hero-live-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  position: relative;
}

.hero-live-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-live-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-live-card__station {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Simulador de onda acústica + IA en vivo */
.waveform-box {
  margin-top: 1rem;
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.waveform-box__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  margin-bottom: 0.85rem;
}

.waveform-bars span {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-radius: 3px;
  animation: waveAnim 1.4s ease-in-out infinite alternate;
}

.waveform-bars span:nth-child(3n) {
  background: linear-gradient(180deg, #fbbf24, #f39200);
  animation-duration: 0.9s;
}

.waveform-bars span:nth-child(2n) {
  animation-delay: 0.3s;
}

@keyframes waveAnim {
  0% { height: 22%; }
  100% { height: 95%; }
}

.waveform-transcript {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sc-orange);
}

.kw-highlight {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

.hero-live-card__kpis {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mini-kpi {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.mini-kpi__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mini-kpi__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.mini-kpi__sub {
  font-size: 0.73rem;
  color: var(--sc-blue-dark);
  font-weight: 600;
}

/* ==========================================================================
   2. DEFINICIÓN + FLUJO EN 4 ETAPAS (Sección Fusionada)
   ========================================================================== */
.section-padded {
  padding: 5.5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.def-contrast-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.def-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.def-box p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contrast-card {
  background: linear-gradient(145deg, var(--surface-dark) 0%, #0c4a6e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.contrast-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  background: rgba(243, 146, 0, 0.2);
  border: 1px solid rgba(243, 146, 0, 0.45);
  color: #fcd34d;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.contrast-card h3 {
  margin-top: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.contrast-card p {
  margin-top: 0.75rem;
  color: #cbd5e1;
  font-size: 0.96rem;
}

.contrast-card__links {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.contrast-card__links a {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.contrast-card__links a:hover {
  color: var(--sc-orange);
}

/* Pipeline 4 Pasos */
.pipeline-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pipeline-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sc-blue);
}

.step-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sc-blue-dark);
  background: var(--sc-blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sc-blue-light), #ffffff);
  border: 1px solid #bae6fd;
  color: var(--sc-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.step-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.55rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   3. SIMULADOR DE DASHBOARD INTERACTIVO EN ESPAÑOL (INFORME VISUAL)
   ========================================================================== */
.dashboard-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #ffffff 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.dashboard-header__intro {
  width: 100%;
}

.dashboard-header__subtitle {
  max-width: 100%;
  width: 100%;
}

.preset-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.preset-btn {
  border: none;
  background: transparent;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.preset-btn:hover {
  color: var(--sc-blue-dark);
  background: var(--sc-blue-subtle);
}

.preset-btn.is-active {
  background: var(--sc-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 159, 227, 0.35);
}

/* Ventana de aplicación recreada en HTML/CSS */
.app-window {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 680px;
}

/* Barra lateral de la app */
.app-sidebar {
  background: var(--surface-dark);
  color: #cbd5e1;
  padding: 1.5rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-sidebar__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.app-sidebar__bars span {
  width: 4px;
  border-radius: 2px;
  background: var(--sc-orange);
}

.app-sidebar__bars span:nth-child(1) { height: 45%; background: var(--sc-blue); }
.app-sidebar__bars span:nth-child(2) { height: 85%; background: var(--sc-blue); }
.app-sidebar__bars span:nth-child(3) { height: 100%; background: var(--sc-orange); }
.app-sidebar__bars span:nth-child(4) { height: 65%; background: var(--sc-orange); }

.app-sidebar__title {
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.app-sidebar__nav {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.app-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.app-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.app-nav-item.is-active {
  background: rgba(0, 159, 227, 0.18);
  color: #38bdf8;
  border-left: 3px solid var(--sc-blue);
}

.app-sidebar__footer {
  font-size: 0.72rem;
  color: #64748b;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Contenido principal del Dashboard */
.app-main {
  padding: 1.75rem 2rem;
  background: #f8fafc;
  min-width: 0;
  width: 100%;
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-topbar__title h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.app-topbar__title p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-action-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sc-blue-dark);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.app-action-link:hover {
  border-color: var(--sc-blue);
  background: var(--sc-blue-subtle);
}

/* Barra de filtros del informe */
.app-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
  gap: 0.75rem;
  align-items: end;
  background: #ffffff;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.filter-field {
  min-width: 0;
}

.filter-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.filter-field label span {
  color: #ef4444;
}

.filter-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-search-btn {
  background: var(--sc-blue);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 0.58rem 1.1rem;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

/* Paneles de pestañas dentro del Dashboard */
.app-tab-panel {
  display: none;
}

.app-tab-panel.is-visible {
  display: block;
}

.report-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.report-grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1.25rem;
}

.report-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.report-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.report-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.report-card__title svg {
  color: var(--sc-orange);
}

.report-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.stats-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.meta-item__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-item__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.meta-item__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.station-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--sc-blue-subtle);
  border: 1px solid #bae6fd;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sc-blue-deep);
}

.shares-bars-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem;
}

.share-metric__big {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-top: 0.2rem;
}

.progress-track {
  margin: 0.45rem 0;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-fill--music {
  background: var(--metric-music);
}

.progress-fill--word {
  background: var(--metric-word);
}

/* Gráfico Circular (Donut SVG) */
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-svg {
  width: 175px;
  height: 175px;
  transform: rotate(-90deg);
}

.donut-segment {
  fill: none;
  stroke-width: 7.5;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
}

.donut-legend {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Barra apilada horizontal de categorías de palabra */
.stacked-bar-container {
  margin-top: 0.75rem;
}

.stacked-bar {
  display: flex;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}

.stacked-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  transition: width 0.5s ease;
  overflow: hidden;
}

.category-legend {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Barra extra de Cobertura Territorial e Idiomas Cooficiales */
.spain-metrics-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.spain-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.spain-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  max-width: 100%;
  overflow-wrap: break-word;
}

.spain-pill strong {
  color: var(--sc-blue-dark);
}

/* Pestaña 2: Reloj de Emisión Hora a Hora */
.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hour-slot {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.hour-slot__head {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.hour-slot__bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* Pestaña 3: Buscador de Transcripciones y Alertas */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.alert-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--sc-blue);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.alert-item--urgent {
  border-left-color: var(--sc-orange);
}

.alert-item__meta {
  display: flex;
  wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   4. CAPACIDADES CLAVE + FUNCIONALIDADES EXTRA + REGULACIÓN ESPAÑA
   ========================================================================== */
.features-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.feature-card--highlight {
  background: linear-gradient(180deg, var(--sc-blue-subtle) 0%, #ffffff 100%);
  border-color: #7dd3fc;
}

.feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sc-blue-light);
  color: var(--sc-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card--highlight .feature-card__icon {
  background: var(--sc-orange-light);
  color: var(--sc-orange-dark);
}

.feature-card__badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.feature-card--highlight .feature-card__badge {
  background: #fef3c7;
  color: #b45309;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  flex: 1;
}

/* Bloque Ecosistema de Módulos Conectados */
.ecosystem-banner {
  margin-top: 3.5rem;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.ecosystem-banner__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.module-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.module-box--active {
  background: var(--sc-blue-subtle);
  border-color: var(--sc-blue);
}

.module-box__tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sc-blue-dark);
}

.module-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0.25rem 0 0.4rem;
}

.module-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.is-open {
  border-color: var(--sc-blue);
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--sc-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--sc-blue);
  color: #ffffff;
}

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.35rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   6. CTA FINAL Y CONTACTO STAR COMUNICACIONES
   ========================================================================== */
.cta-section {
  padding: 4.5rem 0 5.5rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #0c4a6e 60%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
}

.cta-banner p {
  margin-top: 1rem;
  color: #e0f2fe;
  font-size: 1.05rem;
}

.cta-contact-cards {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.cta-contact-row svg {
  color: var(--sc-orange);
  flex-shrink: 0;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER STAR COMUNICACIONES)
   ========================================================================== */
.site-footer {
  background: var(--surface-dark);
  color: #94a3b8;
  padding: 4rem 0 2.5rem;
  border-top: 4px solid var(--sc-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-box {
  background: #ffffff;
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.footer-logo-box img {
  height: 40px;
  width: auto;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid,
  .def-contrast-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }

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

  .app-window {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .app-sidebar__nav {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .app-sidebar__footer {
    display: none;
  }

  .app-filters {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .topbar__left {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .pipeline-grid,
  .report-grid-top,
  .report-grid-bottom,
  .features-grid,
  .modules-grid,
  .faq-grid,
  .clock-grid,
  .spain-metrics-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-live-card__kpis {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }
}
