/*
 * Base del plugin LEPAS | RAFAEL AFONSO: tokens, utilidades y animación de entrada.
 * Mismos valores que el tema (src/styles/tokens.css y globals.css del original), duplicados a propósito para que
 * los bloques se vean igual aunque se cambie de tema.
 */
:root {
	/* Color (paleta de theme.json con el valor medido como respaldo) */
	--c-black: var(--wp--preset--color--negro, #000);
	--c-white: var(--wp--preset--color--blanco, #fff);
	--c-ink: var(--wp--preset--color--tinta, #363435);
	--c-grey-500: var(--wp--preset--color--gris-500, #979493);
	--c-grey-200: var(--wp--preset--color--gris-200, #dedede);
	--c-grey-100: var(--wp--preset--color--gris-100, #efefef);
	--c-sand: var(--wp--preset--color--arena, #e5e1db);
	--c-accent: var(--wp--preset--color--acento, #eb9201);
	--c-header: rgb(0 0 0 / 0.8);
	--c-overlay-panel: rgb(0 0 0 / 0.35);
	--c-focus-dark: #fff;
	--c-focus-light: #363435;
	--c-error: #b3261e;

	/* Tipografía */
	--font-sans: "Source Sans 3", Arial, sans-serif;
	--fw-regular: 400;
	--fw-bold: 700;
	--fs-display: 35.248px;  --lh-display: 1.2;
	--fs-xxl: 29.376px;      --lh-xxl: 1.2;
	--fs-xl: 24.48px;        --lh-xl: 1.25;
	--fs-l: 20.4px;          --lh-l: 1.4;
	--fs-m: 19.008px;        --lh-m: 1.4;
	--fs-stat: 29.376px;     --lh-stat: 1.4;
	--fs-eyebrow: 19.008px;  --lh-eyebrow: 1.4;
	--fs-body: 17.008px;     --lh-body: 1.4;
	--fs-base: 16px;         --lh-base: 1.4;
	--fs-footnote: 14.208px;
	--fs-small: 14.208px;    --lh-small: 1.4;
	--fs-xs: 11.808px;       --lh-xs: 1.4;
	--ls-button: 0.5px;

	/* Espaciado y contenedores */
	--gutter: 20px;
	--container-max: 1920px;
	--content-narrow: 844px;
	--form-width: 748px;
	--header-h: 58px;
	--section-pad: 80px;
	--section-pad-lg: 128px;
	--hero-inner-h: 560px;

	/* Formas */
	--radius-pill: 80px;
	--radius-round: 50%;
	--border-hair: 1px;
	--underline-w: 72px;

	/* Movimiento */
	--dur-fast: 0.2s;
	--ease-std: ease-in-out;
	--dur-reveal: 0.8s;
	--ease-reveal: ease-out;
	--reveal-shift: 32px;
	--dur-counter: 1200ms;
	--counter-stagger: 600ms;

	/* Capas */
	--z-header: 30;
	--z-menu: 40;
	--z-consent: 60;
}

@media (min-width: 1024px) {
	:root {
		--fs-display: 50.768px;
		--fs-xxl: 42.304px;
		--fs-xl: 35.248px;
		--fs-l: 29.376px;
		--fs-m: 24.48px;
		--fs-stat: 35.248px;
		--fs-footnote: 15.056px;
	}
}

@media (min-width: 1280px) {
	:root {
		--gutter: 48px;
	}
}

@media (max-width: 767px) {
	:root {
		--header-h: 102px;
	}
}

/* ── Utilidades ───────────────────────────────────────── */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-bold); }
.t-xxl { font-size: var(--fs-xxl); line-height: var(--lh-xxl); font-weight: var(--fw-bold); }
.t-xl { font-size: var(--fs-xl); line-height: var(--lh-xl); font-weight: var(--fw-bold); }
.t-l { font-size: var(--fs-l); line-height: var(--lh-l); font-weight: var(--fw-bold); }
.t-m { font-size: var(--fs-m); line-height: var(--lh-m); font-weight: var(--fw-bold); }
.t-eyebrow { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: var(--fw-bold); }
.t-lead { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: 400; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-small); }
.t-xs { font-size: var(--fs-xs); line-height: var(--lh-xs); }
.t-footnote { font-size: var(--fs-footnote); line-height: 1.4; }

.rich p + p { margin-top: 1.4em; }
.rich sup { font-size: 0.6em; line-height: 0; }

.hero-full {
	margin-top: calc(-1 * var(--header-h));
}

/* Imagen que rellena su contenedor (equivale a next/image «fill») */
.lra-img-fill {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Imagen de móvil con su propio punto focal (dirección de arte por debajo de 1024 px) */
@media (max-width: 1023px) {
	.lra-art-img[style*="--lra-pos-movil"] {
		object-position: var(--lra-pos-movil) !important;
	}
}

/* Animación de entrada (medida: opacidad + 32 px, 0,8 s ease-out) */
.reveal {
	opacity: 0;
	transform: translateY(var(--reveal-shift));
	transition: opacity var(--dur-reveal) var(--ease-reveal), transform var(--dur-reveal) var(--ease-reveal);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

html:not(.js) .reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* Editor: estado final, sin animaciones */
.editor-styles-wrapper .reveal {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

.editor-styles-wrapper .hero-full {
	margin-top: 0;
}

.editor-styles-wrapper [data-parallax],
.editor-styles-wrapper [data-stagger] {
	transform: none !important;
}
