/* General styles */
body {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* =========================
   TOPBAR
   ========================= */
.ccb-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  background-color: #F0F533; /* Yellow */
  padding: 0.75rem 1rem;
  font-size: 0.8rem; /* Subtle size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.ccb-topbar i {
  font-size: 0.95rem;
  color: #0E4EB5;
}

.ccb-topbar a {
  color: #0E4EB5;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ccb-topbar a:hover {
  color: #084298;
  transform: scale(1.15);
}

/* =========================
   NAVBAR
   ========================= */
.ccb-navbar-white {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  top: 48px;
  z-index: 1030;
  transition: background-color 0.3s ease;
}

.ccb-navbar-white .navbar-brand,
.ccb-navbar-white .nav-link {
  color: #2c3e50 !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.ccb-navbar-white .nav-link:hover {
  color: #0E4EB5 !important;
  background-color: rgba(14, 78, 181, 0.08);
  border-radius: 0.3rem;
}

.ccb-navbar-white .btn-outline-dark {
  border-color: #0E4EB5;
  color: #0E4EB5;
  font-weight: 500;
  transition: all 0.3s ease;
}

.ccb-navbar-white .btn-outline-dark:hover {
  background-color: #0E4EB5;
  color: #fff;
  border-color: #0E4EB5;
  transform: translateY(-2px);
}

.ccb-navbar-white .navbar-brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.ccb-navbar-white .navbar-brand:hover img {
  transform: scale(1.05);
}

/* =========================
   DROPDOWN "CLUB"
   ========================= */
.ccb-dropdown .dropdown-caret {
  font-size: 0.7rem;
  opacity: 0.7;
  transform: translateY(1px);
}

.ccb-dropdown-menu {
  min-width: 220px;
  padding: 0.5rem 0;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ccb-dropdown-menu .dropdown-item {
  padding: 0.6rem 1.25rem;
  color: #b51e4c; /* Raspberry */
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ccb-dropdown-menu .dropdown-item + .dropdown-item {
  border-top: 1px solid rgba(181, 30, 76, 0.1);
}

.ccb-dropdown-menu .dropdown-item:hover,
.ccb-dropdown-menu .dropdown-item:focus {
  background-color: rgba(181, 30, 76, 0.05);
  color: #8e153c;
}

@media (min-width: 992px) {
  .ccb-dropdown:hover > .ccb-dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    transform: translateY(0);
  }
  .ccb-dropdown > a.nav-link:after {
    display: none !important;
  }
}

/* =========================
   MAIN CONTENT
   ========================= */
.ccb-main {
  padding-top: 120px; /* topbar (48px) + navbar (~72px) */
  min-height: calc(100vh - 300px);
}

/* =========================
   COMBO SLIDER + HUINCHA
   ========================= */
.ccb-combo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.ccb-combo-left, .ccb-combo-right {
  padding: 0;
}

/* SLIDER */
#newsSlider {
  height: 100%;
}

#newsSlider .carousel-item {
  height: 100%;
}

.ccb-combo-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.cbb-shadow {
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.05);
}

.cbb-rounded-left {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.cbb-rounded-right {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.ccb-combo-caption {
  margin-bottom: 0.75rem;
  margin-left: 0.75rem;
  max-width: min(90%, 640px);
  border-radius: 0.4rem;
}

.bg-caption {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  padding: 0.75rem 1rem;
}

/* Controles del slider */
#newsSlider .ccb-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0E4EB5;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#newsSlider .ccb-ctrl:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

#newsSlider .carousel-control-prev.ccb-ctrl {
  left: 12px;
}

#newsSlider .carousel-control-next.ccb-ctrl {
  right: 12px;
}

/* =========================
   HUINCHA DE NOTICIAS
   ========================= */
.ccb-news-panel {
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.ccb-news-top {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.ccb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFCC00;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.ccb-news-list-wrap {
  max-height: 460px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d2e6 transparent;
}

.ccb-news-list-wrap::-webkit-scrollbar {
  width: 6px;
}

.ccb-news-list-wrap::-webkit-scrollbar-thumb {
  background: #c7d2e6;
  border-radius: 6px;
}

.ccb-news-list {
  margin: 0;
  padding: 0;
}

.ccb-news-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ccb-news-link {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.2s ease, border-left 0.2s ease;
}

.ccb-news-link .date {
  min-width: 58px;
  font-weight: 600;
  color: #0E4EB5;
}

.ccb-news-link .title {
  flex: 1;
}

.ccb-news-link:hover {
  background: rgba(14, 78, 181, 0.06);
  padding-left: 1.15rem;
}

.ccb-news-item.active .ccb-news-link {
  background: rgba(14, 78, 181, 0.1);
  border-left: 3px solid #0E4EB5;
  padding-left: calc(1rem - 3px);
}

/* =========================
   EFECTOS GENERALES
   ========================= */
.ccb-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ccb-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* =========================
   Ramas deportivas (rail)
   ========================= */
.sports-rail {
  position: relative;
  margin-top: 0.75rem;
}

.rail-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 40px;
  will-change: scroll-position;
  contain: content;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 260px;
  min-width: 260px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rail-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.rail-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.rail-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 5px;
  backdrop-filter: blur(3px);
}

.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.rail-prev {
  left: 6px;
}

.rail-next {
  right: 6px;
}

.rail-btn:hover {
  background: #f8f9fa;
  transform: translateY(-50%) scale(1.05);
}

/* =========================
   Próximos eventos (grid + lightbox)
   ========================= */
.event-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.event-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.event-thumb:hover img {
  transform: scale(1.05);
}

.event-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 90%);
  color: #fff;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.event-caption .title {
  font-weight: 600;
  line-height: 1.2;
}

.event-caption .date {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Lightbox */
.event-lightbox {
  position: relative;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.event-lightbox img {
  width: 100%;
  height: auto;
  display: block;
}

.event-lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  padding: 0.75rem 1rem;
}

.event-lightbox-caption .title {
  font-weight: 600;
}

.event-lightbox-caption .date {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* =========================
   Footer
   ========================= */
.ccb-footer {
  background: #fff; /* White footer */
  color: #2c3e50;
  padding: 3rem 0;
  border-top: 1px solid #e9ecef;
}

.ccb-footer .ccb-footer-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.ccb-footer .ccb-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ccb-footer .ccb-footer-links a {
  color: #0E4EB5; /* Blue text */
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ccb-footer .ccb-footer-links a:hover {
  color: #F0F533; /* Yellow hover */
  transform: translateX(3px);
}

.ccb-footer-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1));
  margin: 2rem 0;
}

.ccb-footer-bottom {
  color: #6c757d;
  font-size: 0.9rem;
}

.map-embed {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991.98px) {
  .ccb-news-list-wrap {
    max-height: 360px;
  }

  .ccb-footer {
    padding: 2rem 0;
  }

  .map-embed {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 767.98px) {
  .ccb-main {
    padding-top: 100px;
  }

  .ccb-combo {
    border-radius: 6px;
  }

  .cbb-rounded-left,
  .cbb-rounded-right {
    border-radius: 6px;
  }

  .rail-track {
    padding: 4px 20px;
  }

  .rail-item {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .rail-img {
    height: 160px;
  }

  .ccb-topbar {
    padding: 0.5rem 1rem;
  }
}