/**
 * Puntos Ya - Footer Cálido Naranja (Hover B)
 * Enlaces deslizan a la derecha + iconos elevan
 */

.puntos-ya-footer-wrap,
.puntos-ya-footer-wrap .footer-inner {
	--color-orange: #E85D04;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== FOOTER WRAPPER ========== */
.puntos-ya-footer-wrap {
	position: relative;
	padding: 0 10px 40px;
	pointer-events: none;
}
.puntos-ya-footer-wrap .footer-inner {
	pointer-events: auto;
}

/* ========== FOOTER INNER ========== */
/* Mismo ancho que el header: 60% → 75% → 85% → 90% → 100% (responsive) */
.puntos-ya-footer-wrap .footer-inner {
	width: 60%;
	min-width: 280px;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.puntos-ya-footer-wrap .footer-inner.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ========== CÁLIDO NARANJA ========== */
.puntos-ya-footer-wrap .footer-inner {
	background: linear-gradient(160deg, #f07a1f 0%, #E85D04 40%, #d95407 70%, #c44d03 100%);
	border-radius: 24px;
	box-shadow: 0 12px 48px rgba(232, 93, 4, 0.35), 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
}

.puntos-ya-footer-wrap .footer__section h4 {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.9);
}
.puntos-ya-footer-wrap .footer__links a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	transition: all 0.2s var(--ease-out);
	display: inline-block;
}
/* Hover B: Enlaces deslizan a la derecha */
.puntos-ya-footer-wrap .footer__links a:hover {
	color: #fff;
	transform: translateX(5px);
}
.puntos-ya-footer-wrap .footer__contact p,
.puntos-ya-footer-wrap .footer__contact a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 10px;
	line-height: 1.6;
	transition: color 0.2s var(--ease-out);
}
.puntos-ya-footer-wrap .footer__contact p:last-child {
	margin-bottom: 0;
}
.puntos-ya-footer-wrap .footer__contact a:hover {
	color: #fff;
}
.puntos-ya-footer-wrap .footer__socials {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}
.puntos-ya-footer-wrap .footer__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	transition: all 0.25s var(--ease-out);
}
/* Hover B: Iconos elevan */
.puntos-ya-footer-wrap .footer__socials a:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-4px);
}
.puntos-ya-footer-wrap .footer__socials a svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ========== FOOTER MAIN ========== */
.puntos-ya-footer-wrap .footer__main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px 40px;
	padding: 40px 36px 28px;
}
.puntos-ya-footer-wrap .footer__section {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.puntos-ya-footer-wrap .footer-inner.is-visible .footer__section {
	opacity: 1;
	transform: translateY(0);
}
.puntos-ya-footer-wrap .footer-inner.is-visible .footer__section:nth-child(1) {
	transition-delay: 0.15s;
}
.puntos-ya-footer-wrap .footer-inner.is-visible .footer__section:nth-child(2) {
	transition-delay: 0.25s;
}
.puntos-ya-footer-wrap .footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ========== FOOTER BOTTOM ========== */
.puntos-ya-footer-wrap .footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 20px 36px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.45s var(--ease-out) 0.4s, transform 0.45s var(--ease-out) 0.4s;
}
.puntos-ya-footer-wrap .footer-inner.is-visible .footer__bottom {
	opacity: 1;
	transform: translateY(0);
}
.puntos-ya-footer-wrap .footer__copyright {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.8);
}
.puntos-ya-footer-wrap .footer__copyright svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	flex-shrink: 0;
}

/* Toggle color del header */
.puntos-ya-footer-wrap .footer__header-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.2s var(--ease-out);
}
.puntos-ya-footer-wrap .footer__header-toggle:hover {
	color: #fff;
}
.puntos-ya-footer-wrap .footer__header-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.puntos-ya-footer-wrap .footer__header-toggle-slider {
	position: relative;
	width: 40px;
	height: 22px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 11px;
	transition: background 0.25s var(--ease-out);
}
.puntos-ya-footer-wrap .footer__header-toggle-slider::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.25s var(--ease-out);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.puntos-ya-footer-wrap .footer__header-toggle input:checked + .footer__header-toggle-slider {
	background: rgba(255, 255, 255, 0.4);
}
.puntos-ya-footer-wrap .footer__header-toggle input:checked + .footer__header-toggle-slider::after {
	transform: translateX(18px);
}

/* ========== RESPONSIVE ========== */
/* Ancho del footer sigue al header en cada breakpoint */
@media (max-width: 1400px) {
	.puntos-ya-footer-wrap .footer-inner { width: 75%; }
}
@media (max-width: 1200px) {
	.puntos-ya-footer-wrap .footer-inner { width: 85%; }
}
@media (max-width: 1024px) {
	.puntos-ya-footer-wrap .footer-inner { width: 90%; }
}
@media (max-width: 768px) {
	.puntos-ya-footer-wrap .footer-inner { width: 100%; }
	.puntos-ya-footer-wrap .footer__main {
		grid-template-columns: 1fr;
		padding: 32px 24px 24px;
		gap: 32px;
	}
	.puntos-ya-footer-wrap .footer__bottom {
		padding: 18px 24px 20px;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}
