/* ###################################################################################################
   =============== CSS VARIABLES GENERALES PARA BOTONES TEMÁTICOS - BTN TEMAS ===============
   INICIO
################################################################################################### */

:root {
	--tema-bg: #ffffff;
	--tema-text: #013762;
	--tema-border: rgba(1,55,98,.15);
	--tema-hover-bg: #013762;
	--tema-hover-outline: #96be55;
	--tema-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
	--tema-shadow-hover: 0 .85rem 1.75rem rgba(1,55,98,.25);
	--tema-icono: #ffc107;
}


/* =====================================================
   TEMA AZUL
===================================================== */

.tema-azul {
	--tema-bg: #ffffff;
	--tema-text: #013762;
	--tema-border: rgba(1,55,98,.15);
	--tema-hover-bg: #013762;
	--tema-hover-outline: #96be55;
	--tema-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
	--tema-shadow-hover: 0 .85rem 1.75rem rgba(1,55,98,.25);
	--tema-icono: #ffc107;
}


/* =====================================================
   TEMA VERDE
===================================================== */

.tema-verde {
	--tema-bg: #ffffff;
	--tema-text: #198754;
	--tema-border: rgba(25,135,84,.15);
	--tema-hover-bg: #198754;
	--tema-hover-outline: #96be55;
	--tema-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
	--tema-shadow-hover: 0 .85rem 1.75rem rgba(25,135,84,.25);
	--tema-icono: #ffc107;
}


/* =====================================================
   TEMA GRIS
===================================================== */

.tema-gris {
	--tema-bg: #ffffff;
	--tema-text: #495057;
	--tema-border: rgba(73,80,87,.15);
	--tema-hover-bg: #495057;
	--tema-hover-outline: #adb5bd;
	--tema-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
	--tema-shadow-hover: 0 .85rem 1.75rem rgba(73,80,87,.25);
	--tema-icono: #ffc107;
}


/* =====================================================
   TEMA MORADO
===================================================== */

.tema-morado {
	--tema-bg: #ffffff;
	--tema-text: #6f42c1;
	--tema-border: rgba(111,66,193,.15);
	--tema-hover-bg: #6f42c1;
	--tema-hover-outline: #b99bea;
	--tema-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
	--tema-shadow-hover: 0 .85rem 1.75rem rgba(111,66,193,.25);
	--tema-icono: #ffc107;
}


/* =====================================================
   TEMA NARANJA
===================================================== */

.tema-naranja {
	--tema-bg: #ffffff;
	--tema-text: #fd7e14;
	--tema-border: rgba(253,126,20,.15);
	--tema-hover-bg: #fd7e14;
	--tema-hover-outline: #ffc107;
	--tema-shadow: 0 .35rem 1rem rgba(0,0,0,.08);
	--tema-shadow-hover: 0 .85rem 1.75rem rgba(253,126,20,.25);
	--tema-icono: #ffffff;
}


/* =====================================================
   BTN TEMAS
===================================================== */

.btn-temas {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	width: 100%;
	min-height: 180px;
	padding: 0.5rem 1.5rem 1.5rem 1.5rem;
	border-radius: 1.25rem;
	background: var(--tema-bg);
	color: var(--tema-text);
	text-align: center;
	text-decoration: none;
	border: 2px solid var(--tema-border);
	box-shadow: var(--tema-shadow);
	transition:
		box-shadow .25s ease,
		background .25s ease,
		color .25s ease,
		border-color .25s ease;
}


/* =====================================================
   ICONOS FONT AWESOME
   POSICIÓN NORMAL: ARRIBA
===================================================== */
/* ICONO */
.btn-temas i {
	position:relative;
	z-index:1;
	display:block;
	color:var(--tema-icono);
	font-size:2.75rem;
	line-height:1;
	margin-bottom:.75rem;
	pointer-events:none;
	transform:scale(1);
	transform-origin:center;
	filter:drop-shadow(2px 3px 3px rgba(0,0,0,.22));
	transition:transform .85s ease,color .65s ease,opacity .85s ease,filter .85s ease;
}

/*.btn-temas i {
	position: relative;
	z-index: 1;
	display: block;
	color: var(--tema-icono);
	font-size: 2.75rem;
	line-height: 1;
	margin-bottom: .75rem;
	pointer-events: none;
	transform: translateY(0) scale(1);
	transform-origin: center center;
	transition:
		transform .85s ease,
		color .65s ease,
		opacity .85s ease;
}*/


/* =====================================================
   IMÁGENES COMO ICONO
   POSICIÓN NORMAL: ARRIBA
===================================================== */
/* IMAGEN */
.btn-temas img {
	position:relative;
	z-index:1;
	display:block;
	width:120px;
	height:120px;
	object-fit:contain;
	margin:0 auto .75rem;
	pointer-events:none;
	transform:translateY(0) scale(1);
	transform-origin:center;
	filter:drop-shadow(3px 5px 5px rgba(0,0,0,.5));
	transition:transform .85s ease,opacity .85s ease,filter .85s ease;
}

/*.btn-temas img {
	position: relative;
	z-index: 1;
	display: block;
	width: 120px;
	height: 120px;
	object-fit: contain;
	margin: 0 auto .75rem;
	pointer-events: none;
	transform: translateY(0) scale(1);
	transform-origin: center center;
	transition:
		transform .85s ease,
		opacity .85s ease;
}*/


/* =====================================================
   TEXTO
===================================================== */

.btn-temas .h4 {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: var(--tema-text);
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	margin-bottom: .25rem;
	transform: translateY(0);
	transition:
		color .25s ease,
		transform .85s ease;
}

.btn-temas small {
	position: relative;
	z-index: 3;
	color: #6c757d;
	line-height: 1.4;
	transition:
		color .25s ease,
		opacity .45s ease;
}

/* =====================================================
   HOVER / FOCUS
   MOVIMIENTO SUTIL CON MAYOR PRESENCIA
===================================================== */
.btn-temas:hover,
.btn-temas:focus-visible {
	background: var(--tema-hover-bg);
	color: #ffffff;
	border-color: rgba(255,255,255,.35);
	box-shadow: var(--tema-shadow-hover);
	transform: translateY(-7px);
	outline: 3px solid var(--tema-hover-outline);
	outline-offset: 4px;
}

/*.btn-temas:hover,
.btn-temas:focus-visible {
	background: var(--tema-hover-bg);
	color: #ffffff;
	border-color: rgba(255,255,255,.35);
	box-shadow: var(--tema-shadow-hover);
	transform: translateY(-5px);
	outline: 2px solid var(--tema-hover-outline);
	outline-offset: 3px;
	transition:
		transform .3s ease,
		box-shadow .25s ease,
		background .25s ease,
		color .25s ease,
		border-color .25s ease;
}*/

/* =====================================================
   HOVER / FOCUS
   EL BOTÓN NO CAMBIA DE TAMAÑO
===================================================== */
/*.btn-temas:hover,
.btn-temas:focus-visible {
	background: var(--tema-hover-bg);
	color: #ffffff;
	border-color: rgba(255,255,255,.35);
	box-shadow: var(--tema-shadow-hover);
}*/

/* =====================================================
   ICONO FONT AWESOME EN HOVER
   ZOOM HACIA EL CENTRO + PROFUNDIDAD
===================================================== */
.btn-temas:hover i,
.btn-temas:focus-visible i {
	transform:translateY(35px) scale(4.5) rotate(-8deg);
	color:rgba(255,255,255,.09)!important;
	opacity:1;
	filter:drop-shadow(0 8px 8px rgba(0,0,0,.25));
}

/* =====================================================
   ICONO FONT AWESOME EN HOVER
   ZOOM HACIA EL CENTRO DESDE SU POSICIÓN
===================================================== */
/*.btn-temas:hover i,
.btn-temas:focus-visible i {
	transform: translateY(35px) scale(4.5) rotate(-8deg);
	color: rgba(255,255,255,.055) !important;
	opacity: 1;
	filter: none;
}*/



/* =====================================================
   PNG EN HOVER
   ZOOM HACIA EL CENTRO + PROFUNDIDAD
===================================================== */
.btn-temas:hover img,
.btn-temas:focus-visible img {
	transform:translateY(40px) scale(3.55) rotate(-8deg);
	opacity:.09;
	filter:drop-shadow(8px 10px 10px rgba(0,0,0,.28));
}

/* =====================================================
   PNG EN HOVER
   ZOOM HACIA EL CENTRO DESDE SU POSICIÓN
===================================================== */
/*.btn-temas:hover img,
.btn-temas:focus-visible img {
	transform: translateY(40px) scale(3.55) rotate(-8deg);
    opacity: .055;
    filter: none;
}*/


/* =====================================================
   TÍTULO EN HOVER
===================================================== */
.btn-temas:hover .h4,
.btn-temas:focus-visible .h4 {
	transform: translateY(-50px);
	color: #ffffff !important;
}


/* =====================================================
   SUBTEXTO EN HOVER
===================================================== */
.btn-temas:hover small,
.btn-temas:focus-visible small {
	opacity: 0;
}


/* =====================================================
   TEXTO EN HOVER
===================================================== */

.btn-temas:hover .h4,
.btn-temas:hover small,
.btn-temas:focus-visible .h4,
.btn-temas:focus-visible small {
	color: #ffffff !important;
}


/* =====================================================
   FOCUS TECLADO
===================================================== */

.btn-temas:focus {
	outline: none;
}

.btn-temas:focus-visible {
	outline: 3px solid var(--tema-hover-outline);
	outline-offset: 4px;
}


/* =====================================================
   OPTIMIZACIÓN DE ANIMACIÓN
===================================================== */

.btn-temas i,
.btn-temas img,
.btn-temas .h4,
.btn-temas small {
	will-change: transform, opacity;
}


/* =====================================================
   ACCESIBILIDAD - REDUCCIÓN DE MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {

	.btn-temas,
	.btn-temas i,
	.btn-temas img,
	.btn-temas .h4,
	.btn-temas small {
		transition: none;
	}

	.btn-temas:hover i,
	.btn-temas:focus-visible i {
		transform:
			translateY(35px)
			scale(4);
	}

	.btn-temas:hover img,
	.btn-temas:focus-visible img {
		transform:
			translateY(-25px)
			scale(1.35);
	}

	.btn-temas:hover .h4,
	.btn-temas:focus-visible .h4 {
		transform: translateY(-35px);
	}
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:767.98px) {

	.btn-temas {
		min-height: 150px;
		padding: 1.5rem 1.25rem;
	}

	.btn-temas i {
		font-size: 2.4rem;
	}

	.btn-temas img {
		width: 105px;
		height: 105px;
	}

	.btn-temas:hover i,
	.btn-temas:focus-visible i {
		transform:
			translateY(25px)
			scale(3.5)
			rotate(-8deg);
	}

	.btn-temas:hover img,
	.btn-temas:focus-visible img {
		transform:
			translateY(-20px)
			scale(1.3)
			rotate(-8deg);
	}

	.btn-temas:hover .h4,
	.btn-temas:focus-visible .h4 {
		transform: translateY(-25px);
	}
}


/* ###################################################################################################
   =============== CSS Generico para BOTONES TEMÁTICOS - BTN TEMAS ===============
   FIN
################################################################################################### */