/* ==========================================================================
   FORLEX Foro – Coming Soon
   Figma: FORLEX---Foro · node 1:469 (1600 × 1024)
   ========================================================================== */

:root {
	--cs-gold: #d59a2a;
	--cs-blue: #0054bc;
	--cs-navy: #113c71;
	--cs-bg: #021e5c;
	--cs-white: #ffffff;

	--cs-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--cs-font-sans: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--cs-gutter: 100px;
	--cs-header-h: 86px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body.cs {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--cs-bg);
	color: var(--cs-white);
	font-family: var(--cs-font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg {
	display: block;
	max-width: 100%;
}

/* ── Accesibilidad ─────────────────────────────────────────────────────── */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	top: 10px;
	left: 10px;
	z-index: 1000;
	background: var(--cs-white);
	color: var(--cs-navy);
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
}

a:focus-visible {
	outline: 2px solid var(--cs-gold);
	outline-offset: 4px;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.cs-header {
	position: relative;
	z-index: 2;
	background: var(--cs-white);
	padding: 18px var(--cs-gutter);
}

.cs-header__brands {
	display: flex;
	align-items: center;
	gap: 36px;
}

.cs-header__logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.cs-header__logo--forlex {
	width: 186px;
}

.cs-header__logo--forlex svg {
	width: 100%;
	height: auto;
}

.cs-header__logo--clea {
	width: 217px;
}

.cs-header__logo--clea img {
	width: 100%;
	height: auto;
}

.cs-header__divider {
	flex-shrink: 0;
	width: 1px;
	height: 50px;
	background: var(--cs-navy);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.cs-hero {
	position: relative;
	flex: 1 0 auto;
	display: flex;
	min-height: calc(100vh - var(--cs-header-h));
	min-height: calc(100svh - var(--cs-header-h));
	overflow: hidden;
	isolation: isolate;
	background: var(--cs-bg);
}

.cs-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	/* En 1600 × 899 reproduce exactamente el recorte de Figma (left -45 %, w 168 %) */
	object-position: 66% center;
}

.cs-hero__inner {
	width: 100%;
	padding: 72px var(--cs-gutter) 64px;
}

.cs-hero__content {
	max-width: 870px;
}

.cs-hero__badge {
	display: inline-block;
	margin: 0 0 32px;
	padding: 7px 20px 6px;
	border: 1px solid var(--cs-white);
	border-radius: 20px;
	color: var(--cs-white);
	font-family: var(--cs-font-sans);
	font-size: 20px;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.cs-hero__title {
	margin: 0 0 4px;
	font-family: var(--cs-font-serif);
	font-weight: 400;
	font-size: 80px;
	line-height: 1.2;
	color: var(--cs-white);
}

.cs-hero__subtitle {
	margin: 0 0 16px;
	font-family: var(--cs-font-serif);
	font-size: 30px;
	line-height: 1.25;
}

.cs-hero__description {
	margin: 0 0 22px;
	font-size: 20px;
	line-height: 1.3;
}

.cs-hero__rule {
	display: block;
	width: 80px;
	height: 2px;
	background: var(--cs-gold);
}

/* ── Countdown ─────────────────────────────────────────────────────────── */
.cs-countdown {
	margin-top: 44px;
	text-align: center;
}

.cs-countdown__label {
	margin: 0 0 24px;
	color: var(--cs-gold);
	font-family: var(--cs-font-sans);
	font-weight: 400;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.cs-countdown__grid {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-countdown__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 82px;
	padding: 12px 30px 11px;
	border: 1px solid var(--cs-blue);
	border-radius: 6px;
	box-shadow: 0 0 3px 0 var(--cs-blue);
	text-transform: uppercase;
}

.cs-countdown__value {
	font-size: 40px;
	line-height: 0.78;
	color: var(--cs-white);
	font-variant-numeric: tabular-nums;
}

.cs-countdown__unit {
	font-size: 14px;
	line-height: 0.8;
	color: var(--cs-gold);
}

.cs-countdown.is-finished .cs-countdown__grid {
	opacity: 0.6;
}

/* ── Info (fecha · lugar · horario) ────────────────────────────────────── */
.cs-info {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 20px 44px;
	margin: 57px 0 0;
	padding: 0;
	list-style: none;
}

.cs-info__item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
}

/* Los íconos se centran con la primera línea (texto en negrita, 18px × 1.25 = 22.5px) */
.cs-info__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: -1px;
}

.cs-info__icon--sm {
	width: 20px;
	height: 20px;
	margin: 1px 2px 0;
}

.cs-info__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cs-info__main {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
}

.cs-info__sub {
	font-size: 14px;
	line-height: 1.25;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Pantallas grandes: el contenido no se separa demasiado del borde */
@media (min-width: 1800px) {
	:root {
		--cs-gutter: max(100px, calc((100vw - 1600px) / 2 + 100px));
	}
}

@media (max-width: 1280px) {
	:root {
		--cs-gutter: 64px;
	}

	.cs-hero__content {
		max-width: 770px;
	}

	.cs-info {
		gap: 20px 30px;
	}

	.cs-hero__title {
		font-size: 64px;
	}
}

/* Laptops con poca altura: que todo quepa en pantalla */
@media (min-width: 993px) and (max-height: 860px) {
	.cs-hero__inner {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.cs-hero__badge {
		margin-bottom: 22px;
	}

	.cs-hero__title {
		font-size: 60px;
	}

	.cs-countdown {
		margin-top: 32px;
	}

	.cs-info {
		margin-top: 36px;
	}
}

/* Laptops muy bajos (p. ej. 1366 × 650) */
@media (min-width: 993px) and (max-height: 720px) {
	.cs-hero__inner {
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.cs-hero__badge {
		margin-bottom: 16px;
		font-size: 17px;
	}

	.cs-hero__title {
		font-size: 50px;
	}

	.cs-hero__subtitle {
		font-size: 26px;
		margin-bottom: 10px;
	}

	.cs-hero__description {
		font-size: 18px;
		margin-bottom: 18px;
	}

	.cs-countdown {
		margin-top: 24px;
	}

	.cs-countdown__label {
		margin-bottom: 16px;
	}

	.cs-countdown__box {
		padding: 10px 26px 9px;
	}

	.cs-countdown__value {
		font-size: 34px;
	}

	.cs-info {
		margin-top: 28px;
	}
}

@media (max-width: 1100px) {
	.cs-hero__bg {
		object-position: 72% center;
	}

	/* Velo para que el texto no se lea encima del edificio */
	.cs-hero::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(90deg, rgba(2, 30, 92, 0.94) 0%, rgba(2, 30, 92, 0.86) 65%, rgba(2, 30, 92, 0.4) 100%);
	}
}

@media (max-width: 992px) {
	:root {
		--cs-gutter: 40px;
	}

	.cs-hero__inner {
		padding-top: 64px;
	}

	.cs-hero__title {
		font-size: 56px;
	}

	.cs-hero__subtitle {
		font-size: 26px;
	}

	.cs-hero__description {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	:root {
		--cs-gutter: 24px;
		--cs-header-h: 82px;
	}

	.cs-header {
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.cs-header__brands {
		justify-content: center;
		gap: 18px;
	}

	.cs-header__logo--forlex {
		width: 160px;
	}

	.cs-header__logo--clea {
		width: 186px;
	}

	.cs-header__divider {
		height: 44px;
	}

	.cs-hero__bg {
		object-position: 82% center;
	}

	.cs-hero::before {
		background: linear-gradient(180deg, rgba(2, 30, 92, 0.94) 0%, rgba(2, 30, 92, 0.88) 70%, rgba(2, 30, 92, 0.6) 100%);
	}

	.cs-hero__inner {
		padding-top: 44px;
		padding-bottom: 56px;
	}

	.cs-hero__content {
		margin: 0 auto;
		text-align: center;
	}

	.cs-hero__badge {
		margin-bottom: 24px;
		font-size: 15px;
		padding: 7px 16px 6px;
	}

	.cs-hero__title {
		font-size: 40px;
		margin-bottom: 16px;
	}

	.cs-hero__subtitle {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.cs-hero__description {
		font-size: 16px;
		line-height: 1.45;
	}

	.cs-hero__rule {
		margin: 0 auto;
	}

	.cs-countdown {
		margin-top: 36px;
	}

	.cs-countdown__label {
		font-size: 14px;
		letter-spacing: 1.5px;
		line-height: 1.3;
		margin-bottom: 16px;
	}

	.cs-countdown__grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
		max-width: 420px;
		margin: 0 auto;
	}

	.cs-countdown__box {
		min-width: 0;
		padding: 12px 4px 10px;
		gap: 8px;
		background: rgba(2, 30, 92, 0.35);
	}

	.cs-countdown__value {
		font-size: 30px;
	}

	.cs-countdown__unit {
		font-size: 11px;
		letter-spacing: 0.5px;
	}

	.cs-info {
		flex-direction: column;
		align-items: center;
		gap: 18px;
		margin-top: 40px;
	}

	.cs-info__item {
		min-width: 240px;
		text-align: left;
	}
}

@media (max-width: 420px) {
	.cs-header__brands {
		gap: 12px;
	}

	.cs-header__logo--forlex {
		width: 128px;
	}

	.cs-header__logo--clea {
		width: 150px;
	}

	.cs-header__divider {
		height: 36px;
	}

	.cs-hero__title {
		font-size: 34px;
	}

	.cs-hero__subtitle {
		font-size: 20px;
	}

	.cs-countdown__value {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
	}
}
