/*
	Estilos propios del CAICU. Se cargan después de main.css (la plantilla Alpha),
	así que estas reglas tienen prioridad sobre las de la plantilla.
	Los cambios de estilo nuevos van acá. main.css es la plantilla: ya tiene algunos ajustes
	viejos del CAICU (colores con las variables de abajo), pero conviene no sumarle más.
*/

/* Paleta del sitio. Los nombres (azul, verde, amarillo...) vienen de la paleta de 2023;
   desde 2025 todos son tonos de bordó. Se renombran cuando llegue la identidad de 2027. */
:root {
	--negro_caicu: #1f000aff;
	--negroclaro_caicu: #380012ff;
	--rojo_caicu: #b8003aff;
	--azul_caicu: #9e0032ff;
	--verde_caicu: #d10043ff;
	--amarillo_caicu: #eb004aff;
	--rosado_caicu: #85002aff;
	/* --blanco_caicu: #fffafdff; */
	--blanco_caicu: #FAF9F5;
	--crema_caicu: #F5F1E9;
}


/* #9E0032
#6B1531
#6B2C40
#7A3559
#201A23 */

/* :root {
		--negro_caicu: #1A1B1D;
		--rojo_caicu: #CB5628;
		--azul_caicu: #4F76A6;
		--verde_caicu: #68A844;
		--amarillo_caicu: #DABB10;
		--rosado_caicu: #C98D8E;
		--blanco_caicu: #F5F1E9;
		--crema_caicu: #ECE9C3;
	  }
	   */

#logo_header {
	/* background-image: url("/images/logo/caicu_cre.png"); */
	/* display: flex;
		align-items: center; */
	display: inline;
	vertical-align: middle;
	justify-content: center;
	height: 50px;
	width: auto;
	/* margin: 0.25em; */
	/* margin: 0 auto; */
	/* background-repeat: no-repeat; */
}

#link_header {
	border-bottom: none;
}

/* .logo-header {
		background-image: url('/images/logo/caicu_cre.png');
		background-repeat: no-repeat;
		height: 50px;
		width: auto;
		display: inline-block;
		position: absolute;
		top: 10px;
		left: 10px;
		background-size: contain;
	} */

.logo-header::after {
	display: none;
}



#logo_banner {
	width: 100%;
	height: auto;
}


.logo_apoyo {
	width: 20%;
	height: auto;
	padding: 1em;
}

.logo_apoyos {
	/* width: 20%; */
	width: 80%;
	height: auto;
	padding: 1em;
}

@media (max-width: 736px) {
	.logo_apoyos {
		width: 100%;
		padding: 2em 0 0 0;
	}
}

header.major h2.header_apoyan {
	margin: 1em 0 -1em 0;
}

.eje_tematico img {
	width: 80%;
	height: auto;
	padding: 0 3em 0 3em;
}

#titulo_ejes {
	margin: -1em 0 0.5em 0;
}

@media (max-width: 736px) {
	#titulo_ejes {
		margin: 0;
	}
}

#ejes_horizontal {
	margin-bottom: 0.5em;
}



.eje_tematico h4 {
	font-size: 1.3em;
	font-weight: 500;
}

/* narrow centered box*/
.box #button_angosto {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 30%;
	margin: 0 auto;
}

/* but not for telephones */
@media (max-width: 767px) {
	.box #button_angosto {
		width: 100%;
	}
}

.col_angosta {
	width: 60%;
	height: auto;
}

/* narrow centered box*/
.box #col_angosta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 100%;
}


/* set width to 60% on larger screens */
@media (min-width: 768px) {
	.box #col_angosta {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		width: 70%;
		margin: 0 auto;
	}

	#logo_banner {
		width: 50%;
		height: auto;
		padding: 0;
	}
}


.bullet-list-container {
	/* width: 60%; */
	/* margin: 0 auto; center the container */
	text-align: left;
	list-style-position: inside;
	/* align the bullet points to the left of the text */
}

#bullets-fechas {
	font-size: 16pt;
	/* padding: 0.3em 0; */
}

#bullets-fechas li {
	padding: 0.3em 0;
}


#header.alt #logo_header {
	display: none;
}

#header.alt .nav-button:hover {
	background-color: rgba(184, 0, 58, 0.2);
	/* box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); */
}

#header .nav-button:hover {
	background-color: rgba(153, 153, 153, 0.25);
}

.header-organizadores {
	font-weight: 600;
}


/* style for mailchimp mailing list form */

#mc_embed_signup {
	clear: left;
	font: 14px "Montserrat", Helvetica, Arial, sans-serif;
	width: 100%;
	text-align: center;
	margin: 0 auto;
}

#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="submit"] {
	display: block;
	margin: 0 0.5em;
	padding: 0 1em;
}

#mc-embedded-subscribe-form {
	float: none;
}


.input-group {
	display: flex;
	flex-direction: row;
	align-items: center;
}

#mce-EMAIL {
	flex-grow: 1;
	margin-right: 10px;
}

#cta p {
	margin: 0;
}

#cta h3 {
	margin: 1em 0 1em 0;
}

#cta ul {
	margin: 2.5em 0 0 0;
}

#cta ul.icons {
	font-size: 2em;
}

#cta form {
	width: 35%;
}

/* correct for mobile */
@media (max-width: 736px) {
	#cta form {
		width: 100%;
	}
}


#disclaimer_subs {
	font-size: 0.8em;
	padding: 0.7em 0;
}


/* english banner */
#banner.englishBanner {
	background-image: url("../../images/banner_caicu_2025.png");
}


.programa-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 20px 0;
}

.dia-header {
	background-color: var(--rojo_caicu);
	color: white;
	font-weight: bold;
	padding: 12px;
	text-align: center;
	font-size: 1.1em;
}

.tema-header {
	background-color: #f8f8f8;
	font-weight: bold;
	padding: 10px;
	font-style: italic;
	color: #333;
	border-left: 4px solid var(--rojo_caicu);
}

.hora-cell {
	background-color: #fafafa;
	padding: 10px;
	width: 80px;
	font-weight: bold;
	color: #666;
	border-right: 2px solid #eee;
	vertical-align: top;
}

.actividad-cell {
	padding: 10px 15px;
	line-height: 1.4;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

.actividad-cell strong {
	color: var(--rosado_caicu);
}

.actividad-cell i {
	color: #666;
	font-size: 0.9em;
}

.dia-block {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bloque-spacer {
	height: 20px;
	background-color: transparent;
}

/* Formularios que ya cerraron: el texto queda en gris, sin enlace, con una etiqueta al lado */
.enlace-cerrado {
	border-bottom: dotted 1px #c9c4bb;
	color: #9b958c;
	cursor: not-allowed;
}

.etiqueta-cerrado {
	background: #e9e4da;
	border-radius: 4px;
	color: #5f5a52;
	display: inline-block;
	font-size: 0.7em;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.7;
	margin-left: 0.4em;
	padding: 0 0.6em;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}

/* Colores del anuncio de la próxima edición (ver _includes/anuncio.html).

   PALETA PROVISORIA. No es la paleta del CAICU ni la de la edición 2027: es una propuesta
   armada a partir de una sola foto (el pizarrón con las fechas de 2027), solo para este anuncio.
   Se tomó el verde lima del logo del pizarrón, se derivaron verdes más oscuros del mismo tono
   que se van hacia el musgo de los adoquines, y se sumaron los grises azulados de la calle.
   Cuando exista la identidad gráfica de la edición, reemplazar estos colores por los oficiales.

   Contraste sobre --blanco_caicu: musgo 4.9:1, profundo 7.7:1, pizarra 12.6:1 y adoquín 5.7:1
   sirven para texto; lima (1.6:1), tinta, hoja y niebla solo para fondos y detalles. */
.anuncio {
	--anuncio_lima: #6fdc73;
	--anuncio_lima_tinta: #e6fbe1;
	--anuncio_verde_hoja: #4baa56;
	--anuncio_verde_musgo: #2d7b44;
	--anuncio_verde_profundo: #1c5b35;
	--anuncio_verde_pizarra: #0d3721;
	--anuncio_gris_adoquin: #576574;
	--anuncio_gris_niebla: #d2d8df;
}

/* Anuncio de la próxima edición: ventana emergente (ver _includes/anuncio.html) */
.anuncio {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1.25em;
	position: fixed;
	z-index: 20000;
}

.anuncio[hidden] {
	display: none;
}

html.anuncio-abierto {
	overflow: hidden;
}

.anuncio__fondo {
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	background: rgba(245, 241, 233, 0.78);
	inset: 0;
	position: absolute;
}

.anuncio__caja {
	animation: anuncio-aparecer 0.35s ease-out;
	background: var(--blanco_caicu);
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(13, 55, 33, 0.08), 0 24px 60px rgba(13, 55, 33, 0.28);
	display: flex;
	max-width: 780px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.anuncio__caja:focus {
	outline: none;
}

.anuncio__foto {
	display: block;
	flex: 0 0 44%;
	height: auto;
	object-fit: cover;
	object-position: 12% 85%;
	width: 44%;
}

.anuncio__texto {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.6em 2.4em 2.4em 2.4em;
}

.anuncio__antetitulo {
	align-items: center;
	color: var(--anuncio_verde_musgo);
	display: flex;
	font-size: 0.72em;
	font-weight: 700;
	gap: 0.8em;
	letter-spacing: 0.14em;
	margin: 0 0 0.8em 0;
	text-transform: uppercase;
}

.anuncio__antetitulo::before {
	background: var(--anuncio_lima);
	border-radius: 2px;
	content: "";
	display: block;
	flex: 0 0 auto;
	height: 4px;
	width: 1.8em;
}

.anuncio__titulo {
	color: var(--anuncio_verde_pizarra);
	font-size: 1em;
	line-height: 1.45;
	margin: 0 0 0.8em 0;
}

.anuncio__fecha {
	color: var(--anuncio_verde_profundo);
	font-size: 1.85em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.8em 0;
}

/* trazo de resaltador lima debajo de la fecha, como una marca de tiza */
.anuncio__fecha span {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background-image: linear-gradient(transparent 56%, rgba(111, 220, 115, 0.6) 56%, rgba(111, 220, 115, 0.6) 90%, transparent 90%);
	margin: 0 -0.12em;
	padding: 0 0.12em;
}

.anuncio__boton {
	align-self: flex-start;
	background: var(--anuncio_lima);
	border: 0 !important;
	border-radius: 6px;
	box-shadow: inset 0 -3px 0 rgba(13, 55, 33, 0.18);
	color: var(--anuncio_verde_pizarra) !important;
	display: inline-block;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1;
	padding: 0.85em 1.4em;
	transition: background 0.2s, color 0.2s;
}

.anuncio__boton:hover {
	background: var(--anuncio_verde_profundo);
	color: var(--blanco_caicu) !important;
}

.anuncio__cerrar {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: var(--anuncio_gris_adoquin);
	cursor: pointer;
	font: inherit;
	font-size: 1.7em;
	height: 1.5em;
	line-height: 1;
	margin: 0;
	min-width: 0;
	padding: 0;
	position: absolute;
	right: 0.35em;
	top: 0.3em;
	width: 1.5em;
}

.anuncio__cerrar:hover {
	color: var(--anuncio_verde_profundo);
}

.anuncio__boton:focus-visible,
.anuncio__cerrar:focus-visible {
	outline: 2px solid var(--anuncio_verde_musgo);
	outline-offset: 3px;
}

@keyframes anuncio-aparecer {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@media screen and (max-width: 600px) {
	.anuncio__caja {
		flex-direction: column;
		max-height: 92vh;
		overflow-y: auto;
	}

	.anuncio__foto {
		flex-basis: auto;
		height: 230px;
		object-position: 10% 82%;
		width: 100%;
	}

	.anuncio__texto {
		padding: 1.6em 1.5em 1.7em 1.5em;
	}

	.anuncio__cerrar {
		background: rgba(250, 249, 245, 0.92);
		font-size: 1.4em;
		right: 0.5em;
		top: 0.5em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anuncio__caja {
		animation: none;
	}
}
