/* Electro Footer Pro - estilos frontend
   Namespaced con .efp- para no chocar con las clases de WoodMart. */

.efp-footer {
	--efp-primary: #ff6b00;
	--efp-dark: #181818;
	background: var(--efp-dark);
	color: #d7d7d7;
	font-family: inherit;
	line-height: 1.5;
	position: relative;
	z-index: 1;

	/* Full-bleed: WoodMart imprime wp_footer() dentro de su wrapper
	   (ancho limitado / layout boxed), lo que dejaba el footer "en cajón".
	   Este truco lo expande al ancho completo del viewport aunque esté
	   dentro de un contenedor con max-width. */
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

/* Cuando el JS ya lo ha movido como hijo directo de <body>, no hace falta
   el truco de los -50vw (que puede provocar un pelín de scroll horizontal
   por la barra de scroll): volvemos a ancho natural 100%. */
.efp-footer.efp-relocated {
	width: 100%;
	max-width: 100%;
	left: auto;
	right: auto;
	margin-left: 0;
	margin-right: 0;
}

.efp-footer *,
.efp-footer *::before,
.efp-footer *::after {
	box-sizing: border-box;
}

.efp-footer a {
	color: #d7d7d7;
	text-decoration: none;
	transition: color .15s ease;
}
.efp-footer a:hover {
	color: var(--efp-primary);
}

.efp-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Barra de USPs --- */
.efp-usp-bar {
	background: #111;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.efp-usp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	padding: 18px 24px;
}
.efp-usp-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
}
.efp-usp-icon {
	flex: 0 0 auto;
	color: var(--efp-primary);
	display: inline-flex;
}

/* --- Newsletter --- */
.efp-newsletter {
	background: linear-gradient(135deg, var(--efp-primary), #cc4e00);
	color: #fff;
}
.efp-newsletter-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 32px 24px;
}
.efp-newsletter-copy h3 {
	margin: 0 0 6px;
	font-size: 22px;
	color: #fff;
}
.efp-newsletter-copy p {
	margin: 0;
	opacity: .9;
	font-size: 14px;
	max-width: 480px;
}
.efp-newsletter-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	position: relative;
}
.efp-newsletter-form input[type="email"] {
	padding: 12px 16px;
	border-radius: 6px;
	border: none;
	min-width: 240px;
	font-size: 14px;
}
.efp-newsletter-form button {
	padding: 12px 22px;
	border-radius: 6px;
	border: none;
	background: #181818;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	font-size: 14px;
	transition: background .15s ease, transform .1s ease;
}
.efp-newsletter-form button:hover {
	background: #000;
}
.efp-newsletter-form button:disabled {
	opacity: .6;
	cursor: default;
}
.efp-newsletter-msg {
	position: absolute;
	bottom: -22px;
	left: 0;
	margin: 0;
	font-size: 12.5px;
	color: #fff;
}
.efp-newsletter-msg.is-error { color: #ffe3d1; }

/* --- Columnas principales --- */
.efp-main {
	padding: 40px 0 20px;
}
.efp-columns {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
	gap: 32px;
}
.efp-col-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.efp-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.efp-col ul li {
	margin-bottom: 9px;
	font-size: 13.5px;
}

.efp-col-brand .efp-logo {
	max-height: 46px;
	margin-bottom: 12px;
}
.efp-logo-text {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
}
.efp-desc {
	font-size: 13.5px;
	max-width: 320px;
	margin: 0 0 16px;
	opacity: .85;
}
.efp-socials {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}
.efp-socials a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.efp-socials a:hover {
	background: var(--efp-primary);
	color: #fff;
}
.efp-trust-seal {
	max-height: 50px;
	margin-top: 6px;
	opacity: .9;
}

.efp-col-contact a,
.efp-col-contact span {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	margin-bottom: 10px;
}
.efp-contact-phone {
	font-weight: 700;
	font-size: 16px !important;
	color: #fff !important;
}
.efp-contact-whatsapp {
	color: #25D366 !important;
}
.efp-contact-whatsapp svg { color: #25D366; }

/* --- Métodos de pago --- */
.efp-payments {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 16px 0;
}
.efp-payments-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.efp-payments-label {
	font-size: 12.5px;
	opacity: .75;
}
.efp-payments-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.efp-badge {
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 4px;
	letter-spacing: .02em;
}

/* --- Bottom bar --- */
.efp-bottom {
	background: #0f0f0f;
	padding: 16px 0;
}
.efp-bottom-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12.5px;
	opacity: .75;
}
.efp-legal-links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* --- Barra fija móvil --- */
.efp-sticky-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.efp-sticky-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 10px 4px;
	font-size: 11px;
	font-weight: 700;
	color: #181818 !important;
}
.efp-sticky-btn svg { color: var(--efp-primary); }
.efp-sticky-whatsapp svg { color: #25D366; }

@media (max-width: 782px) {
	.efp-sticky-mobile-bar { display: flex; }
	body { padding-bottom: 56px; }
}

/* --- Responsive columnas --- */
@media (max-width: 1024px) {
	.efp-columns {
		grid-template-columns: repeat(2, 1fr);
	}
	.efp-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	.efp-columns { grid-template-columns: 1fr; }
	.efp-newsletter-inner { flex-direction: column; align-items: flex-start; }
	.efp-newsletter-form { width: 100%; }
	.efp-newsletter-form input[type="email"] { flex: 1; min-width: 0; }
	.efp-usp-grid { grid-template-columns: 1fr 1fr; }
	.efp-bottom-inner { flex-direction: column; align-items: flex-start; }
}
