/* ===============================
   MUCILA - Estilos para EVENTOS
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Heredamos variables */
:root {
  --azul-profundo: #1a2b6d;
  --magenta: #b013a6;
  --rosa-pastel: #f8b4d9;
  --negro: #111;
  --gris-claro: #f6f6f6;
  --cyan-brillante: #00d2ff; /* Color específico del wireframe eventos */
}

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

/* ===============================
   BANNER PRINCIPAL (COPIADO EXACTO DE NOSOTRAS)
   =============================== */
.main-banner {
  background: linear-gradient(135deg, var(--azul-profundo), var(--magenta));
  color: white;
  text-align: center;
  padding: 60px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Curva inferior */
.main-banner::after {
  content: "";
  position: absolute; bottom: -20px; left: 0;
  width: 100%; height: 40px;
  background: var(--gris-claro);
  border-radius: 50% 50% 0 0;
}

.main-banner h1 {
  font-size: 2.5rem; font-weight: 700; text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative; z-index: 2;
}
.main-banner p {
  font-size: 1.1rem; opacity: 0.9; position: relative; z-index: 2;
}

/* ===============================
   CONTENIDO PRINCIPAL Y BOTÓN ATRÁS
   =============================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Fila superior para el botón Atrás (Idéntico a Nosotras) */
.nav-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.arrow {
  display: inline-block;
  text-decoration: none;
  color: var(--magenta);
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.arrow:hover {
  color: var(--azul-profundo);
  transform: translateX(-4px);
}

.note-text {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

/* ===============================
   SECCIÓN CONTADOR (Color Cian del Wireframe)
   =============================== */
.counter-section {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 3rem; padding: 1rem;
  background: white; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.counter-label {
  font-size: 1.5rem; color: var(--negro); font-weight: 700;
}
.counter-badge {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5);
  color: white; padding: 0.5rem 2rem; border-radius: 50px;
  font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  min-width: 100px; text-align: center;
}

/* ===============================
   BARRA DE HERRAMIENTAS
   =============================== */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}

.filters { display: flex; gap: 1rem; flex-wrap: wrap; }
.filter-select {
  padding: 0.6rem 1.2rem; border-radius: 20px; border: 1px solid #ccc;
  background-color: white; color: #555; cursor: pointer; transition: 0.3s;
}
.filter-select:hover { border-color: var(--magenta); color: var(--magenta); }

/* Switch Toggle */
.toggle-container { display: flex; align-items: center; gap: 10px; }
.toggle-label { font-weight: 600; color: #555; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s;
}
.slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s;
}
input:checked + .slider { background-color: var(--cyan-brillante); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* ===============================
   GRID DE EVENTOS
   =============================== */
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; transition: opacity 0.5s ease;
}
.event-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); border: 1px solid #eee;
  transition: transform 0.3s;
}
.event-card:hover {
  transform: translateY(-5px); border-color: var(--magenta);
}
.event-img-box {
  width: 100%; height: 200px; background: #eee; position: relative;
}
.event-img-box img { width: 100%; height: 100%; object-fit: cover; }
.event-info { padding: 1.5rem; text-align: center; }
.event-info h3 { color: var(--azul-profundo); margin-bottom: 0.5rem; font-size: 1.2rem; }
.event-date { color: var(--magenta); font-size: 0.9rem; font-weight: 600; }

.no-map-layout {
    display: flex !important;
    flex-direction: row !important; /* Alineación horizontal */
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.no-map-layout .modal-image-container {
    flex: 1; /* 50% de ancho */
    max-width: 50%;
}

.no-map-layout #modalDescription {
    flex: 1; /* 50% de ancho */
    text-align: left;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Responsivo: en celulares se pone uno abajo del otro */
@media (max-width: 768px) {
    .no-map-layout {
        flex-direction: column !important;
    }
    .no-map-layout .modal-image-container,
    .no-map-layout #modalDescription {
        max-width: 100%;
    }
}