:root {
  --primary: #001f3f;
  --accent: #e91b23;
  --bg-light: #dde9ff;
  --white: #ffffff;
  --neon-blue: #00d4ff;
  --success: #28a745;
}

body {
  background-color: var(--bg-light);
  font-family: "Inter", sans-serif;
  margin: 0;
}

/* --- TICKER ANIMADO --- */
.ticker-container {
  background: var(--white);
  border-bottom: 2px solid #eee;
  overflow: hidden;
  height: 50px;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.ticker-wrap:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-right: 1px solid #eee;
}

.serie-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #f0f2f5;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 10px;
  color: #666;
}

.ticker-item img {
  width: 22px;
  height: 22px;
  margin: 0 8px;
  object-fit: contain;
}

/* --- HEADER Y LOGOS --- */
header {
  background: var(--primary);
  padding: 0.8rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.img_logo,
.img_logo_2 {
  height: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.img_logo {
  width: 50px;
}
.img_logo_2 {
  width: 80px;
}

.img_logo:hover,
.img_logo_2:hover {
  transform: scale(1.2);
}

.logo-box h1 {
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}
ul {
  list-style: none !important;
}
/* --- MENÚ DE NAVEGACIÓN MAIN --- */
.nav-main ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
/* --- SERIES NAV BAR --- */
.series-nav-bar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.series-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.series-nav-list a {
  color: #444;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f8f9fa;
  border: 1px solid #eee;
  transition: 0.3s;
}

.nav-main a {
  text-decoration: none;
  color: white;
  border-radius: 20px;
  padding: 5px 10px;
  border: 1px solid #eee;
  transition: 0.3s;
}
.nav-main a:hover {
  background: #ffffff;
  color: #001f3f;
}
.series-nav-list a:hover {
  background: var(--primary);
  color: white;
}

/* --- FOOTER GENERAL --- */
.main-footer {
  background-color: #0a0a0a;
  color: #e0e0e0;
  padding-top: 60px;
  margin-top: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: white;
  font-weight: 800;
}

.footer-logo span span {
  color: var(--neon-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--neon-blue);
  padding-left: 5px;
}

.footer-bottom {
  background: #000;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid #1a1a1a;
}
.inst_views {
  text-align: center !important;
  background-color: #6e6e6e2b !important;
  flex: 0 0 auto;
  width: 22%;
  margin: 1%;
  border-radius: 2%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.inst_views:hover {
  transform: scale(1.2);
  background-color: #3a39392b !important;
}
.img_inst_view {
  height: auto;
  width: 80px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.img_inst_view:hover {
  transform: scale(1.2);
}
/* --- RESPONSIVO COMÚN --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .logo-box h1 {
    font-size: 1rem;
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .nav-main ul {
    gap: 12px;
  }
  .inst_views {
    width: 100%;
  }
  .ocultar {
    display: none;
  }
}
