/* =========================================================
   Clínica Yunes · Centro de Diagnóstico por Imagen
   ========================================================= */

:root {
	/* Marca (tomada del logo) */
	--plum: #a33483;
	--plum-deep: #6f1f5a;
	--plum-soft: #e9a6d4;
	--indigo: #3b366e;

	/* Neutros cálidos */
	--bone: #f7f1ec;
	--bone-2: #efe5de;
	--blush: #f3e1ea;
	--ink: #211a31;
	--ink-soft: #5d536b;
	--night: #140d19;
	--night-2: #1e1426;
	--cream: #fbf6f3;
	--line: rgba(33, 26, 49, 0.14);
	--line-light: rgba(251, 246, 243, 0.2);

	--display: "Outfit", "Hanken Grotesk", system-ui, sans-serif;
	--sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

	--gutter: clamp(1rem, 4vw, 3.5rem);
	--maxw: 1360px;
	--header-h: 76px;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.1875rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

em {
	font-style: normal;
}

:focus-visible {
	outline: 2px solid var(--plum);
	outline-offset: 3px;
	border-radius: 4px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: fixed;
	z-index: 100;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.6rem 1rem;
	background: var(--cream);
	border-radius: 999px;
	transform: translateY(-150%);
	transition: transform 0.3s;
}

.skip:focus {
	transform: none;
}

.overlap {
	display: grid;
	grid-template-areas: "o";
}

.overlap > * {
	grid-area: o;
}

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

.section {
	position: relative;
	padding-block: clamp(3rem, 5vw, 4.5rem);
}

/* ---------- Tipografía común ---------- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--plum);
}

.eyebrow::before {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
}

.eyebrow--light {
	color: var(--plum-soft);
}

.h-display {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.4rem, 4.4vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.h-display em {
	color: var(--plum);
	font-weight: 500;
}

.lede {
	margin-top: 1.2rem;
	max-width: 36rem;
	font-size: clamp(1.2rem, 1.6vw, 1.45rem);
	line-height: 1.55;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.lede--light {
	color: rgba(251, 246, 243, 0.72);
}

/* ---------- Botones ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 1rem 1.6rem;
	border-radius: 999px;
	background: var(--plum);
	color: var(--cream);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s;
	box-shadow: 0 10px 30px -12px rgba(163, 52, 131, 0.6);
}

.btn:hover {
	background: var(--plum-deep);
	transform: translateY(-2px);
}

.btn--light {
	background: var(--cream);
	color: var(--ink);
	box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.6);
}

.btn--light:hover {
	background: #fff;
	color: var(--plum);
}

.btn svg {
	width: 1.25rem;
	transition: transform 0.35s var(--ease-out);
}

.btn:hover svg {
	transform: translateX(3px);
}

.btn .ico {
	width: 1.2rem;
	height: 1.2rem;
	color: #25a35a;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-weight: 600;
}

.link-arrow svg {
	width: 1.5rem;
	transition: transform 0.35s var(--ease-out);
}

.link-arrow:hover svg {
	transform: translateX(4px);
}

.link-arrow--light {
	color: var(--cream);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
	position: fixed;
	z-index: 50;
	inset: 0 0 auto;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 2rem;
	padding-inline: max(1.5rem, var(--gutter));
	color: var(--cream);
	transition: background 0.5s, color 0.5s, transform 0.5s var(--ease-out);
}

/* Barra flotante de vidrio: oscura sobre el hero, clara al bajar.
   El blur va en el pseudo para no volver al header contenedor del menú fijo. */
.site-header::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0.6rem max(0.5rem, calc(var(--gutter) - 1.25rem));
	border-radius: 16px;
	border: 1px solid rgba(251, 246, 243, 0.12);
	background: rgba(20, 13, 25, 0.42);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	backdrop-filter: saturate(1.4) blur(16px);
	transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.site-header.is-solid {
	color: var(--ink);
}

.site-header.is-solid::before {
	background: rgba(255, 255, 255, 0.86);
	border-color: rgba(33, 26, 49, 0.08);
	box-shadow: 0 12px 32px -16px rgba(33, 26, 49, 0.28);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-right: auto;
}

.brand__mark {
	width: 2.6rem;
	height: 2rem;
	color: currentColor;
	fill: currentColor;
	transition: color 0.5s;
}

.is-solid .brand__mark {
	color: var(--plum);
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand__top {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.75;
}

.brand__name {
	font-family: var(--display);
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.nav {
	display: flex;
	gap: clamp(1rem, 1.8vw, 2rem);
	font-size: 0.95rem;
	font-weight: 500;
}

.nav a {
	position: relative;
	padding-block: 0.4rem;
	opacity: 0.78;
	transition: opacity 0.3s;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease-out);
}

.nav a:hover,
.nav a[aria-current="true"] {
	opacity: 1;
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

.btn--header {
	padding: 0.65rem 1.15rem;
	font-size: 0.9rem;
	box-shadow: none;
}

.btn--header:hover {
	transform: none;
}

.menu-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	position: relative;
	border-radius: 50%;
	border: 1px solid currentColor;
}

.menu-toggle span:not(.sr-only) {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.05rem;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.4s var(--ease-out);
}

.menu-toggle span:nth-child(2) {
	transform: translate(-50%, -4px);
}

.menu-toggle span:nth-child(3) {
	transform: translate(-50%, 3px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translate(-50%, 0) rotate(-45deg);
}

@media (max-width: 1080px) {
	.menu-toggle {
		display: block;
	}

	.btn--header {
		display: none;
	}

	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto;
		flex-direction: column;
		gap: 0;
		padding: 1rem max(1.5rem, var(--gutter)) 2rem;
		background: var(--bone);
		color: var(--ink);
		font-family: var(--display);
		font-size: 1.9rem;
		font-weight: 400;
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.6s var(--ease-out);
		box-shadow: 0 30px 60px -30px rgba(20, 13, 25, 0.35);
	}

	.nav a {
		padding-block: 0.65rem;
		border-bottom: 1px solid var(--line);
		opacity: 1;
	}

	.nav a::after {
		display: none;
	}

	.nav.is-open {
		clip-path: inset(0 0 0 0);
	}

	.site-header.menu-open {
		background: var(--bone);
		color: var(--ink);
	}

	.site-header.menu-open::before {
		opacity: 0;
	}

	.menu-open .brand__mark {
		color: var(--plum);
	}
}

/* =========================================================
   HERO · carrusel con imágenes que crecen
   (basado en "CSS-Only Carousels" de Maxwell Barvian para Codrops)
   ========================================================= */

.hero {
	--col: 70; /* ancho de cada columna de snap, en cqw */
	position: relative;
	isolation: isolate;
	height: 100vh;
	height: 100svh;
	min-height: 620px;
	max-height: 1100px;
	overflow: clip;
	container-type: size;
	background: var(--night);
	color: var(--cream);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--pos, center);
	will-change: transform, clip-path;
	user-select: none;
	-webkit-user-drag: none;
}

.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(20, 13, 25, 0.88) 0%, rgba(20, 13, 25, 0.7) 32%, rgba(20, 13, 25, 0.25) 55%, rgba(20, 13, 25, 0) 72%),
		linear-gradient(0deg, rgba(20, 13, 25, 0.8) 0%, rgba(20, 13, 25, 0) 30%),
		linear-gradient(180deg, rgba(20, 13, 25, 0.45) 0%, rgba(20, 13, 25, 0) 25%);
	pointer-events: none;
}

.hero__scroller {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	cursor: grab;
	outline: none;
}

.hero__scroller::-webkit-scrollbar {
	display: none;
}

.hero__scroller.is-animating {
	scroll-snap-type: none;
}

.hero__scroller.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.hero__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(var(--col) * 1cqw);
	padding-right: calc((100 - var(--col)) * 1cqw);
	height: 100%;
	width: max-content;
}

.hero__snap {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.hero__ui {
	position: relative;
	height: 100%;
	display: grid;
	grid-template-rows: 1fr auto;
	gap: clamp(1.5rem, 4cqh, 2.5rem);
	padding: calc(var(--header-h) + 1.5rem) var(--gutter) clamp(1.25rem, 4cqh, 2.25rem);
	pointer-events: none;
}

.hero__ui a,
.hero__ui button {
	pointer-events: auto;
}

/* Un solo bloque de lectura: antetítulo, título, texto y acciones */
.hero__content {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
	width: min(38rem, 100%);
	text-shadow: 0 1px 14px rgba(20, 13, 25, 0.45);
}

.hero__copy {
	width: min(34rem, 100%);
	font-size: clamp(1.05rem, 1.3vw, 1.25rem);
	line-height: 1.55;
	color: rgba(251, 246, 243, 0.82);
}

.hero__copy p {
	transform: translateY(50%) skewY(1.5deg);
	opacity: 0;
}

.hero__controls {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.hero__indicator {
	width: min(48rem, 100%);
}

.hero__pages {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.hero__pages button {
	display: flex;
	gap: 0.6rem;
	padding-block: 0.4rem;
	text-align: left;
	opacity: 0.5;
}

.hero__pages span {
	font-variant-numeric: tabular-nums;
	color: var(--plum-soft);
}

.hero__bar {
	margin-top: 0.6rem;
	height: 2px;
	border-radius: 2px;
	background: rgba(251, 246, 243, 0.22);
}

.hero__bar div {
	height: 100%;
	border-radius: inherit;
	background: var(--cream);
	transform-origin: left;
	transform: scaleX(0.25);
}

.hero__captions {
	align-items: end;
}

.hero__eyebrow {
	display: block;
	overflow: clip;
	margin-bottom: 1.1rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--plum-soft);
}

.hero__eyebrow span {
	display: block;
	transform: translateY(105%);
	opacity: 0.5;
}

.hero__title {
	padding-bottom: 0.08em;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.6rem, 5.8cqw, 5.6rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
	transform: translateY(205%) skewY(6deg);
	opacity: 0;
}

.hero__title em {
	color: var(--plum-soft);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem;
	margin-top: 0.4rem;
	text-shadow: none;
}

.hero__arrows {
	display: flex;
	gap: 0.5rem;
}

.hero__arrows button {
	width: 2.9rem;
	height: 2.9rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(251, 246, 243, 0.4);
	background: rgba(20, 13, 25, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero__arrows button:first-child svg {
	transform: scaleX(-1);
}

.hero__arrows button:hover {
	background: var(--cream);
	color: var(--ink);
	border-color: var(--cream);
}

.hero__arrows svg {
	width: 1.1rem;
}

/* Sin JS: primera diapositiva estática */
.no-js .hero__img:not(:first-child),
.no-js .hero__copy p:not(:first-child),
.no-js .hero__caption:not(:first-child) {
	display: none;
}

.no-js .hero__copy p,
.no-js .hero__title,
.no-js .hero__eyebrow span {
	transform: none;
	opacity: 1;
}

@media (max-width: 760px) {
	.hero {
		--col: 80;
		min-height: 560px;
	}

	.hero__content {
		align-self: end;
		gap: 1.1rem;
	}

	.hero__copy {
		font-size: 1rem;
	}

	.hero__arrows {
		display: none;
	}

	.hero__pages {
		gap: 0.5rem;
	}

	/* En móvil solo los números; la etiqueta queda para lectores de pantalla */
	.hero__pages button {
		font-size: 0;
	}

	.hero__pages span {
		font-size: 0.9rem;
		font-weight: 600;
		color: inherit;
	}

	.hero__actions {
		justify-content: space-between;
	}

	.hero__shade {
		background:
			linear-gradient(0deg, rgba(20, 13, 25, 0.92) 0%, rgba(20, 13, 25, 0.7) 45%, rgba(20, 13, 25, 0) 72%),
			linear-gradient(180deg, rgba(20, 13, 25, 0.6) 0%, rgba(20, 13, 25, 0) 22%);
	}
}

/* =========================================================
   Decoración floral (como en los posteos de la clínica)
   ========================================================= */

.flower {
	position: absolute;
	pointer-events: none;
	color: var(--plum);
	opacity: 0.16;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.flower--manifesto {
	width: clamp(260px, 32vw, 460px);
	aspect-ratio: 1;
	right: -4%;
	top: 6%;
	transform: rotate(-12deg);
}

.flower--women {
	width: clamp(240px, 28vw, 420px);
	aspect-ratio: 1;
	left: -6%;
	bottom: -4%;
	transform: rotate(160deg);
}

/* =========================================================
   MANIFIESTO
   ========================================================= */

.manifesto {
	overflow: clip;
}

.manifesto__text {
	max-width: 19ch;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.6rem, 5.2vw, 5.4rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.manifesto__text em {
	color: var(--plum);
	font-weight: 500;
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	margin-top: clamp(2rem, 3.5vw, 3rem);
}

.fact {
	padding-top: 1.4rem;
	border-top: 1px solid var(--line);
}

.fact dt {
	font-family: var(--display);
	font-size: clamp(1.7rem, 2.5vw, 2.3rem);
	font-weight: 400;
	letter-spacing: -0.03em;
	color: var(--indigo);
}

.fact dt sup {
	font-size: 0.45em;
}

.fact dd {
	margin-top: 0.6rem;
	color: var(--ink-soft);
	max-width: 32ch;
}

@media (max-width: 760px) {
	.facts {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   ESTUDIOS
   ========================================================= */

.studies {
	background: var(--cream);
	border-top: 1px solid var(--line);
}

.studies__head {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1rem 4rem;
	align-items: end;
}

.studies__head .lede {
	margin-top: 0;
}

.studies__card {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: 0.6rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 28px;
	box-shadow: 0 30px 60px -40px rgba(33, 26, 49, 0.25);
}

/* ---------- Servicios (pestañas) ---------- */

.svc-tabs {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.9rem;
	background: var(--bone);
	border-radius: 22px;
}

.svc-tabs__ind {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--w, 0);
	height: var(--h, 0);
	transform: translate(var(--x, 0), var(--y, 0));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 14px 30px -18px rgba(33, 26, 49, 0.35);
	opacity: 0;
	pointer-events: none;
}

.svc-tabs.is-ready .svc-tabs__ind {
	opacity: 1;
	transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}

.svc-tab {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.2rem;
	border: 0;
	border-radius: 16px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s;
}

.svc-tab:hover:not([aria-selected="true"]) {
	background: rgba(255, 255, 255, 0.45);
}

.svc-tab__num {
	align-self: start;
	padding-top: 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--plum);
	font-variant-numeric: tabular-nums;
}

.svc-tab__name {
	display: block;
	font-family: var(--display);
	font-size: clamp(1.25rem, 1.8vw, 1.6rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink-soft);
	transition: color 0.35s;
}

.svc-tab:hover .svc-tab__name,
.svc-tab[aria-selected="true"] .svc-tab__name {
	color: var(--ink);
}

.svc-tab__count {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.82rem;
	color: var(--ink-soft);
}

.svc-tab__arrow {
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	background: var(--plum);
	color: var(--cream);
	opacity: 0;
	transform: translateX(-10px) scale(0.7);
	transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.svc-tab[aria-selected="true"] .svc-tab__arrow {
	opacity: 1;
	transform: none;
	transition-delay: 0.12s;
}

.svc-tab__arrow svg,
.study__toggle svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Estudios (acordeón) ---------- */

.svc-panels {
	padding: clamp(0.5rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.75rem);
}

.svc-panels.is-resizing {
	overflow: hidden;
}

.cat + .cat {
	margin-top: 2rem;
}

.cat__title {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding-bottom: 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--ink);
}

.cat__title span {
	color: var(--plum);
}

.js .cat + .cat {
	margin-top: 0;
}

.js .cat__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.cat.is-entering .study {
	animation: study-in 0.7s var(--ease-out) both;
	animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes study-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

.study {
	isolation: isolate;
	position: relative;
	border-bottom: 1px solid var(--line);
}

.study:last-child {
	border-bottom: 0;
}

.study::before {
	content: "";
	position: absolute;
	inset: 0.35rem -1rem;
	background: var(--blush);
	border-radius: 16px;
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 0.3s, transform 0.45s var(--ease-out);
	z-index: -1;
}

.study.is-open::before {
	opacity: 1;
	transform: none;
}

.study__heading {
	margin: 0;
	font: inherit;
}

.study__header {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1rem;
	width: 100%;
	padding: 1.15rem 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.study__num {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--blush);
	color: var(--plum);
	font-size: 0.82rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: background 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}

.study__header:hover .study__num {
	transform: scale(1.08);
}

.study.is-open .study__num {
	background: var(--plum);
	color: var(--cream);
}

.study__name {
	font-family: var(--display);
	font-size: clamp(1.12rem, 1.5vw, 1.3rem);
	font-weight: 400;
	line-height: 1.25;
	transition: color 0.3s, transform 0.45s var(--ease-out);
}

.study__header:hover .study__name {
	transform: translateX(4px);
}

.study__header:hover .study__name,
.study.is-open .study__name {
	color: var(--plum-deep);
}

.study__toggle {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-soft);
	transition: transform 0.55s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
}

.study__header:hover .study__toggle {
	border-color: var(--plum);
	color: var(--plum);
}

.study.is-open .study__toggle {
	transform: rotate(180deg);
	background: var(--plum);
	border-color: var(--plum);
	color: var(--cream);
}

/* El cierre es más rápido que la apertura */
.study__detail {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.study.is-open .study__detail {
	transition: grid-template-rows 0.6s var(--ease-out);
}

.study__detail > div {
	min-height: 0;
	overflow: hidden;
}

.study__desc {
	max-width: 56ch;
	padding: 0 3rem 1.35rem;
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.55;
	transition: opacity 0.45s 0.12s, transform 0.6s 0.08s var(--ease-out);
}

.study__tag {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--plum);
}

/* Con JS los estudios arrancan plegados; sin JS se ven completos */
.js .study:not(.is-open) .study__detail {
	grid-template-rows: 0fr;
}

.js .study:not(.is-open) .study__desc {
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.18s, transform 0.3s;
}

html:not(.js) .study__toggle,
html:not(.js) .svc-tabs {
	display: none;
}

html:not(.js) .studies__card {
	grid-template-columns: 1fr;
}

@media (max-width: 1000px) {
	.studies__head {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.studies__card {
		grid-template-columns: 1fr;
	}

	/* Las pestañas pasan a una fila deslizable */
	.svc-tabs {
		flex-direction: row;
		gap: 0.25rem;
		padding: 0.4rem;
		border-radius: 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.svc-tabs::-webkit-scrollbar {
		display: none;
	}

	.svc-tab {
		flex: 0 0 auto;
		grid-template-columns: auto auto;
		gap: 0.5rem;
		padding: 0.75rem 1rem;
		border-radius: 14px;
	}

	.svc-tab__num {
		align-self: center;
		padding-top: 0;
	}

	.svc-tab__name {
		font-size: 1.05rem;
		white-space: nowrap;
	}

	.svc-tabs__ind {
		border-radius: 14px;
	}

	.svc-tab__count,
	.svc-tab__arrow {
		display: none;
	}

	.svc-panels {
		padding: 0.5rem 1rem 0.25rem;
	}

	.study::before {
		inset: 0.35rem -0.6rem;
	}
}

@media (max-width: 520px) {
	.study__header {
		column-gap: 0.8rem;
	}

	.study__desc {
		padding: 0 0 1.2rem 2.8rem;
		font-size: 0.97rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svc-tabs.is-ready .svc-tabs__ind,
	.study__detail,
	.study.is-open .study__detail,
	.study__desc,
	.js .study:not(.is-open) .study__desc,
	.study__toggle {
		transition: none;
	}

	.cat.is-entering .study {
		animation: none;
	}
}

/* =========================================================
   LÍNEA DE TIEMPO
   ========================================================= */

.timeline {
	background:
		radial-gradient(70% 60% at 85% 0%, rgba(163, 52, 131, 0.35), transparent 70%),
		radial-gradient(50% 50% at 0% 100%, rgba(59, 54, 110, 0.45), transparent 70%),
		var(--night-2);
	color: var(--cream);
	overflow: clip;
}

.timeline .h-display em {
	color: var(--plum-soft);
}

.timeline__head {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 2rem 4rem;
	align-items: end;
}

.weeks {
	position: relative;
	isolation: isolate;
	margin-top: clamp(2rem, 3.5vw, 3rem);
}

.weeks__track {
	position: relative;
}

.weeks__trimesters {
	position: relative;
	height: 2rem;
	margin-bottom: 6rem;
}

.weeks__trimesters span {
	position: absolute;
	left: calc(var(--from) / 40 * 100%);
	width: calc((var(--to) - var(--from)) / 40 * 100%);
	padding-left: 0.75rem;
	border-left: 1px solid var(--line-light);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(251, 246, 243, 0.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.weeks__ruler {
	height: 3.25rem;
	background:
		repeating-linear-gradient(90deg, rgba(251, 246, 243, 0.35) 0 1px, transparent 1px calc(100% / 40)),
		linear-gradient(rgba(251, 246, 243, 0.35), rgba(251, 246, 243, 0.35)) bottom / 100% 1px no-repeat;
	-webkit-mask: linear-gradient(0deg, #000 0 35%, transparent 35%);
	mask: linear-gradient(0deg, #000 0 35%, transparent 35%);
}

.weeks__labels {
	position: relative;
	height: 1.75rem;
	margin-top: 0.4rem;
	font-size: 0.92rem;
	font-variant-numeric: tabular-nums;
	color: rgba(251, 246, 243, 0.6);
}

.weeks__labels span {
	position: absolute;
	left: calc(var(--w) / 40 * 100%);
	transform: translateX(-50%);
}

.weeks__labels span:last-child {
	transform: translateX(-100%);
}

.weeks__windows {
	position: absolute;
	inset: 2rem 0 auto;
	height: 6rem;
}

.win {
	position: absolute;
	left: calc(var(--from) / 40 * 100%);
	width: calc((var(--to) - var(--from)) / 40 * 100%);
	bottom: calc(0.6rem + var(--row) * 2.8rem);
	height: 2.4rem;
	border-radius: 999px;
	background: rgba(251, 246, 243, 0.1);
	border: 1px solid rgba(233, 166, 212, 0.45);
	color: var(--cream);
	font-size: 0.98rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	transition: background 0.35s, color 0.35s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.win::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	top: 100%;
	height: calc(0.6rem + var(--row) * 2.8rem + 3.25rem);
	background: linear-gradient(180deg, rgba(233, 166, 212, 0.05), rgba(233, 166, 212, 0.18));
	border-inline: 1px dashed rgba(233, 166, 212, 0.35);
	transition: background 0.35s;
}

.win[aria-selected="true"]::before {
	background: linear-gradient(180deg, rgba(163, 52, 131, 0.1), rgba(163, 52, 131, 0.55));
}

.win:hover {
	transform: translateY(-3px);
}

.win[aria-selected="true"] {
	background: var(--plum);
	border-color: var(--plum);
	box-shadow: 0 12px 30px -10px rgba(163, 52, 131, 0.9);
}

.panels {
	display: grid;
	margin-top: 2rem;
}

.panel {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	grid-template-rows: auto auto 1fr;
	column-gap: clamp(2rem, 6vw, 6rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: 28px;
	background: rgba(251, 246, 243, 0.06);
	border: 1px solid var(--line-light);
	animation: panel-in 0.7s var(--ease-out) both;
}

.panel[hidden] {
	display: none;
}

@keyframes panel-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.panel__weeks {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--plum-soft);
}

.panel h3 {
	margin-top: 0.75rem;
	font-family: var(--display);
	font-weight: 350;
	font-size: clamp(1.9rem, 2.8vw, 2.6rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.panel > p:not(.panel__weeks) {
	grid-column: 1;
	margin-top: 1rem;
	color: rgba(251, 246, 243, 0.8);
	max-width: 44ch;
}

.panel .ticks {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: center;
}

.ticks li {
	position: relative;
	padding: 0.7rem 0 0.7rem 2.2rem;
	border-bottom: 1px solid var(--line-light);
	color: rgba(251, 246, 243, 0.78);
}

.ticks li:last-child {
	border-bottom: 0;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35rem;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	border: 1.5px solid var(--plum-soft);
	background: radial-gradient(circle, var(--plum-soft) 0 30%, transparent 32%);
}

.ticks strong {
	color: var(--cream);
	font-weight: 600;
}

@media (max-width: 860px) {
	.timeline__head,
	.panel {
		grid-template-columns: 1fr;
	}

	.panel .ticks {
		grid-column: 1;
		grid-row: auto;
		margin-top: 1.5rem;
	}
}

@media (max-width: 640px) {
	.weeks__trimesters span {
		font-size: 0;
	}

	.weeks__trimesters span::before {
		font-size: 0.7rem;
		content: attr(data-short);
	}

	.weeks__labels span:nth-child(even) {
		display: none;
	}

	.win {
		font-size: 0.7rem;
		height: 2.1rem;
		padding: 0;
	}
}

/* =========================================================
   5D
   ========================================================= */

.five {
	background:
		radial-gradient(55% 55% at 72% 50%, rgba(214, 108, 74, 0.2), transparent 70%),
		var(--night);
	color: var(--cream);
	overflow: clip;
}

.five .h-display em {
	color: #f1a37f;
}

.five__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(3rem, 7vw, 7rem);
	align-items: center;
}

.five__copy .btn {
	margin-top: 2rem;
}

.five__media {
	position: relative;
	padding-bottom: 3rem;
}

.arch {
	position: relative;
	width: min(100%, 26rem, 52svh);
	aspect-ratio: 4 / 5;
	margin-left: auto;
	border-radius: 999px 999px 32px 32px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 60px 120px -40px rgba(241, 163, 127, 0.35);
}

.arch::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(251, 246, 243, 0.12), inset 0 -80px 80px -40px rgba(0, 0, 0, 0.8);
	pointer-events: none;
}

.arch video,
.orb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.orb {
	position: absolute;
	left: 0;
	bottom: 0;
	width: clamp(9rem, 16vw, 13rem);
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: #000;
	border: 6px solid var(--night);
	box-shadow: 0 0 0 1px rgba(251, 246, 243, 0.14);
}

.five__note {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 18rem;
	text-align: right;
	font-size: 0.88rem;
	color: rgba(251, 246, 243, 0.45);
}

@media (max-width: 860px) {
	.five__grid {
		grid-template-columns: 1fr;
	}

	.arch {
		margin-inline: auto 0;
		width: 82%;
	}
}

/* =========================================================
   SALUD DE LA MUJER
   ========================================================= */

.women {
	background: var(--blush);
	overflow: clip;
}

.women__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: center;
}

.women__photo {
	position: relative;
	border-radius: 32px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	max-height: 70svh;
}

.women__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 50%;
}

.women__photo figcaption {
	position: absolute;
	left: 1.25rem;
	bottom: 1.25rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: rgba(251, 246, 243, 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 0.92rem;
	font-weight: 600;
}

.checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1.5rem;
	margin-top: 1.75rem;
	counter-reset: c;
	border-top: 1px solid var(--line);
}

.checklist li {
	display: flex;
	align-items: baseline;
	gap: 0.8rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--display);
	font-size: clamp(1.25rem, 1.7vw, 1.55rem);
	line-height: 1.2;
	font-weight: 350;
	letter-spacing: -0.025em;
}

.checklist span {
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--plum);
	font-variant-numeric: tabular-nums;
}

.note {
	margin: 1.75rem 0;
	padding: 1.4rem 1.6rem;
	border-radius: 22px;
	background: var(--cream);
	box-shadow: 0 20px 50px -30px rgba(111, 31, 90, 0.35);
}

.note h3 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.3rem;
	color: var(--plum-deep);
	letter-spacing: -0.01em;
}

.note ul {
	margin-top: 0.7rem;
	display: grid;
	gap: 0.3rem;
}

.note li {
	position: relative;
	padding-left: 1.4rem;
	color: var(--ink-soft);
	font-size: 1.02rem;
}

.note li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--plum);
}

@media (max-width: 860px) {
	.women__grid {
		grid-template-columns: 1fr;
	}

	.women__photo {
		aspect-ratio: 5 / 4;
	}

	.checklist {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   EQUIPO
   ========================================================= */

.team__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: center;
}

.quote {
	margin-top: 1.75rem;
	padding-left: 1.75rem;
	border-left: 2px solid var(--plum);
}

.quote p {
	font-family: var(--display);
	font-size: clamp(1.35rem, 1.9vw, 1.7rem);
	line-height: 1.45;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--ink-soft);
}

.team__photo {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 4 / 5;
	max-height: 72svh;
	box-shadow: 0 40px 80px -45px rgba(33, 26, 49, 0.55);
}

.team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
	transition: transform 1.2s var(--ease-out);
}

.team__photo:hover img {
	transform: scale(1.03);
}

.team__photo figcaption {
	position: absolute;
	inset: auto 0 0;
	padding: 3.5rem 1.75rem 1.5rem;
	background: linear-gradient(0deg, rgba(20, 13, 25, 0.75), transparent);
	color: var(--cream);
	font-size: 1.1rem;
	font-weight: 500;
}

@media (max-width: 860px) {
	.team__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Profesionales ---------- */

.pros {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.pros__title {
	padding-bottom: 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--ink);
}

.pros__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.pro {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.1rem;
	align-items: start;
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
}

.pro__avatar {
	display: grid;
	place-items: center;
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 50%;
	background: var(--blush);
	color: var(--plum);
	font-family: var(--display);
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.pro__name {
	margin: 0;
	font-family: var(--display);
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.pro__role {
	margin-top: 0.2rem;
	font-size: 1rem;
	color: var(--plum-deep);
}

.pro__areas {
	margin-top: 0.6rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* =========================================================
   HISTORIA
   ========================================================= */

.history {
	background:
		radial-gradient(50% 70% at 0% 100%, rgba(163, 52, 131, 0.28), transparent 70%),
		var(--night-2);
	color: var(--cream);
	overflow: clip;
}

.history .eyebrow {
	color: var(--plum-soft);
}

.history .h-display em {
	color: var(--plum-soft);
}

.history__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: center;
}

.history__copy p:not(.eyebrow) {
	margin-top: 1.2rem;
	max-width: 40rem;
	color: rgba(251, 246, 243, 0.75);
	text-wrap: pretty;
}

.history__copy .h-display + p {
	margin-top: 1.75rem;
}

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

.milestones::before {
	content: "";
	position: absolute;
	top: 0.9rem;
	bottom: 0.9rem;
	left: 0.45rem;
	width: 1px;
	background: var(--line-light);
}

.milestone {
	position: relative;
	padding: 0 0 2.2rem 2.4rem;
}

.milestone:last-child {
	padding-bottom: 0;
}

.milestone::before {
	content: "";
	position: absolute;
	top: 0.55rem;
	left: 0;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: var(--night-2);
	border: 2px solid var(--plum-soft);
}

.milestone:last-child::before {
	background: var(--plum-soft);
}

.milestone__year {
	font-family: var(--display);
	font-size: clamp(2rem, 3vw, 2.6rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--plum-soft);
}

.milestone h3 {
	margin-top: 0.5rem;
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--cream);
}

.milestone p {
	margin-top: 0.3rem;
	max-width: 34ch;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(251, 246, 243, 0.65);
}

@media (max-width: 860px) {
	.history__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   TE CONTAMOS · grilla de tarjetas
   ========================================================= */

.learn {
	background: var(--bone-2);
	overflow: clip;
}

.learn__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.learn__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: 1rem;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.card--wide {
	grid-column: span 2;
}

/* Entrada escalonada; "backwards" no bloquea el hover al terminar */
.js .reveal.reveal--stagger {
	opacity: 1;
	transform: none;
}

.js .learn__grid:not(.is-in) .card {
	opacity: 0;
}

.learn__grid.is-in .card {
	animation: card-in 0.9s var(--ease-out) backwards;
	animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes card-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .learn__grid:not(.is-in) .card {
		opacity: 1;
	}

	.learn__grid.is-in .card {
		animation: none;
	}
}

@media (max-width: 1000px) {
	.learn__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 9 lugares en 2 columnas: la última completa la fila */
	.learn__grid > .card:last-child {
		grid-column: span 2;
	}
}

@media (max-width: 640px) {
	.learn__grid {
		grid-template-columns: 1fr;
	}

	.card--wide,
	.learn__grid > .card:last-child {
		grid-column: auto;
	}
}

.card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.35rem 1.4rem;
	border-radius: 22px;
	background: var(--cream);
	overflow: hidden;
	transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 40px -28px rgba(33, 26, 49, 0.35);
}

.card__kicker {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--plum);
}

.card h3 {
	padding-bottom: 0.4rem;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(1.35rem, 1.8vw, 1.6rem);
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.card p:not(.card__kicker) {
	font-size: 0.97rem;
	line-height: 1.55;
	color: var(--ink-soft);
}

.card--wide {
	justify-content: flex-end;
	min-height: 14rem;
}

.card--wide p:not(.card__kicker) {
	max-width: 52ch;
}

.card--plum {
	background: var(--plum);
	color: var(--cream);
}

.card--indigo {
	background: var(--indigo);
	color: var(--cream);
}

.card--plum .card__kicker,
.card--indigo .card__kicker {
	color: var(--plum-soft);
}

.card--plum p:not(.card__kicker),
.card--indigo p:not(.card__kicker) {
	color: rgba(251, 246, 243, 0.82);
}

.card--blush {
	background: var(--blush);
}

.card--photo {
	color: var(--cream);
	background-size: cover;
	background-position: center;
}

.card--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20, 13, 25, 0.35) 0%, rgba(20, 13, 25, 0.88) 60%);
}

.card--photo .card__kicker {
	color: var(--plum-soft);
}

.card--photo p:not(.card__kicker) {
	color: rgba(251, 246, 243, 0.85);
}

/* =========================================================
   CONTACTO
   ========================================================= */

.contact {
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(163, 52, 131, 0.45), transparent 70%),
		var(--indigo);
	color: var(--cream);
}

.contact .h-display em {
	color: var(--plum-soft);
}

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: stretch;
}

.phone {
	display: inline-flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 2.5rem;
}

.phone__num {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 5rem);
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: lining-nums;
	background: linear-gradient(90deg, var(--cream), var(--plum-soft));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.phone__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-weight: 600;
	color: var(--plum-soft);
}

.phone__cta svg {
	width: 1.5rem;
	transition: transform 0.35s var(--ease-out);
}

.phone:hover .phone__cta svg {
	transform: translateX(6px);
}

.info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 3.5rem;
}

.info div {
	padding-top: 1rem;
	border-top: 1px solid var(--line-light);
}

.info dt {
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--plum-soft);
}

.info dd {
	margin-top: 0.5rem;
	font-size: 1.1rem;
	color: rgba(251, 246, 243, 0.85);
}

.contact__map {
	min-height: 24rem;
	border-radius: 28px;
	overflow: hidden;
	background: var(--night-2);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.contact__map iframe {
	width: 100%;
	height: 100%;
	min-height: 24rem;
	border: 0;
	filter: grayscale(0.4) contrast(1.05);
}

@media (max-width: 960px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.info {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
	padding-block: 4rem 3rem;
	background: var(--night);
	color: rgba(251, 246, 243, 0.7);
	font-size: 1rem;
}

.footer__grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2.5rem 4rem;
	align-items: start;
}

.footer__brand {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	color: var(--cream);
}

.footer__brand svg {
	width: 4.4rem;
	height: 3.4rem;
	color: var(--plum);
	fill: currentColor;
}

.footer__brand span {
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	line-height: 1.35;
	text-transform: uppercase;
}

.footer__brand strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.6rem 2rem;
	font-weight: 500;
}

.footer__nav a:hover {
	color: var(--cream);
}

.footer__legal {
	grid-column: 1 / -1;
	padding-top: 2rem;
	border-top: 1px solid var(--line-light);
	font-size: 0.9rem;
	color: rgba(251, 246, 243, 0.45);
}

@media (max-width: 760px) {
	.footer__grid {
		grid-template-columns: 1fr;
	}

	.footer__nav {
		justify-content: flex-start;
	}
}

/* =========================================================
   WhatsApp flotante
   ========================================================= */

.wa-float {
	position: fixed;
	z-index: 40;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	width: 3.6rem;
	height: 3.6rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #25a35a;
	color: #fff;
	box-shadow: 0 16px 36px -12px rgba(16, 90, 48, 0.7);
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	pointer-events: none;
	transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.wa-float.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.wa-float svg {
	width: 1.75rem;
	height: 1.75rem;
}

/* =========================================================
   Aparición al hacer scroll
   ========================================================= */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
	transition-delay: var(--d, 0s);
}

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

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

	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.panel {
		animation: none;
	}
}
