/* ============ BDS Eventos - Carrusel y Popup ============ */

.bds-events-section {
  background: transparent;
  padding: 20px 0;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  position: relative;
}

.bds-events-nav-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.bds-events-nav {
  display: flex;
  gap: 10px;
}

.bds-events-nav button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.bds-events-nav button:hover {
  background: #c8102e;
  border-color: #c8102e;
}

/* Paginación con puntitos */
.bds-events-pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.bds-events-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  border: none;
  margin: 0;
}

.bds-events-pagination .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.5);
}

.bds-events-pagination .swiper-pagination-bullet-active {
  background: #c8102e;
}

.bds-events-pagination .swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid #c8102e;
  border-radius: 50%;
}

/* Tarjetas */
.bds-event-card {
  background: transparent;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.bds-event-card:hover {
  transform: translateY(-4px);
}

.bds-event-image {
  position: relative;
  overflow: visible;
}

.bds-event-image > .bds-img-wrap {
  overflow: hidden;
}

.bds-event-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bds-event-card:hover .bds-event-image img {
  transform: scale(1.05);
}

.bds-event-date {
  position: absolute;
  bottom: -16px;
  left: 16px;
  background: #c8102e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  z-index: 2;
}

.bds-event-body {
  padding: 30px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
}

.bds-event-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.bds-event-body p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 -22px;
  padding: 0 22px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex: 1;
}

.bds-event-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 4px;
}

.bds-loc-icon {
  width: 16px;
  height: 16px;
  color: #c8102e;
  flex-shrink: 0;
}

/* ============ Popup / Modal ============ */
.bds-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483647 !important;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bds-modal.is-open {
  display: block !important;
}

.bds-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.bds-modal-content {
  position: relative;
  background: #1a1a1a;
  color: #fff;
  width: calc(100% - 30px);
  max-width: 900px;
  margin: 30px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: bdsModalIn 0.3s ease;
  z-index: 2;
}

@keyframes bdsModalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bds-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  background: #c8102e;
  border: 3px solid #fff;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  border-radius: 50%;
}

.bds-modal-close:hover {
  background: #fff;
  color: #c8102e;
  transform: scale(1.05);
}

.bds-modal-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.bds-modal-image-wrap {
  position: relative;
}

.bds-modal-date-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: #c8102e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}

.bds-modal-inner {
  padding: 36px;
  font-family: 'Roboto Condensed', sans-serif;
}

.bds-modal-inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.15;
}

.bds-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bds-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bds-meta-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c8102e;
  font-weight: 600;
}

.bds-meta-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.bds-modal-content-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.bds-modal-content-text p { margin: 0 0 14px; }
.bds-modal-content-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .bds-modal-inner { padding: 24px; }
  .bds-modal-image { height: 220px; }
}

@media (max-width: 600px) {
  .bds-modal-content {
    margin: 20px auto;
  }
  .bds-modal-close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    width: 44px;
    height: 44px;
    font-size: 26px;
    z-index: 2147483647 !important;
  }
}
