/* ============================================================ */
/* ===== BANNER PRINCIPAL ===== */
/* ============================================================ */

.events-banner {
  background: linear-gradient(135deg, #005198 0%, #26314d 100%);
  color: #ffffff;
  padding: 70px 25px;
  text-align: center;
}

.events-banner-inner {
  max-width: 900px;
  margin: 0 auto;
}

.events-banner-super {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8CDDE;
  margin-bottom: 10px;
}

.events-banner h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.events-banner-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  max-width: 720px;
}

/* ============================================================ */
/* ===== LISTA DE EVENTOS ===== */
/* ============================================================ */

.events-section {
  padding: 55px 25px;
  background: #f5f5f5;
}

.events-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

/* ===== TARJETA DE EVENTO ===== */
.event-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-top: 4px solid #005198;
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.event-card-img {
  flex: 0 0 auto;
  height: 210px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-body {
  flex: 1;
  padding: 22px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #B8CDDE;
  color: #26314d;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.event-card-body h3 {
  color: #005198;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.event-card-body p {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #005198;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 25px;
  align-self: flex-start;
  margin-top: auto;
  transition: background 0.3s;
}

.event-read-more:hover {
  background: #26314d;
}

/* ============================================================ */
/* ===== DETALLE DE EVENTO ===== */
/* ============================================================ */

.event-detail {
  padding: 50px 25px;
  background: #f5f5f5;
}

.event-detail-container {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-top: 4px solid #005198;
  padding: 30px;
}

.event-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #005198;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.event-back:hover {
  color: #26314d;
}

.event-detail-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.event-detail-img img.event-image-zoom {
  cursor: zoom-in;
}

/* ===== LIGHTBOX ===== */
.event-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.event-lightbox.active {
  display: flex;
}

.event-lightbox img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.event-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
}

.event-lightbox-close:hover {
  background: #005198;
}

.event-detail-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.event-detail-container h1 {
  color: #005198;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  margin: 15px 0 15px 0;
}

.event-detail-container p {
  color: #444444;
  font-size: 16px;
  line-height: 1.7;
}

.event-detail-pending {
  margin-top: 20px;
  background: #f0f7ff;
  border-left: 3px solid #005198;
  padding: 14px 18px;
  border-radius: 6px;
  color: #555555 !important;
}

.event-info {
  background: #f0f7ff;
  border-radius: 12px;
  border-left: 4px solid #005198;
  padding: 22px 25px;
  margin: 25px 0;
}

.event-info h2 {
  color: #005198;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 15px;
}

.event-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-info-item i {
  color: #005198;
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.event-info-label {
  font-weight: 700;
  color: #26314d;
}

.event-info-value {
  color: #444444;
}

.event-body p {
  margin-bottom: 16px;
}

.event-agenda-title {
  color: #005198;
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 12px 0;
}

.event-agenda {
  margin: 0 0 20px 0;
  padding-left: 20px;
  counter-reset: agenda;
}

.event-agenda li {
  padding: 9px 12px 9px 8px;
  margin-bottom: 8px;
  background: #f0f7ff;
  border-left: 3px solid #005198;
  border-radius: 6px;
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
}

.event-img-secondary {
  margin-top: 25px;
  margin-bottom: 0;
}

.event-paypal-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  margin: 14px auto 0 auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-paypal-btn img {
  width: 32px;
  height: auto;
}

.event-paypal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.event-session-venue {
  color: #005198;
  font-size: 16px;
  font-weight: 800;
  margin: 18px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-session-room {
  margin: 0 0 8px 0;
  padding: 8px 12px;
  background: #f0f7ff;
  border-left: 3px solid #005198;
  border-radius: 6px;
}

.event-session-room a {
  color: #005198;
  font-weight: 700;
  text-decoration: none;
}

.event-session-room a:hover {
  text-decoration: underline;
}

.event-carousel {
  position: relative;
  max-width: 900px;
  margin: 20px auto 30px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  border-top: 4px solid #005198;
}

.event-carousel-slides {
  display: flex;
  overflow: hidden;
}

.event-carousel-slide {
  display: none;
  width: 100%;
  flex-shrink: 0;
}

.event-carousel-slide.active {
  display: block;
}

.event-carousel-slide img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.event-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-carousel-control:hover {
  background: #005198;
}

.event-carousel-control.prev {
  left: 12px;
}

.event-carousel-control.next {
  right: 12px;
}

.event-carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.event-carousel-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.event-carousel-indicators .dot.active {
  background: #005198;
}

.event-register-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  background: #005198;
  color: #ffffff;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}

.event-register-btn:hover {
  background: #26314d;
}

@media (max-width: 768px) {
  .event-carousel-slide img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .event-detail {
    padding: 30px 15px;
  }

  .event-detail-container {
    padding: 18px;
  }

  .event-detail-img img {
    height: 220px;
  }

  .event-detail-container h1 {
    font-size: 21px;
  }
}

/* ============================================================ */
/* ===== RESPONSIVE ===== */
/* ============================================================ */

@media (max-width: 992px) {
  .events-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .events-banner {
    padding: 45px 18px;
  }

  .events-banner h2 {
    font-size: 30px;
  }

  .events-section {
    padding: 35px 15px;
  }

  .events-container {
    grid-template-columns: 1fr;
  }

  .event-card-img {
    height: 200px;
  }

  .event-card-body {
    padding: 20px;
  }

  .event-card-body h3 {
    font-size: 18px;
  }
}
