/* Portada de CapFat — estilos específicos de front-page.php */

.heading-xl {
	font-size: var(--text-3xl);
}

.heading-lg {
	font-size: var(--text-2xl);
}

.heading-md {
	font-size: var(--text-xl);
}

.section-header {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
	padding-bottom: var(--space-2);
	border-bottom: 1px solid var(--capfat-line);
}

@media (min-width: 768px) {
	.section-header--with-link {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

/* Hero */

.hero {
	position: relative;
	padding-block: var(--space-6) var(--space-5);
}

.hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.hero__eyebrow {
	display: inline-block;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--capfat-line);
}

.hero__title {
	margin-top: var(--space-3);
	font-size: clamp(2.75rem, calc(11 * var(--capfat-vw)), var(--text-hero));
	color: var(--capfat-dark);
}

.hero__body {
	max-width: 34em;
	margin-top: var(--space-3);
	color: var(--capfat-muted);
	font-size: var(--text-md);
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.hero__media {
	overflow: hidden;
	border-radius: var(--radius-md);
	border: 1px solid var(--capfat-line);
	box-shadow: var(--shadow-soft);
}

.hero__image {
	width: 100%;
	height: auto;
	object-fit: cover;
}

@media (min-width: 480px) {
	.hero__actions {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	.hero {
		padding-block: var(--space-7) var(--space-6);
	}

	.hero__inner {
		flex-direction: row;
		align-items: center;
		gap: var(--space-4);
	}

	.hero__content {
		flex: 0 0 52%;
		max-width: 52%;
	}

	.hero__media {
		flex: 0 0 44%;
		max-width: 44%;
	}
}

/* Services */

.services {
	padding-block: var(--space-6);
	background: var(--capfat-surface);
}

.services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
}

.service-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--capfat-surface);
	border: 1px solid var(--capfat-line);
	border-radius: var(--radius-md);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 250ms ease, transform 250ms ease;
}

.service-card:hover,
.service-card:focus-visible {
	box-shadow: var(--shadow-soft);
	transform: translateY(-2px);
}

.service-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--capfat-bg);
}

.service-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.service-card:hover .service-card__image {
	transform: scale(1.04);
}

.service-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: var(--space-3);
}

.service-card__title {
	color: var(--capfat-dark);
}

.service-card__text {
	color: var(--capfat-muted);
	font-size: var(--text-sm);
}

@media (min-width: 768px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-4);
	}

	.service-card--down {
		margin-top: var(--space-4);
	}

	.service-card--up {
		margin-top: calc(var(--space-3) * -1);
	}
}

/* Portfolio */

.portfolio {
	padding-block: var(--space-6);
}

.portfolio__grid {
	columns: 1;
	column-gap: var(--space-3);
}

.portfolio__item {
	display: block;
	position: relative;
	margin-bottom: var(--space-3);
	break-inside: avoid;
	overflow: hidden;
	border-radius: var(--radius-md);
	border: 1px solid var(--capfat-line);
	text-decoration: none;
}

.portfolio__image {
	width: 100%;
	height: auto;
}

.portfolio__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.25rem;
	padding: var(--space-3);
	background: linear-gradient(180deg, transparent 55%, rgba(30, 29, 27, 0.82) 100%);
	color: var(--capfat-light);
	opacity: 0;
	transition: opacity 250ms ease;
}

.portfolio__item:hover .portfolio__overlay,
.portfolio__item:focus-visible .portfolio__overlay {
	opacity: 1;
}

.portfolio__category {
	color: rgba(255, 255, 255, 0.8);
}

.portfolio__empty {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	align-items: flex-start;
	padding: var(--space-5);
	background: var(--capfat-surface);
	border: 1px dashed var(--capfat-line);
	border-radius: var(--radius-md);
	color: var(--capfat-muted);
}

@media (min-width: 768px) {
	.portfolio__grid {
		columns: 2;
	}
}

@media (min-width: 1024px) {
	.portfolio__grid {
		columns: 3;
	}
}

/* ======================================================================
   CapFat 2 — portada basada en capfat_background.jpg
   ====================================================================== */

:root {
	--capfat-orange: #e84b00;
	--capfat-paper: #f4f0e8;
	--capfat-black: #111111;
}

body.capfat-front-page {
	background: var(--capfat-paper);
}

body.capfat-front-page .site-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 20;
	background: transparent;
	border-bottom: 0;
	box-shadow: none;
	backdrop-filter: none;
}

body.capfat-front-page .site-main {
	padding-top: 0;
}

body.capfat-front-page .site-header__inner {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) auto minmax(48px, 1fr);
	align-items: center;
	max-width: 1840px;
	min-height: 96px;
	padding: 18px 42px;
	gap: 24px;
}

body.capfat-front-page .site-branding {
	justify-self: start;
}

body.capfat-front-page .site-branding__logo {
	display: block;
	width: clamp(150px, calc(11 * var(--capfat-vw)), 220px);
	height: auto;
	max-width: none;
	max-height: none;
	object-fit: contain;
	mix-blend-mode: normal;
}

body.capfat-front-page .site-nav {
	display: block;
	justify-self: auto;
}

body.capfat-front-page .site-header__navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, calc(2 * var(--capfat-vw)), 38px);
}

body.capfat-front-page .site-nav__list {
	gap: clamp(22px, calc(2.3 * var(--capfat-vw)), 48px);
}

body.capfat-front-page .site-nav__link {
	padding: 5px 0 8px;
	font-size: clamp(10px, calc(0.75 * var(--capfat-vw)), 14px);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--capfat-black);
	border-bottom: 2px solid transparent;
}

body.capfat-front-page .site-nav__link:hover,
body.capfat-front-page .site-nav__link:focus-visible,
body.capfat-front-page .site-nav__link.is-current {
	color: var(--capfat-orange);
	border-bottom-color: var(--capfat-orange);
}

body.capfat-front-page .site-header__actions {
	justify-self: end;
}

body.capfat-front-page .site-header__cta {
	display: inline-flex;
	padding: 15px 22px;
	background: var(--capfat-orange);
	border: 1px solid var(--capfat-orange);
	border-radius: 3px;
	color: #ffffff;
	font-size: 11px;
	letter-spacing: 0.1em;
}

body.capfat-front-page .site-header__cta:hover,
body.capfat-front-page .site-header__cta:focus-visible {
	background: var(--capfat-black);
	border-color: var(--capfat-black);
	color: #ffffff;
	transform: translateY(-2px);
}

body.capfat-front-page .sound-toggle {
	position: fixed;
	top: calc(var(--capfat-header-height) + 12px);
	right: clamp(24px, calc(10 * var(--capfat-vw)), 180px);
	width: 56px;
	height: 56px;
	background: transparent;
	border: 2px solid var(--capfat-orange);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(232, 75, 0, 0.2), 0 0 20px rgba(232, 75, 0, 0.28);
	color: var(--capfat-orange);
	animation: capfat-sound-pulse 2.6s ease-in-out infinite;
}

body.capfat-front-page .sound-toggle:hover,
body.capfat-front-page .sound-toggle:focus-visible,
body.capfat-front-page .sound-toggle.is-playing {
	background: var(--capfat-orange);
	border-color: var(--capfat-orange);
	color: #ffffff;
	box-shadow: 0 0 0 5px rgba(232, 75, 0, 0.12), 0 0 24px rgba(232, 75, 0, 0.38);
}

.capfat-home-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	width: 100%;
	height: calc(100 * var(--capfat-svh));
	min-height: calc(100 * var(--capfat-svh));
	overflow: visible;
	background-color: var(--capfat-paper);
	background: none;
	color: var(--capfat-black);
}

.capfat-home-hero::before {
	content: none;
}

.capfat-home-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: calc(100 * var(--capfat-svh));
	padding-top: 110px;
	padding-bottom: 100px;
}

.capfat-home-hero__content {
	width: min(42%, 640px);
}

.capfat-home-hero__eyebrow {
	display: inline-block;
	margin: 0 0 22px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(17, 17, 17, 0.25);
	font-size: clamp(10px, calc(0.8 * var(--capfat-vw)), 15px);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.capfat-home-hero__title {
	max-width: 680px;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(4.2rem, calc(6.1 * var(--capfat-vw)), 7.7rem);
	font-weight: 400;
	line-height: 0.86;
	letter-spacing: 0;
	text-transform: uppercase;
}

.capfat-home-hero__title span {
	display: block;
}

.capfat-home-hero__title em {
	color: var(--capfat-orange);
	font-style: normal;
}

.capfat-home-hero__description,
.capfat-home-hero__tagline {
	max-width: 570px;
	font-size: clamp(14px, calc(1 * var(--capfat-vw)), 19px);
	line-height: 1.45;
}

.capfat-home-hero__description {
	margin: 30px 0 0;
}

.capfat-home-hero__tagline {
	margin: 4px 0 0;
	font-weight: 600;
}

.capfat-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-top: 34px;
}

.capfat-home-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-width: 250px;
	padding: 16px 22px;
	border: 1px solid var(--capfat-black);
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.capfat-home-hero__button:hover,
.capfat-home-hero__button:focus-visible {
	transform: translateY(-2px);
}

.capfat-home-hero__button--dark {
	background: var(--capfat-black);
	color: #ffffff;
}

.capfat-home-hero__button--dark:hover,
.capfat-home-hero__button--dark:focus-visible {
	background: var(--capfat-orange);
	border-color: var(--capfat-orange);
}

.capfat-home-hero__button--light {
	background: rgba(255, 255, 255, 0.1);
	color: var(--capfat-black);
}

.capfat-home-hero__button--light:hover,
.capfat-home-hero__button--light:focus-visible {
	background: #ffffff;
}

.capfat-home-hero__vertical-label {
	position: absolute;
	bottom: 13%;
	left: clamp(12px, calc(1.9 * var(--capfat-vw)), 36px);
	z-index: 3;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.capfat-home-hero__signature {
	position: absolute;
	bottom: 11%;
	left: clamp(110px, calc(9 * var(--capfat-vw)), 175px);
	z-index: 3;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(16px, calc(1.2 * var(--capfat-vw)), 24px);
	line-height: 1.1;
}

.capfat-home-hero__signature-mark {
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-display);
	font-size: 38px;
}

.capfat-home-hero__signature u {
	text-decoration-color: var(--capfat-orange);
	text-decoration-thickness: 2px;
}

.capfat-web-credit {
	display: inline-flex;
	font-size: clamp(12px, calc(0.78 * var(--capfat-vw)), 15px);
	line-height: 1;
	white-space: nowrap;
}

.capfat-web-credit a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	color: #000000;
	text-decoration: none;
	cursor: pointer;
	transition: transform 180ms ease;
}

.capfat-web-credit img {
	display: block;
	width: clamp(112px, calc(8 * var(--capfat-vw)), 152px);
	height: auto;
	filter: brightness(0);
	opacity: 1;
}

.capfat-web-credit a:hover,
.capfat-web-credit a:focus-visible {
	transform: scale(1.045);
}

.capfat-web-credit--hero {
	position: absolute;
	left: 10px;
	bottom: 8px;
	z-index: 4;
	color: #000000;
	text-shadow: none;
}

.capfat-web-credit--hero a {
	transform-origin: left center;
}

.capfat-home-hero__pager {
	position: absolute;
	right: clamp(36px, calc(4 * var(--capfat-vw)), 80px);
	bottom: 32px;
	z-index: 4;
	display: grid;
	grid-template-columns: auto auto auto;
	align-items: center;
	gap: 20px;
	min-width: 250px;
	font-size: 18px;
	color: #ffffff;
}

.capfat-home-hero__pager button {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 26px;
	cursor: pointer;
}

.capfat-home-hero__pager button:hover,
.capfat-home-hero__pager button:focus-visible {
	color: var(--capfat-orange);
}

.capfat-home-hero__pager span {
	white-space: nowrap;
}

.capfat-home-hero__pager strong {
	color: var(--capfat-orange);
	font-weight: 600;
}

.capfat-home-hero__pager i {
	margin: 0 7px;
	font-style: normal;
}

.capfat-home-hero__pager div {
	grid-column: 1 / -1;
	width: 100%;
	height: 2px;
	background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1439px) and (min-width: 1024px) {
	html:not(.capfat-framed) body.capfat-front-page .site-header__inner {
	min-height: 82px;
	padding-inline: 28px;
	}

	html:not(.capfat-framed) .capfat-home-hero__inner {
		padding-inline: 72px;
	}

	html:not(.capfat-framed) .capfat-home-hero__content {
		width: min(46%, 560px);
	}
}

@media (max-width: 1023px) {
	body.capfat-front-page .site-header {
	background: rgba(244, 240, 232, 0.9);
	}

	body.capfat-front-page .site-header__inner {
	grid-template-columns: 1fr auto;
	min-height: 74px;
	padding: 12px 20px;
	}

	body.capfat-front-page .site-branding__logo {
	width: 145px;
	}

	body.capfat-front-page .site-nav,
	body.capfat-front-page .site-header__cta {
		display: none;
	}

	body.capfat-front-page .site-header__actions {
		grid-column: 2;
	}

	body.capfat-front-page .sound-toggle {
		position: fixed;
		top: 82px;
		right: 20px;
		width: 46px;
		height: 46px;
	}

	.capfat-home-hero__inner {
		align-items: flex-start;
		padding: 150px 24px 230px 54px;
	}

	.capfat-home-hero__content {
		width: min(80%, 600px);
	}

	.capfat-home-hero__title {
		font-size: clamp(4rem, calc(9 * var(--capfat-vw)), 6.2rem);
	}

	.capfat-home-hero__signature,
	.capfat-home-hero__vertical-label {
		display: none;
	}
}

@media (max-width: 767px) {
	body.capfat-front-page .site-header__inner {
		min-height: 66px;
		padding-inline: 16px;
	}

	body.capfat-front-page .site-branding__logo {
		width: 132px;
	}

	.capfat-home-hero {
		min-height: calc(100 * var(--capfat-svh));
	}

	.capfat-home-hero__inner {
		min-height: calc(100 * var(--capfat-svh));
		padding: 130px 22px 190px 30px;
	}

	.capfat-home-hero__content {
		width: 100%;
	}

	.capfat-home-hero__eyebrow {
		max-width: 270px;
		margin-bottom: 18px;
		font-size: 9px;
	}

	.capfat-home-hero__title {
		font-size: clamp(3.4rem, calc(16 * var(--capfat-vw)), 5rem);
	}

	.capfat-home-hero__description,
	.capfat-home-hero__tagline {
		max-width: 330px;
		font-size: 14px;
	}

	.capfat-home-hero__description {
		margin-top: 24px;
	}

	.capfat-home-hero__actions {
		gap: 12px;
		margin-top: 24px;
	}

	.capfat-home-hero__button {
		width: 100%;
		min-width: 0;
		padding: 14px 16px;
	}

	.capfat-home-hero__pager {
		right: 22px;
		bottom: 22px;
		min-width: 185px;
		gap: 14px;
		font-size: 15px;
	}

	.capfat-home-hero__pager button {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.capfat-home-hero__button,
	body.capfat-front-page .site-header__cta {
		transition-duration: 1ms;
	}
}

/* Quote */

.quote-block {
	padding-block: var(--space-6);
	background: var(--capfat-surface);
	border-top: 1px solid var(--capfat-line);
	border-bottom: 1px solid var(--capfat-line);
}

.quote-block__inner {
	max-width: 44em;
	text-align: center;
}

.quote-block__text {
	margin: 0;
	font-family: var(--font-editorial);
	font-size: var(--text-lg);
	line-height: 1.4;
	color: var(--capfat-dark);
}

.quote-block__cite {
	display: block;
	margin-top: var(--space-3);
	font-style: normal;
}

@media (min-width: 768px) {
	.quote-block__text {
		font-size: 2.25rem;
	}
}

/* Process */

.process {
	padding-block: var(--space-6);
}

.process__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.process__step {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.process__number {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	color: var(--capfat-accent);
}

.process__title {
	color: var(--capfat-dark);
}

.process__text {
	color: var(--capfat-muted);
	font-size: var(--text-sm);
}

.process__note {
	margin-top: var(--space-4);
	color: var(--capfat-muted);
	font-size: var(--text-sm);
	max-width: 40em;
}

@media (min-width: 768px) {
	.process__list {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Sobre DIME */

.about-hero {
	padding-block: var(--space-5);
	border-top: 1px solid var(--capfat-line);
	border-bottom: 1px solid var(--capfat-line);
}

/* Cada subpantalla lleva su propia copia del fondo, independiente de
   la otra, para que cubra bien su propio alto (a pantalla completa en
   el carrusel de escritorio, o su alto natural apilada en móvil). */
.about-hero .vertical-panel {
	background-color: var(--capfat-surface);
	background-image: url('../img/capfat_background_4.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.about-hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.about-hero__grid {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.about-hero__eyebrow {
	color: var(--capfat-orange);
	font-weight: 800;
}

.about-hero__title {
	margin-top: 0.35rem;
	font-size: clamp(2.75rem, calc(6.2 * var(--capfat-vw)), 4.5rem);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: -0.01em;
	color: var(--capfat-black);
	white-space: nowrap;
}

.about-hero__stroke {
	display: block;
	width: clamp(70px, calc(10 * var(--capfat-vw)), 116px);
	height: 8px;
	margin-top: 6px;
	background: var(--capfat-orange);
	clip-path: polygon(0 32%, 94% 0, 100% 50%, 91% 74%, 0 100%);
}

.about-hero__subhead {
	margin-top: var(--space-2);
	font-size: clamp(1.05rem, calc(1.8 * var(--capfat-vw)), 1.25rem);
	font-weight: 700;
	color: var(--capfat-black);
}

.about-hero__text {
	margin-top: 0.6rem;
	max-width: 38em;
	color: var(--capfat-muted);
	font-size: var(--text-sm);
	line-height: 1.5;
}

.about-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: var(--space-3) 0 0;
	padding: 0;
	list-style: none;
}

.about-hero__feature {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.about-hero__feature-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	color: var(--capfat-orange);
}

.about-hero__feature-icon svg {
	width: 100%;
	height: 100%;
}

.about-hero__feature-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.about-hero__feature-text strong {
	font-size: var(--text-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--capfat-black);
}

.about-hero__feature-text small {
	font-size: var(--text-xs);
	color: var(--capfat-muted);
}

.about-hero__cta {
	margin-top: var(--space-3);
	background: var(--capfat-orange);
	border-color: var(--capfat-orange);
}

.about-hero__cta:hover,
.about-hero__cta:focus-visible {
	background: var(--capfat-accent-dark);
	border-color: var(--capfat-accent-dark);
}

.about-hero__cta-arrow {
	display: inline-block;
	transition: transform 200ms ease;
}

.about-hero__cta:hover .about-hero__cta-arrow {
	transform: translateY(3px);
}

.about-hero__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}

.about-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 72% 35%;
}

.about-hero__doodle-crown {
	position: absolute;
	top: clamp(14px, calc(2.4 * var(--capfat-vw)), 22px);
	right: clamp(70px, calc(13 * var(--capfat-vw)), 108px);
	width: clamp(22px, calc(2.6 * var(--capfat-vw)), 30px);
	color: var(--capfat-light);
	transform: rotate(-8deg);
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.about-hero__doodle-text {
	position: absolute;
	top: clamp(16px, calc(3 * var(--capfat-vw)), 28px);
	right: clamp(14px, calc(3 * var(--capfat-vw)), 24px);
	margin: 0;
	max-width: 8em;
	font-family: var(--font-display);
	font-size: clamp(0.85rem, calc(1.5 * var(--capfat-vw)), 1.05rem);
	line-height: 1.08;
	letter-spacing: 0.02em;
	color: var(--capfat-light);
	text-align: right;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	transform: rotate(2deg);
}

.about-hero__signature {
	position: absolute;
	right: clamp(14px, calc(3 * var(--capfat-vw)), 24px);
	bottom: clamp(14px, calc(3 * var(--capfat-vw)), 22px);
	margin: 0;
	padding-bottom: 4px;
	font-family: var(--font-display);
	font-size: clamp(1.4rem, calc(3 * var(--capfat-vw)), 1.9rem);
	color: var(--capfat-light);
	border-bottom: 2px solid var(--capfat-light);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	transform: rotate(-3deg);
}

.about-hero__quote-bar {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-top: var(--space-2);
	margin-bottom: var(--space-4);
	padding: var(--space-3);
	background: rgba(244, 240, 232, 0.82);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}

.about-hero__quote {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
}

.about-hero__quote-mark {
	flex-shrink: 0;
	font-family: var(--font-editorial);
	font-size: clamp(2.25rem, calc(5 * var(--capfat-vw)), 3rem);
	line-height: 0.7;
	color: var(--capfat-orange);
}

.about-hero__quote-body {
	min-width: 0;
}

.about-hero__quote p {
	margin: 0;
	max-width: 34em;
	font-family: var(--font-body);
	font-size: clamp(1rem, calc(1.7 * var(--capfat-vw)), 1.2rem);
	font-weight: 700;
	font-style: normal;
	line-height: 1.4;
	color: var(--capfat-black);
}

.about-hero__quote cite {
	display: block;
	margin-top: 0.6rem;
	font-style: normal;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--capfat-muted);
}

.about-hero__stats {
	display: flex;
	gap: var(--space-3);
	margin: 0;
	padding: var(--space-2) 0 0;
	list-style: none;
	border-top: 1px solid var(--capfat-line);
}

.about-hero__stat {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding-inline: var(--space-1);
	text-align: center;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.25;
	color: var(--capfat-black);
}

.about-hero__stat + .about-hero__stat {
	border-left: 1px solid var(--capfat-line);
}

.about-hero__stat-icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
	color: var(--capfat-orange);
}

.about-hero__stat-icon svg {
	width: 100%;
	height: 100%;
}

@media (min-width: 768px) {
	.about-hero__grid {
		flex-direction: row;
		align-items: center;
		gap: var(--space-5);
	}

	.about-hero__content,
	.about-hero__media {
		flex: 1 1 50%;
	}

	.about-hero__media {
		align-self: stretch;
	}

	.about-hero__quote-bar {
		flex-direction: row;
		align-items: center;
	}

	.about-hero__quote {
		flex: 1 1 58%;
	}

	.about-hero__stats {
		flex: 1 1 38%;
		padding: 0 0 0 var(--space-4);
		border-top: none;
		border-left: 1px solid var(--capfat-line);
	}
}

/* Sobre DIME — subpantalla 2: mi historia */

.about-history__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.about-history__grid {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.about-history__intro {
	display: flex;
	flex-direction: column;
}

.about-history__tagline-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

.about-history__tagline {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.1rem, calc(1.8 * var(--capfat-vw)), 1.35rem);
	line-height: 1.05;
	color: var(--capfat-orange);
	transform: rotate(-2deg);
}

.about-history__timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-history__timeline-item {
	position: relative;
	padding: 0 0 var(--space-3) 26px;
}

.about-history__timeline-item:last-child {
	padding-bottom: 0;
}

.about-history__timeline-item::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 4px;
	width: 10px;
	height: 10px;
	background: var(--capfat-surface);
	border: 2px solid var(--capfat-orange);
	border-radius: 50%;
	z-index: 1;
}

.about-history__timeline-item::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 8px;
	bottom: -0.2rem;
	width: 2px;
	background: var(--capfat-line);
}

.about-history__timeline-item:last-child::after {
	display: none;
}

.about-history__year {
	display: block;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--capfat-orange);
}

.about-history__timeline-item strong {
	display: block;
	margin-top: 2px;
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--capfat-black);
}

.about-history__timeline-item p {
	margin: 2px 0 0;
	font-size: var(--text-xs);
	line-height: 1.4;
	color: var(--capfat-muted);
}

.about-history__media {
	position: relative;
	overflow: hidden;
	height: clamp(220px, calc(34 * var(--capfat-vh)), 320px);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}

.about-history__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-history__media-caption {
	position: absolute;
	left: var(--space-2);
	right: var(--space-2);
	bottom: var(--space-2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding: 0.7rem 0.9rem;
	background: rgba(17, 17, 17, 0.78);
	border-radius: var(--radius-md);
	color: var(--capfat-light);
	text-decoration: none;
	transition: background-color 200ms ease;
}

.about-history__media-caption:hover,
.about-history__media-caption:focus-visible {
	background: rgba(17, 17, 17, 0.92);
}

.about-history__media-caption-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.25;
}

.about-history__media-caption-text strong {
	font-size: var(--text-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.about-history__media-caption-text small {
	font-size: var(--text-xs);
	color: rgba(255, 255, 255, 0.75);
}

.about-history__media-caption-arrow {
	flex-shrink: 0;
	font-size: 1.1rem;
	transition: transform 200ms ease;
}

.about-history__media-caption:hover .about-history__media-caption-arrow {
	transform: translateX(3px);
}

.about-history__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
	padding: var(--space-2) var(--space-3);
	list-style: none;
	background: rgba(244, 240, 232, 0.82);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}

.about-history__stats li {
	flex: 1 1 140px;
	padding-inline: var(--space-2);
	text-align: center;
}

.about-history__stats li + li {
	border-left: 1px solid var(--capfat-line);
}

.about-history__stats strong {
	display: block;
	font-size: var(--text-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--capfat-black);
}

.about-history__stats span {
	display: block;
	margin-top: 2px;
	font-size: var(--text-xs);
	color: var(--capfat-muted);
}

.about-history__back {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	background: var(--capfat-orange);
	border-color: var(--capfat-orange);
	border-radius: var(--radius-pill);
	font-size: 1.1rem;
}

.about-history__back:hover,
.about-history__back:focus-visible {
	background: var(--capfat-accent-dark);
	border-color: var(--capfat-accent-dark);
}

.about-history__back-arrow {
	display: inline-block;
	transition: transform 200ms ease;
}

.about-history__back:hover .about-history__back-arrow {
	transform: translateY(-3px);
}

@media (min-width: 1024px) {
	.about-hero .vertical-panel {
		display: flex;
		align-items: center;
		min-height: calc(calc(100 * var(--capfat-vh)) - var(--capfat-header-height));
		min-height: calc(calc(100 * var(--capfat-svh)) - var(--capfat-header-height));
	}

	.about-history__grid {
		display: grid;
		grid-template-columns: 1.05fr 0.85fr 1fr;
		gap: var(--space-4);
		align-items: start;
	}

	.about-history__media {
		height: 100%;
		align-self: stretch;
	}
}

/* Secondary services */

.secondary-services {
	padding-block: var(--space-6);
}

.secondary-services__intro {
	max-width: 40em;
	color: var(--capfat-muted);
}

.secondary-services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
}

.secondary-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	aspect-ratio: 4 / 3;
}

.secondary-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.secondary-card:hover .secondary-card__image {
	transform: scale(1.04);
}

.secondary-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
	padding: var(--space-3);
	background: linear-gradient(180deg, transparent 40%, rgba(30, 29, 27, 0.85) 100%);
	color: var(--capfat-light);
}

.secondary-card__text {
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--text-sm);
}

.secondary-card__link {
	color: var(--capfat-light);
	text-decoration-color: rgba(255, 255, 255, 0.5);
	margin-top: 0.25rem;
}

@media (min-width: 768px) {
	.secondary-services__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-4);
	}
}

/* FAQ preview */

.faq-preview {
	position: relative;
	padding-block: var(--space-6);
	background-color: var(--capfat-surface);
	background-image: url('../img/capfat_background_faq.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border-top: 1px solid var(--capfat-line);
}

.faq-preview__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
	.faq-preview__list--grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: var(--space-5);
		row-gap: 0;
	}
}

.faq-item {
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--capfat-line);
}

.faq-item__question {
	cursor: pointer;
	font-family: var(--font-display);
	font-size: var(--text-lg);
	color: var(--capfat-dark);
}

.faq-item__answer {
	margin-top: var(--space-1);
	color: var(--capfat-muted);
	max-width: 60em;
}

/*
 * El cuerpo de la respuesta puede desplazarse por sí mismo si el
 * contenido no cabe, sin mover nunca la pantalla principal.
 * overscroll-behavior: contain evita que ese scroll interno "arrastre"
 * al contenedor padre una vez llega a su límite.
 */
.faq-item__answer[data-own-scroll] {
	max-height: min(calc(28 * var(--capfat-vh)), 220px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* Final CTA */

.cta-final {
	padding-block: var(--space-4);
	background-color: var(--capfat-surface);
	background-image: url('../img/capfat_background_5.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border-top: 1px solid var(--capfat-line);
}

.cta-final__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cta-final__inner > * {
	min-width: 0;
}

/* Detalle decorativo secundario */

.cta-final__tagline {
	display: none;
}

@media (min-width: 1024px) {
	.cta-final__tagline {
		display: block;
		position: absolute;
		margin: 0;
		font-family: var(--font-display);
	}
}

/* Cabecera */

.cta-final__intro {
	max-width: 43rem;
	margin-inline: auto;
	text-align: center;
}

.cta-final__title {
	margin-top: 0;
	font-size: clamp(2.4rem, calc(8 * var(--capfat-vw)), 3.5rem);
	line-height: 0.98;
	color: var(--capfat-black);
}

.cta-final__title-accent {
	color: var(--capfat-orange);
}

.cta-final__lead {
	margin: 0.8rem auto 0;
	max-width: 40em;
	color: var(--capfat-muted);
	font-size: 0.94rem;
	line-height: 1.45;
}

/* Cuadrícula: pasos + formulario */

.cta-final__grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.cta-final__steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.cta-final__step {
	text-align: left;
}

.cta-final__step-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.45rem;
}

.cta-final__step-number {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--capfat-orange);
}

.cta-final__step-icon {
	display: inline-flex;
	align-items: center;
	height: 68px;
	margin-left: -0.2rem;
}

.cta-final__step-icon img {
	display: block;
	width: auto;
	height: 100%;
}

.cta-final__step h3 {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--capfat-black);
}

.cta-final__step p {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--capfat-muted);
}

/* Tarjeta del formulario */

.cta-final__form-card {
	min-width: 0;
	padding: 1.25rem;
	background: rgba(244, 240, 236, 0.9);
	border-radius: 4px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	text-align: left;
}

.cta-final__form-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.cta-final__form-heading {
	min-width: 0;
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.55rem;
	line-height: 1;
	color: var(--capfat-black);
}

.cta-final__form-heading-accent {
	color: var(--capfat-orange);
}

.cta-final__form-heading-word {
	position: relative;
	display: inline-block;
}

.cta-final__form-heading-squiggle {
	position: absolute;
	left: 0;
	bottom: -0.3em;
	width: 100%;
	height: 5px;
	background: var(--capfat-orange);
	clip-path: polygon(0 30%, 96% 0, 100% 45%, 92% 75%, 0 100%);
}

.cta-final__form-note {
	margin: 0;
	max-width: 9em;
	font-size: 0.72rem;
	font-weight: 500;
	text-align: right;
	color: var(--capfat-muted);
}

.cta-final__form {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.cta-final__form-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.cta-final__form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.8rem;
}

.cta-final__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.cta-final__field label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--capfat-black);
}

.cta-final__required {
	color: var(--capfat-orange);
}

.cta-final__field input,
.cta-final__field select,
.cta-final__field textarea {
	width: 100%;
	min-height: 42px;
	padding: 0.6rem 0.7rem;
	font-family: var(--font-body);
	font-size: 0.88rem;
	color: var(--capfat-ink);
	background: var(--capfat-light);
	border: 1px solid var(--capfat-line);
	border-radius: var(--radius-sm);
}

.cta-final__field textarea {
	resize: vertical;
	min-height: 80px;
}

.cta-final__field input:focus-visible,
.cta-final__field select:focus-visible,
.cta-final__field textarea:focus-visible {
	outline: 2px solid var(--capfat-orange);
	outline-offset: 1px;
}

.cta-final__dropzone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	padding: 0.7rem;
	text-align: center;
	background: var(--capfat-light);
	border: 1px dashed var(--capfat-line);
	border-radius: var(--radius-sm);
	transition: border-color 200ms ease, background-color 200ms ease;
}

.cta-final__dropzone.is-dragover {
	background: rgba(232, 75, 0, 0.06);
	border-color: var(--capfat-orange);
}

.cta-final__dropzone-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	color: var(--capfat-orange);
}

.cta-final__dropzone-icon svg {
	width: 100%;
	height: 100%;
}

.cta-final__dropzone-text {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--capfat-black);
}

.cta-final__dropzone-hint {
	font-size: 0.62rem;
	color: var(--capfat-muted);
}

.cta-final__dropzone input[type='file'] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.cta-final__submit {
	justify-content: center;
	width: 100%;
	margin-top: 0.1rem;
	padding-block: 0.75rem;
	background: var(--capfat-orange);
	border-color: var(--capfat-orange);
}

.cta-final__submit:hover,
.cta-final__submit:focus-visible {
	background: var(--capfat-accent-dark);
	border-color: var(--capfat-accent-dark);
}

.cta-final__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.cta-final__form-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	margin: 0;
	font-size: 0.7rem;
	text-align: center;
	color: var(--capfat-muted);
}

.cta-final__form-trust-icon {
	flex-shrink: 0;
	display: inline-flex;
	width: 13px;
	height: 13px;
}

.cta-final__form-trust-icon svg {
	width: 100%;
	height: 100%;
}

.cta-final__form-status {
	margin: 0;
	min-height: 0;
	font-size: 0.68rem;
	font-weight: 700;
	text-align: center;
}

.cta-final__form-status:empty {
	display: none;
}

.cta-final__form-status.is-success {
	color: #2f7a3c;
}

.cta-final__form-status.is-error {
	color: var(--capfat-accent);
}

/* Franja de información de contacto */

.cta-final__info-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.6rem;
	margin: 0;
	padding: 0.7rem;
	list-style: none;
	background: rgba(249, 246, 240, 0.91);
	border: 1px solid var(--capfat-line);
}

.cta-final__info-bar li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.3rem;
	font-size: 0.68rem;
	line-height: 1.25;
}

.cta-final__info-icon {
	flex-shrink: 0;
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: var(--capfat-ink);
}

.cta-final__info-icon svg {
	width: 100%;
	height: 100%;
}

.cta-final__info-bar strong {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--capfat-black);
}

.cta-final__info-bar a,
.cta-final__info-bar span span {
	color: var(--capfat-muted);
	text-decoration: none;
}

.cta-final__info-bar a {
	color: var(--capfat-orange);
	font-weight: 700;
}

.cta-final__info-bar a:hover,
.cta-final__info-bar a:focus-visible {
	color: var(--capfat-accent-dark);
}

@media (min-width: 640px) {
	.cta-final__form-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cta-final__steps {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cta-final__info-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * Footer condensado de la pantalla 8 (junto al CTA final, dentro del
 * mismo carrusel — nunca fuera de él en la portada).
 */

.faq-cta-footer__cta {
	max-width: 40em;
}

.faq-cta-footer__cta-text {
	max-width: 34em;
	margin-top: var(--space-2);
	margin-bottom: var(--space-3);
	color: var(--capfat-muted);
}

.faq-cta-footer__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	margin-top: var(--space-5);
	padding-top: var(--space-3);
	border-top: 1px solid var(--capfat-line);
	font-size: var(--text-xs);
	color: var(--capfat-muted);
}

.faq-cta-footer__brand {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	color: var(--capfat-dark);
}

.faq-cta-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.faq-cta-footer__links a {
	color: var(--capfat-muted);
	text-decoration: none;
}

.faq-cta-footer__links a:hover,
.faq-cta-footer__links a:focus-visible {
	color: var(--capfat-accent);
}

@media (max-width: 767px) {
	.capfat-web-credit--hero {
		left: 50%;
		bottom: 2px;
		transform: translateX(-50%);
	}

	.capfat-web-credit--hero img {
		width: 112px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.capfat-web-credit a {
		transition: none;
	}
}

/* ==========================================================================
   Composición de encaje de las 8 pantallas — INCONDICIONAL a partir de
   1024px (Fase 1: debe verse igual con o sin el carrusel activo, porque
   la revisión visual se hace en modo apilado normal). El carrusel
   (Fase 2) solo añadirá transform/overflow encima de esta composición,
   no la redefine.
   ========================================================================== */

@media (min-width: 1024px) {
	.section-header {
		margin-bottom: var(--space-3);
		padding-bottom: var(--space-1);
	}

	.heading-xl {
		font-size: clamp(2.25rem, calc(4 * var(--capfat-vw)), 3.5rem);
	}

	.heading-lg {
		font-size: clamp(1.75rem, calc(3 * var(--capfat-vw)), 2.25rem);
	}

	/* Las 8 pantallas activas: sin padding-block ni borde propio, porque
	   el alto disponible ya lo fija .h-screen (style.css). */
	.hero,
	.services,
	.portfolio,
	.process,
	.about-hero,
	.secondary-services,
	.faq-preview,
	.cta-final {
		padding-block: 0;
		border: none;
	}

/* Composición final: una cabecera clara, pasos 2×2 y formulario. */
	.cta-final {
		position: relative;
		align-items: flex-start;
		padding-top: var(--space-2);
		overflow: hidden;
		background-position: center top;
	}

	body.admin-bar.capfat-front-page .cta-final {
		padding-top: calc(var(--capfat-header-height) + 4px);
	}

	body.capfat-front-page .cta-final__inner {
		width: min(100%, 1420px);
		height: 100%;
		max-height: calc(100% - 8px);
		padding: 16px 34px 72px;
		gap: 14px;
		justify-content: flex-start;
	}

	body.capfat-front-page .cta-final__tagline {
		display: none;
	}

	body.capfat-front-page .cta-final__intro {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1.15fr);
		align-items: center;
		column-gap: 80px;
		width: 100%;
		max-width: 1240px;
		padding-block: 12px;
		text-align: left;
	}

	body.capfat-front-page .cta-final__intro::before {
		content: "";
		grid-column: 2;
		grid-row: 1;
		width: 3px;
		height: 72px;
		background: var(--capfat-orange);
	}

	body.capfat-front-page .cta-final__title {
		grid-column: 1;
		grid-row: 1;
		margin: 0;
		font-size: clamp(2.7rem, calc(2.75 * var(--capfat-vw)), 3.2rem);
		line-height: 1.08;
		text-align: right;
	}

	body.capfat-front-page .cta-final__title-accent {
		position: relative;
		display: inline-block;
	}

	body.capfat-front-page .cta-final__lead {
		grid-column: 3;
		grid-row: 1;
		max-width: 34em;
		margin: 0;
		font-size: 1.04rem;
		line-height: 1.55;
		color: rgba(17, 17, 17, 0.7);
		text-align: left;
	}

	body.capfat-front-page .cta-final__grid {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.08fr);
		align-items: start;
		gap: 28px;
		margin-top: 10px;
	}

	body.capfat-front-page .cta-final__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(170px, 1fr));
		align-content: start;
		column-gap: 28px;
		row-gap: 20px;
		padding-top: 10px;
	}

	body.capfat-front-page .cta-final__step {
		position: relative;
		min-height: 170px;
		border-bottom: 1px solid rgba(17, 17, 17, 0.12);
	}

	body.capfat-front-page .cta-final__step:nth-child(2n) {
		padding-left: 22px;
		border-left: 1px solid rgba(17, 17, 17, 0.12);
	}

	body.capfat-front-page .cta-final__step:nth-child(n + 3) {
		border-bottom: 0;
	}

	body.capfat-front-page .cta-final__step-head {
		align-items: flex-start;
		gap: 0.6rem;
		margin-bottom: 0.4rem;
	}

	body.capfat-front-page .cta-final__step-number {
		min-width: 2.1ch;
		padding-top: 24px;
		font-size: 1.65rem;
	}

	body.capfat-front-page .cta-final__step-icon {
		height: 88px;
		margin-left: -0.4rem;
		margin-bottom: 0;
	}

	body.capfat-front-page .cta-final__step h3 {
		max-width: 16em;
		font-size: 0.88rem;
		line-height: 1.12;
	}

	body.capfat-front-page .cta-final__step p {
		max-width: 27em;
		margin-top: 0.3rem;
		font-size: 0.74rem;
		line-height: 1.25;
		color: rgba(17, 17, 17, 0.64);
	}

	body.capfat-front-page .cta-final__form-card {
		position: relative;
		padding: 16px 22px 12px;
		background: rgba(247, 243, 237, 0.89);
		border: 1px solid rgba(17, 17, 17, 0.05);
		border-radius: 2px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
	}

	body.capfat-front-page .cta-final__form-head {
		margin-bottom: 9px;
	}

	body.capfat-front-page .cta-final__form-heading {
		font-size: 1.95rem;
		line-height: 1;
	}

	body.capfat-front-page .cta-final__form-heading-squiggle {
		bottom: -0.15em;
		height: 4px;
	}

	body.capfat-front-page .cta-final__form-note {
		max-width: 10em;
		padding-right: 0;
		font-family: var(--font-display);
		font-size: 0.72rem;
		line-height: 1.1;
		text-align: right;
		color: rgba(17, 17, 17, 0.55);
		transform: rotate(-3deg);
	}

	body.capfat-front-page .cta-final__form {
		gap: 7px;
	}

	body.capfat-front-page .cta-final__form-row {
		gap: 16px;
	}

	body.capfat-front-page .cta-final__field {
		gap: 3px;
	}

	body.capfat-front-page .cta-final__field label {
		font-size: 0.68rem;
	}

	body.capfat-front-page .cta-final__field input,
	body.capfat-front-page .cta-final__field select,
	body.capfat-front-page .cta-final__field textarea {
		min-height: 38px;
		padding: 0.48rem 0.7rem;
		font-size: 0.83rem;
		border-color: rgba(17, 17, 17, 0.14);
		border-radius: 3px;
		background: rgba(255, 255, 255, 0.83);
	}

	body.capfat-front-page .cta-final__field textarea {
		min-height: 50px;
	}

	body.capfat-front-page .cta-final__dropzone {
		min-height: 52px;
		padding: 0.5rem;
		border-radius: 2px;
		background: rgba(255, 255, 255, 0.76);
	}

	body.capfat-front-page .cta-final__submit {
		min-height: 40px;
		margin-top: 0;
		padding-block: 0.6rem;
		border-radius: 3px;
		font-size: 0.94rem;
	}

	body.capfat-front-page .cta-final__form-trust {
		font-size: 0.62rem;
	}

	body.capfat-front-page .cta-final__info-bar {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
		margin-top: auto;
		padding: 6px 0;
		background: rgba(249, 246, 240, 0.91);
		border: 1px solid rgba(17, 17, 17, 0.16);
		box-shadow: none;
		backdrop-filter: blur(1px);
		text-shadow: none;
	}

	body.capfat-front-page .cta-final__info-bar li {
		min-height: 32px;
		padding: 0 18px;
		font-size: 0.68rem;
		line-height: 1.3;
		color: var(--capfat-black);
	}

	body.capfat-front-page .cta-final__info-bar li:not(:first-child) {
		border-left: 1px solid var(--capfat-line);
	}

	body.capfat-front-page .cta-final__info-icon {
		width: 20px;
		height: 20px;
		color: var(--capfat-black);
		filter: none;
	}

	body.capfat-front-page .cta-final__info-bar strong {
		font-size: 0.66rem;
	}

	html.capfat-horizontal-ready body.capfat-front-page .cta-final__inner {
		padding-bottom: 70px;
	}

	@media (max-width: 1279px), (max-height: 760px) {
		html:not(.capfat-framed) body.capfat-front-page .cta-final {
			overflow-y: auto;
			overscroll-behavior: contain;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__inner {
			height: auto;
			max-height: none;
			padding-bottom: 72px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__info-bar {
			margin-top: 16px;
		}
	}

	@media (max-width: 1279px) {
		html:not(.capfat-framed) body.capfat-front-page .cta-final__intro {
			column-gap: 48px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__title {
			font-size: 2.4rem;
		}
	}

	@media (min-width: 1280px) and (max-height: 780px) {
		html:not(.capfat-framed) body.capfat-front-page .cta-final__intro {
			padding-block: 10px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__inner {
			padding-top: 20px;
			gap: 10px;
		}

		html.capfat-horizontal-ready:not(.capfat-framed) body.capfat-front-page .cta-final__inner {
			padding-bottom: 52px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__title {
			font-size: 2.6rem;
			line-height: 1.06;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__lead {
			font-size: 0.96rem;
			line-height: 1.55;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__grid {
			margin-top: 4px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__steps {
			grid-template-rows: repeat(2, minmax(155px, 1fr));
			row-gap: 14px;
			padding-top: 4px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__step {
			min-height: 155px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__step-number {
			padding-top: 20px;
			font-size: 1.55rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__step-icon {
			height: 80px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__step p {
			font-size: 0.7rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__form-card {
			padding: 12px 20px 9px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__form-head {
			margin-bottom: 6px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__form-heading {
			font-size: 1.8rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__form {
			gap: 4px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__field {
			gap: 2px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__field label {
			font-size: 0.64rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__field input,
html:not(.capfat-framed) body.capfat-front-page .cta-final__field select,
html:not(.capfat-framed) body.capfat-front-page .cta-final__field textarea {
			min-height: 32px;
			padding: 0.32rem 0.6rem;
			font-size: 0.78rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__field textarea,
html:not(.capfat-framed) body.capfat-front-page .cta-final__dropzone {
			min-height: 46px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__dropzone {
			padding: 0.25rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__submit {
			min-height: 37px;
			padding-block: 0.45rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__form-trust {
			font-size: 0.57rem;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__info-bar {
			margin-top: 8px;
			padding-block: 4px;
		}

		html:not(.capfat-framed) body.capfat-front-page .cta-final__info-bar li {
			min-height: 26px;
			font-size: 0.62rem;
		}
	}

	/* Hero */

	.hero__title {
		margin-top: var(--space-1);
		font-size: clamp(3.25rem, calc(3.4 * var(--capfat-vw)), 4rem);
	}

	.hero__body {
		margin-top: var(--space-1);
		font-size: var(--text-base);
	}

	.hero__actions {
		margin-top: var(--space-2);
	}

	.hero__actions .button {
		padding: 0.8rem 1.6rem;
	}

	.hero__media {
		height: min(calc(46 * var(--capfat-vh)), 460px);
	}

	.hero__image {
		height: 100%;
		object-fit: cover;
	}

	/* Servicios: fila única de 4 */

	.services__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-2);
	}

	.service-card__media {
		aspect-ratio: auto;
		height: min(calc(36 * var(--capfat-vh)), 320px);
	}

	.service-card__body {
		padding: var(--space-2);
	}

	.service-card__text {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Trabajos: fila de altura fija, no masonry */

	.portfolio__grid {
		display: flex;
		flex-direction: row;
		columns: unset;
		column-gap: 0;
		gap: var(--space-2);
		height: min(calc(56 * var(--capfat-vh)), 500px);
	}

	.portfolio__item {
		flex: 1 1 0;
		min-width: 0;
		height: 100%;
		margin-bottom: 0;
	}

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

	.portfolio__empty {
		max-width: 46em;
	}

	/* Encargo / Proceso */

	.process__list {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-3);
	}

	/* Sobre DIME */

	.about-hero__media {
		height: clamp(320px, calc(44 * var(--capfat-vh)), 440px);
	}

	/* Proyectos especiales */

	.secondary-card {
		aspect-ratio: auto;
		height: min(calc(46 * var(--capfat-vh)), 420px);
	}

	/* FAQ */

	.faq-preview__list--grid {
		row-gap: 0;
	}

	/* Contacto + footer */

	.faq-cta-footer__footer {
		margin-top: var(--space-3);
		padding-top: var(--space-2);
	}
}

/* Ajuste final de la primera pantalla: contenido arriba, no centrado. */
@media (min-width: 1024px) {
	body.capfat-front-page .capfat-home-hero {
		height: calc(100 * var(--capfat-svh));
		min-height: calc(100 * var(--capfat-svh));
		width: 100%;
	}

	body.capfat-front-page .capfat-home-hero__inner {
		align-items: flex-start;
		height: 100%;
		min-height: 100%;
		padding-top: clamp(118px, calc(18 * var(--capfat-svh)), 205px);
		padding-bottom: clamp(58px, calc(8 * var(--capfat-svh)), 96px);
	}

	body.capfat-front-page .capfat-home-hero__eyebrow {
		margin-bottom: clamp(12px, calc(1.8 * var(--capfat-svh)), 22px);
	}

	body.capfat-front-page .capfat-home-hero__description {
		margin-top: clamp(18px, calc(2.6 * var(--capfat-svh)), 30px);
	}

	body.capfat-front-page .capfat-home-hero__actions {
		margin-top: clamp(20px, calc(3 * var(--capfat-svh)), 34px);
	}
}

@media (min-width: 1024px) and (max-height: 800px) {
	html:not(.capfat-framed) body.capfat-front-page .capfat-home-hero__inner {
		padding-top: 104px;
		padding-bottom: 54px;
	}

	html:not(.capfat-framed) body.capfat-front-page .capfat-home-hero__title {
		font-size: clamp(3.7rem, calc(5.6 * var(--capfat-vw)), 6.4rem);
	}

	html:not(.capfat-framed) body.capfat-front-page .capfat-home-hero__description {
		margin-top: 16px;
		font-size: 15px;
	}

	html:not(.capfat-framed) body.capfat-front-page .capfat-home-hero__actions {
		margin-top: 18px;
	}
}

body.admin-bar.capfat-front-page .site-main {
	padding-top: 0;
}

body.admin-bar.capfat-front-page .home-horizontal-viewport,
body.admin-bar.capfat-front-page .h-screen,
body.admin-bar.capfat-front-page .capfat-home-hero {
	height: calc(calc(100 * var(--capfat-svh)) - 32px);
	min-height: calc(calc(100 * var(--capfat-svh)) - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar.capfat-front-page .site-header {
		top: 46px;
	}

	body.admin-bar.capfat-front-page .site-main {
		padding-top: 0;
	}

	body.admin-bar.capfat-front-page .home-horizontal-viewport,
	body.admin-bar.capfat-front-page .h-screen,
	body.admin-bar.capfat-front-page .capfat-home-hero {
		height: calc(calc(100 * var(--capfat-svh)) - 46px);
		min-height: calc(calc(100 * var(--capfat-svh)) - 46px);
	}
}

@media (max-width: 1023px) {
	body.capfat-front-page .site-header__inner {
		display: grid;
	}

	body.capfat-front-page .site-header__navigation {
		display: none;
	}
}

/* Encuadre final del fondo: completo, arriba y sin zoom del hero. */
@media (min-width: 1024px) {
	body.capfat-front-page .sound-toggle {
		position: fixed !important;
		top: calc(var(--capfat-header-height) + 12px) !important;
		right: calc(10 * var(--capfat-vw)) !important;
	}
}

/* El hero no muestra contador, flechas ni línea inferior. */
body.capfat-front-page .capfat-home-hero__pager,
body.home .capfat-home-hero__pager {
	display: none !important;
}

/* El viewport es navegable con teclado, pero su outline global quedaba
 * recortado en el borde inferior y parecía una línea sobre la ilustración. */
html.capfat-horizontal-ready body.capfat-front-page .home-horizontal-viewport:focus-visible {
	outline: none;
}

/* Navegación de pantallas: opaca, discreta y con el naranja de CAPFAT. */
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls {
	background: rgba(255, 253, 248, 0.25);
	border: 1px solid rgba(232, 75, 0, 0.28);
	box-shadow: 0 0 0 2px rgba(232, 75, 0, 0.18), 0 0 22px rgba(0, 0, 0, 0.62), 0 0 26px rgba(232, 75, 0, 0.12);
	backdrop-filter: none;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dot::after {
	background: #aaa8a2;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dot:hover::after,
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dot:focus-visible::after {
	background: rgba(232, 75, 0, 0.6);
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dot.is-active::after {
	background: var(--capfat-orange);
	box-shadow: 0 0 0 1px rgba(232, 75, 0, 0.18);
}

/* Cabecera: marca, navegación y CTA en una misma línea. */
@media (min-width: 1024px) {
	body.capfat-front-page .site-header__inner {
		grid-template-columns: auto 1fr auto;
		max-width: 1840px;
	}

	body.capfat-front-page .site-header__navigation {
		justify-content: flex-start;
		justify-self: start;
		gap: clamp(18px, calc(2 * var(--capfat-vw)), 34px);
	}

	body.capfat-front-page .site-header__cta {
		min-height: 22px;
		padding: 6px 22px;
		white-space: nowrap;
	}
}

/* Sonido: icono pequeño, sin círculo, con pulso mientras está muteado. */
body.capfat-front-page .sound-toggle {
	position: fixed !important;
	top: calc(clamp(118px, calc(18 * var(--capfat-svh)), 205px) - 20px) !important;
	right: auto !important;
	left: max(14px, calc((calc(100 * var(--capfat-vw)) - var(--container-wide)) / 2 + 18px)) !important;
	width: 30px;
	height: 30px;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	color: var(--capfat-orange);
	transform: translateY(-50%);
	animation: capfat-sound-icon-pulse 1.8s ease-in-out infinite;
}

body.capfat-front-page .sound-toggle.is-playing {
	animation: none;
	color: var(--capfat-black);
}

body.capfat-front-page .sound-toggle:hover,
body.capfat-front-page .sound-toggle:focus-visible {
	transform: translateY(-50%) scale(1.12);
	color: var(--capfat-orange);
	box-shadow: none !important;
}

body.capfat-front-page .sound-toggle__icon {
	width: 20px;
	height: 20px;
	transform: scale(var(--capfat-bass-scale, 1));
	transform-origin: center;
	transition: transform 90ms ease-out;
}

@keyframes capfat-sound-icon-pulse {
	0%,
	100% {
		opacity: 0.72;
		transform: translateY(-50%) scale(0.92);
		filter: drop-shadow(0 0 0 rgba(232, 75, 0, 0));
	}
	50% {
		opacity: 1;
		transform: translateY(-50%) scale(1.12);
		filter: drop-shadow(0 0 7px rgba(232, 75, 0, 0.72));
	}
}

/* Ecualizador global: comparte la capa fija del menú y el volumen. */
body.capfat-front-page .capfat-global-equalizer {
	position: fixed;
	z-index: 80;
	left: 0;
	top: 0;
	width: 0;
	height: 44px;
	display: block;
	pointer-events: none;
	user-select: none;
	opacity: 1;
	transform: none;
	background: transparent;
	/* Por detrás de los textos a efectos visuales: el negro sigue negro. */
	mix-blend-mode: multiply;
}

body.capfat-front-page .capfat-global-equalizer.is-active {
	opacity: 1;
}

@media (max-width: 1023px) {
	body.capfat-front-page .capfat-global-equalizer {
		display: none;
	}
}

@media (max-width: 1023px) {
	body.capfat-front-page .sound-toggle {
		top: 50% !important;
		left: 14px !important;
		right: auto !important;
	}

}

/* Escritorio: el altavoz es un elemento más del menú, tras "Cuéntame tu idea". */
@media (min-width: 1024px) {
	body.capfat-front-page .site-header__navigation .sound-toggle {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		flex: 0 0 auto;
		transform: none;
		animation-name: capfat-sound-icon-pulse-inline;
	}

	body.capfat-front-page .site-header__navigation .sound-toggle.is-playing {
		animation: none;
	}

	body.capfat-front-page .site-header__navigation .sound-toggle:hover,
	body.capfat-front-page .site-header__navigation .sound-toggle:focus-visible {
		transform: scale(1.12);
	}
}

@keyframes capfat-sound-icon-pulse-inline {
	0%,
	100% {
		opacity: 0.72;
		transform: scale(0.92);
		filter: drop-shadow(0 0 0 rgba(232, 75, 0, 0));
	}
	50% {
		opacity: 1;
		transform: scale(1.12);
		filter: drop-shadow(0 0 7px rgba(232, 75, 0, 0.72));
	}
}

/* Móvil: el menú se oculta, pero el altavoz sigue visible en su sitio fijo. */
@media (max-width: 1023px) {
	body.capfat-front-page .site-header__navigation {
		display: contents;
	}

	body.capfat-front-page .site-header__navigation .site-nav,
	body.capfat-front-page .site-header__navigation .site-header__cta {
		display: none;
	}
}

/* Primer hero: un único lienzo proporcional de 1920 x 900. */
body.capfat-front-page .capfat-home-hero {
	display: block;
	width: 100%;
	height: calc(100 * var(--capfat-svh));
	min-height: calc(100 * var(--capfat-svh));
	overflow: hidden;
	background: #000;
	isolation: auto;
}

body.capfat-front-page .capfat-home-hero::before {
	display: none;
	content: none;
}

body.capfat-front-page .capfat-hero-viewport,
body.capfat-front-page .capfat-hero-scaler {
	position: relative;
	background-color: #000;
}

body.capfat-front-page .capfat-hero-viewport {
	width: 100%;
	height: calc(100 * var(--capfat-svh));
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.capfat-front-page .capfat-hero-scaler {
	flex: 0 0 auto;
	overflow: hidden;
}

body.capfat-front-page .capfat-hero-stage {
	position: relative;
	width: 1920px;
	height: 900px;
	flex: 0 0 auto;
	overflow: hidden;
	background-color: #000;
	background-image: url('../img/capfat_background.jpg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;
	backface-visibility: hidden;
	transform-origin: top left;
	will-change: transform;
}

body.capfat-front-page .capfat-hero-stage > * {
	position: relative;
	z-index: 1;
}

/* Valores de la composición aprobada a 1920 x 900; se escalan como bloque. */
body.capfat-front-page .capfat-hero-stage .capfat-home-hero__inner {
	min-height: 900px;
	height: 900px;
	padding-top: 162px;
	padding-bottom: 72px;
	align-items: flex-start;
}

body.capfat-front-page .capfat-hero-stage .capfat-home-hero__content {
	width: 640px;
}

body.capfat-front-page .capfat-hero-stage .capfat-home-hero__eyebrow {
	font-size: 15px;
	margin-bottom: 16px;
}

body.capfat-front-page .capfat-hero-stage .capfat-home-hero__title {
	font-size: 117px;
}

body.capfat-front-page .capfat-hero-stage .capfat-home-hero__description,
body.capfat-front-page .capfat-hero-stage .capfat-home-hero__tagline {
	font-size: 19px;
}

body.capfat-front-page .capfat-hero-stage .capfat-home-hero__description {
	margin-top: 23px;
}

body.capfat-front-page .capfat-hero-stage .capfat-home-hero__actions {
	margin-top: 27px;
}

@media (min-width: 1024px) {
	body.capfat-front-page .home-horizontal-viewport,
	html.capfat-horizontal-ready body.capfat-front-page .home-horizontal-viewport {
		height: calc(100 * var(--capfat-svh));
	}

	body.capfat-front-page .capfat-home-hero {
		height: calc(100 * var(--capfat-svh));
		min-height: calc(100 * var(--capfat-svh));
	}
}

/* La barra de WordPress y el zoom alteran el espacio visible real.
 * La variable se mide en home-horizontal.js desde la posición del carrusel. */
@media (min-width: 1024px) {
	html.capfat-horizontal-ready body.capfat-front-page .home-horizontal-viewport,
	html.capfat-horizontal-ready body.capfat-front-page .h-screen,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-home-hero,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-hero-viewport {
		height: var(--capfat-panel-height, calc(calc(100 * var(--capfat-svh)) - 32px)) !important;
		min-height: var(--capfat-panel-height, calc(calc(100 * var(--capfat-svh)) - 32px)) !important;
	}
}

body.admin-bar.capfat-front-page .capfat-hero-viewport,
body.admin-bar.capfat-front-page .capfat-home-hero,
body.admin-bar.capfat-front-page .home-horizontal-viewport,
html.capfat-horizontal-ready body.admin-bar.capfat-front-page .home-horizontal-viewport {
	height: calc(calc(100 * var(--capfat-svh)) - 32px);
	min-height: calc(calc(100 * var(--capfat-svh)) - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar.capfat-front-page .capfat-hero-viewport,
	body.admin-bar.capfat-front-page .capfat-home-hero,
	body.admin-bar.capfat-front-page .home-horizontal-viewport,
	html.capfat-horizontal-ready body.admin-bar.capfat-front-page .home-horizontal-viewport {
		height: calc(calc(100 * var(--capfat-svh)) - 46px);
		min-height: calc(calc(100 * var(--capfat-svh)) - 46px);
	}
}

/* Segundo escenario: Servicios, diseñado dentro de un lienzo 1920 x 900. */
body.capfat-front-page .capfat-services-screen {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #000;
}

body.capfat-front-page .capfat-services-viewport,
body.capfat-front-page .capfat-services-scaler {
	position: relative;
	background: #000;
}

body.capfat-front-page .capfat-services-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.capfat-front-page .capfat-services-scaler {
	flex: 0 0 auto;
	overflow: hidden;
}

body.capfat-front-page .capfat-services-stage {
	position: relative;
	width: 1920px;
	height: 900px;
	overflow: hidden;
	background-color: #000;
	background-image: url('../img/capfat_background_2.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	backface-visibility: hidden;
	transform-origin: top left;
	will-change: transform;
}

body.capfat-front-page .capfat-services-editorial {
	position: absolute;
	top: 207px;
	left: 185px;
	width: 435px;
	color: var(--capfat-black);
}

body.capfat-front-page .capfat-services-editorial__eyebrow {
	margin: 0 0 25px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.1em;
}

body.capfat-front-page .capfat-services-editorial__eyebrow strong,
body.capfat-front-page .capfat-services-editorial__title em,
body.capfat-front-page .capfat-services-editorial__text strong {
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-services-editorial__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 68px;
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-services-editorial__title span {
	display: block;
}

body.capfat-front-page .capfat-services-editorial__title em {
	font-style: normal;
}

body.capfat-front-page .capfat-services-editorial__text {
	margin: 28px 0 0;
	font-size: 18px;
	line-height: 1.45;
}

body.capfat-front-page .capfat-services-editorial__text strong {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

body.capfat-front-page .capfat-services-editorial__stroke {
	display: block;
	width: 200px;
	height: 7px;
	margin-top: 23px;
	background: var(--capfat-orange);
	clip-path: polygon(0 32%, 94% 0, 100% 50%, 91% 74%, 0 100%);
}

body.capfat-front-page .capfat-services-grid {
	position: absolute;
	top: 175px;
	left: 655px;
	width: 1125px;
	height: 632px;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: 370px 255px;
	gap: 7px;
}

body.capfat-front-page .capfat-service-tile {
	position: relative;
	overflow: hidden;
	display: block;
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, 0.74);
	border-radius: 4px;
	background: #000;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
	transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

body.capfat-front-page .capfat-service-tile--murales {
	grid-column: span 6;
}

body.capfat-front-page .capfat-service-tile--retratos,
body.capfat-front-page .capfat-service-tile--mascotas {
	grid-column: span 3;
}

body.capfat-front-page .capfat-service-tile--ilustracion,
body.capfat-front-page .capfat-service-tile--lienzos,
body.capfat-front-page .capfat-service-tile--talleres {
	grid-column: span 4;
}

body.capfat-front-page .capfat-service-tile__image,
body.capfat-front-page .capfat-service-tile__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.capfat-front-page .capfat-service-tile__image {
	object-fit: cover;
	object-position: center;
	transition: transform 350ms ease, filter 350ms ease;
}

body.capfat-front-page .capfat-service-tile--murales .capfat-service-tile__image {
	object-position: center 55%;
}

body.capfat-front-page .capfat-service-tile--retratos .capfat-service-tile__image,
body.capfat-front-page .capfat-service-tile--mascotas .capfat-service-tile__image {
	object-position: center 35%;
}

body.capfat-front-page .capfat-service-tile__shade {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.82) 78%, rgba(0, 0, 0, 0.92) 100%);
	transition: background 350ms ease;
}

body.capfat-front-page .capfat-service-tile__content {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
	position: absolute;
	bottom: 26px;
	left: 26px;
	right: 54px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

body.capfat-front-page .capfat-service-tile__number {
	display: block;
	padding-bottom: 4px;
	border-bottom: 3px solid var(--capfat-orange);
	font-family: var(--font-display);
	font-size: 34px;
	line-height: 0.85;
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-service-tile__title {
	margin-top: 9px;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 0.95;
	letter-spacing: 0.02em;
}

body.capfat-front-page .capfat-service-tile__description {
	margin-top: 9px;
	font-size: 15px;
	line-height: 1.28;
	color: rgba(255, 255, 255, 0.92);
}

body.capfat-front-page .capfat-service-tile__arrow {
	position: absolute;
	right: 26px;
	bottom: 27px;
	font-size: 40px;
	line-height: 0.7;
	color: var(--capfat-orange);
	transition: transform 350ms ease;
}

body.capfat-front-page .capfat-service-tile:hover,
body.capfat-front-page .capfat-service-tile:focus-visible {
	transform: translateY(-2px);
	border-color: var(--capfat-orange);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

body.capfat-front-page .capfat-service-tile:hover .capfat-service-tile__image,
body.capfat-front-page .capfat-service-tile:focus-visible .capfat-service-tile__image {
	transform: scale(1.035);
	filter: contrast(1.08);
}

body.capfat-front-page .capfat-service-tile:hover .capfat-service-tile__shade,
body.capfat-front-page .capfat-service-tile:focus-visible .capfat-service-tile__shade {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 28%, rgba(0, 0, 0, 0.5) 52%, rgba(0, 0, 0, 0.88) 76%, #000 100%);
}

body.capfat-front-page .capfat-service-tile:hover .capfat-service-tile__arrow,
body.capfat-front-page .capfat-service-tile:focus-visible .capfat-service-tile__arrow {
	transform: translateX(7px);
}

body.capfat-front-page .capfat-service-tile:focus-visible {
	outline: 3px solid var(--capfat-orange);
	outline-offset: 3px;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-services-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-service-tile {
	opacity: 0;
	transform: translateY(16px);
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-services-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 360ms ease, transform 360ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile:nth-child(1) { transition-delay: 60ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile:nth-child(2) { transition-delay: 100ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile:nth-child(3) { transition-delay: 140ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile:nth-child(4) { transition-delay: 180ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile:nth-child(5) { transition-delay: 220ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen.is-active .capfat-service-tile:nth-child(6) { transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
	html.capfat-horizontal-ready body.capfat-front-page .capfat-services-editorial,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-service-tile {
		transform: none;
		transition: opacity 120ms ease !important;
	}
}

/* Móvil y tablet: la parrilla deja de ser un lienzo escalado y se apila.
   !important anula el tamaño/escala en línea que pone hero-stage.js. */
@media (max-width: 1023px) {
	body.capfat-front-page .capfat-services-screen .vertical-panel:first-child {
		height: auto;
	}

	body.capfat-front-page .capfat-services-screen .vertical-panel:first-child .capfat-services-viewport,
	body.capfat-front-page .capfat-services-screen .vertical-panel:first-child .capfat-services-scaler {
		display: block;
		width: auto !important;
		height: auto !important;
		overflow: visible;
	}

	body.capfat-front-page .capfat-services-screen .vertical-panel:first-child .capfat-services-stage {
		width: auto;
		height: auto;
		padding: 56px 16px 64px;
		background-size: cover;
		transform: none !important;
	}

	body.capfat-front-page .capfat-services-editorial {
		position: static;
		width: auto;
		max-width: 560px;
	}

	body.capfat-front-page .capfat-services-editorial__title {
		font-size: clamp(44px, calc(12 * var(--capfat-vw)), 68px);
	}

	body.capfat-front-page .capfat-services-editorial__text {
		font-size: 17px;
	}

	body.capfat-front-page .capfat-services-grid {
		position: static;
		width: auto;
		height: auto;
		margin-top: 36px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		grid-auto-rows: 260px;
		gap: 8px;
	}

	body.capfat-front-page .capfat-service-tile--murales,
	body.capfat-front-page .capfat-service-tile--talleres {
		grid-column: 1 / -1;
	}

	body.capfat-front-page .capfat-service-tile--retratos,
	body.capfat-front-page .capfat-service-tile--mascotas,
	body.capfat-front-page .capfat-service-tile--ilustracion,
	body.capfat-front-page .capfat-service-tile--lienzos {
		grid-column: span 1;
	}

	body.capfat-front-page .capfat-service-tile--retratos,
	body.capfat-front-page .capfat-service-tile--mascotas {
		grid-row: span 2;
	}
}

@media (max-width: 560px) {
	body.capfat-front-page .capfat-services-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
	}

	body.capfat-front-page .capfat-service-tile {
		height: 240px;
	}

	body.capfat-front-page .capfat-service-tile--retratos,
	body.capfat-front-page .capfat-service-tile--mascotas,
	body.capfat-front-page .capfat-service-tile--ilustracion,
	body.capfat-front-page .capfat-service-tile--lienzos {
		grid-column: 1 / -1;
	}

	body.capfat-front-page .capfat-service-tile--retratos,
	body.capfat-front-page .capfat-service-tile--mascotas {
		grid-row: span 1;
		height: 360px;
	}

	body.capfat-front-page .capfat-service-tile__content {
		left: 20px;
		bottom: 20px;
	}
}

/* Servicios en detalle: subpantallas verticales bajo la parrilla de Servicios. */
body.capfat-front-page .capfat-services-screen .vertical-panel {
	height: calc(calc(100 * var(--capfat-svh)) - var(--capfat-header-height));
}

html:not(.capfat-horizontal-ready) body.capfat-front-page .capfat-services-screen {
	height: auto;
}

/* En el carrusel el fondo vive en la sección y no se mueve: el paso
   vertical entre subpantallas solo desplaza el contenido. */
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen {
	background: #000 url('../img/capfat_background_2.jpg') center / cover no-repeat;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen .capfat-services-viewport,
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen .capfat-services-scaler,
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen .capfat-services-stage {
	background: transparent;
}

body.capfat-front-page .capfat-service-detail {
	color: var(--capfat-black);
}

body.capfat-front-page .capfat-service-detail__content {
	position: absolute;
	top: 128px;
	left: 185px;
	width: 640px;
}

body.capfat-front-page .capfat-service-detail__eyebrow {
	margin: 0 0 22px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.1em;
}

body.capfat-front-page .capfat-service-detail__eyebrow strong,
body.capfat-front-page .capfat-service-detail__title .is-accent,
body.capfat-front-page .capfat-service-detail__feature-number {
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-service-detail__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 80px;
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-service-detail__title span {
	display: block;
}

body.capfat-front-page .capfat-service-detail__stroke {
	display: block;
	width: 200px;
	height: 7px;
	margin-top: 22px;
	background: var(--capfat-orange);
	clip-path: polygon(0 32%, 94% 0, 100% 50%, 91% 74%, 0 100%);
}

body.capfat-front-page .capfat-service-detail__lead {
	margin: 26px 0 0;
	max-width: 600px;
	font-size: 18px;
	line-height: 1.5;
}

body.capfat-front-page .capfat-service-detail__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 30px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(17, 17, 17, 0.18);
	list-style: none;
}

body.capfat-front-page .capfat-service-detail__feature {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.capfat-front-page .capfat-service-detail__feature-number {
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 0.9;
}

body.capfat-front-page .capfat-service-detail__feature strong {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-service-detail__feature span:last-child {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(17, 17, 17, 0.72);
}

body.capfat-front-page .capfat-service-detail__actions {
	display: flex;
	gap: 14px;
	margin-top: 32px;
}

body.capfat-front-page .capfat-service-detail__actions .button {
	padding: 17px 32px;
	font-size: 14px;
}

body.capfat-front-page .capfat-service-detail__media {
	position: absolute;
	top: 128px;
	left: 905px;
	width: 830px;
	height: 640px;
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
}

body.capfat-front-page .capfat-service-detail__figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(23, 20, 17, 0.48);
	border-radius: 4px;
	background: #e8dfd5;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body.capfat-front-page .capfat-service-detail__figure::after {
	content: '';
	position: absolute;
	inset: 0;
	border-bottom: 6px solid var(--capfat-orange);
	pointer-events: none;
}

body.capfat-front-page .capfat-service-detail__figure--main {
	grid-row: span 2;
}

body.capfat-front-page .capfat-service-detail__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease, filter 350ms ease;
}

/* Mismo efecto al pasar el ratón que las tarjetas de la parrilla de Servicios. */
body.capfat-front-page .capfat-service-detail__figure {
	transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

body.capfat-front-page .capfat-service-detail__figure:hover,
body.capfat-front-page .capfat-service-detail__figure:focus-within {
	transform: translateY(-2px);
	border-color: var(--capfat-orange);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

body.capfat-front-page .capfat-service-detail__figure:hover img,
body.capfat-front-page .capfat-service-detail__figure:focus-within img {
	transform: scale(1.035);
	filter: contrast(1.08);
}

body.capfat-front-page .capfat-service-detail__zoom,
body.capfat-front-page .capfat-works-featured__media {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

body.capfat-front-page .capfat-service-detail__zoom:focus-visible,
body.capfat-front-page .capfat-works-featured__media:focus-visible {
	outline: 3px solid var(--capfat-orange);
	outline-offset: -3px;
}

/* Nota de DIME: caja negra con trazo de spray, goteo y comilla de fondo. */
body.capfat-front-page .capfat-service-detail__note {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 76px 26px 24px;
	border-radius: 4px;
	background:
		radial-gradient(circle at 100% 0%, rgba(232, 75, 0, 0.26), transparent 52%),
		radial-gradient(circle at 0% 100%, rgba(255, 250, 243, 0.06), transparent 45%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 7px),
		#111;
	color: #fffaf3;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 250, 243, 0.06);
}

body.capfat-front-page .capfat-service-detail__note-mark {
	position: absolute;
	top: -26px;
	right: 10px;
	font-family: var(--font-display);
	font-size: 190px;
	line-height: 1;
	color: rgba(232, 75, 0, 0.14);
	pointer-events: none;
}

body.capfat-front-page .capfat-service-detail__note-text {
	position: relative;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 250, 243, 0.9);
}

body.capfat-front-page .capfat-service-detail__note-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding: 12px 16px 10px;
	border: 1px solid var(--capfat-orange);
	border-radius: 2px;
	background: transparent;
	color: var(--capfat-orange);
	font-family: var(--font-display);
	font-size: 23px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 220ms ease, color 220ms ease;
}

body.capfat-front-page .capfat-service-detail__note-cta svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: -2px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 220ms ease;
}

body.capfat-front-page .capfat-service-detail__note-cta:hover,
body.capfat-front-page .capfat-service-detail__note-cta:focus-visible {
	background: var(--capfat-orange);
	color: #fff;
	outline: none;
}

body.capfat-front-page .capfat-service-detail__note-cta:hover svg,
body.capfat-front-page .capfat-service-detail__note-cta:focus-visible svg {
	transform: translateX(4px);
}

/* Tercer escenario: Trabajos, diseñado dentro de un lienzo 1920 x 900. */
body.capfat-front-page .capfat-works-screen {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #000;
}

body.capfat-front-page .capfat-works-viewport,
body.capfat-front-page .capfat-works-scaler {
	position: relative;
	background: #000;
}

body.capfat-front-page .capfat-works-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.capfat-front-page .capfat-works-scaler {
	flex: 0 0 auto;
	overflow: hidden;
}

body.capfat-front-page .capfat-works-stage {
	position: relative;
	width: 1920px;
	height: 900px;
	overflow: hidden;
	background-color: #0d0b09;
	background-image: url('../img/capfat_background_3.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	backface-visibility: hidden;
	transform-origin: top left;
	will-change: transform;
	color: #fffaf3;
}

body.capfat-front-page .capfat-works-editorial {
	position: absolute;
	top: 186px;
	left: 142px;
	width: 295px;
	color: #171411;
}

body.capfat-front-page .capfat-works-kicker {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-works-heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: 76px;
	font-weight: 400;
	line-height: 0.82;
	letter-spacing: 0;
}

body.capfat-front-page .capfat-works-heading span {
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-works-intro {
	margin: 29px 0 0;
	font-size: 17px;
	line-height: 1.45;
}

body.capfat-front-page .capfat-works-link {
	display: inline-flex;
	gap: 22px;
	margin-top: 32px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--capfat-orange);
	color: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
}

body.capfat-front-page .capfat-works-link:hover,
body.capfat-front-page .capfat-works-link:focus-visible {
	color: var(--capfat-orange);
}

/* Justo encima del bloque de imágenes (destacada + miniaturas: x 500–1780,
   y desde 177) y centrado sobre todo su ancho. */
body.capfat-front-page .capfat-works-filters {
	position: absolute;
	top: 148px;
	left: 500px;
	width: 1280px;
	display: flex;
	justify-content: center;
	gap: 28px;
	align-items: center;
}

body.capfat-front-page .capfat-works-filter {
	padding: 0 0 8px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: rgba(23, 20, 17, 0.7);
	font: 700 13px/1 var(--font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

body.capfat-front-page .capfat-works-filter:hover,
body.capfat-front-page .capfat-works-filter:focus-visible,
body.capfat-front-page .capfat-works-filter.is-active {
	border-bottom-color: var(--capfat-orange);
	color: #171411;
}

body.capfat-front-page .capfat-works-featured {
	position: absolute;
	top: 177px;
	left: 500px;
	width: 725px;
	height: 584px;
	overflow: hidden;
	background: #171411;
	box-shadow: 0 16px 35px rgba(0, 0, 0, 0.32);
}

body.capfat-front-page .capfat-works-featured__media,
body.capfat-front-page .capfat-works-featured__image {
	width: 100%;
	height: 100%;
}

body.capfat-front-page .capfat-works-featured__image {
	display: block;
	object-fit: cover;
	object-position: center;
}

body.capfat-front-page .capfat-works-featured__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.88) 100%);
	pointer-events: none;
}

body.capfat-front-page .capfat-works-featured__meta {
	position: absolute;
	left: 38px;
	bottom: 36px;
	z-index: 1;
}

body.capfat-front-page .capfat-works-featured__category,
body.capfat-front-page .capfat-works-featured__info {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-works-featured__category {
	color: var(--capfat-orange);
	font-weight: 700;
}

body.capfat-front-page .capfat-works-featured__title {
	margin: 8px 0;
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 400;
	line-height: 0.9;
}

body.capfat-front-page .capfat-works-featured__info {
	color: rgba(255, 250, 243, 0.78);
	letter-spacing: 0.02em;
	text-transform: none;
}

body.capfat-front-page .capfat-works-controls {
	position: absolute;
	right: 27px;
	bottom: 30px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 15px;
}

body.capfat-front-page .capfat-works-control {
	width: 35px;
	height: 35px;
	padding: 0;
	border: 1px solid rgba(255, 250, 243, 0.7);
	border-radius: 0;
	background: transparent;
	color: #fffaf3;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
}

body.capfat-front-page .capfat-works-control:hover,
body.capfat-front-page .capfat-works-control:focus-visible {
	border-color: var(--capfat-orange);
	background: var(--capfat-orange);
}

body.capfat-front-page .capfat-works-count {
	margin: 0;
	font-family: var(--font-display);
	font-size: 23px;
	line-height: 1;
}

body.capfat-front-page .capfat-works-count span:first-child {
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-works-count i {
	font-style: normal;
	color: rgba(255, 250, 243, 0.65);
}

body.capfat-front-page .capfat-works-thumbnails {
	position: absolute;
	top: 177px;
	left: 1250px;
	width: 530px;
	height: 584px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(4, 1fr);
	gap: 9px;
}

body.capfat-front-page .capfat-work-thumb {
	position: relative;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 250, 243, 0.55);
	border-radius: 0;
	background: #171411;
	cursor: pointer;
	transition: border-color 180ms ease, transform 180ms ease;
}

body.capfat-front-page .capfat-work-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 250ms ease, filter 250ms ease;
}

body.capfat-front-page .capfat-work-thumb span {
	position: absolute;
	left: 10px;
	bottom: 8px;
	color: #fffaf3;
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1;
	text-shadow: 0 1px 7px #000;
}

body.capfat-front-page .capfat-work-thumb:hover,
body.capfat-front-page .capfat-work-thumb:focus-visible,
body.capfat-front-page .capfat-work-thumb.is-active {
	border: 3px solid var(--capfat-orange);
}

body.capfat-front-page .capfat-work-thumb:hover img,
body.capfat-front-page .capfat-work-thumb:focus-visible img,
body.capfat-front-page .capfat-work-thumb.is-active img {
	transform: scale(1.05);
	filter: contrast(1.08);
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-works-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-featured,
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-thumbnails,
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-filters {
	opacity: 0;
	transform: translateY(16px);
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-works-screen.is-active .capfat-works-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-screen.is-active .capfat-works-featured,
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-screen.is-active .capfat-works-thumbnails,
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-screen.is-active .capfat-works-filters {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 360ms ease, transform 360ms ease;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-works-screen.is-active .capfat-works-featured { transition-delay: 80ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-works-screen.is-active .capfat-works-thumbnails { transition-delay: 150ms; }

@media (prefers-reduced-motion: reduce) {
	html.capfat-horizontal-ready body.capfat-front-page .capfat-works-editorial,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-works-featured,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-works-thumbnails,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-works-filters {
		transform: none;
		transition: opacity 120ms ease !important;
	}
}

/* Pantalla 3B: proceso de encargo, en el mismo escenario 1920 x 900. */
body.capfat-front-page .capfat-process-screen {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #000;
}

body.capfat-front-page .capfat-process-viewport,
body.capfat-front-page .capfat-process-scaler {
	position: relative;
	background: #000;
}

body.capfat-front-page .capfat-process-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.capfat-front-page .capfat-process-scaler {
	flex: 0 0 auto;
	overflow: hidden;
}

body.capfat-front-page .capfat-process-stage {
	position: relative;
	width: 1920px;
	height: 900px;
	overflow: hidden;
	background-color: #000;
	background-image: url('../img/capfat_background_3B.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	backface-visibility: hidden;
	transform-origin: top left;
	will-change: transform;
	color: #171411;
}

body.capfat-front-page .capfat-process-editorial {
	position: absolute;
	top: 132px;
	left: 590px;
	width: 740px;
	display: flex;
	gap: 20px;
	align-items: flex-end;
	justify-content: center;
}

body.capfat-front-page .capfat-process-title-group {
	flex: 0 0 auto;
}

body.capfat-front-page .capfat-process-kicker {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-process-editorial h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 67px;
	font-weight: 400;
	line-height: 0.85;
	letter-spacing: 0;
}

body.capfat-front-page .capfat-process-editorial h2 span {
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-process-steps {
	position: absolute;
	top: 318px;
	left: 155px;
	width: 1610px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.capfat-front-page .capfat-process-step {
	min-width: 0;
}

body.capfat-front-page .capfat-process-step__image-wrap {
	position: relative;
	height: 260px;
	overflow: hidden;
	border: 1px solid rgba(23, 20, 17, 0.48);
	background: #e8dfd5;
}

body.capfat-front-page .capfat-process-step__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	border-bottom: 6px solid var(--capfat-orange);
	pointer-events: none;
}

body.capfat-front-page .capfat-process-step__image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.capfat-front-page .capfat-process-step__number {
	position: absolute;
	top: 14px;
	left: 16px;
	padding: 6px 10px 5px;
	background: #171411;
	color: #fffaf3;
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 0.8;
}

body.capfat-front-page .capfat-process-step h3 {
	margin: 18px 0 8px;
	font-family: var(--font-display);
	font-size: 35px;
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-process-step p {
	margin: 0;
	max-width: 330px;
	font-size: 15px;
	line-height: 1.4;
}

body.capfat-front-page .capfat-process-intro {
	width: 200px;
	height: 114px;
	margin: 0;
	display: flex;
	align-items: center;
	padding-left: 20px;
	border-left: 5px solid #171411;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #171411;
	text-align: left;
}


body.capfat-front-page .capfat-process-note {
	position: absolute;
	left: 520px;
	bottom: 122px;
	width: 820px;
	margin: 0;
	padding: 14px 0 0 38px;
	border-top: 3px solid var(--capfat-orange);
	background: rgba(244, 240, 232, 0.88);
	color: #171411;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
}

body.capfat-front-page .capfat-process-note::before {
	content: '\00d7';
	position: absolute;
	top: 9px;
	left: 0;
	color: #171411;
	font-size: 30px;
	font-weight: 700;
	line-height: 0.7;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-process-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-step,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-intro,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-note {
	opacity: 0;
	transform: translateY(16px);
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-step,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-intro,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-note {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 360ms ease, transform 360ms ease;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-step:nth-child(1) { transition-delay: 60ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-step:nth-child(2) { transition-delay: 110ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-step:nth-child(3) { transition-delay: 160ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-screen.is-active .capfat-process-step:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
	html.capfat-horizontal-ready body.capfat-front-page .capfat-process-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-step,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-intro,
html.capfat-horizontal-ready body.capfat-front-page .capfat-process-note {
		transform: none;
		transition: opacity 120ms ease !important;
	}
}

/* Pantalla 3C: proyectos especiales, escenario editorial 1920 x 900. */
body.capfat-front-page .capfat-special-screen {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #000;
}

body.capfat-front-page .capfat-special-viewport,
body.capfat-front-page .capfat-special-scaler {
	position: relative;
	background: #000;
}

body.capfat-front-page .capfat-special-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.capfat-front-page .capfat-special-scaler {
	flex: 0 0 auto;
	overflow: hidden;
}

body.capfat-front-page .capfat-special-stage {
	position: relative;
	width: 1920px;
	height: 900px;
	overflow: hidden;
	background-color: #000;
	background-image: url('../img/capfat_background_3C.jpg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	backface-visibility: hidden;
	transform-origin: top left;
	will-change: transform;
	color: #171411;
}

body.capfat-front-page .capfat-special-editorial {
	position: absolute;
	top: 132px;
	left: 430px;
	width: 1060px;
	text-align: center;
}

body.capfat-front-page .capfat-special-editorial > p:first-child {
	margin: 0 0 13px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-special-editorial h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 65px;
	font-weight: 400;
	line-height: 0.86;
	letter-spacing: 0;
}

body.capfat-front-page .capfat-special-editorial h2 span {
	color: var(--capfat-orange);
}

body.capfat-front-page .capfat-special-editorial div {
	width: 100%;
	height: 4px;
	margin-top: 22px;
	background: var(--capfat-orange);
}

body.capfat-front-page .capfat-special-editorial > p:last-child {
	margin: 14px 0 0;
	max-width: 690px;
	margin-right: auto;
	margin-left: auto;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.38;
}

body.capfat-front-page .capfat-special-projects {
	position: absolute;
	top: 370px;
	left: 155px;
	width: 1610px;
	height: 390px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
}

body.capfat-front-page .capfat-special-project {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 250, 243, 0.7);
	background: #171411;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

body.capfat-front-page .capfat-special-project > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 300ms ease, filter 300ms ease;
}

body.capfat-front-page .capfat-special-project__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 34px 38px 31px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 18%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.98) 100%);
	color: #fffaf3;
}

body.capfat-front-page .capfat-special-project__overlay h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.capfat-front-page .capfat-special-project__overlay p {
	max-width: 510px;
	margin: 11px 0 0;
	font-size: 16px;
	line-height: 1.35;
}

body.capfat-front-page .capfat-special-project__overlay a {
	display: inline-flex;
	gap: 18px;
	margin-top: 20px;
	padding: 9px 0 7px;
	border-bottom: 3px solid var(--capfat-orange);
	color: #fffaf3;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
}

body.capfat-front-page .capfat-special-project:hover > img,
body.capfat-front-page .capfat-special-project:focus-within > img {
	transform: scale(1.035);
	filter: contrast(1.06);
}

body.capfat-front-page .capfat-special-project__overlay a:hover,
body.capfat-front-page .capfat-special-project__overlay a:focus-visible {
	color: var(--capfat-orange);
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-special-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-special-project {
	opacity: 0;
	transform: translateY(16px);
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-special-screen.is-active .capfat-special-editorial,
html.capfat-horizontal-ready body.capfat-front-page .capfat-special-screen.is-active .capfat-special-project {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 360ms ease, transform 360ms ease;
}

html.capfat-horizontal-ready body.capfat-front-page .capfat-special-screen.is-active .capfat-special-project:nth-child(1) { transition-delay: 80ms; }
html.capfat-horizontal-ready body.capfat-front-page .capfat-special-screen.is-active .capfat-special-project:nth-child(2) { transition-delay: 150ms; }

@media (prefers-reduced-motion: reduce) {
	html.capfat-horizontal-ready body.capfat-front-page .capfat-special-editorial,
	html.capfat-horizontal-ready body.capfat-front-page .capfat-special-project {
		transform: none;
		transition: opacity 120ms ease !important;
	}
}

/* Lightbox de imágenes (assets/js/lightbox.js). */
html.capfat-lightbox-open,
html.capfat-lightbox-open body {
	overflow: hidden;
}

.capfat-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 64px 32px 40px;
	background: rgba(17, 17, 17, 0.94);
	outline: none;
}

.capfat-lightbox[hidden] {
	display: none;
}

.capfat-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	max-width: min(1400px, 100%);
	margin: 0;
}

.capfat-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100svh - 190px);
	border-bottom: 6px solid var(--capfat-orange);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	animation: capfat-lightbox-in 220ms ease;
}

.capfat-lightbox__caption {
	display: flex;
	gap: 18px;
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
	max-width: 900px;
	margin-top: 16px;
	color: rgba(255, 250, 243, 0.86);
	font-size: 15px;
	line-height: 1.4;
}

.capfat-lightbox__counter {
	flex: 0 0 auto;
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: 0.04em;
	color: var(--capfat-orange);
}

/* Controles minimalistas: iconos SVG de trazo fino, sin círculos. */
.capfat-lightbox__frame {
	position: relative;
	display: flex;
	min-height: 0;
}

.capfat-lightbox__nav,
.capfat-lightbox__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 250, 243, 0.78);
	cursor: pointer;
	transition: color 200ms ease, transform 200ms ease;
}

.capfat-lightbox__nav svg,
.capfat-lightbox__close svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.capfat-lightbox__nav[hidden] {
	display: none;
}

/* La X queda junto a la esquina superior derecha de la imagen. */
.capfat-lightbox__close {
	position: absolute;
	top: -6px;
	right: -52px;
	width: 44px;
	height: 44px;
}

.capfat-lightbox__close svg {
	width: 24px;
	height: 24px;
}

.capfat-lightbox__nav:hover,
.capfat-lightbox__nav:focus-visible,
.capfat-lightbox__close:hover,
.capfat-lightbox__close:focus-visible {
	color: var(--capfat-orange);
	outline: none;
}

.capfat-lightbox__nav--prev:hover,
.capfat-lightbox__nav--prev:focus-visible {
	transform: translateX(-4px);
}

.capfat-lightbox__nav--next:hover,
.capfat-lightbox__nav--next:focus-visible {
	transform: translateX(4px);
}

.capfat-lightbox__close:hover,
.capfat-lightbox__close:focus-visible {
	transform: rotate(90deg);
}

@keyframes capfat-lightbox-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.capfat-lightbox {
		gap: 0;
		padding: 64px 12px 96px;
	}

	.capfat-lightbox__nav {
		position: absolute;
		bottom: 24px;
	}

	.capfat-lightbox__nav--prev {
		left: calc(50% - 64px);
	}

	.capfat-lightbox__nav--next {
		right: calc(50% - 64px);
	}

	/* En móvil no hay margen lateral: la X va sobre la esquina de la imagen. */
	.capfat-lightbox__close {
		top: 4px;
		right: 4px;
		color: #fffaf3;
		filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
	}

	.capfat-lightbox__caption {
		font-size: 13px;
	}

	.capfat-lightbox__figure {
		touch-action: pan-y pinch-zoom;
	}
}

@media (prefers-reduced-motion: reduce) {
	.capfat-lightbox__image {
		animation: none;
	}
}

/* Paginación vertical líquida (assets/js/liquid-pagination.js):
   misma pastilla que la navegación horizontal, puntos en SVG. */
html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-liquid {
	gap: 0;
	padding: 16px 5px;
	background: rgba(255, 253, 248, 0.25);
	border: 1px solid rgba(232, 75, 0, 0.28);
	border-radius: 999px;
	box-shadow: 0 0 0 2px rgba(232, 75, 0, 0.18), 0 0 22px rgba(0, 0, 0, 0.62), 0 0 26px rgba(232, 75, 0, 0.12);
}

html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination__svg {
	position: absolute;
	top: 6px;
	left: 5px;
	overflow: visible;
	pointer-events: none;
}

html.capfat-horizontal-ready body.capfat-front-page .liquid-nav__track circle {
	fill: #aaa8a2;
}

html.capfat-horizontal-ready body.capfat-front-page .liquid-nav__liquid {
	fill: var(--capfat-orange);
}

html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-liquid .vertical-pagination__dot {
	position: relative;
	z-index: 1;
	width: 22px;
	height: 18px;
	border-radius: 999px;
}

html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-liquid .vertical-pagination__dot::after {
	display: none;
}

html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-liquid .vertical-pagination__dot:focus-visible {
	outline: 2px solid var(--capfat-orange);
	outline-offset: 1px;
}

/* Servicios: la barra queda junto al borde derecho de las imágenes
   (x 1812 y centro vertical 491 del lienzo 1920 x 900). */
html.capfat-horizontal-ready body.capfat-front-page .capfat-services-screen .vertical-pagination {
	top: calc(var(--capfat-stage-y, 0px) + 491px * var(--capfat-stage-scale, 1));
	left: calc(var(--capfat-stage-x, 0px) + 1812px * var(--capfat-stage-scale, 1));
	right: auto;
	transform: translate(-50%, -50%);
}

/* Barra horizontal líquida: mismos puntos SVG que la vertical. */
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dots.is-liquid {
	position: relative;
	gap: 0;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__svg {
	position: absolute;
	top: 0;
	left: -10px;
	overflow: visible;
	pointer-events: none;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dots.is-liquid .horizontal-controls__dot,
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dots.is-liquid .horizontal-controls__dot.is-active {
	position: relative;
	z-index: 1;
	width: 18px;
	height: 22px;
	border-radius: 999px;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dots.is-liquid .horizontal-controls__dot::after {
	display: none;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__dots.is-liquid .horizontal-controls__dot:focus-visible {
	outline: 2px solid var(--capfat-orange);
	outline-offset: 1px;
}

/* Las barras se pueden arrastrar con clic sostenido. */
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls,
html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-liquid {
	cursor: grab;
	touch-action: none;
	user-select: none;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls.is-scrubbing,
html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-scrubbing,
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls.is-scrubbing *,
html.capfat-horizontal-ready body.capfat-front-page .vertical-pagination.is-scrubbing * {
	cursor: grabbing;
}

/* Botón "volver a todos los servicios": a la izquierda de la barra
   horizontal y con su misma altura; solo visible dentro de un servicio. */
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__home {
	position: absolute;
	top: 50%;
	right: calc(100% + 10px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--capfat-orange);
	color: #fff;
	box-shadow: 0 0 0 2px rgba(232, 75, 0, 0.18), 0 0 22px rgba(0, 0, 0, 0.62);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 200ms ease, background-color 200ms ease;
	animation: capfat-home-in 260ms ease;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__home[hidden] {
	display: none;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__home svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__home:hover,
html.capfat-horizontal-ready body.capfat-front-page .horizontal-controls__home:focus-visible {
	background: var(--capfat-black);
	transform: translateY(calc(-50% - 2px));
	outline: none;
}

@keyframes capfat-home-in {
	from {
		opacity: 0;
		transform: translateY(-50%) scale(0.6);
	}
	to {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

/* Panel de audio líquido (assets/js/sound-toggle.js). Lienzo de 98 x 188:
   celda superior izquierda = altavoz, derecha = efectos; debajo, las barras. */
body.capfat-front-page .audio-panel {
	position: absolute;
	z-index: 1;
	width: 98px;
	height: 188px;
}

body.capfat-front-page .audio-panel[hidden] {
	display: none;
}

body.capfat-front-page .sound-toggle.is-open {
	z-index: 2;
	animation: none;
	opacity: 1;
}

body.capfat-front-page .site-header__navigation .sound-toggle.is-open {
	transform: none;
}

body.capfat-front-page .sound-toggle.is-open,
body.capfat-front-page .sound-toggle.is-open.is-playing {
	color: #fffaf3;
}

body.capfat-front-page .sound-toggle.is-open:hover,
body.capfat-front-page .sound-toggle.is-open:focus-visible {
	color: var(--capfat-orange);
}

body.capfat-front-page .sound-toggle.is-open .sound-toggle__tooltip {
	display: none;
}

body.capfat-front-page .audio-panel__liquid {
	position: absolute;
	inset: 0;
	overflow: visible;
	fill: #171411;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
	pointer-events: none;
}

/* Los controles aparecen cuando la forma líquida ya casi está formada. */
body.capfat-front-page .audio-panel__sfx,
body.capfat-front-page .audio-panel__slider {
	position: absolute;
	opacity: 0;
	transition: opacity 150ms ease, transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.capfat-front-page .audio-panel.is-ready .audio-panel__sfx,
body.capfat-front-page .audio-panel.is-ready .audio-panel__slider {
	opacity: 1;
}

/* Botón de efectos */
body.capfat-front-page .audio-panel__sfx {
	top: 8px;
	left: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fffaf3;
	cursor: pointer;
	transform: scale(0.5);
}

body.capfat-front-page .audio-panel.is-ready .audio-panel__sfx {
	transform: scale(1);
}

body.capfat-front-page .audio-panel__sfx svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.capfat-front-page .audio-panel__sfx-spray {
	stroke-width: 2.4;
	color: var(--capfat-orange);
	stroke: var(--capfat-orange);
}

body.capfat-front-page .audio-panel__sfx-slash {
	stroke: var(--capfat-orange);
	stroke-dasharray: 23;
	stroke-dashoffset: 23;
	transition: stroke-dashoffset 200ms ease;
}

body.capfat-front-page .audio-panel__sfx.is-muted {
	color: rgba(255, 250, 243, 0.45);
}

body.capfat-front-page .audio-panel__sfx.is-muted .audio-panel__sfx-spray {
	opacity: 0.25;
}

body.capfat-front-page .audio-panel__sfx.is-muted .audio-panel__sfx-slash {
	stroke-dashoffset: 0;
}

body.capfat-front-page .audio-panel__sfx:hover,
body.capfat-front-page .audio-panel__sfx:focus-visible {
	color: var(--capfat-orange);
	outline: none;
}

/* Barras de volumen: range horizontal girado 90° (fiable en todos los
   navegadores). Centro de cada columna: x 23 y x 75; centro vertical 110. */
body.capfat-front-page .audio-panel__slider {
	top: 98px;
	width: 104px;
	height: 24px;
	transform: rotate(-90deg);
}

body.capfat-front-page .audio-panel__slider--music {
	left: -29px;
}

body.capfat-front-page .audio-panel__slider--sfx {
	left: 23px;
}

body.capfat-front-page .audio-panel.is-sfx-muted .audio-panel__slider--sfx {
	opacity: 0.4;
}

body.capfat-front-page .audio-panel__slider input {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

body.capfat-front-page .audio-panel__slider input:focus {
	outline: none;
}

body.capfat-front-page .audio-panel__slider input::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--capfat-orange) var(--fill, 50%), rgba(255, 250, 243, 0.2) var(--fill, 50%));
}

body.capfat-front-page .audio-panel__slider input::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 3px solid var(--capfat-orange);
	border-radius: 50%;
	background: #fffaf3;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 150ms ease;
}

body.capfat-front-page .audio-panel__slider input:hover::-webkit-slider-thumb,
body.capfat-front-page .audio-panel__slider input:focus-visible::-webkit-slider-thumb {
	transform: scale(1.2);
}

body.capfat-front-page .audio-panel__slider input::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 250, 243, 0.2);
}

body.capfat-front-page .audio-panel__slider input::-moz-range-progress {
	height: 4px;
	border-radius: 999px;
	background: var(--capfat-orange);
}

body.capfat-front-page .audio-panel__slider input::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border: 3px solid var(--capfat-orange);
	border-radius: 50%;
	background: #fffaf3;
}

body.capfat-front-page .audio-panel__slider input:focus-visible::-moz-range-thumb {
	transform: scale(1.2);
}

/* Mancha y goterones de pintura de la caja negra (functions.php:
   capfat_render_paint_drip). Distintos en cada servicio. */
body.capfat-front-page .capfat-paint-drip {
	position: absolute;
	top: 0;
	left: 0;
	overflow: visible;
	pointer-events: none;
}

body.capfat-front-page .capfat-paint-drip__paint {
	fill: var(--capfat-orange);
}

body.capfat-front-page .capfat-paint-drip__shine {
	fill: rgba(255, 250, 243, 0.35);
}

/* Gota que cae hasta el botón (la mueve paint-drip.js en bucle). */
body.capfat-front-page .capfat-paint-drop {
	position: absolute;
	z-index: 2;
	width: 12px;
	height: 16px;
	opacity: 0;
	transform-origin: 0 0;
	will-change: transform, opacity;
	pointer-events: none;
}

body.capfat-front-page .capfat-paint-drop svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: var(--capfat-orange);
}

/* El botón se activa en cuanto el puntero entra en la caja. */
body.capfat-front-page .capfat-service-detail__note:hover .capfat-service-detail__note-cta,
body.capfat-front-page .capfat-service-detail__note:focus-within .capfat-service-detail__note-cta {
	background: var(--capfat-orange);
	color: #fff;
}

body.capfat-front-page .capfat-service-detail__note:hover .capfat-service-detail__note-cta svg,
body.capfat-front-page .capfat-service-detail__note:focus-within .capfat-service-detail__note-cta svg {
	transform: translateX(4px);
}

/* Destello al aterrizar la gota. */
body.capfat-front-page .capfat-service-detail__note-cta.is-splashed {
	animation: capfat-cta-splash 520ms ease-out;
}

@keyframes capfat-cta-splash {
	0% {
		box-shadow: 0 0 0 0 rgba(232, 75, 0, 0.75), 0 0 0 rgba(255, 140, 60, 0);
		filter: brightness(1.35);
	}
	100% {
		box-shadow: 0 0 0 14px rgba(232, 75, 0, 0), 0 0 28px rgba(255, 140, 60, 0);
		filter: brightness(1);
	}
}


/* Trabajos: capa estática de pinceladas negras y naranjas sobre las
   imágenes (assets/img/paint/). El zoom al pasar el ratón es solo de la
   imagen: las manchas no se mueven. */
body.capfat-front-page .capfat-works-featured__media::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: url('../img/paint/works-featured.svg') center / 100% 100% no-repeat;
	pointer-events: none;
}

body.capfat-front-page .capfat-works-featured__image {
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}

body.capfat-front-page .capfat-works-featured__media:hover .capfat-works-featured__image,
body.capfat-front-page .capfat-works-featured__media:focus-visible .capfat-works-featured__image {
	transform: scale(1.04);
	filter: contrast(1.05);
}

body.capfat-front-page .capfat-work-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: url('../img/paint/works-thumb-a.svg') center / 100% 100% no-repeat;
	pointer-events: none;
}

body.capfat-front-page .capfat-work-thumb:nth-child(3n + 2)::after {
	background-image: url('../img/paint/works-thumb-b.svg');
}

body.capfat-front-page .capfat-work-thumb:nth-child(3n)::after {
	background-image: url('../img/paint/works-thumb-c.svg');
}

/* Reflejadas en las miniaturas pares: ninguna se repite igual. */
body.capfat-front-page .capfat-work-thumb:nth-child(even)::after {
	transform: scaleX(-1);
}

body.capfat-front-page .capfat-work-thumb span {
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	body.capfat-front-page .capfat-works-featured__image {
		transition: none;
	}
}

/* Paginador de miniaturas de Trabajos (8 por página). */
body.capfat-front-page .capfat-works-pager {
	position: absolute;
	top: 772px;
	left: 1250px;
	width: 530px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	color: #171411;
}

body.capfat-front-page .capfat-works-pager[hidden] {
	display: none;
}

body.capfat-front-page .capfat-works-pager__label {
	min-width: 48px;
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-align: center;
}

body.capfat-front-page .capfat-works-pager__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(23, 20, 17, 0.35);
	background: transparent;
	color: #171411;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.capfat-front-page .capfat-works-pager__button svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.capfat-front-page .capfat-works-pager__button:hover,
body.capfat-front-page .capfat-works-pager__button:focus-visible {
	border-color: var(--capfat-orange);
	background: var(--capfat-orange);
	color: #fff;
	outline: none;
}

/* Barra de progreso del pase automático de la obra destacada. */
body.capfat-front-page .capfat-works-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	width: 100%;
	height: 3px;
	background: var(--capfat-orange);
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

body.capfat-front-page .capfat-works-progress.is-running {
	animation: capfat-works-progress linear forwards;
}

@keyframes capfat-works-progress {
	to {
		transform: scaleX(1);
	}
}

/* Capa del fundido cruzado de la obra destacada (works-showcase.js). */
body.capfat-front-page .capfat-works-featured__ghost {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

body.capfat-front-page .capfat-works-featured__ghost[hidden] {
	display: none;
}

/* Vista previa de las barras de navegación (assets/js/nav-preview.js). */
.capfat-nav-preview {
	position: fixed;
	z-index: 90;
	top: 0;
	left: 0;
	width: 216px;
	margin: 0;
	padding: 0;
	background: rgba(17, 15, 13, 0.97);
	border: 1px solid rgba(255, 250, 243, 0.12);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	filter: blur(10px);
	transition: transform 0.26s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.22s ease-in, filter 0.24s ease-in, visibility 0s linear 0.26s, left 0s, top 0s;
}

/* El borde de acento mira hacia el punto. */
.capfat-nav-preview[data-side="top"] {
	border-bottom: 3px solid var(--capfat-orange, #e84b00);
	transform: translateY(18px);
}

.capfat-nav-preview[data-side="left"] {
	border-right: 3px solid var(--capfat-orange, #e84b00);
	transform: translateX(18px);
}

.capfat-nav-preview.is-open {
	opacity: 1;
	visibility: visible;
	filter: blur(0);
	transform: none;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.22, 0.8, 0.28, 1), filter 0.46s cubic-bezier(0.22, 0.8, 0.28, 1), visibility 0s, left 0.18s cubic-bezier(0.22, 0.8, 0.28, 1), top 0.18s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.capfat-nav-preview__media {
	display: grid;
	grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
	gap: 2px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1c1915;
}

.capfat-nav-preview__media[hidden] {
	display: none;
}

.capfat-nav-preview__img {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	object-fit: cover;
}

.capfat-nav-preview__cap {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 9px 11px 10px;
}

.capfat-nav-preview__n {
	color: var(--capfat-orange, #e84b00);
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1;
}

.capfat-nav-preview__t {
	overflow: hidden;
	color: #fffaf3;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.capfat-nav-preview.is-swap .capfat-nav-preview__img,
.capfat-nav-preview.is-swap .capfat-nav-preview__cap {
	animation: capfat-nav-preview-swap 0.22s cubic-bezier(0.22, 0.8, 0.28, 1);
}

@keyframes capfat-nav-preview-swap {
	from {
		opacity: 0;
		filter: blur(8px);
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		filter: blur(0);
		transform: none;
	}
}

@media (hover: none), (max-width: 1023px) {
	.capfat-nav-preview {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.capfat-nav-preview,
	.capfat-nav-preview.is-open {
		filter: none;
		transition: none;
	}

	.capfat-nav-preview.is-swap .capfat-nav-preview__img,
	.capfat-nav-preview.is-swap .capfat-nav-preview__cap {
		animation: none;
	}
}

/* Pantalla "Cuéntame tu idea": composición corregida en escritorio.
   - Deja sitio a la cabecera (≈96 px): el título ya no queda bajo el menú.
   - Centra el conjunto en vertical (sin hueco abajo).
   - Cabecera de pantalla más estrecha y párrafo con fondo de papel sutil,
     legible aunque pase cerca del personaje del fondo. */
@media (min-width: 1024px) {
	body.capfat-front-page .cta-final,
	body.admin-bar.capfat-front-page .cta-final {
		padding-top: 0;
		align-items: stretch;
	}

	body.capfat-front-page .cta-final__inner,
	html.capfat-horizontal-ready body.capfat-front-page .cta-final__inner {
		padding: 112px 34px 76px;
		gap: 22px;
		justify-content: center;
	}

	body.capfat-front-page .cta-final__intro {
		max-width: 1080px;
		margin-inline: auto;
		column-gap: 52px;
		padding-block: 0;
	}

	body.capfat-front-page .cta-final__intro::before {
		height: 88px;
	}

	body.capfat-front-page .cta-final__lead {
		max-width: 31em;
		padding: 14px 18px;
		background: rgba(249, 246, 240, 0.86);
		border-radius: 2px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
		backdrop-filter: blur(2px);
		color: rgba(17, 17, 17, 0.82);
	}

	body.capfat-front-page .cta-final__grid {
		margin-top: 4px;
	}

	body.capfat-front-page .cta-final__info-bar {
		margin-top: 6px;
	}
}

/* Pantallas bajas: menos aire arriba, el resto ya tiene su ajuste compacto. */
@media (min-width: 1024px) and (max-height: 780px) {
	html:not(.capfat-framed) body.capfat-front-page .cta-final__inner,
html.capfat-horizontal-ready:not(.capfat-framed) body.capfat-front-page .cta-final__inner {
		padding-top: 100px;
		gap: 12px;
		justify-content: flex-start;
	}

	html:not(.capfat-framed) body.capfat-front-page .cta-final__lead {
		padding: 10px 14px;
	}
}

/* ==========================================================================
   Lienzo de la portada (assets/js/frame.js)
   Toda la experiencia se diseña a 1920 x 900 y se escala como un bloque
   ("contain"): mismo encuadre en cualquier monitor, sin cortes ni
   deformaciones. Por debajo de 1024 px no hay lienzo (modo apilado).
   ========================================================================== */

/* Sin lienzo, el contenedor no existe a efectos de maquetación. */
.capfat-frame {
	display: contents;
}

.capfat-backdrop {
	display: none;
}

/* Dentro del lienzo, las unidades de ventana son las de una pantalla de
   1920 x 900 (ver --capfat-vw/vh/svh en style.css). */
html.capfat-framed {
	--capfat-vw: 19.2px;
	--capfat-vh: 9px;
	--capfat-svh: 9px;
	background: #0d0b09;
}

html.capfat-framed,
html.capfat-framed body {
	height: 100%;
	overflow: hidden !important;
}

html.capfat-framed body {
	background: #0d0b09;
}

html.capfat-framed .capfat-frame {
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	display: block;
	width: 1920px;
	height: 900px;
	overflow: hidden;
	transform: translate(var(--capfat-frame-x, 0px), var(--capfat-frame-y, 0px)) scale(var(--capfat-frame-scale, 1));
	transform-origin: 0 0;
	box-shadow: 0 0 0 1px rgba(255, 250, 243, 0.05), 0 30px 90px rgba(0, 0, 0, 0.55);
}

/* Tapete: el fondo del bloque 1 ampliado a toda la ventana, desenfocado
   y oscurecido. Fijo para toda la web; solo se ve alrededor del lienzo. */
html.capfat-framed .capfat-backdrop {
	position: fixed;
	z-index: 0;
	inset: -80px;
	display: block;
	background: #1a1612 url('../img/capfat_background.jpg') center / cover no-repeat;
	filter: blur(32px) brightness(0.36) saturate(1.15);
	pointer-events: none;
}

/* La cabecera vive dentro del lienzo: la barra de administración de
   WordPress ya queda fuera, así que no hay que desplazarla. */
html.capfat-framed body.admin-bar .site-header,
html.capfat-framed body.admin-bar.capfat-front-page .site-header {
	top: 0 !important;
}
