/*
 * sections.css — secciones de la landing de partner.
 * Cada bloque referencia su nodo de Figma para poder rastrear cambios.
 */

/* =========================================================
   1. Hero (Figma 2004:3242 / 2004:3266 / 2007:4162)
   ========================================================= */

.fc-hero {
	position: relative;
	background: var(--fc-navy);
	color: var(--fc-white);
	overflow: hidden;
	isolation: isolate;
}

.fc-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

/*
 * `fill` (y no `cover`) porque Figma estira la foto al alto de la banda; con
 * `cover` se recortaría la parte superior y desaparecería la figura.
 */
.fc-hero__bg {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
	opacity: var(--fc-hero-image-opacity);
}

.fc-hero__bg--right {
	left: 0;
}

.fc-hero__bg--left {
	left: var(--fc-hero-image-shift);
}

/*
 * Borde izquierdo del contenido del .fc-container, calculado igual que el
 * propio contenedor (centrado a 1110px, o pegado al gutter si no cabe).
 */
.fc-hero__panel {
	--fc-hero-content-start: max(var(--fc-gutter), 50% - var(--fc-container) / 2);
	position: absolute;
	top: 0;
	bottom: 0;
	left: max(0px, var(--fc-hero-content-start) - var(--fc-hero-panel-bleed));
	right: calc(100% - var(--fc-hero-content-start) - var(--fc-hero-panel-reach));
	background: var(--fc-navy);
}

.fc-hero__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--fc-space-xl);
	padding-block: 61px;
	min-height: 558px;
}

.fc-hero__content {
	display: flex;
	flex-direction: column;
	gap: 33px;
	max-width: 640px;
}

.fc-hero__title {
	color: var(--fc-lime);
	font-size: var(--fc-fs-h1);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-tight);
}

.fc-hero__text {
	max-width: 594px;
	color: var(--fc-offwhite);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

.fc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 29px;
}

/* Tarjeta "Coste para la empresa · 0€" */
.fc-hero__highlight {
	flex: 0 0 237px;
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-2xs);
	margin-top: 93px;
	padding: 21px 22px;
	background: var(--fc-hero-overlay);
}

.fc-hero__highlight-label {
	color: var(--fc-offwhite);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

.fc-hero__highlight-value {
	color: var(--fc-lime);
	font-size: var(--fc-fs-h1);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-tight);
}

.fc-hero__highlight-text {
	color: var(--fc-offwhite);
	font-size: var(--fc-fs-sm);
	line-height: var(--fc-lh-sm);
}

@media (max-width: 960px) {
	.fc-hero__inner {
		flex-direction: column;
		min-height: 0;
		padding-block: 48px;
	}

	/* Apilado no hay columna de texto que proteger: se deja sólo la foto. */
	.fc-hero__bg--left,
	.fc-hero__panel {
		display: none;
	}

	/*
	 * Foto en `cover`, sin deformar. El PNG (1024×683) es transparente en su
	 * 46,4% izquierdo, y eso se veía como un bloque azul liso. La caja se hace
	 * 187% de ancho y se ancla a la derecha para que sólo la parte con foto
	 * (el 53,6% derecho) quede dentro de la banda.
	 */
	.fc-hero__bg--right {
		top: 50%;
		right: 0;
		left: auto;
		width: 187%;
		height: auto;
		min-height: 100%;
		aspect-ratio: 1024 / 683;
		object-fit: cover;
		object-position: right center;
		transform: translateY(-50%);
	}

	.fc-hero__highlight {
		flex: 1 1 auto;
		align-self: stretch;
		max-width: 320px;
		margin-top: 0;
	}
}

/* =========================================================
   2. ¿Qué es la formación bonificada? (Figma 2005:3351)
   ========================================================= */

.fc-intro {
	padding-top: 53px;
	text-align: center;
}

.fc-intro__inner {
	display: flex;
	flex-direction: column;
	gap: 25px;
	max-width: 973px;
	margin-inline: auto;
}

.fc-intro__title {
	color: var(--fc-navy);
	font-size: var(--fc-fs-h2);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-h2);
}

.fc-intro__text {
	color: var(--fc-ink);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

.fc-intro__text p + p {
	margin-top: 1.2em;
}

.fc-intro__text strong {
	font-weight: var(--fc-weight-bold);
}

/* Requisitos: 01 La empresa → 02 El curso → 03 El trabajador (Figma 2005:3395) */

.fc-requisitos {
	padding-block: 43px 85px;
}

.fc-requisitos__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 21px;
}

.fc-requisitos__arrow {
	color: var(--fc-navy);
	font-size: var(--fc-fs-h4);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
	user-select: none;
}

.fc-requisito {
	width: 261px;
	min-height: 212px;
	padding: 20px 16px 20px 22px;
	background: var(--fc-cyan);
	border-radius: var(--fc-radius-xs);
}

.fc-requisito__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 221px;
}

.fc-requisito__num,
.fc-requisito__title {
	color: var(--fc-navy);
	font-size: var(--fc-fs-h4);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
}

/*
 * NOTA DE ACCESIBILIDAD: el diseño pide #f6f6f6 sobre #54c9d6 (ratio ≈ 1.9:1,
 * por debajo del mínimo AA de 4.5:1). Se mantiene la fidelidad al Figma y queda
 * abierto en PLAN.md para revisar con el equipo de diseño.
 */
.fc-requisito__text {
	color: var(--fc-offwhite);
	font-size: var(--fc-fs-sm);
	line-height: var(--fc-lh-sm);
}

@media (max-width: 900px) {
	.fc-requisitos__arrow {
		transform: rotate(90deg);
	}
}

/* =========================================================
   3. Por qué formar a tu equipo (Figma 2005:3454 / 2007:4161)
   ========================================================= */

.fc-benefits {
	padding-block: 26px 49px;
	background: var(--fc-offwhite);
}

.fc-benefits__head {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-sm);
	max-width: 1116px;
	margin-inline: auto;
	text-align: center;
}

.fc-benefits__title {
	max-width: 587px;
	margin-inline: auto;
	color: var(--fc-navy);
	font-size: var(--fc-fs-h2);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-h2);
}

.fc-benefits__title span {
	font-weight: var(--fc-weight-regular);
}

.fc-benefits__subtitle {
	max-width: 722px;
	margin-inline: auto;
	color: var(--fc-ink);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

/*
 * En Figma las cuatro tarjetas NO son iguales: cada fila reparte el ancho de
 * forma distinta (608/511 arriba, 558/559 abajo, sobre un grupo de 1141px).
 * Cada tarjeta recibe su proporción en `--fc-benefit-basis` desde la plantilla,
 * y `space-between` deja como hueco el resto de la fila (22px y 24px en Figma).
 */
.fc-benefits__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	row-gap: var(--fc-space-md);
	margin-top: 32px;
}

.fc-benefit {
	flex: 0 1 var(--fc-benefit-basis, 48.9%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--fc-space-sm);
	padding: 40px;
	background: var(--fc-white);
	border: var(--fc-card-border-width) solid var(--fc-ink);
}

.fc-benefit--cyan {
	border-color: var(--fc-cyan);
}

.fc-benefit--lime {
	border-color: var(--fc-lime);
}

.fc-benefit__icon {
	width: 84px;
	height: 84px;
	padding: 16px;
}

.fc-benefit__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fc-benefit__title {
	color: var(--fc-navy);
	font-size: var(--fc-fs-h3);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
}

.fc-benefit__text {
	color: var(--fc-ink);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

@media (max-width: 900px) {
	.fc-benefit {
		/* Una sola columna: se ignoran las proporciones del diseño de escritorio. */
		flex-basis: 100%;
		padding: 28px;
	}
}

/* =========================================================
   4. Áreas formativas (Figma 2005:3486 / 2005:3789)
   ========================================================= */

.fc-areas {
	padding-block: 70px 53px;
	text-align: center;
}

.fc-areas__intro {
	max-width: 643px;
	margin: var(--fc-space-md) auto 0;
	color: var(--fc-ink);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

.fc-areas__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 29px;
	row-gap: 22px;
	margin-top: 41px;
	text-align: left;
}

.fc-area {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 12px 20px 12px 26px;
	background: var(--fc-white);
	border: 1.34px solid var(--fc-hairline);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fc-area:hover {
	border-color: var(--fc-navy);
	box-shadow: var(--fc-shadow-card);
}

.fc-area__icon {
	width: 76.7px;
	height: 76.7px;
	padding: 16px;
}

.fc-area__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fc-area__title {
	color: var(--fc-navy);
	font-size: var(--fc-fs-h5);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
}

.fc-area__chevron {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	margin-left: auto;
}

@media (max-width: 900px) {
	.fc-areas__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fc-area {
		gap: 18px;
		padding: 10px 14px;
	}

	.fc-area__icon {
		width: 60px;
		height: 60px;
		padding: 12px;
	}
}

/* =========================================================
   5. Cómo funciona (Figma 2005:3792 / 2005:3795)
   ========================================================= */

.fc-steps {
	padding-block: 45px 75px;
	background: var(--fc-offwhite);
	text-align: center;
}

.fc-steps .fc-pill {
	min-height: 44px;
}

.fc-steps__list {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: var(--fc-space-2xs);
	margin-top: 42px;
}

.fc-steps__arrow {
	display: flex;
	align-items: center;
	color: var(--fc-navy);
	font-size: 20px;
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-heading);
	user-select: none;
}

.fc-step {
	/* Los cuatro pasos deben caber en una sola fila dentro del contenedor, así
	   que se encogen desde el ancho de Figma (254px) en lugar de saltar de línea. */
	flex: 1 1 200px;
	min-width: 0;
	max-width: 254px;
	min-height: 300px;
	padding: 40px 16px 24px 22px;
	background: var(--fc-cyan);
	text-align: left;
}

.fc-step__inner {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-xs);
	width: 100%;
	max-width: 208px;
}

.fc-step__num {
	width: 42px;
	height: 42px;
	color: var(--fc-offwhite);
	font-size: var(--fc-fs-h3);
	font-weight: var(--fc-weight-bold);
	line-height: 1;
}

.fc-step__title {
	color: var(--fc-navy);
	font-size: var(--fc-fs-h5);
	font-weight: var(--fc-weight-bold);
	line-height: var(--fc-lh-card-title);
	/* Los títulos 3 y 4 traen un salto de línea a propósito (ver inc/content.php). */
	white-space: pre-line;
}

.fc-step__text {
	color: var(--fc-ink);
	font-size: var(--fc-fs-sm);
	line-height: var(--fc-lh-sm);
}

@media (max-width: 900px) {
	.fc-steps__list {
		flex-wrap: wrap;
	}

	.fc-steps__arrow {
		display: none;
	}

	.fc-step {
		flex: 1 1 240px;
		max-width: none;
		min-height: 0;
	}
}

/* =========================================================
   6. Formulario / CTA final (Figma 2005:3928)
   ========================================================= */

.fc-form-section {
	padding-block: 85px 93px;
}

.fc-form {
	position: relative;
	padding: 24px 32px 32px 73px;
	border-radius: var(--fc-radius-md);
	overflow: hidden;
	box-shadow: var(--fc-shadow-card);
	isolation: isolate;
}

.fc-form__bg,
.fc-form__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.fc-form__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fc-form__veil {
	background: var(--fc-form-overlay);
}

.fc-form__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 44px;
}

.fc-form__copy {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-md);
	flex: 1 1 420px;
	max-width: 531px;
	color: var(--fc-offwhite);
}

.fc-form__title {
	font-size: var(--fc-fs-h2);
	font-weight: var(--fc-weight-bold);
	line-height: 0.96;
}

.fc-form__text {
	max-width: 480px;
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

.fc-form__card {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-md);
	flex: 0 1 437px;
	width: 437px;
	max-width: 100%;
	padding: 24px 32px 32px;
	background: var(--fc-white);
	border-radius: var(--fc-radius-md);
	box-shadow: var(--fc-shadow-form);
}

.fc-form__fields {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-xs);
}

.fc-field {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-2xs);
}

.fc-field__label {
	color: var(--fc-ink);
	font-size: var(--fc-fs-body);
	line-height: var(--fc-lh-heading);
}

.fc-field__required {
	color: var(--fc-neutral-2);
}

.fc-field input {
	width: 100%;
	min-height: 38px;
	padding: 4px 12px;
	background: var(--fc-white);
	border: 1px solid var(--fc-neutral-4);
	border-radius: var(--fc-radius-sm);
	color: var(--fc-ink);
	font-size: 15px;
	line-height: 28px;
}

.fc-field input::placeholder {
	color: var(--fc-neutral-2);
	opacity: 1;
}

.fc-field input:focus {
	border-color: var(--fc-navy);
}

.fc-field input[aria-invalid="true"] {
	border-color: #c0392b;
}

.fc-field__error {
	color: #c0392b;
	font-size: var(--fc-fs-xs);
	line-height: var(--fc-lh-heading);
}

/* Consentimiento RGPD — añadido sobre el diseño, pendiente de validación. */
.fc-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--fc-space-2xs);
	color: var(--fc-neutral-2);
	font-size: var(--fc-fs-xs);
	line-height: var(--fc-lh-heading);
}

.fc-consent input {
	flex: 0 0 auto;
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--fc-navy);
}

.fc-consent a {
	color: var(--fc-navy);
}

/* Trampa antispam: oculta para personas, visible para bots. */
.fc-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fc-form__actions {
	display: flex;
	justify-content: center;
}

.fc-form__submit {
	width: 195px;
	min-height: 50px;
	/* El ancho del diseño (195px) sólo admite una línea: el padding se reduce
	   respecto a Figma para que el texto no rompa. */
	padding: 16px 12px;
	border-radius: var(--fc-radius-md);
	font-size: var(--fc-fs-sm);
	white-space: nowrap;
}

.fc-form__feedback {
	font-size: var(--fc-fs-xs);
	line-height: var(--fc-lh-heading);
	text-align: center;
}

.fc-form__feedback:empty {
	display: none;
}

.fc-form__feedback--error {
	color: #c0392b;
}

.fc-form__feedback--ok {
	color: #1e7a4d;
}

@media (max-width: 1100px) {
	.fc-form {
		padding: 32px;
	}
}

@media (max-width: 560px) {
	.fc-form {
		padding: 24px 16px;
	}

	.fc-form__card {
		padding: 20px 16px 24px;
	}
}
