/* =============================================================
   ORGANIZADORES.CSS — Estilos Cyberpunk para Tarjetas y Carrusel
   Diseño inspirado en Momentos NEO (NEOsubverso Ecosystem)
   ============================================================= */

/* --- SECCIÓN HORIZONTAL EN CARTELERA --- */
.org-carousel-section {
  position: relative;
  margin-bottom: 24px;
}

.org-carousel-wrap {
  position: relative;
  margin-top: 14px;
}

.org-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 6px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.05);
}

.org-carousel-track::-webkit-scrollbar {
  height: 6px;
}
.org-carousel-track::-webkit-scrollbar-track {
  background: rgba(10, 15, 29, 0.8);
  border-radius: 999px;
}
.org-carousel-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 999px;
}

/* Flechas de navegación del carrusel */
.org-nav-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.org-nav-arrow:hover {
  background: var(--cyan);
  color: var(--black);
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}
.org-nav-arrow-left { left: -16px; }
.org-nav-arrow-right { right: -16px; }

@media (max-width: 768px) {
  .org-nav-arrow { display: none; }
}

/* --- TARJETA DE ORGANIZADOR (ESTILO MOMENTOS NEO) --- */
.org-card-neo {
  background: var(--surface);
  border: 1px solid var(--border2);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.org-card-horizontal {
  flex: 0 0 295px;
  max-width: 310px;
  scroll-snap-align: start;
}

.org-card-neo:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 22px rgba(0, 200, 255, 0.2);
}

.org-card-neo.org-card-neo-oficial {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 200, 255, 0.12);
}
.org-card-neo.org-card-neo-oficial:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 200, 255, 0.35);
}

.org-pill-neo-oficial {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 0, 85, 0.3)) !important;
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
}

/* Contenedor de Imagen de Portada / Banner */
.org-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #080c16;
}

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

.org-card-neo:hover .org-card-img img {
  transform: scale(1.07);
}

/* Badges sobre la imagen */
.org-card-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  gap: 6px;
}

.org-pill-tipo {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.org-pill-verificado {
  background: rgba(0, 200, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.org-pill-stats {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Avatar de Logo superpuesto */
.org-avatar-badge {
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--cyan);
  background: var(--deep);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.org-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.org-avatar-fallback {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--cyan);
  font-size: 18px;
}

/* Cuerpo de Información */
.org-card-info {
  padding: 16px;
  background: linear-gradient(180deg, rgba(13, 13, 26, 0.98) 0%, #080812 100%);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.org-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.org-card-meta {
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.org-card-meta-dot {
  color: var(--cyan);
}

.org-card-bio {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

/* Tags de actividades / géneros */
.org-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.org-tag-pill {
  font-family: var(--font-ui);
  font-size: 9.5px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Fila de Acciones (CTA Row) */
.org-card-cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-landing {
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 200, 255, 0.4);
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.org-card-neo:hover .btn-card-landing {
  background: var(--cyan);
  color: var(--black);
}

.btn-card-seguir {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-card-seguir:hover {
  background: rgba(255, 94, 204, 0.15);
  border-color: var(--magenta);
  color: var(--magenta);
}
.btn-card-seguir.siguiendo {
  background: rgba(0, 200, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --- TARJETA ESPECIAL: VER MÁS ORGANIZADORES --- */
.org-card-ver-mas {
  flex: 0 0 280px;
  max-width: 295px;
  scroll-snap-align: start;
  background: linear-gradient(145deg, rgba(16, 24, 46, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px dashed rgba(0, 200, 255, 0.5);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.org-card-ver-mas::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.org-card-ver-mas:hover {
  border-color: var(--cyan);
  border-style: solid;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 200, 255, 0.15), 0 0 25px rgba(255, 94, 204, 0.15);
}
.org-ver-mas-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
  transition: transform 0.3s ease;
}
.org-card-ver-mas:hover .org-ver-mas-icon {
  transform: scale(1.1) rotate(6deg);
}
.org-ver-mas-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.org-ver-mas-title span {
  color: var(--cyan);
}
.org-ver-mas-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--gray-light);
  line-height: 1.5;
  margin-bottom: 20px;
}
.btn-ver-mas-cta {
  background: linear-gradient(90deg, var(--cyan), #0098ff);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 200, 255, 0.3);
}
.org-card-ver-mas:hover .btn-ver-mas-cta {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 200, 255, 0.5);
}

/* --- CATÁLOGO COMPLETO DE ORGANIZADORES (VERTICAL / GRID DE 20) --- */
.org-catalogo-section {
  padding: 30px 40px 90px;
  max-width: 1400px;
  margin: 0 auto;
}

.org-search-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.org-search-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}
@media (max-width: 768px) {
  .org-search-row { grid-template-columns: 1fr; }
  .org-catalogo-section { padding: 20px 16px 60px; }
}

.org-search-input {
  background: var(--deep);
  border: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 18px;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: border-color 0.2s;
  width: 100%;
}
.org-search-input:focus {
  border-color: var(--cyan);
}

.org-select-ciudad {
  background: var(--deep);
  border: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 12px 16px;
  outline: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.org-select-ciudad option {
  background: #0d1222;
  color: var(--white);
}

/* Chips de Filtros */
.org-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.org-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  color: var(--gray-light);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.org-chip-btn:hover {
  border-color: var(--cyan);
  color: var(--white);
}
.org-chip-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}

/* Grilla del Catálogo */
.org-catalogo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1200px) {
  .org-catalogo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .org-catalogo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 540px) {
  .org-catalogo-grid { grid-template-columns: 1fr; }
}

.org-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 16px;
  padding: 0 4px;
}
