/* ==========================================================================
   MDA — Museo de Antropología · Design system v2 (dinámico + parallax)
   ========================================================================== */

:root {
	--stone-950: #17130f;
	--stone-900: #221c16;
	--stone-800: #3a2f25;
	--stone-100: #f4efe7;
	--stone-50:  #faf7f1;
	--sand:      #e7ddcc;
	--terracotta: #b4552d;
	--terracotta-dark: #8f3f1f;
	--ochre:     #c98a3a;
	--jade:      #3f6f5f;
	--ink:       #2a231c;
	--muted:     #6f6355;
	--line:      rgba(42, 35, 28, .12);
	--white:     #ffffff;

	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, sans-serif;

	--maxw: 1160px;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 18px 40px -22px rgba(23, 19, 15, .45);
	--shadow-lg: 0 40px 80px -30px rgba(23, 19, 15, .6);
	--ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--stone-50);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; color: var(--stone-950); font-weight: 600; margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 999; }

/* ------------------------------------------------------------- Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
	cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ticket { background: var(--terracotta); color: var(--white); box-shadow: 0 10px 24px -12px rgba(180,85,45,.8); }
.btn--ticket:hover { background: var(--terracotta-dark); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--white); }
.btn--on-dark { color: var(--stone-100); border-color: rgba(255,255,255,.35); }
.btn--on-dark:hover { background: rgba(255,255,255,.1); }

/* ------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(250,247,241,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(23,19,15,.4); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--stone-950); }
.brand__tag { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { font-weight: 500; font-size: .95rem; padding: .4rem 0; color: var(--ink); }
.nav__list a:hover { color: var(--terracotta); }
.nav__toggle { display: none; }
.site-header .btn--ticket { margin-left: .4rem; }

/* ------------------------------------------------------------- Hero slider */
.slider { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden; background: var(--stone-950); }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease); }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; transform: scale(1.08); will-change: transform; }
.slide--a .slide__bg { background-image: radial-gradient(1200px 600px at 75% 10%, rgba(201,138,58,.35), transparent 60%), linear-gradient(135deg, #2a1c12, #4a2e1c); }
.slide--b .slide__bg { background-image: radial-gradient(1000px 600px at 20% 20%, rgba(63,111,95,.4), transparent 60%), linear-gradient(135deg, #14201c, #2e3a30); }
.slide--c .slide__bg { background-image: radial-gradient(1000px 700px at 60% 80%, rgba(180,85,45,.4), transparent 55%), linear-gradient(135deg, #241a12, #3a2418); }
.slide__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,9,.75), rgba(15,12,9,.15) 70%); }
.slide--has-image .slide__scrim { background: linear-gradient(90deg, rgba(15,12,9,.85), rgba(15,12,9,.4) 75%); }
.slide__content { position: relative; color: var(--stone-100); max-width: 640px; }
.slide__eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--ochre); margin: 0 0 1rem; opacity: 0; transform: translateY(16px); }
.slide__title { color: var(--white); font-size: clamp(2.3rem, 5.5vw, 4rem); margin: 0 0 1.2rem; opacity: 0; transform: translateY(24px); }
.slide__text { color: var(--sand); font-size: 1.15rem; max-width: 48ch; margin: 0 0 2rem; opacity: 0; transform: translateY(24px); }
.slide__actions { display: flex; flex-wrap: wrap; gap: .8rem; opacity: 0; transform: translateY(24px); }
.slide.is-active .slide__eyebrow { animation: rise .7s var(--ease) .15s forwards; }
.slide.is-active .slide__title { animation: rise .7s var(--ease) .28s forwards; }
.slide.is-active .slide__text { animation: rise .7s var(--ease) .4s forwards; }
.slide.is-active .slide__actions { animation: rise .7s var(--ease) .52s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.slider__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; z-index: 5; }
.slider__dot { width: 34px; height: 5px; border-radius: 999px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, width .3s; }
.slider__dot.is-active { background: var(--ochre); width: 52px; }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(23,19,15,.35); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.slider__arrow:hover { background: rgba(180,85,45,.8); }
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }

/* ------------------------------------------------------------- Quickbar */
.quickbar { background: var(--stone-950); color: var(--stone-100); position: relative; z-index: 2; }
.quickbar__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.1rem 20px; }
.quickbar__item { display: flex; align-items: center; gap: .7rem; }
.quickbar__icon { font-size: 1.4rem; }
.quickbar__item strong { display: block; color: var(--white); font-size: .95rem; }
.quickbar__item span { color: var(--sand); font-size: .85rem; }
.quickbar__cta { margin-left: auto; }

/* ------------------------------------------------------------- Sections */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--muted { background: var(--stone-100); }
.section__intro { max-width: 720px; margin-bottom: 2.8rem; }
.section__intro--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--terracotta); font-weight: 700; margin: 0 0 .6rem; }
.section__eyebrow--light { color: var(--ochre); }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 1rem; }
.section__text { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about__media { position: relative; }
.about__frame { aspect-ratio: 4/5; border-radius: var(--radius); background-size: cover; background-position: center; background-image: linear-gradient(135deg, var(--sand), var(--stone-100)), radial-gradient(600px 400px at 30% 20%, rgba(201,138,58,.3), transparent); box-shadow: var(--shadow-lg); }
.about__badge { position: absolute; bottom: -22px; left: -22px; background: var(--terracotta); color: #fff; border-radius: var(--radius-sm); padding: 1rem 1.3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; box-shadow: var(--shadow); }
.about__badge span { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.stat { flex: 1 1 120px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terracotta); }
.stat__label { font-size: .82rem; color: var(--muted); }
.section--muted .stat, .section--tickets .stat { background: var(--white); }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Rooms / salas */
.room { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room__media { aspect-ratio: 16/10; position: relative; background: linear-gradient(135deg, var(--stone-800), var(--stone-900)); display: flex; align-items: flex-end; padding: 1rem 1.3rem; }
.room:nth-child(3n+2) .room__media { background: linear-gradient(135deg, #2e3a30, #14201c); }
.room:nth-child(3n) .room__media { background: linear-gradient(135deg, #4a2e1c, #2a1c12); }
.room__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1; }
.room__body { padding: 1.3rem 1.4rem 1.6rem; }
.room__title { font-size: 1.25rem; margin: 0 0 .5rem; }
.room__text { color: var(--muted); font-size: .95rem; margin: 0; }

/* Cards (blog) */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--sand), var(--stone-100)); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.3rem 1.4rem 1.6rem; }
.card__meta { display: flex; align-items: center; gap: .8rem; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }
.card__cat { background: var(--sand); color: var(--terracotta-dark); padding: .2rem .6rem; border-radius: 999px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.card__title { font-size: 1.25rem; margin: 0 0 .5rem; }
.card__text { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.card__more { color: var(--terracotta); font-weight: 600; font-size: .9rem; }
.card--post .card__link { display: block; color: inherit; }

/* Banner parallax (exposición temporal) */
.banner { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7rem) 0; color: var(--stone-100); }
.banner__bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; background-image: radial-gradient(900px 600px at 70% 30%, rgba(201,138,58,.35), transparent 60%), linear-gradient(135deg, #1a1310, #3a2418); will-change: transform; }
.banner__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,9,.8), rgba(15,12,9,.3)); }
.banner__content { position: relative; max-width: 620px; }
.banner__title { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 1rem; }
.banner__text { color: var(--sand); font-size: 1.1rem; margin: 0 0 1.8rem; }

/* Info grid (horarios + tarifas) */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.info-card__title { font-size: 1.4rem; margin: 0 0 1.2rem; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th { text-align: left; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.info-table td { text-align: right; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.info-table__price { font-family: var(--font-display); font-weight: 700; color: var(--terracotta); font-size: 1.05rem; }
.info-card__note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

/* Servicios */
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center; transition: transform .2s var(--ease), box-shadow .2s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon { font-size: 2.2rem; display: block; margin-bottom: .8rem; }
.service__title { font-size: 1.15rem; margin: 0 0 .5rem; }
.service__text { color: var(--muted); font-size: .92rem; margin: 0; }

/* Locate */
.locate { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.visita__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.visita__list li { padding-left: 1.2rem; position: relative; color: var(--muted); }
.visita__list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.visita__list strong { color: var(--ink); }
.locate__map { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(45deg, var(--stone-100) 0 16px, var(--sand) 16px 32px); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.locate__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.locate__map-notice { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.locate__map-notice span { font-size: 2rem; }

/* Ticket widget placeholder */
.section--tickets { background: linear-gradient(180deg, var(--stone-100), var(--stone-50)); }
.mda-ticket-widget { width: 100%; }
.mda-ticket-widget__notice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; min-height: 190px; padding: 2rem 1.5rem; border: 2px dashed var(--terracotta); border-radius: var(--radius); background: repeating-linear-gradient(45deg, rgba(180,85,45,.05) 0 12px, transparent 12px 24px); color: var(--terracotta-dark); }
.mda-ticket-widget__notice strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--terracotta-dark); }
.mda-ticket-widget__icon { font-size: 1.9rem; }
.mda-ticket-widget__hint { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark)); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4rem; }
.newsletter__text { color: rgba(255,255,255,.9); margin: 0; }
.newsletter__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__form input { border: 0; border-radius: 999px; padding: .8rem 1.3rem; min-width: 260px; font-size: .95rem; font-family: inherit; }
.newsletter__form .btn--ticket { background: var(--stone-950); }
.newsletter__form .btn--ticket:hover { background: #000; }

/* Page hero / blog */
.page-hero { background: var(--stone-950); color: var(--stone-100); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero__title { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .6rem; }
.page-hero__title span { color: var(--ochre); }
.page-hero__lead { color: var(--sand); max-width: 55ch; margin: 0; }

.layout-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; padding-block: 3.5rem; }
.layout-with-sidebar__aside .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; }
.widget__title { font-size: 1.1rem; margin: 0 0 1rem; }

/* Single */
.single__header { background: var(--stone-100); padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; }
.single__meta { display: flex; align-items: center; gap: 1rem; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.single__title { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 22ch; }
.single__cover { margin-top: -2rem; margin-bottom: 2.5rem; }
.single__cover img { border-radius: var(--radius); box-shadow: var(--shadow); }
.single__body { max-width: 720px; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-bottom: 1.4rem; }
.entry-content h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 2rem; }
.entry-content a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 4px solid var(--terracotta); padding-left: 1.2rem; color: var(--muted); font-family: var(--font-display); font-size: 1.3rem; }
.single__footer { max-width: 720px; padding-bottom: 3.5rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2.5rem; }
.tag-list a { background: var(--sand); padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; color: var(--terracotta-dark); }
.single__cta { background: var(--stone-100); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.single__cta h3 { margin: 0 0 1rem; }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination a, .pagination .current { display: inline-flex; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }

/* Footer */
.site-footer { background: var(--stone-950); color: var(--stone-100); padding-top: 3.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .brand__name { color: var(--white); }
.site-footer__desc { color: var(--sand); font-size: .92rem; }
.site-footer__title { color: var(--ochre); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .8rem; }
.site-footer__col p { color: var(--sand); font-size: .92rem; margin: 0 0 .6rem; }
.site-footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer__menu a { color: var(--sand); font-size: .92rem; }
.site-footer__menu a:hover { color: var(--white); }
.site-footer .mda-ticket-widget__notice { min-height: 120px; padding: 1.2rem; }
.site-footer .mda-ticket-widget__notice strong { font-size: 1.1rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; }
.site-footer__bottom p { margin: 0; font-size: .85rem; color: var(--sand); }

/* --------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1 !important; transform: none !important; }
	.slide__bg, .banner__bg, .about__frame { transform: none !important; }
	.slide.is-active * { animation: none !important; opacity: 1 !important; transform: none !important; }
	html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }

/* --------------------------------------------------- Responsive */
@media (max-width: 980px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.about, .locate { grid-template-columns: 1fr; }
	.about__media { max-width: 460px; }
	.info-grid { grid-template-columns: 1fr; }
	.layout-with-sidebar { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.nav__list { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--stone-50); border-bottom: 1px solid var(--line); padding: 1rem 20px; gap: .5rem; }
	.nav.is-open .nav__list { display: flex; }
	.nav__toggle { display: inline-flex; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
	.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
	.nav__toggle-bar::before { position: absolute; top: -7px; }
	.nav__toggle-bar::after { position: absolute; top: 7px; }
	.site-header .btn--ticket { display: none; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.slider__arrow { display: none; }
	.quickbar__cta { margin-left: 0; width: 100%; }
	.newsletter__form input { min-width: 0; flex: 1; }
}

/* ------------------------------------------------------------- Salas (CPT) */
/* La tarjeta .room ahora puede ser un enlace: quitamos estilos de <a>. */
a.room { display: block; color: inherit; text-decoration: none; }
a.room:hover .room__title { color: var(--terracotta); }

/* Botón centrado bajo la rejilla de salas. */
.section__cta { display: flex; justify-content: center; margin-top: 2.6rem; }

/* Cabecera de la ficha de sala. */
.page-hero--sala .section__eyebrow a { color: var(--ochre); }
.page-hero--sala .section__eyebrow a:hover { color: var(--white); }
.single-sala__num { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: rgba(255,255,255,.55); margin-bottom: .4rem; }

/* Navegación entre salas (anterior / siguiente). */
.single-sala__nav { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; margin: 2.5rem auto; }
.single-sala__nav-link { flex: 1 1 240px; display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .15s var(--ease), box-shadow .2s; }
.single-sala__nav-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.single-sala__nav-link--next { text-align: right; }
.single-sala__nav-dir { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terracotta); font-weight: 600; }
.single-sala__nav-title { font-family: var(--font-display); font-weight: 600; color: var(--stone-950); }

/* Imagen destacada en la tarjeta de sala. */
.room__media--image { background-size: cover; background-position: center; }
.room__media--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,15,.15) 40%, rgba(23,19,15,.78)); }
.room__media--image .room__num { position: relative; z-index: 1; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Las reglas nth-child del degradado usan `background` abreviado y reinician
   size/position; las restauramos cuando la tarjeta tiene imagen destacada. */
.room:nth-child(3n+2) .room__media--image,
.room:nth-child(3n) .room__media--image { background-size: cover; background-position: center; }

/* Portada de la ficha de sala: banner centrado al ancho del contenido. */
.single-sala .single__cover { max-width: 860px; margin: -3rem auto 2.5rem; }
.single-sala .single__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.single-sala .single__body { margin-inline: auto; }

/* ------------------------------------------------------------- Nota individual (blog) */
/* La nota ahora usa el hero oscuro de las salas (.page-hero). */
.page-hero--post .section__eyebrow a { color: var(--ochre); }
.page-hero--post .section__eyebrow a:hover { color: var(--white); }

/* Meta (fecha + tiempo de lectura) sobre el hero oscuro. */
.single__meta--hero { color: var(--sand); margin: 1.3rem 0 0; }
.single__meta--hero time,
.single__meta--hero .single__reading { color: var(--sand); font-size: .85rem; }
.single__meta--hero .single__reading { position: relative; padding-left: 1.05rem; }
.single__meta--hero .single__reading::before { content: "·"; position: absolute; left: 0; color: var(--ochre); }

/* Portada de la nota: banner centrado al ancho del contenido (como salas). */
.single-post .single__cover { max-width: 860px; margin: -3rem auto 2.5rem; }
.single-post .single__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.single-post .single__body { margin-inline: auto; }
