/* Agenda cósmica — Eventos próximos */
.ec-page {
	--ec-gold: #e8b64a;
	--ec-gold-2: #f6d98a;
	--ec-violet: #8b5cf6;
	--ec-ink: #f4ecdc;
	--ec-muted: rgba(244, 236, 220, 0.72);
	--ec-card: linear-gradient(160deg, rgba(40, 26, 74, 0.82) 0%, rgba(14, 10, 28, 0.92) 100%);
	--ec-line: rgba(232, 182, 74, 0.32);
	position: relative;
	color: var(--ec-ink);
	background: radial-gradient(ellipse 80% 50% at 50% 0%, #24134a 0%, #0b0716 55%, #05030c 100%);
	overflow-x: hidden;
}
.ec-page .eventos-bg { opacity: 0.35; }
.ec-stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ec-container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.ec-container > section { margin-top: 2.5rem; }

.ec-kicker { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ec-gold); font-weight: 600; }

/* Hero */
.ec-hero { text-align: center; padding: 2.5rem 0 0.5rem; }
.ec-hero__title {
	font-family: 'Source Serif 4', Georgia, serif; font-weight: 600;
	font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; margin: 0.6rem 0 0.8rem;
	background: linear-gradient(180deg, #fff6d8 0%, #f0c260 55%, #b87a1c 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 24px rgba(139, 92, 246, 0.35));
}
.ec-hero__sub { max-width: 640px; margin: 0 auto 1.3rem; font-size: 1.08rem; line-height: 1.6; color: var(--ec-muted); }
.ec-hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.ec-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.82rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.ec-chip--gold { border-color: var(--ec-line); color: var(--ec-gold-2); }
.ec-chip__moon { display: inline-flex; }

/* Botones */
.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem 1.6rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease; }
.ec-btn--sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.ec-btn--gold { background: linear-gradient(180deg, #f6d98a 0%, #d99a2b 100%); color: #1d1206; box-shadow: 0 6px 22px rgba(224, 150, 40, 0.35); }
.ec-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(224, 150, 40, 0.55); }
.ec-btn--ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--ec-line); color: var(--ec-gold-2); }
.ec-btn--ghost:hover { background: rgba(232, 182, 74, 0.14); }
.ec-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 700; color: #1d1206; background: linear-gradient(180deg, #f6d98a, #e0a83a); }

/* Próximo encuentro */
.ec-next { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-radius: 26px; overflow: hidden; background: var(--ec-card); border: 1px solid var(--ec-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 92, 246, 0.18); }
.ec-next__media { position: relative; min-height: 320px; }
.ec-next__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-next__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(14, 10, 28, 0.95)); }
.ec-next__body { padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.ec-next__title { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; color: var(--ec-gold-2); line-height: 1.1; }
.ec-next__sub { margin: 0; color: var(--ec-muted); }
.ec-next__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; color: var(--ec-ink); font-size: 0.95rem; }
.ec-next__meta span { color: var(--ec-gold); margin-right: 0.35rem; }
.ec-countdown { display: flex; gap: 0.7rem; }
.ec-countdown div { min-width: 74px; text-align: center; padding: 0.55rem 0.4rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.ec-countdown b { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.8rem; line-height: 1; color: var(--ec-gold-2); }
.ec-countdown small { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ec-muted); }
.ec-next__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; }
.ec-price__main { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.7rem; font-weight: 600; color: var(--ec-gold-2); display: block; }
.ec-price small { color: var(--ec-muted); font-size: 0.78rem; }
.ec-next__btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Calendario cósmico */
.ec-cal { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.4rem; padding: 1.6rem; border-radius: 28px; background: radial-gradient(ellipse at 20% 0%, rgba(80, 40, 160, 0.38), transparent 60%), var(--ec-card); border: 1px solid var(--ec-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); overflow: hidden; }
.ec-cal__orbits { position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; pointer-events: none; opacity: 0.5; }
.ec-cal__orbits i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(232, 182, 74, 0.35); animation: ec-spin 60s linear infinite; }
.ec-cal__orbits i:nth-child(2) { inset: 70px; animation-duration: 90s; animation-direction: reverse; border-color: rgba(139, 92, 246, 0.45); }
.ec-cal__orbits i:nth-child(3) { inset: 140px; animation-duration: 45s; }
.ec-cal__orbits i::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ec-gold); box-shadow: 0 0 14px 3px rgba(232, 182, 74, 0.8); }
@keyframes ec-spin { to { transform: rotate(360deg); } }
.ec-cal__main, .ec-cal__side { position: relative; z-index: 1; }
.ec-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ec-cal__title { text-align: center; }
.ec-cal__title h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.15rem 0 0; color: var(--ec-gold-2); }
.ec-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ec-line); background: rgba(255, 255, 255, 0.05); color: var(--ec-gold-2); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: all 0.2s ease; }
.ec-nav:hover { background: rgba(232, 182, 74, 0.2); transform: scale(1.08); }
.ec-cal__dow, .ec-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; }
.ec-cal__dow span { text-align: center; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ec-muted); padding-bottom: 0.35rem; }
.ec-day { position: relative; aspect-ratio: 1 / 1.08; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--ec-ink); cursor: pointer; padding: 0.3rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease; }
.ec-day--empty { background: none; border: none; cursor: default; }
.ec-day:hover { transform: translateY(-2px); border-color: var(--ec-line); background: rgba(255, 255, 255, 0.07); }
.ec-day__n { font-size: 0.9rem; font-weight: 600; }
.ec-day__moon { align-self: flex-end; opacity: 0.75; display: inline-flex; }
.ec-day.is-today { border-color: var(--ec-gold-2); }
.ec-day.is-today .ec-day__n { color: var(--ec-gold-2); }
.ec-day.is-full .ec-day__moon { opacity: 1; filter: drop-shadow(0 0 6px rgba(244, 230, 184, 0.9)); }
.ec-day.is-new .ec-day__moon { opacity: 0.4; }
.ec-day.has-event { background: radial-gradient(circle at 50% 30%, rgba(232, 182, 74, 0.38), rgba(139, 92, 246, 0.22)); border-color: var(--ec-gold); animation: ec-glow 2.8s ease-in-out infinite; }
.ec-day.has-event .ec-day__n { color: #fff6d8; }
.ec-day__ev { font-size: 0.6rem; line-height: 1.15; color: var(--ec-gold-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
@keyframes ec-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 182, 74, 0.0), 0 0 12px rgba(232, 182, 74, 0.25); } 50% { box-shadow: 0 0 0 3px rgba(232, 182, 74, 0.14), 0 0 22px rgba(232, 182, 74, 0.5); } }
.ec-day.is-selected { border-color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22); }
.ec-day.has-event.is-selected { background: radial-gradient(circle at 50% 30%, rgba(246, 217, 138, 0.55), rgba(139, 92, 246, 0.35)); }
.ec-cal__legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.9rem; font-size: 0.78rem; color: var(--ec-muted); }
.ec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.ec-dot--event { background: var(--ec-gold); box-shadow: 0 0 10px var(--ec-gold); }
.ec-dot--full { background: #f4e6b8; box-shadow: 0 0 8px #f4e6b8; }
.ec-dot--new { background: #2a2145; border: 1px solid rgba(255, 255, 255, 0.35); }

/* Panel lateral */
.ec-cal__side { background: rgba(8, 5, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 1.2rem; align-self: start; backdrop-filter: blur(6px); }
.ec-side__moon { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.ec-side__moon b { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; color: var(--ec-gold-2); }
.ec-side__moon small { color: var(--ec-muted); font-size: 0.8rem; }
.ec-side__msg { font-style: italic; color: var(--ec-ink); line-height: 1.55; margin: 0 0 1rem; }
.ec-side__hint { color: var(--ec-muted); font-size: 0.8rem; margin: 0 0 0.5rem; }
.ec-side__jump { width: 100%; text-align: left; padding: 0.8rem 1rem; border-radius: 14px; background: rgba(232, 182, 74, 0.1); border: 1px solid var(--ec-line); color: var(--ec-ink); cursor: pointer; transition: background 0.2s ease; }
.ec-side__jump:hover { background: rgba(232, 182, 74, 0.22); }
.ec-side__jump b { display: block; color: var(--ec-gold-2); }
.ec-side__jump small { color: var(--ec-muted); }
.ec-side__ev { display: grid; gap: 0.55rem; }
.ec-side__img { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.ec-side__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ec-side__img:hover img { transform: scale(1.05); }
.ec-side__ev .ec-badge { justify-self: start; }
.ec-side__ev h3 { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem; color: #fff6d8; line-height: 1.2; }
.ec-side__when { margin: 0; color: var(--ec-muted); font-size: 0.88rem; line-height: 1.5; }
.ec-side__price { margin: 0; font-weight: 700; color: var(--ec-gold-2); font-size: 1.1rem; }
.ec-side__btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Lista y filtros */
.ec-list__head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.4rem; }
.ec-list__head h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; color: var(--ec-gold-2); }
.ec-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ec-filters__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.18); margin: 0 0.3rem; }
.ec-pill { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; cursor: pointer; background: rgba(255, 255, 255, 0.05); color: var(--ec-ink); border: 1px solid rgba(255, 255, 255, 0.14); transition: all 0.2s ease; }
.ec-pill:hover { border-color: var(--ec-line); }
.ec-pill.is-active { background: linear-gradient(180deg, #f6d98a, #d99a2b); color: #1d1206; border-color: transparent; font-weight: 700; }
.ec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.ec-card { border-radius: 22px; overflow: hidden; background: var(--ec-card); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease; }
.ec-card[hidden] { display: none; }
.ec-card:hover { transform: translateY(-6px); border-color: var(--ec-gold); box-shadow: 0 20px 44px rgba(139, 92, 246, 0.28), 0 0 30px rgba(232, 182, 74, 0.2); }
.ec-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ec-card:hover .ec-card__media img { transform: scale(1.06); }
.ec-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 6, 22, 0.75)); }
.ec-card__date { position: absolute; left: 0.8rem; top: 0.8rem; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 0.35rem 0.65rem; border-radius: 14px; background: rgba(8, 5, 18, 0.78); border: 1px solid var(--ec-line); backdrop-filter: blur(6px); }
.ec-card__date b { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.5rem; line-height: 1; color: var(--ec-gold-2); }
.ec-card__date small { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.65rem; color: var(--ec-muted); }
.ec-card__tag { position: absolute; right: 0.8rem; top: 0.8rem; z-index: 1; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.64rem; letter-spacing: 0.14em; font-weight: 700; background: #e8b64a; color: #1d1206; }
.ec-cat--talleres { background: #a78bfa !important; color: #170b36 !important; }
.ec-cat--sesiones-grupales { background: #5eead4 !important; color: #03241f !important; }
.ec-cat--encuentros { background: #fda4af !important; color: #3a0914 !important; }
.ec-cat--retiros { background: #86efac !important; color: #05260f !important; }
.ec-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.ec-card__title { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.3rem; line-height: 1.2; }
.ec-card__title a { color: #fff6d8; text-decoration: none; }
.ec-card__sub { margin: 0; color: var(--ec-muted); font-size: 0.85rem; line-height: 1.45; }
.ec-card__meta { margin: 0; color: var(--ec-muted); font-size: 0.82rem; line-height: 1.5; }
.ec-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ec-card__price { font-weight: 700; color: var(--ec-gold-2); }
.ec-empty { text-align: center; color: var(--ec-muted); padding: 2rem 0; }
.ec-soon { text-align: center; padding: 3rem 1.5rem; border-radius: 26px; border: 1px dashed var(--ec-line); background: rgba(255, 255, 255, 0.03); }
.ec-soon__moon { display: block; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6d8, #d9b25a 60%, #8a6a2a); box-shadow: 0 0 40px rgba(246, 217, 138, 0.55); animation: ec-float 5s ease-in-out infinite; }
@keyframes ec-float { 50% { transform: translateY(-8px); } }
.ec-soon h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.7rem; color: var(--ec-gold-2); margin: 0 0 0.5rem; }
.ec-soon p { color: var(--ec-muted); max-width: 520px; margin: 0 auto 1.3rem; line-height: 1.6; }
.ec-past { margin-top: 1.6rem; color: var(--ec-muted); }
.ec-past summary { cursor: pointer; font-size: 0.85rem; }
.ec-past ul { list-style: none; padding: 0.6rem 0 0; margin: 0; display: grid; gap: 0.3rem; font-size: 0.85rem; }
.ec-past a { color: var(--ec-ink); }

/* Responsive */
@media (max-width: 960px) {
	.ec-next { grid-template-columns: 1fr; }
	.ec-next__media { min-height: 220px; }
	.ec-next__media::after { background: linear-gradient(180deg, transparent 55%, rgba(14, 10, 28, 0.95)); }
	.ec-cal { grid-template-columns: 1fr; padding: 1.1rem; }
}
@media (max-width: 600px) {
	.ec-container { padding: 0 0.9rem 3rem; }
	.ec-day { padding: 0.2rem; border-radius: 10px; }
	.ec-day__ev { display: none; }
	.ec-day__n { font-size: 0.78rem; }
	.ec-day__moon svg { width: 14px; height: 14px; }
	.ec-countdown div { min-width: 62px; }
	.ec-next__body { padding: 1.3rem; }
	.ec-filters__sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ec-cal__orbits i, .ec-day.has-event, .ec-soon__moon { animation: none; }
}

.ec-next__body .ec-badge { align-self: flex-start; }

/* Calendario chico a un costado y los encuentros del otro lado */
@media (min-width: 1001px) {
	.ec-container { display: grid; grid-template-columns: minmax(330px, 390px) minmax(0, 1fr); column-gap: 1.6rem; align-items: start; }
	.ec-container > header, .ec-hero, .ec-next { grid-column: 1 / -1; }
	.ec-container > section { margin-top: 2.2rem; }
	.ec-cal { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; position: sticky; top: 1rem; border-radius: 24px; }
	.ec-cal__orbits { width: 300px; height: 300px; right: -130px; top: -130px; }
	.ec-cal__title h2 { font-size: 1.4rem; }
	.ec-nav { width: 34px; height: 34px; font-size: 1.2rem; }
	.ec-cal__dow, .ec-cal__grid { gap: 0.28rem; }
	.ec-cal .ec-day { aspect-ratio: 1 / 1; border-radius: 10px; padding: 0.2rem 0.25rem; }
	.ec-cal .ec-day__ev { display: none; }
	.ec-cal .ec-day__n { font-size: 0.76rem; }
	.ec-cal .ec-day__moon svg { width: 13px; height: 13px; }
	.ec-cal__side { padding: 0.9rem; }
	.ec-cal__legend { gap: 0.7rem; font-size: 0.7rem; }
	.ec-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
