/* ============================================================
   SEMANA DEL 85° ANIVERSARIO EPAV
   ============================================================ */

:root {
	--violeta: #40264b;
	--azul: #3F51B5;
	--amarillo: #f6a717;
	--area-diseno: #f08300;
	--area-arte: #5d9acf;
	--area-pedagogia: #a130be;
}

body {
	font-family: 'Open Sans', sans-serif;
	background-color: #f3f1f4;
	color: #222;
	text-wrap: pretty;
}

/* Hero
   La imagen es una lÃ­nea de tiempo (B&N â†’ color). No la cubrimos
   con un velo de color: solo un degradado tenue al pie + sombra de
   texto para garantizar lectura sin matar la imagen.
 */
.aniv-hero {
	position: relative;
	width: 100%;
	min-height: 500px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background-color: #2a1832;
}

.aniv-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Degradado mÃ­nimo, solo el tercio inferior, para anclar el texto */
.aniv-hero::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 55%;
	background: linear-gradient(to top, rgba(20,8,26,.78) 0%, rgba(20,8,26,.35) 45%, rgba(20,8,26,0) 100%);
	z-index: 1;
}

.aniv-hero .container {
	position: relative;
	z-index: 2;
}

.aniv-hero-content {
	color: #fff;
	padding: 0 0 2.5rem;
	max-width: 780px;
	text-shadow: 0 1px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
}

.aniv-hero-sup {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	margin: 0 0 .7rem;
	color: var(--amarillo);
	text-shadow: none;
}

.aniv-hero-title {
	font-size: clamp(2rem, 5vw, 3.3rem);
	font-weight: 500;
	line-height: 1.08;
	margin: 0 0 .8rem;
	color: #fff;
	text-shadow: none;
}

.aniv-hero-title strong {
	font-weight: 800;
	white-space: nowrap;
}

.aniv-hero-fecha {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: #fff;
	opacity: .92;
}

/* â”€â”€ Main â”€â”€â”€â”€â”€â”€ */
.aniv-main {
	padding: 2.5rem 0 4rem;
}

.aniv-intro {
	max-width: 720px;
	margin: 0 0 2rem;
}

.aniv-intro p {
	font-size: 17px;
	line-height: 1.5;
	color: #444;
	margin: 0;
}

/* â”€â”€ Filtros â”€â”€â”€ */
.aniv-filtros {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	margin-bottom: 2.5rem;
	padding-bottom: 1.4rem;
	border-bottom: 1px solid #ddd;
}

.aniv-filtros-label {
	font-size: 13px;
	font-weight: 600;
	color: #777;
	margin-right: .4rem;
}

.aniv-filtro-btn {
	background: #fff;
	border: 1px solid #cfc7d4;
	border-radius: 100px;
	padding: 5px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: #555;
	font-family: inherit;
	transition: all .12s;
}

.aniv-filtro-btn:hover  { border-color: var(--violeta); color: var(--violeta); }
.aniv-filtro-btn.active { background: var(--violeta); border-color: var(--violeta); color: #fff; }

/* â”€â”€ DÃ­a  */
.aniv-dia {
	margin-bottom: 3rem;
}

.aniv-dia-titulo {
	font-size: 22px;
	font-weight: 800;
	color: var(--violeta);
	margin: 0 0 1.3rem;
	display: inline-block;
}

/* â”€â”€ Grilla de actividades  */
.aniv-actividades {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
}

/* â”€â”€ Tarjeta â”€â”€â”€ */
.aniv-card {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e6e2ea;
	box-shadow: 0 1px 2px rgba(40,20,55,.04);
	cursor: pointer;
	transition: transform .18s, box-shadow .18s, border-color .18s;
	position: relative;
	overflow: hidden;
}

.aniv-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(40,20,55,.13);
	border-color: #d7cfe0;
}

.aniv-card.aniv-oculto { display: none; }

.aniv-card-inner {
	padding: 1.2rem 1.3rem 1.25rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Meta: Ã¡rea + tipo + hora */
.aniv-card-meta {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: .35rem .5rem;
	margin-bottom: .7rem;
}

.aniv-card-meta-areas {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	flex: 0 1 auto;
}

.aniv-card-meta-bottom {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-shrink: 0;
	margin-left: auto;
}

.aniv-card-area {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #fff;
	padding: 2px 8px;
	border-radius: 100px;
	background-color: #999;
}

.aniv-card-area.aniv-card-area--diseno    { background-color: var(--area-diseno); }
.aniv-card-area.aniv-card-area--arte      { background-color: var(--area-arte); }
.aniv-card-area.aniv-card-area--pedagogia { background-color: var(--area-pedagogia); }

.aniv-card-tipo {
	font-size: 12px;
	font-weight: 600;
	color: #999;
}

.aniv-hora {
	font-size: 12px;
	font-weight: 600;
	color: #888;
	white-space: nowrap;
}

.aniv-hora i { opacity: .7; }

/* Facilitadorx â€” protagonista */
.aniv-card-facilitador {
	font-size: 16px;
	font-weight: 700;
	color: #1d1224;
	line-height: 1.25;
	margin: 0 0 .25rem;
}

/* TÃ­tulo de la actividad */
.aniv-card-titulo {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
	color: #555;
}

/* CTA */
.aniv-card-cta {
	margin-top: 1rem;
	font-size: 13px;
	font-weight: 700;
	color: var(--azul);
}

.aniv-card-cta i { transition: transform .15s; }
.aniv-card:hover .aniv-card-cta i { transform: translateX(3px); }

/* DÃ­as vacÃ­os tras filtrar */
.aniv-dia.aniv-dia-vacia { display: none; }

/* 
   MODAL
*/
.aniv-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20,8,26,.72);
	z-index: 1080;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 2.5rem 1rem;
	overflow-y: auto;
}

.aniv-modal-overlay.on { display: flex; }

.aniv-modal-box {
	position: relative;
	width: 480px;
	max-width: 100%;
	margin: auto;
}

.aniv-modal-close {
	position: absolute;
	top: -2.6rem;
	right: -.2rem;
	background: none;
	border: 0;
	color: #fff;
	font-size: 2.2rem;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
}

.aniv-modal-close:hover { opacity: 1; }

.aniv-modal-loading,
.aniv-modal-error {
	background: #fff;
	border-radius: 8px;
	padding: 3rem 1.5rem;
	text-align: center;
	color: #666;
}

/* â”€â”€ PÃ³ster (esto es lo que se descarga como JPG)  */
.aniv-poster {
	width: 100%;
	aspect-ratio: 4 / 5;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	font-family: 'Open Sans', sans-serif;
	display: flex;
	flex-direction: column;
	container-type: inline-size;
}

.aniv-poster-img {
	flex: 0 0 40%;
	background-color: #40264b;
	background-size: cover;
	background-position: center;
	position: relative;
}

.aniv-poster-chevron {
	position: absolute;
	top: 4.6cqi;
	left: 4.6cqi;
	width: 38.5%;
	height: auto;
}

.aniv-poster-body {
	flex: 1;
	padding: 4.3cqi 6.3cqi 2.0cqi;
	display: flex;
	flex-direction: column;
}

.aniv-poster-badge {
	display: inline-block;
	background: var(--amarillo);
	color: var(--violeta);
	font-weight: 800;
	font-size: 3.1cqi;
	letter-spacing: .03em;
	padding: 0.6cqi 2.3cqi;
	margin-bottom: 2.0cqi;
	align-self: flex-start;
}

.aniv-poster-title {
	color: var(--violeta);
	font-weight: 800;
	font-size: 5.4cqi;
	line-height: 1.1;
	margin: 0 0 2.3cqi;
	text-wrap: balance;
}

.aniv-poster-facil {
	color: var(--violeta);
	font-weight: 400;
	font-size: 4.2cqi;
	line-height: 1.3;
	margin: 0;
	opacity: .92;
}

.aniv-poster-cuando {
	font-size: 2.6cqi;
	font-weight: 600;
	color: #888;
	margin: 1.7cqi 0 0;
	letter-spacing: .01em;
}

.aniv-poster-logo {
	display: block;
	height: 9.2cqi;
	width: auto;
	margin: auto 6.3cqi 5.0cqi auto;
}

/* â”€â”€ Meta (dÃ­a / hora) bajo el pÃ³ster  */
.aniv-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.4rem;
	margin-top: 1rem;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.aniv-modal-meta i { opacity: .8; margin-right: .2rem; }

/* â”€â”€ Acciones â”€â”€ */
.aniv-modal-actions {
	display: flex;
	gap: .6rem;
	margin-top: 1.1rem;
}

.aniv-btn-inscribirse,
.aniv-btn-descargar {
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	border: 0;
	border-radius: 6px;
	padding: 11px 18px;
	cursor: pointer;
	transition: background .12s;
}

.aniv-btn-inscribirse {
	flex: 1;
	background: var(--amarillo);
	color: var(--violeta);
}

.aniv-btn-inscribirse:hover { background: #e09800; }

.aniv-btn-descargar {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,.4);
}

.aniv-btn-descargar:hover { background: rgba(255,255,255,.28); }

/* â”€â”€ Vista de inscripciÃ³n (panel propio, cÃ³modo) */
.aniv-view-form {
	background: #fff;
	border-radius: 10px;
	padding: 1.8rem 2rem 2rem;
}

.aniv-form-back {
	background: none;
	border: 0;
	color: var(--azul);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	margin-bottom: 1.2rem;
}

.aniv-form-back i { margin-right: .3rem; }
.aniv-form-back:hover { text-decoration: underline; }

.aniv-form-titulo {
	font-size: 22px;
	font-weight: 800;
	color: var(--violeta);
	margin: 0 0 .5rem;
}

.aniv-form-context {
	font-size: 14px;
	color: #666;
	line-height: 1.45;
	margin: 0 0 1.6rem;
	padding-bottom: 1.4rem;
	border-bottom: 1px solid #eee;
}

.aniv-form-context strong { color: var(--violeta); }

.aniv-form-context-cuando {
	display: block;
	margin-top: .7rem;
	color: var(--azul);
	font-weight: 700;
}

.aniv-form-context-cuando i { margin-right: .3rem; opacity: .8; }

.aniv-form-materiales {
	background: #fff8e1;
	border-left: 4px solid var(--amarillo);
	padding: .7rem .9rem .7rem 1rem;
	border-radius: 0 6px 6px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
	margin-bottom: 1.4rem;
}

.aniv-form-materiales strong {
	display: block;
	color: var(--violeta);
	margin-bottom: .3rem;
}

.aniv-form-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.aniv-form label {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

.aniv-form input {
	font-family: inherit;
	font-size: 15px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	width: 100%;
}

.aniv-form input:focus {
	outline: none;
	border-color: var(--azul);
	box-shadow: 0 0 0 2px rgba(63,81,181,.2);
}

.aniv-form-submit {
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	background: var(--azul);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 20px;
	cursor: pointer;
	width: 100%;
	margin-top: .6rem;
}

.aniv-form-submit:hover  { background: hsl(231 48% 40% / 1); }
.aniv-form-submit:disabled { opacity: .6; cursor: default; }

/* Aviso "te encontramos comoâ€¦" */
.aniv-form-encontrado {
	background: #e8f5e9;
	color: #1e7d40;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	padding: .7rem .9rem;
	border-radius: 6px;
	margin: 0 0 1.2rem;
}

.aniv-form-encontrado.error {
	background: #fdecea;
	color: #c0392b;
}

.aniv-form-msg { margin: .8rem 0 0; font-size: 13px; font-weight: 600; }
.aniv-form-msg.error { color: #c0392b; }

.aniv-form-ok {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e8c4f;
	text-align: center;
	padding: 1rem 0;
}

/* â”€â”€ Footer (hereda del sitio, pequeÃ±os ajustes) */
#footer-top img { height: 50px; object-fit: contain; max-width: 250px; }
#footer-bottom { font-size: 14px; }
#footer-bottom h5 { font-size: 16px; }

/* â”€â”€ Responsive  */
@media (max-width: 992px) {
	.aniv-actividades { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.aniv-hero { min-height: 340px; }
	.aniv-hero-content { padding-bottom: 1.6rem; }
	.aniv-actividades { grid-template-columns: 1fr; }
	.aniv-dia-titulo { font-size: 19px; }
	.aniv-intro p { font-size: 15px; }

	.aniv-filtros-label { width: 100%; }

	.aniv-modal-actions { flex-wrap: wrap; }
	.aniv-form-row { flex-direction: column; gap: 1rem; }
}
