/* Estilos BEM y Responsive para Footer Revista */

.footer-revista {
	margin:0;
	width: 100%;
	background-color: #0b0a0a;
	color: #ffffff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	padding: 50px 24px 30px 24px;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

/* Imagen de fondo roja en mobile */
.footer-revista__bg-mobile {
	display: block !important;
	position: absolute;
	bottom: -78%;
	left: 0;
	right: 0;
	height: 380px;
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
	opacity: 0.85;
	z-index: 1;
}

.footer-revista__container {
	max-width: 1300px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

/* Sección Superior (Desktop Layout) */
.footer-revista__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 40px;
}

/* Branding */
.footer-revista__brand-section {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.footer-revista__logo-link {
	display: inline-block;
	text-decoration: none;
}

.footer-revista__logo-img {
	max-height: 52px;
	width: auto;
	display: block;
	object-fit: contain;
}

.footer-revista__logo-fallback {
	font-family: 'Cinzel', 'Times New Roman', Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	color: #d4af37;
	letter-spacing: 2px;
}

/* Redes Sociales */
.footer-revista__socials {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-revista__socials--mobile {
	display: none;
}

.footer-revista__social-icon {
	color: #ffffff;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, color 0.3s ease;
	text-decoration: none;
}

.footer-revista__social-icon svg {
	width: 22px;
	height: 22px;
}

.footer-revista__social-icon:hover {
	color: #e5be6b;
	transform: translateY(-2px);
}

/* Divisores Verticales y Horizontales */
.footer-revista__divider--vertical {
	width: 1px;
	height: 50px;
	background-color: rgba(255, 255, 255, 1);
	flex-shrink: 0;
}

.footer-revista__divider--horizontal {
	display: none;
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.2);
	margin: 24px 0;
}

/* Menú de Enlaces */
.footer-revista__nav {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	flex-grow: 1;
	justify-content: space-evenly;
}

.footer-revista__menu-col {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0px !important;
}

.footer-revista__link {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.footer-revista__link:hover {
	color: #e5be6b;
}

/* Lema / Tagline */
.footer-revista__tagline {
	max-width: 234px;
	flex-shrink: 0;
}

.footer-revista__tagline-text {
	color: #e0e0e0;
	font-size: 13px;
	line-height: 2;
	margin: 0;
}

/* Sección Inferior / Legal & Copyright */
.footer-revista__bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	font-size: 12px;
	color: #a0a0a0;
	flex-wrap: wrap;
}

.footer-revista__copyright p {
	margin: 0;
}

.footer-revista__legal {
	display: flex;
	align-items: center;
	gap: 24px;
}

.footer-revista__legal-link {
	color: #a0a0a0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-revista__legal-link:hover {
	color: #ffffff;
}

/* Ajuste de iconos dinámicos con imagen */
.footer-revista__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	transition: transform 0.3s ease, opacity 0.3s ease;
	text-decoration: none;
}

.footer-revista__social-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	/* Si subes iconos negros o oscuros, esto los vuelve blancos automáticamente */
	filter: brightness(0) invert(1);
}

.footer-revista__social-icon:hover {
	transform: translateY(-2px);
	opacity: 0.8;
}

/* En mobile ligeramente más grandes */
@media (max-width: 900px) {
	.footer-revista__socials--mobile .footer-revista__social-icon {
		width: 32px;
		height: 32px;
	}
}
/* ==========================================================================
   Mobile / Responsive Layout
   ========================================================================== */
@media (max-width: 900px) {
	.footer-revista {
		padding: 40px 20px 50px 20px;
		text-align: center;
	}

	.footer-revista__bg-mobile {
		display: block;
		bottom: 0;
	}

	.footer-revista__top {
		flex-direction: column;
		gap: 0;
		margin-bottom: 0;
	}

	.footer-revista__brand-section {
		flex-direction: column;
		justify-content: center;
	}

	.footer-revista__socials--desktop {
		display: none;
	}

	.footer-revista__socials--mobile {
		display: flex;
		justify-content: center;
		margin-top: 32px;
		gap: 20px;
	}

	.footer-revista__socials--mobile .footer-revista__social-icon svg {
		width: 26px;
		height: 26px;
	}

	.footer-revista__divider--vertical {
		display: none;
	}

	.footer-revista__divider--horizontal {
		display: block;
		width: 60px;
		margin: 20px auto;
	}

	.footer-revista__divider--mobile-only {
		width: 120px;
	}

	.footer-revista__nav {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		width: 100%;
	}

	.footer-revista__menu-col {
		align-items: center;
		gap: 0px !important;
	}

	.footer-revista__tagline {
		max-width: 230px;
		margin: 0 auto;
	}

	.footer-revista__tagline-text {
		font-size: 14px;
	}

	.footer-revista__bottom {
		flex-direction: column;
		gap: 12px;
	}

	.footer-revista__legal {
		flex-direction: column;
		gap: 10px;
	}
}

.footer-revista__bg-mobile {
	/* Ajusta estos tres valores para calibrar el efecto */
	--fuego-intensidad: 0.9;   /* qué tan visible es el parpadeo */
	--fuego-recorrido: 200px;   /* cuánto sube y baja */
	--fuego-velocidad: 7s;     /* más alto = más calmado */

	transform-origin: bottom center;
	will-change: opacity;
	backface-visibility: hidden;
}

/* Las dos capas heredan la imagen del style inline del PHP. */
.footer-revista__bg-mobile::before,
.footer-revista__bg-mobile::after {
	content: '';
	position: absolute;
	inset: -8% -6% 0 -6%;
	background-image: inherit;
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: cover;
	transform-origin: bottom center;
	mix-blend-mode: screen;
	pointer-events: none;
	will-change: transform, opacity;
	backface-visibility: hidden;
}

/* Capa 1: sube y se ensancha, como la lengua principal. */
.footer-revista__bg-mobile::before {
	opacity: calc(0.45 * var(--fuego-intensidad));
	animation: mmp-fuego-sube var(--fuego-velocidad) ease-in-out infinite;
}

/* Capa 2: más lenta y en sentido contrario, para que no se sincronicen. */
.footer-revista__bg-mobile::after {
	opacity: calc(0.32 * var(--fuego-intensidad));
	animation: mmp-fuego-deriva calc(var(--fuego-velocidad) * 1.618) ease-in-out infinite;
	animation-delay: -2.4s;
}

/* La base late en brillo: es lo que da la sensación de brasa viva. */
.footer-revista__bg-mobile {
	animation: mmp-fuego-brasa calc(var(--fuego-velocidad) * 0.72) ease-in-out infinite;
}

@keyframes mmp-fuego-sube {
	0%, 100% {
		transform: translate3d(0, 0, 0) scale(1, 1);
		opacity: calc(0.38 * var(--fuego-intensidad));
	}
	32% {
		transform: translate3d(-4px, calc(var(--fuego-recorrido) * -1), 0) scale(1.04, 1.09);
		opacity: calc(0.62 * var(--fuego-intensidad));
	}
	61% {
		transform: translate3d(3px, calc(var(--fuego-recorrido) * -0.45), 0) scale(1.02, 1.04);
		opacity: calc(0.44 * var(--fuego-intensidad));
	}
}

@keyframes mmp-fuego-deriva {
	0%, 100% {
		transform: translate3d(0, 0, 0) scale(1.03, 1);
		opacity: calc(0.26 * var(--fuego-intensidad));
	}
	44% {
		transform: translate3d(7px, calc(var(--fuego-recorrido) * -0.7), 0) scale(1, 1.06);
		opacity: calc(0.5 * var(--fuego-intensidad));
	}
	72% {
		transform: translate3d(-5px, calc(var(--fuego-recorrido) * -0.25), 0) scale(1.05, 1.02);
		opacity: calc(0.34 * var(--fuego-intensidad));
	}
}

/* Parpadeo de brillo, con tiempos irregulares para que no se sienta cíclico. */
@keyframes mmp-fuego-brasa {
	0%, 100% { filter: brightness(1)    saturate(1);    }
	18%      { filter: brightness(1.14) saturate(1.1);  }
	37%      { filter: brightness(0.94) saturate(0.97); }
	55%      { filter: brightness(1.2)  saturate(1.14); }
	73%      { filter: brightness(1.02) saturate(1.03); }
	88%      { filter: brightness(1.09) saturate(1.07); }
}

/* Respeta a quien pidió menos movimiento en su sistema. */
@media (prefers-reduced-motion: reduce) {
	.footer-revista__bg-mobile,
	.footer-revista__bg-mobile::before,
	.footer-revista__bg-mobile::after {
		animation: none;
	}
	.footer-revista__bg-mobile::before,
	.footer-revista__bg-mobile::after {
		opacity: 0.3;
	}
}