/**
 * Footer - Safety Garage
 */

.site-footer {
	background: var(--sg-dark, #122d5c);
	color: #fff;
	position: relative;
	margin-top: 0;
}

/* ========== IMAGEN DEL EQUIPO ========== */
.footer-team {
	position: relative;
	width: 100%;
	height: auto;
	max-height: 500px;
	overflow: hidden;
}

.footer-team__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	object-position: center;
}

/* ========== LOGO FLOTANTE ========== */
.footer-logo-wrapper {
	display: flex;
	justify-content: center;
	margin-top: -50px;
	position: relative;
	z-index: 10;
}

.footer-logo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.footer-logo img {
	width: 80%;
	height: 80%;
	object-fit: contain;
}

.footer-logo--text {
	padding: 0.5rem;
	text-align: center;
}

.footer-logo__initials {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	line-height: 1;
}

.footer-logo__name {
	font-size: 0.5rem;
	font-weight: 600;
	color: var(--sg-dark, #122d5c);
	letter-spacing: 0.05em;
	margin-top: 2px;
}

.footer-logo__since {
	font-size: 0.4rem;
	color: #6b7a8a;
	margin-top: 1px;
}

/* ========== CONTENIDO PRINCIPAL ========== */
.footer-main {
	padding: 3rem 0;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 2fr 1.25fr 0.75fr;
	gap: 2rem;
	align-items: start;
}

/* Columnas */
.footer-col__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 1.25rem;
	position: relative;
}

/* Menú */
.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li {
	margin-bottom: 0.75rem;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.footer-menu a:hover {
	color: #fff;
}

/* Contacto */
.footer-contact__intro {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 1.25rem;
	line-height: 1.6;
}

.footer-contact__item {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	align-items: flex-start;
}

.footer-contact__item svg {
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.7;
}

.footer-contact__item a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact__item a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-contact__phones {
	margin-bottom: 0.5rem;
}

/* Mapa */
.footer-map {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
	display: block;
}

/* Social */
.footer-social {
	display: flex;
	gap: 1rem;
}

.footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: all 0.3s ease;
}

.footer-social__link:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.footer-social__link svg {
	width: 20px;
	height: 20px;
}

/* ========== COPYRIGHT ========== */
.footer-bottom {
	background: rgba(0, 0, 0, 0.15);
	padding: 1rem 0;
}

.footer-bottom__content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.footer-bottom__logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-bottom__sg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.15);
	font-size: 0.7rem;
	font-weight: 700;
	color: #fff;
}

.footer-bottom__text {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.footer-col--map {
		grid-column: 1 / -1;
	}

	.footer-map iframe {
		height: 180px;
	}
}

@media (max-width: 640px) {
	.footer-team {
		max-height: 300px;
	}

	.footer-logo-wrapper {
		margin-top: -40px;
	}

	.footer-logo {
		width: 80px;
		height: 80px;
	}

	.footer-logo__initials {
		font-size: 1.5rem;
	}

	.footer-main {
		padding: 2rem 0;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.footer-col--map {
		grid-column: auto;
	}

	.footer-col--social {
		text-align: center;
	}

	.footer-social {
		justify-content: center;
	}

	.footer-bottom__content {
		flex-direction: column;
		gap: 0.5rem;
	}
}
