/* ===================================================
   ESTILOS CARRUSEL DE EVENTOS - PASAPORTE CULTURAL
   =================================================== */

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

body {
  font-family: "Source Sans Pro", "Lato", Arial, sans-serif;
  color: #383838;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Header */
.header-section {
  background: linear-gradient(135deg, #646601 0%, #787902 100%);
  color: white;
  padding: 1.5rem 0 !important;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-section h1 {
  color: white;
  font-weight: bold;
  margin: 0;
  font-size: 1.6rem;
}

.header-section p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0.3rem 0 0 0;
  font-size: 0.9rem;
}

/* ========================
   CARRUSEL
   ======================== */

.eventos-carrusel {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Viewport: muestra las cards visibles */
.carrusel-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track: contiene todas las cards en fila */
.carrusel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  padding: 10px 0;
}

/* ========================
   FLECHAS DE NAVEGACION
   ======================== */

.carrusel-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #787902;
  background: #fff;
  color: #787902;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.carrusel-flecha:hover {
  background: #787902;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carrusel-flecha:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f0f0f0;
  border-color: #ccc;
  color: #999;
}

.carrusel-flecha:disabled:hover {
  background: #f0f0f0;
  color: #999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.carrusel-flecha-izq {
  left: 5px;
}

.carrusel-flecha-der {
  right: 5px;
}

/* ========================
   EVENTO CARD
   ======================== */

.evento-card {
  min-width: 300px;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.evento-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Imagen de la card */
.evento-card-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.evento-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.evento-card:hover .evento-card-img img {
  transform: scale(1.05);
}

/* Badge de tipo */
.evento-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #787902;
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Cuadro de fecha sobre la imagen */
.evento-fecha-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.evento-fecha-dia {
  font-size: 1.4rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
}

.evento-fecha-mes {
  font-size: 0.7rem;
  font-weight: 700;
  color: #787902;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.evento-fecha-ubicacion {
  font-size: 0.6rem;
  font-weight: 600;
  color: #555;
  margin-top: 2px;
  border-top: 1px solid #ddd;
  padding-top: 3px;
}

/* Badge Finalizado */
.evento-badge-finalizado {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Card finalizada */
.evento-finalizado {
  opacity: 0.6;
  filter: grayscale(40%);
}

.evento-finalizado:hover {
  opacity: 0.85;
  filter: grayscale(20%);
}

/* Cuerpo de la card */
.evento-card-body {
  padding: 16px;
}

.evento-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evento-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================
   INDICADORES (DOTS)
   ======================== */

.carrusel-indicadores {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.carrusel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carrusel-dot.active {
  background: #787902;
  transform: scale(1.3);
}

/* ========================
   MODAL
   ======================== */

.modal-header.uca-primary {
  background: linear-gradient(135deg, #646601 0%, #787902 100%);
  border-bottom: none;
}

.modal-body {
  padding: 2rem;
}

.evento-detalle-row {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e9ecef;
}

.evento-detalle-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.evento-detalle-label {
  font-weight: 600;
  color: #646601;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.evento-detalle-value {
  color: #495057;
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .eventos-carrusel {
    padding: 0 45px;
  }

  .carrusel-flecha {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .evento-card {
    min-width: 260px;
    max-width: 260px;
  }

  .evento-card-img {
    height: 150px;
  }

  .header-section h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .eventos-carrusel {
    padding: 0 40px;
  }

  .evento-card {
    min-width: 230px;
    max-width: 230px;
  }
}
