/* ---------------------------------- */
/* ESTILOS PARA DETALLE DE EVENTO     */
/* ---------------------------------- */

/* Hero Section */
body {
  margin: 0;
  padding: 0;

}
.hero {
 background-color: #772537;;
  background-size: cover;
  background-position: center;
  height: 70vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 4px 20px 8px rgb(0 0 0);
  position: relative;
  font-family: 'Genty Demo', sans-serif;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  margin-top: 6rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 0;
  animation: fadeInUp 1s ease;
}

/* Contenedor Principal */
.detalle-evento {
  max-width: 1200px;
  margin: 10px  auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
}

.evento-contenido {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8d5c0;
  animation: fadeIn 0.6s ease forwards;
}

/* Galería de Medios */
.galeria-eventos {
  margin-bottom: 2.5rem;
}

.galeria-principal {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria-principal img,
.galeria-principal video {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.galeria-principal:hover img,
.galeria-principal:hover video {
  transform: scale(1.02);
}

.galeria-miniaturas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.miniatura {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.miniatura:hover {
  transform: translateY(-5px);
  border-color: #bc955c;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.miniatura img,
.miniatura video {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.miniatura-video {
  position: relative;
}

.miniatura-video i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.8rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.miniatura-video video {
  filter: brightness(0.8);
}

/* Información del Evento */
.info-evento {
  margin-bottom: 3rem;
}

.info-evento h2 {
  color: #772537;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #bc955c;
  display: flex;
  align-items: center;
  gap: 12px;
}

.direccion-evento,
.contacto-evento {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: #f9f5f0;
  border-radius: 8px;
}

.direccion-evento i,
.contacto-evento i {
  color: #bc955c;
  font-size: 1.2rem;
  min-width: 25px;
  text-align: center;
}

.descripcion-evento {
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: #444;
  font-size: 1.05rem;
  padding: 0.5rem;
}

.detalles-evento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.detalle-item {
  display: flex;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8d5c0;
  transition: all 0.3s ease;
}

.detalle-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.detalle-icono {
  color: #bc955c;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f9f5f0;
  border-radius: 50%;
}

.detalle-contenido h3 {
  margin: 0 0 0.5rem 0;
  color: #772537;
  font-size: 1.1rem;
}

.detalle-contenido p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Sidebar */
.evento-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8d5c0;
  animation: fadeIn 0.6s ease forwards;
}

.sidebar-card:nth-child(1) { animation-delay: 0.1s; }
.sidebar-card:nth-child(2) { animation-delay: 0.2s; }
.sidebar-card:nth-child(3) { animation-delay: 0.3s; }

.sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #772537;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e6d9;
}

.sidebar-card h3 i {
  color: #bc955c;
  font-size: 1.4rem;
}

.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }
.email { background-color: #772537; }


/* Contenedor principal del mapa */
.mapa-evento {
    margin-top: 15px;
}

/* Estilo para la dirección */
.direccion-mapa {
    background: #f9f5f0;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.direccion-mapa i {
    color: #bc955c;
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.direccion-mapa p {
    margin: 0;
    font-size: 0.95rem;
    color: #772537;;
    line-height: 1.4;
}

/* Miniatura del mapa */
.miniatura-mapa {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px #772537;;
}

.miniatura-mapa img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.miniatura-mapa:hover img {
    transform: scale(1.03);
}

.texto-mapa {
    display: block;
    background: #772537;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.miniatura-mapa:hover .texto-mapa {
    background: #993858;
}

.texto-mapa i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Mensaje cuando no hay ubicación */
.sin-ubicacion {
    color: #777;
    font-style: italic;
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}




.eventos-relacionados {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eventos-relacionados li {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed #e8d5c0;
  transition: all 0.3s ease;
}

.eventos-relacionados li:hover {
  border-bottom-color: #bc955c;
}

.eventos-relacionados li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.fecha-rel {
  display: block;
  font-size: 0.85rem;
  color: #bc955c;
  margin-bottom: 5px;
  font-weight: bold;
}

.eventos-relacionados a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  font-size: 0.95rem;
}

.eventos-relacionados a:hover {
  color: #772537;
  padding-left: 5px;
}

.no-eventos {
  color: #777;
  font-style: italic;
  margin: 0;
  text-align: center;
  padding: 10px 0;
}

/* ---------------------------------- */
/* ANIMACIONES                        */
/* ---------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---------------------------------- */
/* RESPONSIVE DESIGN                  */
/* ---------------------------------- */
@media (max-width: 1024px) {
  .detalle-evento {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .evento-sidebar {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    display: grid;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .evento-contenido {
    padding: 1.8rem;
  }
  
  .sidebar-card {
    padding: 1.8rem;
  }
  
  .detalles-evento {
    grid-template-columns: 1fr;
  }
  
  .galeria-miniaturas {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .evento-contenido, .sidebar-card {
    padding: 1.5rem;
  }
  
  .info-evento h2 {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .detalle-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .detalle-item i {
    margin-top: 0;
  }
  
  .evento-sidebar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
    .miniatura-mapa img {
        height: 120px;
    }
    
    .direccion-mapa {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .miniatura-mapa img {
        height: 100px;
    }
    
    .texto-mapa {
        padding: 8px;
        font-size: 0.85rem;
    }
}