/* Páginas de AfterSchool por sede (views/index/afterschool*.php) */

.vf-as {
  --vf-navy: #13315c;
  --vf-blue: #1d5fa5;
  --vf-sky: #e3eff8;
  --vf-bg: #f8fafc;
  --vf-border: #e2e8f0;
  --vf-text: #1e293b;
  --vf-muted: #64748b;
  --vf-gold: #f59e0b;

  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--vf-text);
  box-sizing: border-box;
}
.vf-as *, .vf-as *::before, .vf-as *::after {
  box-sizing: border-box;
}

/* Encabezado Hero estilo Viktor Frankl */
.vf-as-hero {
  background-color: var(--vf-navy);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(29, 95, 165, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 88% 25%, rgba(26, 169, 201, 0.3) 0%, transparent 45%);
  border-radius: 24px;
  padding: 32px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 18px 35px -12px rgba(19, 49, 92, 0.28);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.vf-as-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.vf-as-hero-info {
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.vf-as-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e0f2fe;
  margin-bottom: 12px;
}
.vf-as-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vf-gold);
}
.vf-as-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.vf-as-hero h2 span {
  color: #7dd3fc;
}
.vf-as-hero p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(240, 249, 255, 0.9);
}

/* Tarjeta lateral de Sede y Mascota */
.vf-as-sede-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 20px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}
.vf-as-mascota-box {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.vf-as-sede-meta small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bae6fd;
  font-weight: 700;
}
.vf-as-sede-meta strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 4px;
}
.vf-as-costo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fde68a;
}
.vf-as-costo-tag i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #fde68a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* Barra de filtros interactivos */
.vf-as-filtros-wrap {
  margin-bottom: 28px;
}
.vf-as-filtros-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.vf-as-filtros-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--vf-muted);
}
.vf-as-contador {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vf-blue);
  background: var(--vf-sky);
  padding: 5px 12px;
  border-radius: 999px;
}
.vf-as-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vf-as-btn-filtro,
.vf-as-btn-tipo {
  appearance: none;
  border: 1.5px solid var(--vf-border);
  background: #ffffff;
  color: var(--vf-text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  line-height: 1.2;
  text-align: left;
}
.vf-as-btn-filtro:hover,
.vf-as-btn-tipo:hover {
  border-color: var(--vf-blue);
  transform: translateY(-1px);
}
.vf-as-btn-filtro.activo,
.vf-as-btn-tipo.activo {
  background: var(--vf-navy);
  border-color: var(--vf-navy);
  color: #ffffff;
  box-shadow: 0 6px 14px -4px rgba(19, 49, 92, 0.35);
}
.vf-as-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vf-as-btn-filtro.activo .vf-as-dot,
.vf-as-btn-tipo.activo .vf-as-dot {
  background: #ffffff !important;
}

/* Contenedor de Categorías */
.vf-as-categorias {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.vf-as-cat-card {
  background: #ffffff;
  border: 1px solid var(--vf-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.06);
}
.vf-as-cat-card.oculto {
  display: none;
}
.vf-as-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.vf-as-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--vf-sky);
  color: var(--vf-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vf-as-cat-icon svg {
  width: 20px;
  height: 20px;
}
.vf-as-cat-head h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--vf-navy);
}

/* Grid de Actividades */
.vf-as-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.vf-as-act-card {
  background: var(--vf-bg);
  border: 1px solid var(--vf-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.vf-as-act-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(19, 49, 92, 0.14);
}
.vf-as-act-card.oculto {
  display: none;
}
.vf-as-act-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.vf-as-act-top h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.vf-as-plus-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--vf-sky);
  color: var(--vf-blue);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vf-as-nota {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: var(--vf-muted);
  font-weight: 500;
}

/* Chips de Niveles en cada tarjeta */
.vf-as-niveles-box {
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.vf-as-niveles-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 7px;
}
.vf-as-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vf-as-chip {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.2;
}

/* Pie de página: Servicio de Comedor */
.vf-as-footer {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--vf-border);
  border-radius: 22px;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.05);
}
.vf-as-comedor {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.vf-as-comedor-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.vf-as-comedor h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vf-navy);
}
.vf-as-comedor p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vf-muted);
}
.vf-as-reset-btn {
  appearance: none;
  border: none;
  background: var(--vf-navy);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.vf-as-reset-btn:hover {
  background: var(--vf-blue);
}

@media (max-width: 640px) {
  .vf-as-hero { padding: 24px 20px; }
  .vf-as-sede-card { width: 100%; }
  .vf-as-cat-card { padding: 18px 16px; }
  .vf-as-reset-btn { width: 100%; text-align: center; }
}

/* ===== Incluidas en colegiatura (✓) vs. con costo (+) — Sede Refugio ===== */
.vf-as {
  --vf-green: #7bb925;
  --vf-green-dark: #4d7c0f;
  --vf-green-soft: #ecfccb;
}

/* Leyenda en la tarjeta de la sede */
.vf-as-leyenda {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vf-as-incl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d9f99d;
}
.vf-as-incl-tag i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vf-green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.vf-as-incl-nota {
  display: block;
  margin: -2px 0 2px 22px;
  font-size: 0.68rem;
  color: rgba(240, 249, 255, 0.75);
}

/* Segundo grupo de filtros: tipo */
.vf-as-filtros + .vf-as-filtros-top {
  margin-top: 16px;
}
.vf-as-btn-tipo .vf-as-ico {
  width: 18px;
  height: 18px;
  font-size: 11px;
}
.vf-as-btn-tipo.activo .vf-as-ico {
  background: #ffffff !important;
  color: var(--vf-navy) !important;
  border-color: #ffffff !important;
}

/* Iconos ✓ / + */
.vf-as-ico {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.vf-as-ico-i {
  background: var(--vf-green);
  color: #ffffff;
}
.vf-as-ico-c {
  background: var(--vf-sky);
  color: var(--vf-blue);
}

/* Dentro de los chips de nivel (fondo de color) */
.vf-as-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vf-as-chip .vf-as-ico-i {
  background: #ffffff;
  color: var(--vf-green-dark);
}
.vf-as-chip .vf-as-ico-c {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

/* Marca arriba a la derecha de cada actividad */
.vf-as-pills {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.vf-as-plus-pill.vf-as-pill-i {
  background: var(--vf-green-soft);
  color: var(--vf-green-dark);
}
