/* RH Media — theme del Portal RH */

@font-face {
	font-family: "Raleway";
	src: url("../fonts/raleway.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Raleway";
	src: url("../fonts/raleway-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--ink: #1c0a40;
	--ink-2: #2a1556;
	--magenta: #cc29a3;
	--magenta-dark: #a51f83;
	--pink: #ffbfff;
	--lime: #d9d457;
	--olive: #acb327;
	--bg: #f5f2f8;
	--soft: #ede8f5;
	--line: #e3dcec;
	--muted: #5e5475;
	--text-2: #4a4061;
	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body.rhm {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.rhm img {
	max-width: 100%;
	height: auto;
}

.rhm a {
	color: var(--magenta-dark);
}

.rhm :focus-visible {
	outline: 3px solid var(--magenta);
	outline-offset: 3px;
	border-radius: 6px;
}

.rhm-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

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

.rhm-skip {
	position: fixed;
	left: 16px;
	top: -80px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--lime);
	color: var(--ink) !important;
	font-weight: 700;
	text-decoration: none;
}

.rhm-skip:focus {
	top: 16px;
}

.rhm-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.rhm-main:focus {
	outline: none;
}

/* Tipografía */

.rhm-eyebrow {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}

.rhm-eyebrow--lime {
	color: var(--lime);
}

.rhm-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--magenta);
	vertical-align: 1px;
}

.rhm-accent {
	font-style: italic;
	font-weight: 300;
	color: var(--magenta);
}

.rhm-display {
	margin: 0;
	font-size: clamp(60px, 10.5vw, 164px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -0.045em;
}

.rhm-display--md {
	font-size: clamp(48px, 7vw, 104px);
}

.rhm-line {
	display: block;
}

.rhm-h2 {
	margin: 0;
	font-size: clamp(40px, 5.2vw, 76px);
	line-height: 0.98;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.rhm-h3 {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.rhm-h3 a {
	color: var(--ink) !important;
	text-decoration: none;
}

.rhm-lead {
	max-width: 34em;
	margin: 28px 0 0;
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.rhm-body {
	margin: 0;
	font-size: 18px;
	color: var(--text-2);
	max-width: 36em;
}

/* Botones */

.rhm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.rhm-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	background: var(--ink);
	color: #fff !important;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.rhm-btn .rhm-icon {
	transition: transform 0.25s var(--ease);
}

.rhm-btn:hover {
	transform: translateY(-2px);
}

.rhm-btn:hover .rhm-icon {
	transform: translateX(4px);
}

.rhm-btn--sm {
	min-height: 42px;
	padding: 0 20px;
	font-size: 15px;
}

.rhm-btn--lg {
	min-height: 58px;
	padding: 0 32px;
	font-size: 17px;
}

.rhm-btn--lime {
	background: var(--lime);
	color: var(--ink) !important;
}

.rhm-btn--lime:hover {
	background: #e6e27a;
}

.rhm-btn--magenta {
	background: var(--magenta);
}

.rhm-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
}

.rhm-btn--ghost-light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Encabezado */

.rhm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ink);
	transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.rhm-header--overlay {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
}

.rhm-header.is-scrolled {
	background: rgba(28, 10, 64, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}

.admin-bar .rhm-header {
	top: 32px;
}

.rhm-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 22px var(--gutter);
	transition: padding 0.35s var(--ease);
}

.rhm-header.is-scrolled .rhm-header__inner {
	padding-top: 14px;
	padding-bottom: 14px;
}

.rhm-header__logo {
	flex-shrink: 0;
}

.rhm-header__logo img {
	display: block;
	width: 176px;
	height: auto;
}

.rhm-nav {
	margin-left: auto;
}

.rhm-nav__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhm-nav__list a {
	position: relative;
	display: block;
	white-space: nowrap;
	padding: 10px 14px;
	color: rgba(255, 255, 255, 0.86) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.rhm-nav__list a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--lime);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s var(--ease);
}

.rhm-nav__list a:hover {
	color: #fff !important;
}

.rhm-nav__list a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.rhm-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rhm-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.rhm-burger__close {
	display: none;
}

.rhm-burger[aria-expanded="true"] .rhm-burger__open {
	display: none;
}

.rhm-burger[aria-expanded="true"] .rhm-burger__close {
	display: inline-flex;
}

.rhm-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 36px;
	padding: 120px var(--gutter) 48px;
	background: var(--ink);
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}

.rhm-overlay[hidden] {
	display: none;
}

.rhm-overlay.is-open {
	opacity: 1;
}

.rhm-overlay__art {
	position: absolute;
	right: -70px;
	bottom: -60px;
	width: 280px;
	opacity: 0.9;
	transform: rotate(-12deg);
}

.rhm-overlay__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhm-overlay__list a {
	display: block;
	padding: 8px 0;
	color: #fff !important;
	font-size: clamp(36px, 9vw, 56px);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.rhm-overlay__list a:hover {
	color: var(--pink) !important;
	font-style: italic;
	font-weight: 300;
}

.rhm-overlay .rhm-btn {
	align-self: flex-start;
}

body.rhm-menu-open {
	overflow: hidden;
}

/* Portada: bienvenida */

.rhm-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	padding: 170px 0 110px;
	background: var(--ink);
	color: #fff;
	overflow: hidden;
}

.rhm-hero__content {
	position: relative;
	z-index: 2;
}

.rhm-hero .rhm-accent {
	color: var(--pink);
}

.rhm-hero__art {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.rhm-float {
	position: absolute;
	transform: translate3d(var(--px, 0), var(--py, 0), 0);
	transition: transform 0.6s var(--ease);
}

.rhm-float--a {
	right: 7%;
	top: 14%;
	width: clamp(170px, 20vw, 300px);
	animation: rhm-bob 9s ease-in-out infinite;
}

.rhm-float--b {
	right: -60px;
	top: 48%;
	width: clamp(150px, 17vw, 260px);
	animation: rhm-bob 11s ease-in-out -3s infinite;
}

.rhm-float--c {
	right: 26%;
	bottom: -70px;
	width: clamp(170px, 19vw, 280px);
	animation: rhm-bob 10s ease-in-out -5s infinite;
}

.rhm-float--d {
	right: 34%;
	top: 16%;
	width: clamp(70px, 7vw, 110px);
	opacity: 0.9;
	animation: rhm-bob 8s ease-in-out -2s infinite;
}

@keyframes rhm-bob {
	0%,
	100% {
		translate: 0 0;
		rotate: 0deg;
	}

	50% {
		translate: 0 -18px;
		rotate: 4deg;
	}
}

.rhm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
}

.rhm-chips li {
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
}

.rhm-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 2;
	width: 28px;
	height: 44px;
	margin-left: -14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 16px;
}

.rhm-scroll-cue span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--lime);
	animation: rhm-cue 1.8s var(--ease) infinite;
}

@keyframes rhm-cue {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* Franja en movimiento */

.rhm-marquee {
	overflow: hidden;
	padding: 26px 0;
	background: var(--lime);
	color: var(--ink);
}

.rhm-marquee__track {
	display: flex;
	align-items: center;
	gap: 44px;
	width: max-content;
	white-space: nowrap;
	font-size: clamp(34px, 4.4vw, 60px);
	font-weight: 800;
	letter-spacing: -0.03em;
	animation: rhm-marquee 36s linear infinite;
}

.rhm-marquee .rhm-accent {
	color: var(--magenta-dark);
}

.rhm-marquee__star {
	color: var(--magenta);
	font-weight: 400;
}

@keyframes rhm-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Secciones */

.rhm-section {
	padding: clamp(80px, 11vw, 150px) 0;
}

.rhm-section--soft {
	background: var(--soft);
}

.rhm-split-head {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: end;
	gap: 48px;
	margin-bottom: 64px;
}

.rhm-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.rhm-card {
	display: flex;
	flex-direction: column;
	border-radius: 28px;
	background: #fff;
	border: 1px solid var(--line);
	overflow: hidden;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.rhm-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px -34px rgba(28, 10, 64, 0.45);
}

.rhm-card__media {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.rhm-card__media img {
	position: absolute;
	right: -30px;
	bottom: -40px;
	width: 78%;
	transition: transform 0.7s var(--ease);
}

.rhm-card:hover .rhm-card__media img {
	transform: scale(1.08) rotate(-6deg);
}

.rhm-card__n {
	position: absolute;
	left: 22px;
	top: 18px;
	z-index: 1;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.rhm-bg--ink {
	background: var(--ink);
	color: #fff;
}

.rhm-bg--pink {
	background: var(--pink);
	color: var(--ink);
}

.rhm-bg--lime {
	background: var(--lime);
	color: var(--ink);
}

.rhm-bg--magenta {
	background: var(--magenta);
	color: #fff;
}

.rhm-card__body {
	padding: 24px 24px 28px;
}

.rhm-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.rhm-card__title .rhm-icon {
	color: var(--magenta);
}

.rhm-card__body p {
	margin: 0;
	font-size: 16px;
	color: var(--text-2);
}

/* Frase que se ilumina */

.rhm-statement {
	padding: clamp(70px, 9vw, 130px) 0;
}

.rhm-statement .rhm-wrap {
	position: relative;
}

.rhm-statement__art {
	width: 90px;
	margin-bottom: 28px;
}

.rhm-statement__text {
	margin: 0;
	max-width: 22em;
	font-size: clamp(32px, 4.4vw, 62px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.rhm-js .rhm-statement__text span {
	color: #cfc4dd;
	transition: color 0.4s ease;
}

.rhm-js .rhm-statement__text span.is-lit {
	color: var(--ink);
}

/* Pasos */

.rhm-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 64px 0 0;
	padding: 0;
	list-style: none;
}

.rhm-step {
	padding-top: 22px;
	border-top: 2px solid var(--ink);
}

.rhm-step__n {
	display: block;
	font-size: clamp(72px, 8vw, 120px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.05em;
	color: var(--magenta);
}

.rhm-step__title {
	margin: 18px 0 8px;
	font-size: 24px;
	font-weight: 800;
}

.rhm-step p {
	margin: 0;
	color: var(--text-2);
}

/* Para quién */

.rhm-duo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 6vw, 96px);
}

.rhm-collage {
	position: relative;
	min-height: 560px;
	border-radius: 36px;
	background: var(--ink);
	overflow: hidden;
}

.rhm-collage img {
	position: absolute;
	transition: transform 0.8s var(--ease);
}

.rhm-collage:hover img {
	transform: rotate(-4deg) scale(1.04);
}

.rhm-collage__a {
	left: -40px;
	top: 36px;
	width: 56%;
}

.rhm-collage__b {
	right: -20px;
	top: -30px;
	width: 48%;
}

.rhm-collage__c {
	right: -50px;
	bottom: -60px;
	width: 50%;
}

.rhm-collage__tag {
	position: absolute;
	z-index: 2;
	left: 32px;
	bottom: 28px;
	max-width: 5.2em;
	margin: 0;
	line-height: 1;
	font-size: clamp(34px, 3.6vw, 52px);
	font-style: italic;
	font-weight: 300;
	color: var(--lime);
	letter-spacing: -0.02em;
}

.rhm-duo .rhm-body {
	margin-top: 22px;
}

.rhm-roles {
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.rhm-roles li {
	display: flex;
	gap: 18px;
	padding: 22px 0;
	border-top: 1px solid var(--line);
	color: var(--text-2);
}

.rhm-roles strong {
	display: block;
	margin-bottom: 4px;
	font-size: 20px;
	color: var(--ink);
}

.rhm-roles__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--pink);
	color: var(--ink);
}

/* Frase de la marca */

.rhm-quote {
	padding: clamp(80px, 10vw, 140px) 0;
	background: #fff;
	text-align: center;
}

.rhm-quote__mark {
	width: 110px;
	margin: 0 auto 26px;
	display: block;
}

.rhm-quote__text {
	max-width: 14em;
	margin: 0 auto;
	font-size: clamp(42px, 6.4vw, 96px);
	line-height: 1;
	font-style: italic;
	font-weight: 300;
	letter-spacing: -0.035em;
	color: var(--ink);
}

.rhm-quote__by {
	margin: 26px 0 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Cierre */

.rhm-cta {
	position: relative;
	padding: clamp(100px, 12vw, 170px) 0;
	background: var(--magenta);
	color: #fff;
	overflow: hidden;
	text-align: center;
}

.rhm-cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rhm-cta .rhm-eyebrow--lime {
	color: var(--ink);
}

.rhm-cta .rhm-accent {
	color: var(--pink);
}

.rhm-cta .rhm-btn--lime {
	background: var(--ink);
	color: #fff !important;
}

.rhm-cta__art {
	position: absolute;
	pointer-events: none;
}

.rhm-cta__art--a {
	left: -50px;
	top: -40px;
	width: clamp(160px, 20vw, 280px);
	transform: rotate(-12deg);
}

.rhm-cta__art--b {
	right: -40px;
	bottom: -60px;
	width: clamp(160px, 20vw, 280px);
	transform: rotate(10deg);
}

.rhm-cta__note {
	margin: 28px 0 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

.rhm-cta__note a {
	color: #fff !important;
	font-weight: 700;
}

/* Pie */

.rhm-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

.rhm-footer__marquee {
	overflow: hidden;
	padding: 48px 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rhm-footer__marquee .rhm-marquee__track {
	font-size: clamp(56px, 8vw, 120px);
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
	animation-duration: 48s;
}

.rhm-footer__marquee .rhm-accent {
	color: var(--pink);
	-webkit-text-stroke: 0;
}

.rhm-footer__marquee .rhm-marquee__star {
	color: var(--lime);
	-webkit-text-stroke: 0;
}

.rhm-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 48px;
}

.rhm-footer__brand img {
	width: 200px;
}

.rhm-footer__brand p {
	max-width: 26em;
	margin: 18px 0 0;
	font-size: 15px;
}

.rhm-footer__title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--lime);
}

.rhm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhm-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}

.rhm-footer__list a:hover {
	color: var(--pink) !important;
}

.rhm-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	padding-bottom: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
}

.rhm-footer__bottom p {
	margin: 0;
}

.rhm-footer__top {
	color: rgba(255, 255, 255, 0.78) !important;
	text-decoration: none;
	font-weight: 600;
}

/* Páginas internas */

.rhm-page-hero {
	position: relative;
	padding: clamp(90px, 10vw, 140px) 0 clamp(60px, 7vw, 100px);
	background: var(--ink);
	color: #fff;
	overflow: hidden;
}

.rhm-page-hero .rhm-accent {
	color: var(--pink);
}

.rhm-page-hero--full {
	display: flex;
	align-items: center;
	min-height: 78vh;
}

.rhm-page-hero__art {
	position: absolute;
	right: -40px;
	top: 20px;
	width: clamp(160px, 22vw, 320px);
	transform: rotate(-10deg);
	opacity: 0.95;
}

.rhm-page-hero .rhm-wrap {
	position: relative;
}

.rhm-prose {
	max-width: calc(760px + var(--gutter) * 2);
	font-size: 18px;
	color: var(--text-2);
}

.rhm-prose h2,
.rhm-prose h3 {
	color: var(--ink);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.rhm-prose h2 {
	margin: 1.6em 0 0.5em;
	font-size: 40px;
}

.rhm-prose h3 {
	margin: 1.4em 0 0.4em;
	font-size: 28px;
}

.rhm-prose blockquote {
	margin: 1.5em 0;
	padding-left: 24px;
	border-left: 4px solid var(--magenta);
	font-size: 24px;
	font-style: italic;
	font-weight: 300;
	color: var(--ink);
}

.rhm-prose .wp-block-button__link {
	border-radius: 999px;
	background: var(--magenta);
	color: #fff;
	font-weight: 700;
	padding: 14px 28px;
	text-decoration: none;
}

.rhm-list {
	display: grid;
	gap: 32px;
}

.rhm-list__item {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

/* Animaciones de entrada (solo si hay JavaScript) */

.rhm-js .rhm-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--rhm-delay, 0ms);
}

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

.rhm-js .rhm-hero .rhm-display .rhm-line {
	display: block;
	overflow: hidden;
}

/* Pantallas medianas y pequeñas */

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

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

	.rhm-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 960px) {
	.rhm-nav {
		display: none;
	}

	.rhm-header__actions {
		margin-left: auto;
	}

	.rhm-burger {
		display: inline-flex;
	}

	.rhm-split-head,
	.rhm-duo {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhm-split-head {
		gap: 20px;
	}

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

	.rhm-collage {
		min-height: 400px;
	}
}

@media (max-width: 782px) {
	.admin-bar .rhm-header {
		top: 46px;
	}
}

@media (max-width: 640px) {
	body.rhm {
		font-size: 16px;
	}

	.rhm-header__inner {
		gap: 12px;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.rhm-header__logo img {
		width: 140px;
	}

	.rhm-header__actions .rhm-btn .rhm-icon {
		display: none;
	}

	.rhm-hero {
		padding: 130px 0 96px;
	}

	.rhm-float--a {
		right: -30px;
		top: 90px;
		width: 150px;
	}

	.rhm-float--b,
	.rhm-float--d {
		display: none;
	}

	.rhm-float--c {
		right: -50px;
		bottom: -60px;
		width: 170px;
	}

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

	.rhm-card__media {
		height: 210px;
	}

	.rhm-actions .rhm-btn {
		width: 100%;
	}

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

	.rhm-footer__bottom {
		flex-direction: column;
	}
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

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

	.rhm-js .rhm-statement__text span {
		color: var(--ink);
	}
}

/* Portal dentro del theme */

.rhm-user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px 4px 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.25s var(--ease);
}

.rhm-user:hover {
	background: rgba(255, 255, 255, 0.16);
}

.rhm-user__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--magenta);
	font-size: 14px;
	font-weight: 800;
	overflow: hidden;
}

.rhm-user__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rhm-nav__list a[aria-current="page"] {
	color: #fff !important;
}

.rhm-nav__list a[aria-current="page"]::after {
	transform: scaleX(1);
}

.rhp-portal-hero {
	padding-top: clamp(80px, 9vw, 130px);
	padding-bottom: clamp(70px, 8vw, 110px);
}

.rhp-portal-hero .rhm-wrap {
	position: relative;
	z-index: 1;
}

/* Encabezado corto (Mensajes): deja lugar a la conversación. */
.rhp-portal-hero--compact {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(28px, 3.5vw, 44px);
}

.rhp-portal-hero--compact .rhm-display {
	font-size: clamp(34px, 4.4vw, 58px);
}

.rhp-portal-hero--compact .rhm-lead {
	margin-top: 10px;
}

.rhp-portal-hero--compact .rhp-portal-hero__a {
	top: 8%;
	width: clamp(90px, 9vw, 140px);
}

.rhp-portal-hero--compact .rhp-portal-hero__b,
.rhp-portal-hero--compact .rhp-portal-hero__c {
	display: none;
}

.rhp-portal-hero--compact + .rhp-portal-body {
	padding-top: clamp(28px, 3.5vw, 48px);
}

.rhp-portal-hero__art {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.rhp-portal-hero__a {
	right: 6%;
	top: 16%;
	width: clamp(150px, 17vw, 250px);
	animation: rhm-bob 9s ease-in-out infinite;
}

.rhp-portal-hero__b {
	right: -50px;
	bottom: -70px;
	width: clamp(150px, 16vw, 230px);
	animation: rhm-bob 11s ease-in-out -3s infinite;
}

.rhp-portal-hero__c {
	right: 26%;
	top: 22%;
	width: clamp(60px, 6vw, 90px);
	animation: rhm-bob 8s ease-in-out -2s infinite;
}

.rhp-marquee-mini {
	overflow: hidden;
	padding: 16px 0;
	background: var(--lime);
	color: var(--ink);
}

.rhp-marquee-mini .rhm-marquee__track {
	font-size: clamp(22px, 2.4vw, 32px);
	gap: 32px;
	animation-duration: 40s;
}

.rhp-marquee-mini .rhm-accent {
	color: var(--magenta-dark);
}

.rhp-portal-body {
	padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 9vw, 130px);
}

.rhp-portal-body .rhp-notices {
	margin-bottom: 28px;
}

.rhp-themed .rhp-card {
	border-radius: 32px;
	padding: clamp(24px, 3vw, 40px);
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.9s var(--ease);
}

.rhp-themed .rhp-card:hover {
	box-shadow: 0 30px 60px -38px rgba(28, 10, 64, 0.4);
}

.rhm-js .rhp-themed .rhp-portal-body .rhp-card {
	opacity: 0;
	transform: translateY(32px);
}

.rhm-js .rhp-themed .rhp-portal-body .rhp-card.is-in {
	opacity: 1;
	transform: none;
}

.rhp-themed .rhp-h2 {
	font-size: clamp(26px, 2.6vw, 36px);
}


.rhm-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--magenta);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	vertical-align: 2px;
}

.rhp-portal-hero .rhp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 15px;
	font-weight: 700;
}

.rhp-portal-hero .rhp-crumbs a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.rhp-portal-hero .rhp-crumbs a:hover {
	color: var(--lime);
}

.rhp-portal-hero .rhp-crumbs span {
	color: rgba(255, 255, 255, 0.35);
}

.rhp-portal-hero .rhp-display--long {
	max-width: 18ch;
	font-size: clamp(40px, 5.4vw, 76px);
}


/* Menú desplegable (Proyectos › Trabajos, Aprobaciones) */

.rhm-has-sub--drop {
	position: relative;
	display: flex;
	align-items: center;
}

.rhm-has-sub--drop > a {
	padding-right: 4px;
}

.rhm-has-sub--drop > a::after {
	right: 4px;
}

.rhm-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.86);
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.2s ease;
}

.rhm-sub-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.rhm-has-sub--drop:hover .rhm-sub-toggle,
.rhm-has-sub--drop.is-open .rhm-sub-toggle {
	transform: rotate(180deg);
}

.rhm-has-sub--drop .rhm-sub {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	min-width: 230px;
	margin: 0;
	padding: 10px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 50px -20px rgba(28, 10, 64, 0.45);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
}

.rhm-has-sub--drop .rhm-sub::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}

.rhm-has-sub--drop:hover .rhm-sub,
.rhm-has-sub--drop:focus-within .rhm-sub,
.rhm-has-sub--drop.is-open .rhm-sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.rhm-nav__list .rhm-sub a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--ink) !important;
	font-size: 15px;
	white-space: nowrap;
}

.rhm-nav__list .rhm-sub a::after {
	display: none;
}

.rhm-nav__list .rhm-sub a:hover {
	background: #f5f2f8;
	color: var(--ink) !important;
}

.rhm-nav__list .rhm-sub a[aria-current="page"] {
	background: #ffe3ff;
	color: var(--magenta-dark, #a51f83) !important;
}

.rhm-nav__list a.is-current::after {
	transform: scaleX(1);
}

.rhm-overlay__list .rhm-sub {
	margin: 0 0 10px;
	padding: 0 0 0 22px;
	border-left: 2px solid rgba(255, 255, 255, 0.2);
	list-style: none;
}

.rhm-overlay__list .rhm-sub a {
	padding: 4px 0;
	font-size: clamp(22px, 5.5vw, 30px);
	font-weight: 600;
	opacity: 0.88;
}


/* Buscar y campana de avisos */

.rhm-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rhm-icon-btn:hover,
.rhm-icon-btn[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.18);
}

.rhm-icon-btn .rhm-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rhm-bell {
	position: relative;
}

.rhm-bell__count {
	position: absolute;
	top: -3px;
	right: -3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--magenta);
	box-shadow: 0 0 0 2px var(--ink);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

.rhm-bell__count[hidden] {
	display: none;
}

.rhm-bell__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: -8px;
	z-index: 40;
	width: min(380px, calc(100vw - 32px));
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 60px -20px rgba(28, 10, 64, 0.5);
	color: var(--ink);
}

.rhm-bell__panel[hidden] {
	display: none;
}

.rhm-bell__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 10px;
	font-size: 16px;
}

.rhm-bell__all {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--magenta-dark);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.rhm-bell__all[hidden] {
	display: none;
}

.rhm-bell__list {
	max-height: min(420px, 60vh);
	margin: 0;
	padding: 0 8px;
	overflow-y: auto;
	list-style: none;
}

.rhm-bell__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 12px 12px 14px;
	border-radius: 14px;
	color: var(--ink) !important;
	font-size: 14px;
	text-decoration: none;
}

.rhm-bell__item:hover {
	background: #f5f2f8;
}

.rhm-bell__item.is-unread {
	background: #fdf2fb;
}

.rhm-bell__item.is-unread strong::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 8px 1px 0;
	border-radius: 50%;
	background: var(--magenta);
}

.rhm-bell__body {
	color: #4a4061;
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rhm-bell__ago {
	color: #5e5475;
	font-size: 12px;
}

.rhm-bell__empty {
	padding: 18px 12px;
	color: #5e5475;
	font-size: 14px;
}

.rhm-bell__foot {
	display: block;
	margin-top: 6px;
	padding: 14px 18px;
	border-top: 1px solid #ece6f2;
	color: var(--magenta-dark) !important;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

@media (max-width: 700px) {
	.rhm-header__actions > .rhm-icon-btn[href] {
		display: none;
	}

	.rhm-bell__panel {
		position: fixed;
		top: 76px;
		right: 16px;
		left: 16px;
		width: auto;
	}
}

/* Entrar, recuperar y restablecer dentro del theme */

.rhp-auth-hero {
	justify-content: center;
	padding: clamp(60px, 8vw, 110px) 0;
	min-height: calc(100vh - 86px);
}

.rhp-auth-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: clamp(32px, 6vw, 96px);
}

.rhp-auth-hero .rhm-lead {
	max-width: 24em;
}

.rhp-auth-card {
	padding: clamp(28px, 3.4vw, 48px);
	border-radius: 32px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}

.rhp-auth-card .rhp-display {
	font-size: clamp(38px, 3.6vw, 52px);
}

.rhp-auth-card .rhp-auth__logo-mobile {
	display: none;
}

@media (max-width: 960px) {
	.rhp-auth-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhp-auth-hero__text .rhm-display {
		font-size: clamp(44px, 12vw, 64px);
	}

	.rhm-user__name {
		display: none;
	}

	.rhm-header__actions .rhm-btn--ghost-light {
		display: none;
	}
}

@media (max-width: 640px) {
	.rhp-auth-hero__text .rhm-lead,
	.rhp-portal-hero__b,
	.rhp-portal-hero__c {
		display: none;
	}

	.rhp-portal-hero__a {
		right: -30px;
		top: 16px;
		width: 110px;
		opacity: 0.55;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rhm-js .rhp-themed .rhp-portal-body .rhp-card {
		opacity: 1;
		transform: none;
	}
}

/* Con muchas pantallas en el menú, en pantallas medianas se muestra solo la foto
   y el menú se aprieta un poco; por debajo de 1100 px pasa al botón de menú. */
@media (max-width: 1500px) {
	.rhm-user__name {
		display: none;
	}

	.rhm-header__inner {
		gap: 20px;
	}

	.rhm-header__logo img {
		width: 150px;
	}

	.rhm-nav__list {
		gap: 0;
	}

	.rhm-nav__list a {
		padding-right: 10px;
		padding-left: 10px;
	}

	.rhm-nav__list a::after {
		right: 10px;
		left: 10px;
	}
}

@media (max-width: 1100px) {
	.rhm-nav {
		display: none;
	}

	.rhm-header__actions {
		margin-left: auto;
	}

	.rhm-burger {
		display: inline-flex;
	}
}
