/* ==========================================================================
   Rosabetty Muñoz — estilos del tema
   Valores tomados del diseño en Figma.
   ========================================================================== */

:root {
	--rb-green: #657b61;
	--rb-green-dark: #4e6150;
	--rb-cream: #f6f5f1;
	--rb-paper: #fbfaf7;
	--rb-ink: #2b2e33;
	--rb-muted: #5f6367;
	--rb-rule: #dddcd5;
	--rb-line-on-green: rgba(211, 225, 236, 0.5);
	--rb-cover-frame: #d3e1ec;

	--rb-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
	--rb-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

	--rb-container: 1152px;
	--rb-gutter: 24px;
	--rb-header-h: 71px;
	--rb-radius: 4px;

	--rb-section-y: clamp(56px, 8vw, 96px);
}

/* Base ------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--rb-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--rb-cream);
	color: var(--rb-ink);
	font-family: var(--rb-sans);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

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

:focus-visible {
	outline: 2px solid var(--rb-green);
	outline-offset: 3px;
}

.rb-header :focus-visible,
.rb-footer :focus-visible,
.rb-obra-details :focus-visible,
.rb-band :focus-visible {
	outline-color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rb-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--rb-ink);
	color: #fff;
	text-decoration: none;
	border-radius: var(--rb-radius);
}

.rb-skip:focus {
	top: 12px;
}

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

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

.rb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 45px;
	padding: 12px 28px;
	border: 1px solid var(--rb-green);
	border-radius: var(--rb-radius);
	background: var(--rb-green);
	color: #fff;
	font-family: var(--rb-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.rb-btn:hover {
	background: var(--rb-green-dark);
	border-color: var(--rb-green-dark);
}

.rb-btn--outline {
	background: transparent;
	color: var(--rb-green-dark);
}

.rb-btn--outline:hover {
	background: var(--rb-green);
	color: #fff;
}

.rb-btn--block {
	display: flex;
	width: 100%;
	margin-top: 40px;
}

/* Cabecera ----------------------------------------------------------------- */

.rb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(101, 123, 97, 0.96);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rb-line-on-green);
	color: #fff;
}

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

.rb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--rb-header-h);
	padding-block: 12px;
}

.rb-header__brand {
	font-family: var(--rb-serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.rb-header__menu {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: flex-end;
	gap: 24px;
}

.rb-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.rb-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rb-nav__list a {
	font-family: var(--rb-serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.016em;
	color: #fff;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.25s;
}

.rb-nav__list a:hover,
.rb-nav__list .current-menu-item > a,
.rb-nav__list .current-menu-ancestor > a,
.rb-nav__list .current_page_item > a {
	background-size: 100% 1px;
}

.rb-header__lang {
	display: flex;
	gap: 8px;
}

.rb-lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	min-height: 31px;
	padding: 6px 14px;
	border: 1px solid var(--rb-line-on-green);
	border-radius: var(--rb-radius);
	font-family: var(--rb-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s;
}

.rb-lang:hover {
	background: rgba(255, 255, 255, 0.12);
}

.rb-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

.rb-header__toggle .rb-icon-close {
	display: none;
}

.rb-header__toggle[aria-expanded="true"] .rb-icon-open {
	display: none;
}

.rb-header__toggle[aria-expanded="true"] .rb-icon-close {
	display: inline;
}


/* Submenús (escritorio) */
.rb-nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
}

.rb-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: var(--rb-radius);
	background: none;
	color: #fff;
	cursor: pointer;
}

.rb-sub-toggle svg {
	transition: transform 0.2s;
}

.is-open > .rb-sub-toggle svg {
	transform: rotate(180deg);
}

.rb-nav .sub-menu,
.rb-nav .children {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 901px) {
	.rb-nav .sub-menu,
	.rb-nav .children {
		position: absolute;
		top: 100%;
		left: 50%;
		z-index: 60;
		min-width: 230px;
		padding: 10px 0;
		transform: translateX(-50%);
		background: var(--rb-green);
		border: 1px solid var(--rb-line-on-green);
		border-radius: var(--rb-radius);
		box-shadow: 0 16px 32px -16px rgba(30, 36, 32, 0.45);
	}

	/* Puente invisible para que el submenú no se cierre al bajar el cursor */
	.rb-nav__list > li::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: 14px;
	}

	.rb-nav .sub-menu,
	.rb-nav .children {
		margin-top: 14px;
	}

	.rb-nav__list > li:hover > .sub-menu,
	.rb-nav__list > li:hover > .children,
	.rb-nav__list > li.is-open > .sub-menu,
	.rb-nav__list > li.is-open > .children {
		display: block;
	}

	.rb-nav__list > li:hover > .rb-sub-toggle svg {
		transform: rotate(180deg);
	}

	.rb-nav .sub-menu a,
	.rb-nav .children a {
		display: block;
		padding: 10px 22px;
		font-size: 18px;
		line-height: 1.25;
		white-space: nowrap;
		background-image: none;
	}

	.rb-nav .sub-menu a:hover,
	.rb-nav .children a:hover,
	.rb-nav .sub-menu .current-menu-item > a {
		background-color: rgba(255, 255, 255, 0.1);
	}
}

/* Pie ---------------------------------------------------------------------- */

.rb-footer {
	background: var(--rb-green);
	color: #fff;
	padding-block: 57px;
}

.rb-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--rb-line-on-green);
}

.rb-footer__name {
	font-family: var(--rb-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.rb-footer__desc {
	margin-top: 6px;
	font-size: 15px;
	opacity: 0.92;
}

.rb-footer__credits {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rb-footer__motto {
	margin-top: 33px;
	font-size: 15px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Patrón de líneas --------------------------------------------------------- */

.rb-pattern {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.rb-pattern--light {
	background-color: var(--rb-green);
	background-image: url("../img/lineas-claras.svg");
}

.rb-pattern--soft {
	background-color: var(--rb-cream);
	background-image: url("../img/lineas-suaves.svg");
}

/* Secciones genéricas ------------------------------------------------------ */

.rb-section {
	padding-block: var(--rb-section-y);
}

.rb-section--tight {
	padding-top: 56px;
}

.rb-section--flush-top {
	padding-top: 0;
}

.rb-section__title {
	margin-bottom: 40px;
	font-family: var(--rb-serif);
	font-size: clamp(32px, 4vw, 40px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--rb-green-dark);
}

.rb-band {
	padding-block: 40px;
}

.rb-rule {
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--rb-rule);
}

/* Texto largo -------------------------------------------------------------- */

.rb-prose {
	font-size: 15px;
	line-height: 1.8;
	max-width: 70ch;
}

.rb-prose > * + * {
	margin-top: 1.1em;
}

.rb-prose p,
.rb-prose ul,
.rb-prose ol {
	margin-bottom: 0;
}

.rb-prose a {
	color: var(--rb-green-dark);
	text-underline-offset: 3px;
}

.rb-prose h2,
.rb-prose h3 {
	margin-top: 1.6em;
	font-family: var(--rb-serif);
	font-weight: 600;
	line-height: 1.2;
}

.rb-prose h2 {
	font-size: 28px;
}

.rb-prose h3 {
	font-size: 22px;
}

.rb-prose blockquote {
	padding-left: 0;
	font-family: var(--rb-serif);
	font-size: 22px;
	font-style: italic;
	line-height: 1.5;
}

.rb-prose--small {
	font-size: 14px;
}

.rb-prose--narrow {
	max-width: 70ch;
}

.rb-prose--on-dark,
.rb-prose--on-dark a {
	color: var(--rb-cream);
}

/* Migas de pan ------------------------------------------------------------- */

.rb-crumbs-bar {
	padding-block: 32px 24px;
}

.rb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--rb-muted);
}

.rb-breadcrumbs li + li::before {
	content: ">";
	margin-right: 8px;
	color: var(--rb-muted);
}

.rb-breadcrumbs a {
	text-decoration: none;
}

.rb-breadcrumbs a:hover {
	color: var(--rb-ink);
	text-decoration: underline;
}

.rb-breadcrumbs [aria-current] {
	color: var(--rb-ink);
	font-weight: 600;
}

/* Encabezado de página ----------------------------------------------------- */

.rb-page-head {
	padding-top: clamp(56px, 8vw, 112px);
	padding-bottom: 40px;
}

.rb-page-head .rb-rule {
	margin-top: 40px;
}

.rb-page-head__title {
	font-family: var(--rb-serif);
	font-size: clamp(40px, 6vw, 56px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.rb-page-head__title--xl {
	font-size: clamp(44px, 7vw, 72px);
}

.rb-page-head__sub {
	margin-top: 12px;
	font-size: 15px;
	color: var(--rb-muted);
}

.rb-page-head__intro {
	max-width: 46ch;
	font-size: 17px;
	line-height: 1.5;
	color: var(--rb-muted);
}

.rb-page-head__split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
}

/* Archivo de obras: encabezado con patrón */
.rb-page-head--pattern {
	padding-top: 72px;
	padding-bottom: 72px;
	border-block: 1px solid var(--rb-rule);
}

.rb-page-head__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
}

.rb-page-head--pattern .rb-page-head__title {
	font-size: clamp(48px, 8vw, 88px);
	color: var(--rb-green-dark);
}

.rb-page-head--pattern .rb-page-head__intro {
	padding: 16px 20px;
	background: rgba(246, 245, 241, 0.9);
	color: var(--rb-ink);
}

/* Portada (home) ----------------------------------------------------------- */

.rb-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(847px, 92vh);
	overflow: hidden;
	background: #3d4440;
	color: #fff;
}

.rb-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rb-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 24, 22, 0.55) 0%, rgba(20, 24, 22, 0.15) 55%, rgba(20, 24, 22, 0) 100%);
}

.rb-hero__content {
	position: relative;
	padding-bottom: clamp(48px, 9vw, 120px);
}

.rb-hero__title {
	font-family: var(--rb-serif);
	font-size: clamp(52px, 9vw, 104px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.rb-hero__text {
	max-width: 320px;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.75;
}

/* Biografía resumida (home) */
.rb-bio-card {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 32px 40px;
	padding: 20px;
	background: var(--rb-cream);
}

.rb-bio-card__photo img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: grayscale(1);
}

.rb-bio-card__body {
	display: flex;
	flex-direction: column;
	padding-block: 16px 4px;
	padding-right: 16px;
}

.rb-bio-card__title {
	margin-bottom: 20px;
	font-family: var(--rb-serif);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.15;
}

.rb-bio-card__body .rb-prose {
	color: #4c5055;
}

.rb-bio-card__body .rb-btn--block {
	margin-top: auto;
}

.rb-bio-card__body .rb-prose + .rb-btn--block {
	margin-top: 32px;
}

/* Grilla de obras ---------------------------------------------------------- */

.rb-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
}

.rb-grid--catalog {
	row-gap: 56px;
}

.rb-card__link {
	display: block;
	text-decoration: none;
	color: var(--rb-ink);
}

.rb-card__cover {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #e7e6df;
}

.rb-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rb-card__link:hover .rb-card__cover img {
	transform: scale(1.025);
}

.rb-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 24px;
	background: var(--rb-green);
	color: var(--rb-cream);
	font-family: var(--rb-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
}

.rb-card__title {
	margin-top: 16px;
	font-family: var(--rb-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.22;
}

.rb-card__link:hover .rb-card__title {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.rb-card__year {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

/* Paginación */
.rb-pagination {
	margin-top: 64px;
}

.rb-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rb-pagination a,
.rb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--rb-rule);
	border-radius: var(--rb-radius);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.rb-pagination a:hover {
	border-color: var(--rb-green);
	color: var(--rb-green-dark);
}

.rb-pagination .current {
	background: var(--rb-green);
	border-color: var(--rb-green);
	color: #fff;
}

.rb-pagination .dots {
	border-color: transparent;
}

.rb-empty {
	font-size: 17px;
	color: var(--rb-muted);
}

/* Ficha de obra ------------------------------------------------------------ */

.rb-obra-hero {
	padding-block: 48px 72px;
}

.rb-obra-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 445px) minmax(0, 1fr);
	gap: 48px 64px;
	align-items: center;
}

.rb-obra-hero__cover {
	padding: 40px;
	background: var(--rb-cover-frame);
}

.rb-obra-hero__cover img,
.rb-obra-hero__cover .rb-card__placeholder {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	box-shadow: 0 18px 40px -18px rgba(43, 46, 51, 0.45);
}

.rb-obra-hero__info {
	padding: 24px 0;
	background: linear-gradient(rgba(246, 245, 241, 0.88), rgba(246, 245, 241, 0.88));
	box-shadow: 0 0 0 24px rgba(246, 245, 241, 0.88);
}

.rb-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px 12px;
	border-radius: 2px;
	background: var(--rb-green);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.rb-obra-hero__title {
	font-family: var(--rb-serif);
	font-size: clamp(36px, 4.5vw, 48px);
	font-weight: 600;
	line-height: 1.1;
}

.rb-obra-hero__author {
	margin-top: 6px;
	font-family: var(--rb-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--rb-muted);
}

.rb-meta {
	display: grid;
	gap: 6px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--rb-rule);
	font-size: 14px;
}

.rb-meta__row {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 16px;
}

.rb-meta dt {
	color: var(--rb-muted);
}

.rb-meta dd {
	font-weight: 600;
}

.rb-obra-hero__quote {
	margin: 28px 0 0;
	padding: 0;
	max-width: 56ch;
	font-family: var(--rb-serif);
	font-size: 18px;
	font-style: italic;
	line-height: 1.5;
	color: var(--rb-muted);
}

.rb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.rb-actions .rb-btn {
	min-width: 170px;
}

/* Sinopsis y detalles */
.rb-obra-details {
	padding-block: 72px 96px;
	background: var(--rb-green);
	color: var(--rb-cream);
}

.rb-obra-details__inner {
	display: grid;
	grid-template-columns: minmax(0, 692fr) minmax(0, 380fr);
	gap: 56px 80px;
}

.rb-obra-details__title {
	margin-bottom: 24px;
	font-family: var(--rb-serif);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
}

.rb-obra-details__main .rb-prose + .rb-obra-details__title {
	margin-top: 48px;
}

.rb-specs {
	border-top: 1px solid var(--rb-line-on-green);
	font-size: 15px;
}

.rb-specs__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	border-bottom: 1px solid var(--rb-line-on-green);
}

.rb-specs dd {
	font-weight: 500;
	text-align: right;
}

/* Biografía ---------------------------------------------------------------- */

.rb-bio {
	display: grid;
	grid-template-columns: minmax(0, 325px) minmax(0, 1fr);
	gap: 40px 64px;
	align-items: start;
	padding-top: 40px;
}

.rb-bio--no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.rb-bio__photo img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.rb-bio__photo figcaption {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rb-muted);
}

.rb-bio__text {
	max-width: none;
}

.rb-bio + .rb-btn--block {
	margin-top: 48px;
}

.rb-quote-card {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
	background: var(--rb-cream);
	text-align: center;
}

.rb-quote-card blockquote {
	margin: 0;
}

.rb-quote-card p {
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.5;
	color: #4c5055;
}

.rb-quote-card figcaption {
	margin-top: 32px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rb-muted);
}

.rb-quote-card figcaption::before {
	content: "";
	display: block;
	width: 24px;
	height: 1px;
	margin: 0 auto 16px;
	background: var(--rb-rule);
}

/* Reconocimientos ---------------------------------------------------------- */

.rb-prose.rb-awards-intro {
	max-width: none;
	padding-top: 40px;
}

.rb-awards {
	max-width: none;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.rb-awards__item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 32px;
	padding-block: 18px;
	border-bottom: 1px solid var(--rb-rule);
}

.rb-awards__year {
	font-family: var(--rb-serif);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--rb-green-dark);
}

.rb-awards__text {
	padding-top: 4px;
	font-size: 16px;
	line-height: 1.55;
}

/* Contacto ----------------------------------------------------------------- */

.rb-contact {
	display: grid;
	grid-template-columns: minmax(0, 610px) minmax(0, 1fr);
	gap: 48px 80px;
	padding-top: 40px;
}

.rb-label-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rb-muted);
}

.rb-form {
	display: grid;
	gap: 32px;
	margin-top: 32px;
}

.rb-form__row--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.rb-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
}

.rb-field input,
.rb-field textarea {
	display: block;
	width: 100%;
	padding: 11px 0;
	border: 0;
	border-bottom: 1px solid #b9bbb3;
	border-radius: 0;
	background: transparent;
	color: var(--rb-ink);
	font-family: var(--rb-sans);
	font-size: 16px;
	line-height: 1.45;
	transition: border-color 0.2s;
}

.rb-field textarea {
	min-height: 160px;
	padding: 12px;
	border: 1px solid #b9bbb3;
	resize: vertical;
}

.rb-field input::placeholder,
.rb-field textarea::placeholder {
	color: #8a8d8f;
}

.rb-field input:focus,
.rb-field textarea:focus {
	outline: none;
	border-color: var(--rb-green);
	box-shadow: 0 1px 0 0 var(--rb-green);
}

.rb-field textarea:focus {
	box-shadow: 0 0 0 1px var(--rb-green);
}

.rb-field [aria-invalid="true"] {
	border-color: #a3382b;
}

.rb-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}

.rb-form__note {
	font-size: 12px;
	color: var(--rb-muted);
}

.rb-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rb-notice {
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: var(--rb-radius);
	font-size: 14px;
}

.rb-notice--ok {
	background: #e3eadf;
	color: #2f4a2b;
}

.rb-notice--error {
	background: #f6e3df;
	color: #7e2a20;
}

.rb-contact__aside {
	padding-top: 48px;
}

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

@media (max-width: 1100px) {
	.rb-nav__list {
		gap: 24px;
	}

	.rb-header__brand {
		font-size: 30px;
	}

	.rb-obra-hero__inner {
		grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
		gap: 40px;
	}

	.rb-obra-hero__cover {
		padding: 28px;
	}

	.rb-obra-details__inner {
		gap: 56px;
	}
}

/* Tablet y móvil: menú desplegable */
@media (max-width: 900px) {
	:root {
		--rb-header-h: 64px;
	}

	.rb-header__brand {
		font-size: 28px;
	}

	.rb-header__toggle {
		display: inline-flex;
	}

	.rb-header__menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		height: calc(100vh - var(--rb-header-h));
		height: calc(100dvh - var(--rb-header-h));
		overflow-y: auto;
		padding: 8px var(--rb-gutter) 32px;
		background: var(--rb-green);
		border-bottom: 1px solid var(--rb-line-on-green);
	}

	.rb-header__menu.is-open {
		display: flex;
	}

	.rb-nav {
		display: block;
	}

	.rb-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.rb-nav__list li {
		border-bottom: 1px solid var(--rb-line-on-green);
	}

	.rb-nav__list a {
		display: block;
		padding-block: 16px;
		font-size: 28px;
		background: none;
	}

	.rb-nav__list .current-menu-item > a,
	.rb-nav__list .current_page_item > a {
		text-decoration: underline;
		text-underline-offset: 6px;
		text-decoration-thickness: 1px;
	}

	/* Submenús (móvil): acordeón */
	.rb-nav__list > li {
		flex-wrap: wrap;
		gap: 0;
	}

	.rb-nav__list > li > a {
		flex: 1;
	}

	.rb-sub-toggle {
		width: 44px;
		height: 44px;
		margin-right: -10px;
	}

	.rb-sub-toggle svg {
		width: 16px;
		height: 16px;
	}

	.rb-nav__list > li.is-open > .sub-menu,
	.rb-nav__list > li.is-open > .children {
		display: block;
		width: 100%;
		padding: 0 0 16px 16px;
	}

	.rb-nav .sub-menu li,
	.rb-nav .children li {
		border: 0;
	}

	.rb-nav .sub-menu a,
	.rb-nav .children a {
		padding-block: 10px;
		font-size: 21px;
	}

	.rb-header__lang {
		margin-top: 24px;
	}

	.rb-lang {
		min-height: 44px;
		min-width: 64px;
		font-size: 12px;
	}

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

	.rb-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rb-bio-card {
		grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
		gap: 28px;
	}

	.rb-obra-hero__inner,
	.rb-obra-details__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.rb-obra-hero__cover {
		max-width: 400px;
		width: 100%;
		margin-inline: auto;
	}

	.rb-obra-hero__info {
		box-shadow: none;
		padding: 0;
		background: none;
	}

	.rb-obra-hero {
		background-image: none;
	}

	.rb-bio {
		grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
		gap: 40px;
	}

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

	.rb-contact__aside {
		padding-top: 0;
	}
}

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

/* Móvil */
@media (max-width: 640px) {
	:root {
		--rb-gutter: 20px;
	}

	body {
		font-size: 16px;
	}

	.rb-header__brand {
		font-size: 26px;
	}

	.rb-hero {
		min-height: 78vh;
	}

	.rb-hero__shade {
		background: linear-gradient(0deg, rgba(20, 24, 22, 0.7) 0%, rgba(20, 24, 22, 0.25) 60%, rgba(20, 24, 22, 0.1) 100%);
	}

	.rb-band {
		padding-block: 24px;
	}

	.rb-bio-card {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px;
	}

	.rb-bio-card__body {
		padding: 0;
	}

	.rb-bio-card__title {
		font-size: 28px;
	}

	.rb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 16px;
	}

	.rb-card__title {
		font-size: 17px;
	}

	.rb-card__placeholder {
		font-size: 18px;
	}

	.rb-btn--block {
		margin-top: 32px;
	}

	.rb-crumbs-bar {
		padding-block: 20px 16px;
	}

	.rb-obra-hero {
		padding-block: 8px 48px;
	}

	.rb-obra-hero__cover {
		padding: 20px;
		max-width: 300px;
	}

	.rb-actions {
		flex-direction: column;
	}

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

	.rb-obra-details {
		padding-block: 56px 64px;
	}

	.rb-obra-details__title {
		font-size: 26px;
	}

	.rb-specs {
		font-size: 14px;
	}

	.rb-page-head--pattern {
		padding-block: 48px;
	}

	.rb-page-head--pattern .rb-page-head__intro {
		padding: 12px 14px;
	}

	.rb-bio {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 32px;
	}

	.rb-bio__photo {
		max-width: 320px;
	}

	.rb-awards__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		padding-block: 16px;
	}

	.rb-awards__year {
		font-size: 22px;
	}

	.rb-awards__text {
		padding-top: 0;
		font-size: 15px;
	}

	.rb-form__row--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.rb-form__footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.rb-form__footer .rb-btn {
		width: 100%;
	}

	.rb-footer {
		padding-block: 44px;
	}

	.rb-footer__top {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 28px;
	}

	.rb-footer__motto {
		margin-top: 24px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
