/* ==========================================================================
   Pie de página (propuesta C: claro con tarjeta de contacto)
   ========================================================================== */

.sico-footer {
	font-family: var(--sico-font);
	color: var(--sico-text);
}

.sico-footer__main {
	padding: 80px 16px 64px;
	background-color: var(--sico-light);
}

.sico-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr .75fr 1fr 1.6fr;
	grid-template-areas: "about menu legal card";
	gap: 40px;
	align-items: start;
	max-width: var(--sico-container);
	margin: 0 auto;
}

.sico-footer__about-col { grid-area: about; }
.sico-footer__links--menu { grid-area: menu; }
.sico-footer__links--legal { grid-area: legal; }
.sico-footer__card { grid-area: card; }

/* Marca */
.sico-footer__about-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

.sico-footer__logo {
	display: inline-block;
	line-height: 0;
}

.sico-footer__logo img {
	display: block;
	width: 92px;
	height: auto;
}

.sico-footer__about {
	max-width: 300px;
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #4A4F55;
}

.sico-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--sico-green-dark);
	transition: color .3s;
}

.sico-footer__social:hover,
.sico-footer__social:focus-visible {
	color: var(--sico-primary);
}

.sico-footer__social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--sico-accent);
	color: var(--sico-green-dark);
	transition: background-color .3s, color .3s;
}

.sico-footer__social:hover .sico-footer__social-icon,
.sico-footer__social:focus-visible .sico-footer__social-icon {
	background-color: var(--sico-green-dark);
	color: #fff;
}

.sico-footer__social-icon .sico-svg {
	width: 17px;
	height: 17px;
}

/* Títulos y menús */
.sico-footer__title {
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--sico-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sico-green);
}

.sico-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sico-footer__menu a {
	font-size: 15px;
	line-height: 1.4;
	color: var(--sico-text);
	transition: color .3s;
}

.sico-footer__menu a:hover,
.sico-footer__menu a:focus-visible,
.sico-footer__menu .current-menu-item > a {
	color: var(--sico-green-dark);
}

/* Tarjeta de contacto */
.sico-footer__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	padding: 32px 28px;
	border-radius: 22px;
	background-color: var(--sico-green-dark);
	color: #fff;
}

.sico-footer__card-title {
	margin: 0;
	font-family: var(--sico-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.sico-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sico-footer__contact-item {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
}

a.sico-footer__contact-item:hover,
a.sico-footer__contact-item:focus-visible {
	color: var(--sico-accent);
}

.sico-footer__contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .14);
	color: var(--sico-accent);
}

.sico-footer__contact-icon .sico-svg {
	width: 19px;
	height: 19px;
}

.sico-footer__contact-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.sico-footer__contact-text small {
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, .7);
}

.sico-footer__contact-item--big .sico-footer__contact-text {
	font-size: 22px;
	font-weight: 600;
}

/* Botón WhatsApp (estilo B: flecha en círculo) */
.sico-footer__wa {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 52px;
	padding: 0 6px 0 22px;
	border-radius: 999px;
	background-color: var(--sico-accent);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--sico-primary);
	transition: background-color .3s, color .3s;
}

.sico-footer__wa::after {
	content: "";
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sico-primary) url(../icons/arrow-circle-white.svg) 50% 50% / 17px no-repeat;
	transition: transform .3s;
}

.sico-footer__wa:hover,
.sico-footer__wa:focus-visible {
	background-color: #fff;
	color: var(--sico-primary);
}

.sico-footer__wa:hover::after,
.sico-footer__wa:focus-visible::after {
	transform: translateX(3px);
}

.sico-footer a:focus-visible {
	outline: 2px solid var(--sico-primary);
	outline-offset: 3px;
}

.sico-footer__card a:focus-visible {
	outline-color: #fff;
}

/* Barra inferior */
.sico-footer__bar {
	padding: 0 16px;
	border-top: 1px solid #DDE3DC;
	background-color: #fff;
}

.sico-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: var(--sico-container);
	min-height: 64px;
	margin: 0 auto;
}

.sico-footer__bar p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5F6670;
}

/* Deja sitio al botón flotante de WhatsApp */
@media (max-width: 1300px) {
	.sico-footer__bar-inner {
		padding-right: 72px;
	}
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.sico-footer__main {
		padding: 56px 24px;
	}

	.sico-footer__bar {
		padding: 0 24px;
	}

	.sico-footer__inner {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-areas:
			"about about card card"
			"menu  legal card card";
		gap: 36px 32px;
	}
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.sico-footer__main {
		padding: 48px 20px 40px;
	}

	.sico-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"card  card"
			"about about"
			"menu  legal";
		gap: 36px 20px;
	}

	.sico-footer__card {
		gap: 20px;
		padding: 26px 22px;
	}

	.sico-footer__contact {
		gap: 20px;
	}

	.sico-footer__contact-item--big .sico-footer__contact-text {
		font-size: 20px;
	}

	.sico-footer__about {
		max-width: none;
	}

	.sico-footer__logo img {
		width: 76px;
	}

	.sico-footer__title {
		margin-bottom: 14px;
		font-size: 12px;
	}

	.sico-footer__menu {
		gap: 12px;
	}

	.sico-footer__bar {
		padding: 20px;
	}

	.sico-footer__bar-inner {
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		min-height: 0;
		padding-right: 0;
		padding-bottom: 64px;
		text-align: center;
	}

	.sico-footer__bar p {
		font-size: 13px;
	}
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */

.sico-whatsapp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--sico-green-dark);
	box-shadow: 0 6px 18px rgba(0, 48, 73, .28);
	color: #fff;
	transition: transform .3s, box-shadow .3s, background-color .3s;
}

.sico-whatsapp .sico-svg {
	width: 34px;
	height: 34px;
}

.sico-whatsapp:hover,
.sico-whatsapp:focus {
	background-color: var(--sico-green);
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.sico-whatsapp:focus-visible {
	outline: 3px solid var(--sico-primary);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.sico-whatsapp {
		width: 54px;
		height: 54px;
	}

	.sico-whatsapp .sico-svg {
		width: 30px;
		height: 30px;
	}
}

/* Con el menú lateral abierto no tapa el panel */
body.sico-menu-open .sico-whatsapp {
	display: none;
}
