/**
 * Pie Corticolors (G02 Newsletter, G03 Columnas, Copyright, Botón flotante)
 * Replica exacta 1:1 de los estilos calculados en la web actual.
 */

.site-footer {
	width: 100%;
	background-color: #fff;
	position: relative;
	box-sizing: border-box;
}

/* G02 - Newsletter */
.cc-newsletter {
	width: 100%;
	background-color: #fff;
	padding: 35px 0 30px;
	box-sizing: border-box;
}

.cc-newsletter__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cc-newsletter__divider {
	width: 100%;
	max-width: 1140px;
	height: 2px;
	background-color: #D6D6D6;
	margin: 0 auto 50px;
}

.cc-newsletter__title {
	font-family: 'Poppins', sans-serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 42px;
	color: #222;
	margin: 0 0 30px;
	text-align: center;
}

.cc-newsletter__form {
	width: 40%;
	max-width: 448px;
	margin: 0 auto 30px;
}

.cc-newsletter__fields {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cc-newsletter__input {
	flex: 1 1 auto;
	height: 42px;
	border: 1px solid #EEEEEE;
	border-radius: 3px;
	padding: 8px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #222;
	box-sizing: border-box;
	outline: none;
}

.cc-newsletter__input::placeholder {
	color: #7B7B7B;
}

.cc-newsletter__btn {
	background-color: #8FAA3A !important;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 4px 9px;
	height: 40px;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
}

.cc-newsletter__note {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 300;
	font-style: italic;
	line-height: 24px;
	color: #7B7B7B;
	max-width: 336px;
	margin: 0 auto;
	text-align: center;
}

/* G03 - Columnas del Pie */
.cc-footer-columns {
	width: 100%;
	background-color: #F9F9F9;
	padding: 30px 0 40px;
	box-sizing: border-box;
}

.cc-footer-columns__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0;
	width: 100%;
}

.cc-footer-col {
	padding: 0 10px;
	box-sizing: border-box;
}

.cc-footer-col--1 {
	flex: 0 0 203px;
	max-width: 203px;
}

.cc-footer-logo__img {
	display: block;
	max-width: 183px;
	height: auto;
}

.cc-footer-col--2 {
	flex: 0 0 253px;
	max-width: 253px;
}

.cc-footer-col--3 {
	flex: 0 0 228px;
	max-width: 228px;
}

.cc-footer-col--4 {
	flex: 0 0 228px;
	max-width: 228px;
}

.cc-footer-col--5 {
	flex: 0 0 228px;
	max-width: 228px;
}

.cc-footer-heading {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #222 !important;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.cc-footer-heading--legal {
	margin-top: 25px;
}

.cc-footer-menu {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.cc-footer-menu li {
	margin-bottom: 7px;
	line-height: 24px;
}

.cc-footer-menu a {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 24px;
	color: #7B7B7B !important;
	text-decoration: none;
	transition: color 0.2s;
}

.cc-footer-menu a:hover {
	color: #BFC312 !important;
}

@media (min-width: 769px) {
	.cc-footer-col--2 a[href^="mailto:"] {
		display: inline-block;
		max-width: 175px;
	}
}

/* Redes Sociales */
.cc-footer-social {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(2, 1, 1, 0.51);
	text-decoration: none;
	padding: 0.2em;
	transition: transform 0.2s, color 0.2s;
}

.cc-footer-social__link:hover {
	transform: scale(1.15);
	color: #BFC312;
}

.cc-footer-social__icon svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

/* Copyright */
.cc-footer-copyright {
	width: 100%;
	height: 58.4px;
	background-color: #fff;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.cc-footer-copyright__inner {
	width: 100%;
	text-align: center;
}

.cc-footer-copyright__text {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
	line-height: 14px;
	color: #7B7B7B;
	margin: 0;
}

/* Botón Flotante */
.cc-floating-btn-wrap {
	position: fixed;
	right: 31px;
	bottom: 30px;
	z-index: 9999;
}

.cc-floating-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 53px;
	height: 52.6px;
	background-color: #fff;
	border: 3px solid #BFC312;
	border-radius: 100px;
	padding: 11px 12px;
	box-sizing: border-box;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
	transition: transform 0.2s;
}

.cc-floating-btn:hover {
	transform: scale(1.08);
}

.cc-floating-btn__icon svg {
	width: 23px;
	height: 23px;
	fill: #BFC312;
}

.cc-floating-btn.is-wa {
	border-color: #25D366;
}

.cc-floating-btn.is-wa .cc-floating-btn__icon svg {
	fill: #25D366;
}

/* Responsive: Breakpoint Tablet 768px */
@media (max-width: 1024px) and (min-width: 768px) {
	.cc-newsletter {
		padding: 30px 0 20px;
	}
	.cc-newsletter__divider {
		width: 100%;
		max-width: 748px;
		height: 2px;
		background-color: #D6D6D6;
		margin: 20px auto 35px;
	}
	.cc-newsletter__title {
		font-size: 32px;
		line-height: 42px;
		margin: 0 0 30px;
	}
	.cc-newsletter__form {
		width: 411px;
		max-width: 411px;
		margin: 0 auto 30px;
	}
	.cc-newsletter__note {
		max-width: 224px;
		margin: 0 auto;
	}
	.cc-footer-columns {
		padding: 30px 0 40px;
	}
	.cc-footer-columns__inner {
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
		flex-wrap: nowrap;
		width: 100%;
		max-width: 768px;
		margin: 0 auto;
		padding: 0;
	}
	.cc-footer-col {
		padding: 0 10px;
		box-sizing: border-box;
	}
	.cc-footer-col--1 {
		flex: 0 0 136.75px;
		max-width: 136.75px;
		margin-bottom: 0;
	}
	.cc-footer-logo__img {
		max-width: 117px !important;
		width: 117px;
		height: auto;
		margin: 0;
	}
	.cc-footer-col--2 {
		flex: 0 0 170.44px;
		max-width: 170.44px;
		margin-bottom: 0;
	}
	.cc-footer-col--2 .cc-footer-menu:not(:last-child) {
		max-width: 100px;
	}
	.cc-footer-col--2 .cc-footer-menu:last-child {
		max-width: 150px;
	}
	.cc-footer-col--3 {
		flex: 0 0 153.59px;
		max-width: 153.59px;
		margin-bottom: 0;
	}
	.cc-footer-col--3 .cc-footer-menu {
		max-width: 133.59px;
	}
	.cc-footer-col--4 {
		flex: 0 0 153.59px;
		max-width: 153.59px;
		margin-bottom: 0;
	}
	.cc-footer-col--4 .cc-footer-menu {
		max-width: 114px;
	}
	.cc-footer-col--5 {
		flex: 0 0 153.59px;
		max-width: 153.59px;
		margin-bottom: 0;
	}
	.cc-footer-col--5 .cc-footer-heading {
		max-width: 120px;
	}
	.cc-footer-col--5 .cc-footer-social {
		max-width: 110px;
		flex-wrap: wrap;
		gap: 10px;
	}
	.cc-footer-col--2 a[href^="mailto:"] {
		display: inline-block;
		max-width: 100px;
	}
}

/* Responsive: Breakpoint Móvil (< 768px) */
@media (max-width: 767px) {
	.cc-newsletter {
		padding: 30px 20px 30px;
	}
	.cc-newsletter__divider {
		width: 100%;
		max-width: 330px;
		height: 2px;
		background-color: #D6D6D6;
		margin: 35px auto 45px;
		display: block;
	}
	.cc-newsletter__title {
		font-size: 28px;
		line-height: 36.4px;
		margin: 0 0 20px;
		text-align: center;
	}
	.cc-newsletter__form {
		width: 100%;
		max-width: 100%;
		margin: 0 auto 20px;
	}
	.cc-newsletter__fields {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}
	.cc-newsletter__input,
	.cc-newsletter__btn {
		width: 100%;
	}
	.cc-newsletter__input {
		height: 42px;
	}
	.cc-newsletter__btn {
		height: 40px;
		font-size: 18px;
		font-weight: 500;
	}
	.cc-newsletter__note {
		font-size: 14px;
		font-style: italic;
		line-height: 24px;
		color: #7B7B7B;
		margin: 0 auto;
	}

	.cc-footer-columns {
		padding: 20px 30px 30px;
	}
	.cc-footer-columns__inner {
		flex-direction: column;
		width: 100%;
		max-width: 330px;
		margin: 0 auto;
		padding: 0;
	}
	.cc-footer-col {
		flex: 0 0 100%;
		max-width: 100%;
		padding: 0 0 25px 0;
	}
	.cc-footer-col--1 {
		text-align: center;
		padding: 0 0 20px 0;
	}
	.cc-footer-logo {
		display: block;
		width: 100%;
		text-align: center;
	}
	.cc-footer-logo__img {
		max-width: 330px !important;
		width: 100%;
		height: auto;
		margin: 0 auto;
		display: block;
	}
	.cc-footer-heading {
		font-size: 17px !important;
		font-weight: 500;
		line-height: 24px;
		color: #222 !important;
		margin: 0 0 20px;
	}
	.cc-footer-heading--legal {
		margin-top: 25px;
	}
	.cc-footer-menu {
		margin: 0 0 20px;
	}
	.cc-footer-menu li {
		margin-bottom: 7px;
		line-height: 24px;
	}
	.cc-footer-menu a {
		font-size: 16px !important;
		font-weight: 300;
		line-height: 24px;
		color: #7B7B7B !important;
	}
	.cc-footer-col--2 a[href^="mailto:"] {
		display: inline !important;
		max-width: none !important;
		white-space: nowrap !important;
	}

	.cc-footer-copyright {
		height: auto;
		min-height: 60px;
		padding: 15px 20px;
	}
	.cc-footer-copyright__text {
		font-size: 17px !important;
		font-weight: 400;
		line-height: 24px;
		color: #7B7B7B;
		text-align: center;
	}

	.cc-floating-btn-wrap {
		right: 31px;
		bottom: 11px;
	}
	.cc-floating-btn {
		padding: 10px;
	}
	.cc-floating-btn__icon svg {
		width: 28px;
		height: 28px;
	}
}

/* Mensajes de la newsletter del pie (como .elementor-message del formulario de Elementor). */
.cc-newsletter__form { position: relative; }
.cc-newsletter .cc-form__message { margin: 10px 0 0; font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 300; line-height: 24px; text-align: center; }
.cc-newsletter .cc-form__message--success { color: #5cb85c; }
.cc-newsletter .cc-form__message--danger { color: #d9534f; }

/* Revisión de Jorge (8-11): el icono del botón flotante quedaba arriba a la izquierda porque su <span> medía
   30 px de alto (alto de línea). En Elementor el icono va en una caja de 23 × 24,64 px (28 × 30 en móvil),
   centrada en el botón. */
.cc-floating-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.cc-floating-btn__icon svg {
	height: 24.64px;
}
@media (max-width: 767px) {
	.cc-floating-btn__icon svg {
		height: 30px;
	}
}
/* En móvil, el botón de Elementor mide 54 × 56 px (icono 28 × 30 + 10 px de relleno + 3 de borde) y queda
   a 15 px del borde derecho y 22 px del inferior (medido en la web actual a 390). */
@media (max-width: 767px) {
	.cc-floating-btn-wrap {
		right: calc(15px + env(safe-area-inset-right, 0px));
		bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	}
	.cc-floating-btn {
		width: 54px;
		height: 56px;
	}
}

/* ==========================================================================
   Revisión de Jorge (8-11), fallo F1 del agente de pruebas: el pie empezaba en el mismo píxel pero medía
   −54 / −40 / +147 px. Medido texto a texto frente a la web actual (auditoria/revision-jorge/pie.json):
   - el título del boletín va 25 px más abajo (20 en móvil): espaciado del separador;
   - el formulario de Elementor ocupa 10 px más (margen inferior del grupo de campos);
   - del texto en cursiva a las columnas hay 24 px (25 en tablet);
   - las columnas llevan 10 px de relleno arriba y abajo (widget-wrap de Elementor);
   - la 4.ª columna (Mecanismos, Repuestos, Cortinas) va 20 px hacia dentro en ordenador y tablet, y por eso
     «REPUESTOS Y ACCESORIOS» ocupa dos líneas;
   - los títulos de columna son <p> (antes <h3>, que heredaba el alto de línea de los títulos del tema).
   ========================================================================== */
.cc-newsletter { padding-bottom: 24px; }
.cc-newsletter__divider { margin-bottom: 75px; }
.cc-newsletter__form { margin-bottom: 40px; }
@media (min-width: 768px) {
	.cc-footer-col { padding-top: 10px; padding-bottom: 10px; }
	.cc-footer-col--4 > * { margin-left: 20px; }
	.cc-footer-heading--legal { margin-top: 20px; }
}
/* En Elementor el último widget de cada columna no lleva los 20 px de separación. */
.cc-footer-col > :last-child { margin-bottom: 0; }
p.cc-footer-heading { letter-spacing: normal; }
p.cc-newsletter__title { letter-spacing: normal; }

@media (max-width: 1024px) and (min-width: 768px) {
	.cc-newsletter { padding-bottom: 25px; }
	.cc-newsletter__divider { margin-bottom: 60px; }
	.cc-newsletter__form { margin-bottom: 40px; }
	.cc-footer-col { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 767px) {
	.cc-newsletter { padding-bottom: 24px; }
	.cc-newsletter__divider { margin-bottom: 65px; }
	.cc-newsletter__title { margin-bottom: 30px; }
	.cc-newsletter__form { margin-bottom: 40px; }
	.cc-footer-heading--legal { margin-top: 30px; }
	.cc-footer-copyright__text { line-height: 14px; }
}
/* Ajuste fino (segunda medida): último enlace de cada lista como el li de Elementor (24 + 4 px), texto del
   copyright a 7 px del borde de su franja (relleno de 10 px del widget) y, en tablet, la lista de avisos
   legales con el ancho completo de la columna (150,44 px; con 150 «Política de privacidad» saltaba de línea). */
.cc-footer-menu li:last-child { margin-bottom: 4px; }
.cc-footer-copyright { align-items: flex-start; padding-top: 10px; }
@media (max-width: 1024px) and (min-width: 768px) {
	.cc-footer-col--2 .cc-footer-menu:last-child { max-width: none; }
}
@media (max-width: 767px) {
	.cc-footer-col:not(.cc-footer-col--1) { padding: 10px 0; }
	.cc-footer-menu li:last-child { margin-bottom: 0; }
	.cc-footer-heading--legal { margin-top: 20px; }
}
/* Tercera medida: copyright a la altura exacta, franja de 72 px en móvil y separación de los iconos de
   redes como en Elementor (36,7 px de un icono al siguiente). */
.cc-footer-copyright { padding-top: 6px; }
.cc-footer-social { gap: 11.4px; }
@media (max-width: 767px) {
	.cc-footer-copyright { padding-top: 5px; min-height: 72px; }
}
@media (max-width: 1024px) and (min-width: 768px) {
	.cc-footer-col--5 .cc-footer-social { gap: 11.4px; }
}
@media (max-width: 767px) {
	.cc-newsletter__form { margin-bottom: 38px; }
	.cc-footer-copyright { min-height: 79px; }
}
@media (min-width: 768px) {
	.cc-footer-col--4 > .cc-footer-menu:last-child li:last-child { margin-bottom: 0; }
}
@media (max-width: 767px) {
	.cc-newsletter__form { margin-bottom: 40px; }
	.cc-footer-copyright { min-height: 77px; }
}
.cc-footer-copyright { padding-top: 10px; }
@media (max-width: 767px) {
	.cc-footer-copyright { padding-top: 5px; }
	.cc-newsletter__form { margin-bottom: 38px; }
	.cc-newsletter { padding-bottom: 26px; }
}

/* ==========================================================================
   9-11: botones flotantes llamada + WhatsApp (parts/footer/boton-flotante-2.php). Mismo estilo que el
   WhatsApp de siempre: círculo blanco, borde de 3 px e icono centrado dentro. Sin textos visibles
   (aria-label y title). Fuera del horario web desaparecen los dos (.is-cerrado). Agencia IA Solutions.
   ========================================================================== */
.cc-floating-btn-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
/* Fuera de horario solo desaparece la llamada; el botón de abajo queda como el original (abre la ventana 2995). */
.cc-floating-btn-wrap.is-cerrado .cc-floating-btn--call { display: none !important; }
.cc-floating-btn--call { border-color: #BFC312; }
/* telefono.svg trae fill="#222222" en el propio trazado: hay que pintarlo en el path. */
.cc-floating-btn--call .cc-floating-btn__icon svg,
.cc-floating-btn--call .cc-floating-btn__icon svg path { fill: #BFC312; }
.cc-floating-btn--wa.is-wa .cc-floating-btn__icon--wa svg,
.cc-floating-btn--wa.is-wa .cc-floating-btn__icon--wa svg path { fill: #25D366; }
/* Botón de abajo fuera de horario = botón original: borde e icono de teléfono en lima. */
.cc-floating-btn--wa:not(.is-wa) .cc-floating-btn__icon--phone svg,
.cc-floating-btn--wa:not(.is-wa) .cc-floating-btn__icon--phone svg path { fill: #BFC312; }
@media (max-width: 767px) { .cc-floating-btn-wrap { gap: 10px; } }
@media print { .cc-floating-btn-wrap { display: none !important; } }

/* 9-11 (Jorge): en móvil el «© Corticolors. Todos los derechos reservados.» (17 px) ocupa dos líneas y
   el line-height de 14 px hacía que se montaran. Interlineado proporcional y franja que crece con el texto. */
@media (max-width: 767px) {
	.cc-footer-copyright { height: auto; min-height: 77px; padding-bottom: 12px; }
	.cc-footer-copyright__text { line-height: 1.4 !important; }
}
