/* =========================================================
   FLOWFLAMINGO — CONTACTO: HERO Y FORMULARIO
   ========================================================= */

/* Contenedor principal */
.ff-contact-hero {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 1400px !important;
	margin: 0 auto;
	padding: 130px 40px 80px;
	box-sizing: border-box;
}

/* Fondo decorativo del hero a pantalla completa */
body .ff-contact-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	pointer-events: none;
	background-image:
		radial-gradient(
			110% 75% at 88% -8%,
			rgba(176, 54, 29, 0.1),
			transparent 55%
		);
	transform: translateX(-50%);
}

/* Dos columnas */
.ff-contact-hero .ff-contact-hero__grid {
	display: grid !important;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: start;
	gap: clamp(40px, 5vw, 88px);
	width: 100%;
	margin: 0;
}

/* Neutralizar la distribución de Gutenberg */
.ff-contact-hero__grid > .wp-block-column {
	width: 100%;
	min-width: 0;
	flex-basis: auto !important;
	margin: 0;
}

/* =========================================================
   COLUMNA IZQUIERDA
   ========================================================= */

.ff-contact-intro {
	width: 100%;
}

/* Etiqueta “Contacto” */
.ff-contact-intro .top__pre {
	display: inline-flex;
	align-items: center;
	gap: 11.2px;
	margin-bottom: 35.2px;
	font-size: 12.48px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1.4976px;
	text-transform: uppercase;
	color: #0f11158c;
}

.ff-contact-intro .top__pre::before {
	display: inline-block;
	flex-shrink: 0;
	width: 28px;
	height: 1px;
	background: #b0361d;
	opacity: 0.75;
	content: "";
}

/* Título principal */
.ff-contact-intro .top__claim {
	max-width: 20ch;
	margin: 0;
	font-family: "Inter Tight", sans-serif !important;
	font-size: clamp(33.6px, 3.5vw, 57.6px) !important;
	font-weight: 500 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.042em !important;
	color: #0f1115;
}

/* Cada línea del título */
.ff-contact-intro .top__claim .mask {
	display: block;
	overflow: visible;
	margin: 0;
	padding: 0;
}

.ff-contact-intro .top__claim .mask > span {
	display: block;
}

/* Palabra “criterio” */
.ff-contact-intro .top__claim .accent {
	color: #b0361d;
}

/* Textos introductorios */
.ff-contact-intro .top__lead {
	max-width: 52ch;
	margin-top: 38.4px;
}

.ff-contact-intro .top__lead p {
	margin: 0;
	font-size: clamp(16.32px, 1.3vw, 18.56px);
	font-weight: 400;
	line-height: 1.62;
	color: #0f11159e;
}

.ff-contact-intro .top__lead p + p {
	margin-top: 13.6px;
}

/* “Empecemos por una conversación” */
.ff-contact-intro .top__lead .hi {
	color: #0f1115;
	font-weight: 500;
}

/* =========================================================
   COLUMNA DERECHA: TARJETA
   ========================================================= */

.ff-contact-hero .contact-form-column {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 37.44px;
	border: 1px solid #0f111517;
	border-radius: 18px;
	background: #f1ecdc;
	box-shadow: 0 30px 60px -34px rgba(15, 17, 21, 0.28);
	box-sizing: border-box;
}

/* Línea roja superior */
.ff-contact-hero .contact-form-column::before {
	position: absolute;
	top: 0;
	left: 37.44px;
	width: 46px;
	height: 3px;
	background: #b0361d;
	content: "";
}

/* Título de la tarjeta */
.ff-contact-hero .fcard__t {
	margin: 0 0 11.2px;
	font-family: "Inter Tight", sans-serif !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.14 !important;
	letter-spacing: -0.768px !important;
	color: #0f1115 !important;
}

/* Evitar que strong tome el rojo global */
.ff-contact-hero .fcard__t strong {
	font-weight: 500;
	color: #0f1115 !important;
}

/* Descripción de la tarjeta */
.ff-contact-hero .fcard__x {
	max-width: 417.477px;
	margin: 0 0 32px;
	font-size: 15.04px;
	font-weight: 400;
	line-height: 1.55;
	color: #0f11158c;
}

/* Quitar márgenes externos de Forminator */
.ff-contact-hero .contact-form-column .forminator-ui,
.ff-contact-hero .contact-form-column .forminator-custom-form {
	margin: 0 !important;
}

/* =========================================================
   TABLET Y CELULAR
   ========================================================= */

@media (max-width: 1000px) {

	.ff-contact-hero {
		padding-top: 110px;
		padding-bottom: 64px;
	}

	.ff-contact-hero .ff-contact-hero__grid {
		grid-template-columns: 1fr;
		gap: 41.6px;
	}

	.ff-contact-hero__grid > .wp-block-column {
		width: 100% !important;
	}

	.ff-contact-intro .top__claim {
		max-width: 760px;
		font-size: clamp(43px, 7vw, 64px) !important;
	}
}

@media (max-width: 767px) {

	.ff-contact-hero {
		padding: 100px 20px 56px;
	}

	.ff-contact-intro .top__pre {
		margin-bottom: 28px;
	}

	.ff-contact-intro .top__claim {
		font-size: clamp(38px, 11vw, 52px) !important;
		line-height: 1.05 !important;
		letter-spacing: -0.035em !important;
	}

	.ff-contact-intro .top__lead {
		margin-top: 30px;
	}

	.ff-contact-intro .top__lead p {
		font-size: 16px;
	}

	.ff-contact-hero .contact-form-column {
		padding: 30px 24px;
		border-radius: 16px;
	}

	.ff-contact-hero .contact-form-column::before {
		left: 24px;
	}
}

/* Contacto directo */
.ff-contact-intro .direct {
	display: grid;
	gap: 20.8px;
	margin-top: 48px;
	padding-top: 28.8px;
	border-top: 1px solid #0f11151f;
}

/* Cada fila */
.ff-contact-intro .direct__row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 16px;
}

/* Etiquetas: Email, WhatsApp y Alcance */
.ff-contact-intro .direct__k {
	min-width: 88px;
	font-size: 10.88px;
	font-weight: 500;
	letter-spacing: 1.5232px;
	text-transform: uppercase;
	color: #0f11158c;
}

/* Valores y enlaces */
.ff-contact-intro .direct__v {
	border-bottom: 1px solid #0f111538;
	font-family: "Inter Tight", sans-serif;
	font-size: clamp(16.8px, 1.5vw, 20.8px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.028em;
	color: #0f1115;
	text-decoration: none;
	transition:
		color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ff-contact-intro a.direct__v:hover {
	border-color: #b0361d;
	color: #b0361d;
}

/* Alcance no funciona como enlace */
.ff-contact-intro .direct__v--plain {
	border-bottom: 0;
	color: #0f11159e;
}

/* =========================================================
   FLOWFLAMINGO — PROCESO DE CONTACTO
   ========================================================= */

body #proceso-contacto {
	position: relative;
	width: 100vw !important;
	max-width: none !important;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	padding: 112px 40px;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #000000 !important;
	color: #f9f7f1;
}

/* Limitar el contenido interior */
#proceso-contacto .ff-process-header,
#proceso-contacto .flow__d {
	width: 100%;
	max-width: 1400px;
	margin-right: auto;
	margin-left: auto;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

#proceso-contacto .edl {
	display: inline-flex;
	align-items: center;
	gap: 9.6px;
	margin-bottom: 28.8px;
	font-size: 11.84px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 1.4208px;
	text-transform: uppercase;
	color: rgba(249, 247, 241, 0.5);
}

/* Número 01 */
#proceso-contacto .edl__num {
	font-family: "Inter Tight", sans-serif;
	font-size: 12.8px;
	font-weight: 500;
	letter-spacing: 0.512px;
	color: #dc4829;
}

/* Línea después de la etiqueta */
#proceso-contacto .edl::after {
	display: inline-block;
	width: 41.6px;
	height: 1px;
	background: currentColor;
	opacity: 0.28;
	content: "";
}

/* Título */
#proceso-contacto .flow__t {
	max-width: 16ch;
	margin: 0 0 64px;
	font-family: "Inter Tight", sans-serif;
	font-size: clamp(27.2px, 2.9vw, 40px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.042em;
	color: #f9f7f1;
}

/* Cada línea del título */
#proceso-contacto .flow__t > span {
	display: block;
}

/* Palabra “enviáis” */
#proceso-contacto .flow__t strong {
	font-weight: 500;
	color: #dc4829;
}

/* =========================================================
   GRILLA DE TRES PASOS
   ========================================================= */

#proceso-contacto .flow__d {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid rgba(249, 247, 241, 0.35);
	border-bottom: 1px solid rgba(249, 247, 241, 0.35);
}

/* Línea roja de progreso */
#proceso-contacto .flow__d::before {
	position: absolute;
	bottom: -1px;
	left: 0;
	z-index: 3;
	width: var(--flow-progress, 0%);
	height: 2px;
	background: #dc4829;
	content: "";
	transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cada paso */
#proceso-contacto .flow__n {
	position: relative;
	min-width: 0;
	padding: 48px 32px;
	border-right: 1px solid rgba(249, 247, 241, 0.14);
	transition:
		background 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#proceso-contacto .flow__n:last-child {
	border-right: 0;
}

/* Estado activo */
#proceso-contacto .flow__n.active {
	background: rgba(220, 72, 41, 0.1);
	box-shadow: inset 0 2px 0 #dc4829;
}

/* =========================================================
   NÚMERO DE CADA PASO
   ========================================================= */

#proceso-contacto .flow__num {
	display: flex;
	align-items: center;
	gap: 9.6px;
	margin-bottom: 32px;
	font-family: "Inter Tight", sans-serif;
	font-size: 12.8px;
	font-weight: 500;
	letter-spacing: 1.024px;
	color: rgba(249, 247, 241, 0.5);
	transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Línea después del número */
#proceso-contacto .flow__num::after {
	flex: 1;
	height: 1px;
	background: rgba(249, 247, 241, 0.14);
	content: "";
	transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Punto */
#proceso-contacto .flow__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f9f7f1;
	opacity: 0.3;
	transition:
		opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Número activo */
#proceso-contacto .flow__n.active .flow__num {
	color: #dc4829;
}

#proceso-contacto .flow__n.active .flow__num::after {
	background: #dc4829;
	opacity: 0.5;
}

#proceso-contacto .flow__n.active .flow__dot {
	background: #dc4829;
	opacity: 1;
	transform: scale(1.4);
}

/* =========================================================
   TÍTULO Y TEXTO DE CADA PASO
   ========================================================= */

#proceso-contacto .flow__p {
	margin: 0 0 16px;
	font-family: "Inter Tight", sans-serif;
	font-size: clamp(19.2px, 1.7vw, 24px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.03em;
	color: #f9f7f1;
	transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#proceso-contacto .flow__n.active .flow__p {
	color: #dc4829;
}

#proceso-contacto .flow__x {
	max-width: 38ch;
	margin: 0;
	font-size: clamp(15.36px, 1.15vw, 16.8px);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(249, 247, 241, 0.62);
}

/* Flechas entre los pasos */
#proceso-contacto .flow__a {
	position: absolute;
	top: 50%;
	right: -7px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	background: #0f1115;
	font-size: 12px;
	color: #f9f7f1;
	transform: translateY(-50%);
	transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#proceso-contacto .flow__n.active .flow__a {
	color: #dc4829;
}

/* =========================================================
   TABLET Y CELULAR
   ========================================================= */

@media (max-width: 900px) {

	#proceso-contacto {
		padding: 80px 40px;
	}

	#proceso-contacto .flow__t {
		margin-bottom: 48px;
	}

	#proceso-contacto .flow__d {
		grid-template-columns: 1fr;
	}

	#proceso-contacto .flow__d::before {
		display: none;
	}

	#proceso-contacto .flow__n {
		padding: 38.4px 0;
		border-right: 0;
		border-bottom: 1px solid rgba(249, 247, 241, 0.14);
	}

	#proceso-contacto .flow__n:last-child {
		border-bottom: 0;
	}

	#proceso-contacto .flow__n.active {
		padding-right: 24px;
		padding-left: 24px;
	}

	#proceso-contacto .flow__a {
		display: none;
	}
}

@media (max-width: 767px) {

	#proceso-contacto {
		padding: 72px 20px;
	}

	#proceso-contacto .edl {
		margin-bottom: 24px;
	}

	#proceso-contacto .flow__t {
		max-width: 20ch;
		font-size: 32px;
	}

	#proceso-contacto .flow__num {
		margin-bottom: 24px;
	}
}

/* Animación de entrada del encabezado */
#proceso-contacto .ff-process-header {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

#proceso-contacto.is-visible .ff-process-header {
	opacity: 1;
	transform: translateY(0);
}

/* Estado inicial de los pasos */
#proceso-contacto .flow__n {
	opacity: 0.42;
	transform: translateY(18px);
	transition:
		opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Paso activado */
#proceso-contacto .flow__n.active {
	opacity: 1;
	transform: translateY(0);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
	#proceso-contacto .ff-process-header,
	#proceso-contacto .flow__n {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (min-width: 1024px) {

    /* Colores según la sección */
    body #masthead[data-contact-menu="dark"] {
        --ff-contact-menu-bg: #000000;
        --ff-contact-menu-text: #f9f7f1;
    }

    body #masthead[data-contact-menu="cream"] {
        --ff-contact-menu-bg: #f1ecdc;
        --ff-contact-menu-text: #0F1115;
    }

    /* Fondo del menú y sus contenedores de Astra */
    body #masthead[data-contact-menu],
    body #masthead[data-contact-menu] .ast-primary-header-bar,
    body #masthead[data-contact-menu] .site-primary-header-wrap,
    body #masthead[data-contact-menu] .ast-builder-grid-row,
    body #masthead[data-contact-menu] .ast-builder-grid-row-container {
        background-color: var(--ff-contact-menu-bg) !important;
        transition: background-color 0.3s ease;
    }

    /* Enlaces, nombre del sitio e idiomas */
    body #masthead[data-contact-menu] .main-header-menu > .menu-item > a,
    body #masthead[data-contact-menu] .site-title a,
    body #masthead[data-contact-menu] .ff-lang-switcher a,
    body #masthead[data-contact-menu] .ff-lang-switcher span {
        color: var(--ff-contact-menu-text) !important;
    }

    /* Botón Hablemos */
    body #masthead[data-contact-menu] .ast-custom-button {
        color: var(--ff-contact-menu-text) !important;
        border-color: var(--ff-contact-menu-text) !important;
        background-color: transparent !important;
    }
}

@media (max-width: 767px) {

    /* Claim a ancho completo */
    body .ff-contact-intro .top__claim {
        width: 100%;
        max-width: none;
        font-size: 40px !important;
        box-sizing: border-box;
    }

    /* Quitar el fondo decorativo */
    body .ff-contact-hero::before {
        background-image: none;
    }

    /* Título de testimonios */
    body #testimonios-clientes .revs__t {
        font-size: 30px !important;
        max-width: none;
    }

    /* Testimonios: aprovechar todo el ancho */
    body #testimonios-clientes .ff-testimonials-slider {
        width: 100%;
        max-width: none;
    }

    body #testimonios-clientes
    .ff-testimonials-slider .swiper-slide {
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    body #testimonios-clientes .ff-testimonial-card {
        width: 100%;
        max-width: none;
    }

    body #testimonios-clientes .ff-testimonial-text {
        width: 100%;
        max-width: none;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}


@media (max-width: 767px) {

    /* Hero en una columna */
    body .ff-contact-hero .ff-contact-hero__grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    body .ff-contact-hero .ff-contact-intro,
    body .ff-contact-hero .contact-form-column {
        flex: 0 0 auto !important;
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    /* Flechas debajo del testimonio */
    body #testimonios-clientes .ff-testimonial-prev,
    body #testimonios-clientes .ff-testimonial-next {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: none;
        margin: 24px 6px 0;
    }
}