/**
 * Bersoft Theme — Estilos Modulares del Pie de Página (Footer).
 *
 * @package Bersoft_Theme
 * @since   0.5.0
 */

/* Contenedor Principal del Footer */
.site-footer {
	position: relative;
	width: 100%;
	clear: both;
}

/* Skins y Esquemas de Color */
.bersoft-footer-dark {
	background-color: var(--bs-color-surface, #172126);
	color: var(--bs-color-text-secondary, #94a3b8);
	border-top: 1px solid var(--bs-color-border, #2d3748);
}

.bersoft-footer-dark .bersoft-footer-heading {
	color: var(--bs-color-heading, #ffffff);
}

.bersoft-footer-dark a {
	color: var(--bs-color-text-secondary, #cbd5e1);
}

.bersoft-footer-dark a:hover,
.bersoft-footer-dark a:focus {
	color: var(--bs-color-primary-light, #dcecef);
}

.bersoft-footer-light {
	background-color: #ffffff;
	color: var(--bs-color-text, #4b5563);
	border-top: 1px solid var(--bs-color-border, #e2e8f0);
}

.bersoft-footer-light .bersoft-footer-heading {
	color: var(--bs-color-heading, #172126);
}

.bersoft-footer-light a {
	color: var(--bs-color-text, #4b5563);
}

.bersoft-footer-light a:hover,
.bersoft-footer-light a:focus {
	color: var(--bs-color-primary, #0f4c5c);
}

/* Cuadrícula Principal de Columnas (Presets) */
.bersoft-footer-grid {
	display: grid;
	gap: 35px;
	padding-top: var(--bs-footer-padding-top, 60px);
	padding-bottom: var(--bs-footer-padding-bottom, 50px);
}

.bersoft-footer-preset-columns_4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bersoft-footer-preset-columns_3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bersoft-footer-preset-columns_2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bersoft-footer-preset-columns_5 {
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

.bersoft-footer-preset-minimal {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 20px;
}

/* Componentes y Tipografía */
.bersoft-footer-widget {
	margin-bottom: 25px;
}

.bersoft-footer-widget:last-child {
	margin-bottom: 0;
}

.bersoft-footer-heading {
	font-family: var(--bs-font-heading, inherit);
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px 0;
	letter-spacing: 0.2px;
}

.bersoft-footer-brand .custom-logo-link,
.bersoft-footer-brand .bersoft-logo-img {
	display: inline-block;
	max-height: 50px;
	width: auto;
}

.bersoft-footer-logo-text {
	font-family: var(--bs-font-heading, inherit);
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
}

.bersoft-footer-bio {
	font-size: 14px;
	line-height: 1.6;
	margin: 12px 0 0 0;
}

/* Menús de Navegación */
.bersoft-footer-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bersoft-footer-menu-list li {
	margin-bottom: 8px;
}

.bersoft-footer-menu-list a {
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s ease;
}

/* Contacto y Horarios */
.bersoft-footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
}

.bersoft-footer-contact-list li {
	margin-bottom: 10px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.bersoft-footer-contact-list a {
	text-decoration: none;
}

.bersoft-contact-icon {
	font-size: 14px;
	line-height: 1.4;
}

.bersoft-footer-hours-box {
	font-size: 14px;
	line-height: 1.5;
}

/* Redes Sociales */
.bersoft-footer-social-links {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.bersoft-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--bs-radius-sm, 6px);
	background: rgba(125, 125, 125, 0.1);
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bersoft-social-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.bersoft-social-icon:hover {
	background: var(--bs-color-primary, #0f4c5c);
	color: #ffffff !important;
	transform: translateY(-2px);
}

.bersoft-social-icon:hover svg {
	fill: #ffffff;
}

/* Botones / CTA */
.bersoft-footer-cta .bersoft-btn {
	display: inline-block;
	padding: var(--bs-btn-padding-y, 10px) var(--bs-btn-padding-x, 20px);
	border-radius: var(--bs-btn-radius, 6px);
	font-size: var(--bs-btn-font-size, 14px);
	font-weight: var(--bs-btn-font-weight, 600);
	text-decoration: none;
	transition: all 0.2s ease;
}

.bersoft-btn-primary {
	background: var(--bs-color-primary, #0f4c5c);
	color: #ffffff !important;
	border: 1px solid transparent;
}

.bersoft-btn-primary:hover {
	background: var(--bs-color-primary-dark, #0a3540);
}

.bersoft-btn-secondary {
	background: var(--bs-color-secondary, #e9e1d3);
	color: var(--bs-color-heading, #172126) !important;
	border: 1px solid transparent;
}

.bersoft-btn-outline {
	background: transparent;
	border: 1px solid currentColor;
}

/* Métodos de Pago */
.bersoft-payment-methods-list {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.bersoft-payment-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bersoft-payment-svg,
.bersoft-payment-img {
	height: 24px;
	width: auto;
	border-radius: 3px;
	display: block;
}

/* Barra Inferior (Bottom Bar) */
.bersoft-footer-bottom {
	border-top: 1px solid rgba(125, 125, 125, 0.15);
	padding: 20px 0;
	font-size: 13px;
}

.bersoft-bottom-layout-two_columns {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.bersoft-bottom-layout-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.bersoft-bottom-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.bersoft-legal-menu-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 15px;
}

.bersoft-legal-menu-list a {
	text-decoration: none;
}

/* Botón Volver Arriba (Back to Top) */
#bersoft-back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 990;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--bs-color-primary, #0f4c5c);
	color: #ffffff;
	border: none;
	outline: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#bersoft-back-to-top svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

#bersoft-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#bersoft-back-to-top:hover {
	background-color: var(--bs-color-primary-dark, #0a3540);
	transform: translateY(-2px);
}

/* Visibilidad por Dispositivo */
@media (min-width: 1024px) {
	.bersoft-hide-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.bersoft-hide-tablet {
		display: none !important;
	}
	.bersoft-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.bersoft-hide-mobile {
		display: none !important;
	}
	.bersoft-footer-grid {
		grid-template-columns: 1fr !important;
		gap: 28px;
	}
	.bersoft-bottom-layout-two_columns {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
	.bersoft-bottom-right {
		justify-content: center;
	}
}
