/* ===============================
   MUCILA - Estilos principales (versión interactiva)
   Paleta: Azul, Magenta, Rosa pastel y Negro
   =============================== */

/* 🎨 Paleta */
:root {
  --azul-profundo: #1a2b6d;
  --magenta: #b013a6;
  --rosa-pastel: #f8b4d9;
  --negro: #111;
  --gris-claro: #f6f6f6;
  --blanco: #fff;

  --rosa-atom: var(--magenta);
  --azul-gris: var(--azul-profundo);
}
/* Contenedor del logo */
.logo-link {
  display: inline-block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 4px; /* espacio para el borde */
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  box-shadow: 0 0 15px rgba(255, 65, 108, 0.5);
  transition: all 0.4s ease;
}

/* Imagen del logo */
.logo-img {
  height: 70px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: all 0.4s ease;
}

/* Efecto al pasar el mouse */
.logo-link:hover {
  box-shadow: 0 0 25px rgba(255, 65, 108, 0.8), 0 0 40px rgba(255, 65, 108, 0.5);
  transform: scale(1.05);
}

/* Iluminación animada sutil alrededor */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 65, 108, 0.4), 0 0 20px rgba(255, 65, 108, 0.3);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 65, 108, 0.7), 0 0 35px rgba(255, 65, 108, 0.5);
  }
  100% {
    box-shadow: 0 0 12px rgba(255, 65, 108, 0.4), 0 0 20px rgba(255, 65, 108, 0.3);
  }
}

/* Aplicamos la animación */
.logo-link {
  animation: glowPulse 3s infinite ease-in-out;
}


.join-btn {
  background: linear-gradient(135deg, #b52bff, #a139f6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8em 1.8em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Efecto de brillo dinámico */
.join-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  z-index: 2;
}

.join-btn:hover::before {
  left: 125%;
}

/* Animación de hover */
.join-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(216, 44, 225, 0.6);
}

/* Efecto de “clic” */
.join-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(216, 44, 225, 0.6);
}

/* 🌙 Modo oscuro */
body.dark-mode {
  background-color: #111;
  color: #f0f0f0;
}
body.dark-mode header {
  background: linear-gradient(90deg, #2a2a2a, #1a1a1a);
}
body.dark-mode .card {
  background: #222;
  color: #fff;
}
body.dark-mode .tag {
  background-color: #b013a6;
  color: white;
}
body.dark-mode .search input {
  background: #222;
  color: #fff;
  border-color: #b013a6;
}
/* ===============================
   Animación para enlaces del menú principal
   =============================== */
.mainnav a {
  position: relative;
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
  cursor: pointer;
}

.mainnav a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--magenta), var(--rosa-pastel));
  border-radius: 2px;
  transition: width 0.4s ease, left 0.4s ease;
}

.mainnav a:hover {
  color: var(--rosa-pastel);
  transform: translateY(-4px);
}

.mainnav a:hover::before {
  width: 100%;
  left: 0;
}


/* ===============================
   Base
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--gris-claro);
  color: var(--negro);
  line-height: 1.6;
}

/* ===============================
   Header
   =============================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--azul-profundo), var(--magenta));
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.mainnav a {
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 500;
  transition: transform 0.3s, opacity 0.3s;
}
.mainnav a:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

/* ===============================
   HERO (Interactivo)
   =============================== */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem;
  color: var(--negro);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--rosa-pastel), var(--azul-profundo));
  transition: background-position 0.3s ease;
  cursor: none;
}

/* 💫 Fondo con efecto movimiento */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25), transparent 40%);
  transition: all 0.2s ease-out;
  pointer-events: none;
}

/* ✨ Texto animado */
.quote {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  animation: floatText 6s ease-in-out infinite;
}
@keyframes floatText {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* 🔍 Buscador */
.search-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1.0rem;
  position: relative;
  z-index: 2;
}

.search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.search:hover {
  transform: scale(1.10);
}

.search input {
  border: none;
  outline: none;
  padding: 0.5rem;
  font-size: 1rem;
  width: 300px;
}

.go {
  background: var(--magenta);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.go:hover {
  background: var(--azul-profundo);
  transform: rotate(15deg) scale(1.1);
}

/*  Tags interactivos */
.tags {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  z-index: 2;
  position: relative;
}

.tag {
  background-color: var(--azul-profundo);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  animation: floatTag 5s ease-in-out infinite alternate;
}
@keyframes floatTag {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}
.tag:hover {
  background-color: var(--magenta);
  transform: scale(1.1);
}

/* ===============================
   Acerca de
   =============================== */
.container {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  /* Fondo normal, sin degradado */
  background: none;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  color: var(--azul-profundo);
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Tarjetas con degradado animado */
.card {
  background: linear-gradient(135deg, #1a2b6d, #b013a6, #f8b4d9, #b013a6, #1a2b6d);
  background-size: 400% 400%;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: white; /* para que el texto contraste con el gradiente */
  transition: transform 0.4s, box-shadow 0.4s;
  animation: gradientAnimation 15s ease infinite;
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Botones de acción */
.action-btn {
  background: var(--azul-profundo);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:hover {
  background: var(--magenta);
  transform: scale(1.05);
}

/* Animación del gradiente */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* ===============================
   Efecto interactivo al mover el mouse
   =============================== */
.hero {
  --x: 50%;
  --y: 50%;
}

.hero:hover::before {
  background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.3), transparent 40%);
}

/* ===== Avatar más grande y dinámico con imagen ===== */
.card .avatar {
  width: 150px;               /* Tamaño fijo para que sea grande */
  height: 150px;
  margin-bottom: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
  display: inline-block;
  background: var(--rosa-pastel);
  padding: 0;                 /* Quitamos padding para que la imagen llene */
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(176, 19, 166, 0.3);
  overflow: hidden;           /* Recorta la imagen en círculo */
}

.card .avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(176, 19, 166, 0.5);
}

/* Imagen dentro del avatar */
.card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.card .avatar:hover img {
  transform: scale(1.1);
}



/* ===== Contenedor de iconos sociales ===== */
.socials {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--azul-profundo);
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 8px rgba(26,43,109,0.4);
}

.socials a:hover {
  background: var(--magenta);
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 5px 15px rgba(176,19,166,0.7);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  background: radial-gradient(circle at center, #0b0b0b 0%, #000 100%);
  color: white;
  overflow: hidden;
}

/* Fondo del hero */
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  overflow: hidden;
}

/* Logo dentro del hero (más visible y con un brillo elegante) */
.hero-logo {
  opacity: 0.18; /* antes 0.08 → más clara */
  max-width: 55%;
  height: auto;
  filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 65, 108, 0.5))
          blur(0.5px);
  animation: floatLogo 8s ease-in-out infinite;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Movimiento sutil */
@keyframes floatLogo {
  0% { transform: scale(1) translateY(0); opacity: 0.18; }
  50% { transform: scale(1.06) translateY(-10px); opacity: 0.22; }
  100% { transform: scale(1) translateY(0); opacity: 0.18; }
}

/* Texto principal sobre el logo */
.hero .quote {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

/* ===== Contenedor general ===== */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr; /* tarjeta izq + tarjeta der */
  gap: 2rem;
  align-items: start;
  margin-top: -2rem;
}

/* ===== Tarjeta del lado derecho ===== */
.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 65, 108, 0.3);
}

/* ===== Contenido dentro de la tarjeta ===== */
.about-content h3 {
  font-size: 1.4rem;
  color: #0a0a0a;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}




/* ===== VENTANA DE EVENTOS (MEJORADA) ===== */
.modal-overlay {
  display: none; 
  position: fixed;
  z-index: 9999;
  inset: 0; /* Cubre toda la pantalla */
  background-color: rgba(10, 15, 40, 0.85); /* Azul muy oscuro con transparencia */
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: var(--blanco);
  padding: 30px;
  margin: 0% auto;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--magenta); /* Borde de identidad */
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.close-modal {
    display: none;
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Controla el contenedor de las imágenes para que no se amontonen */
.event-banners {
  display: flex;
  flex-direction: column; /* Una debajo de otra */
  gap: 15px;              /* Espacio entre imágenes */
  margin: 15px 0;
  max-height: 400px;      /* Altura máxima para que no crezca infinito */
  overflow-y: auto;       /* Si hay muchas, permite hacer scroll */
  padding-right: 10px;
  width: 100%;
}

.event-img {
  width: 100%;            /* Se adapta al ancho del modal */
  height: auto;           /* La altura se calcula sola para NO deformar ni recortar */
  display: block;
  border-radius: 10px;
  object-fit: contain;    /* Asegura que toda la imagen quepa en su espacio */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #eee
}

/* Título con estilo MUCILA */
#modalTitle {
  color: var(--azul-profundo);
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}

#modalDescription {
  color: #444;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* Contenedor del Mapa (Iframe) */
.map-box {
  width: 100%;
  height: 280px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--gris-claro);
  margin-bottom: 20px;
}

/* Botón de cerrar elegante */
.close-btn-footer {
  background: linear-gradient(135deg, var(--azul-profundo), var(--magenta));
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(176, 19, 166, 0.3);
}

.close-btn-footer:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(176, 19, 166, 0.5);
}
.modal-banner {
  width: 100%;
  max-height: 200px; /* Evita que la imagen sea demasiado alta */
  object-fit: cover; /* Ajusta la imagen sin deformarla */
  border-radius: 12px;
  margin: 15px 0;
  border: 2px solid var(--rosa-pastel);
  display: none; /* El JS la mostrará solo si hay una imagen cargada */
}
/* Contenedor principal del cuerpo */
.modal-body-layout {
  display: flex;
  gap: 20px; /* Espacio entre imagen y mapa */
  margin: 20px 0;
  align-items: stretch;
}

/* Contenedor de la imagen */
.modal-image-container {
  flex: 1; /* Toma la mitad del espacio */
  display: flex;
  align-items: center;
}

/* Estilo base de la imagen en el modal */
#modalImage {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave */
    position: relative;
    z-index: 1;
}

#modalImage.is-zoomed {
    position: fixed;   /* Se sale del modal */
    top: 0;
    left: 0;
    width: 100vw;      /* 100% del ancho de la pantalla */
    height: 100vh;     /* 100% del alto de la pantalla */
    max-height: 100vh; /* Quitamos el límite anterior */
    object-fit: contain; /* Para que no se deforme y se vea completa */
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro profundo */
    z-index: 9999;     /* Por encima de ABSOLUTAMENTE todo */
    border-radius: 0;  /* Quitamos bordes redondeados en pantalla completa */
    padding: 20px;     /* Pequeño margen para que no toque los bordes */
    cursor: zoom-out;
}

/* Ajuste del mapa para que comparta el espacio */
.map-box {
  flex: 1; /* Toma la otra mitad del espacio */
  height: 250px;
  margin: 0; /* Quitamos el margin anterior para que se alineen bien */
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--gris-claro);
}

/* Responsivo: Si la pantalla es pequeña (celular), se ponen uno arriba del otro */
@media (max-width: 600px) {
  .modal-body-layout {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
    padding: 15px;
  }
}

/*======configuracion en css de los eventos que ya se realizaron======*/
.eventos-pasados {
    margin-top: 4rem;
    border-top: 2px solid var(--rosa-pastel);
    padding-top: 2rem;
}

.eventos-pasados h2 {
    color: var(--azul-profundo);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contenedor-historial {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.tarjeta-pasada {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    /* Sombra suave que se vuelve magenta al hacer hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(176, 19, 166, 0.1);
}
.tarjeta-pasada:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(176, 19, 166, 0.3);
    border-color: var(--magenta);
}

.imagen-pasada {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.tarjeta-pasada:hover .imagen-pasada {
    filter: grayscale(0%) brightness(1);
}

.info-pasada {
    padding: 1.2rem;
    background: #fff;
}

.fecha-realizada {
    display: inline-block;
    background: var(--gris-claro);
    color: rgba(176, 19, 166);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid var(--rosa-pastel);
}
.info-pasada h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--azul-profundo);
    font-weight: 600;
}

/* 🌙 Adaptación a Modo Oscuro */
body.dark-mode .tarjeta-pasada {
    background: #222;
    border-color: #333;
}

body.dark-mode .info-pasada {
    background: #222;
}

body.dark-mode .info-pasada h3 {
    color: var(--blanco);
}

body.dark-mode .fecha-realizada {
    background: #333;
    color: var(--rosa-pastel);
}

