/*
Theme Name: Hotel
Theme Slug: hotel
Version: 0.3.0
Text Domain: hotel
Requires at least: 6.6
Requires PHP: 8.1
*/

:root {
	--leaf: var(--wp--preset--color--leaf);
	--sage: var(--wp--preset--color--sage);
	--mango: var(--wp--preset--color--mango);
	--ivory: var(--wp--preset--color--ivory);
	--ink: var(--wp--preset--color--ink);
	--serif: var(--wp--preset--font-family--serif);
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--wide: 1240px;
	--radius: 14px;
	--shadow: 0 14px 40px -18px rgb(38 56 47 / .45);
}

body { margin: 0; -webkit-font-smoothing: antialiased; }
/* La maqueta usa el corte de texto de Literata, más robusto que el de titulares que el navegador elige en tamaños grandes. */
h1, h2, h3, .moment-card, .trust { font-variation-settings: "opsz" 36; }
img { display: block; max-width: 100%; height: auto; }
.wp-site-blocks > * { margin-block: 0; }
.home > * + * { margin-block-start: 0; }
:where(a, button):focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
/* Páginas en bloques (content/pages/*.html): los márgenes y el ancho los pone el tema, no WordPress.
   En el sitio inc/content-blocks.php quita el layout de los grupos internos; esta regla cubre el editor.
   Mismo peso que la regla de WordPress, que carga antes; cualquier regla del tema más abajo la reemplaza. */
.hotel-blocks :where(.is-layout-flow) > * { margin-block: 0; }
.hotel-blocks :where(.wp-block-group) { box-sizing: content-box; }

/* Botones */
.button {
	display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; border-radius: 999px;
	font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent;
	transition: background-color .2s, color .2s, transform .2s;
}
.button .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.button:hover .icon { transform: translateX(3px); }
.button--primary, .button--small { background: var(--mango); color: var(--ink); }
.button--primary:hover, .button--small:hover { background: #f7cc6b; }
.button--small { padding: .6rem 1.2rem; font-size: .85rem; }
.button--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button--outline:hover { background: var(--ink); color: var(--ivory); }
.button--outline-light { border-color: currentColor; color: #fff; }
.button--outline-light:hover { background: #fff; color: var(--leaf); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.eyebrow { margin: 0 0 .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.eyebrow--line::after { content: ""; display: inline-block; width: 2rem; height: 2px; margin-inline-start: .5rem; vertical-align: middle; background: var(--mango); }

/* Logo */
.brand { display: inline-flex; }
.brand img { display: block; width: auto; height: 3.1rem; }
.site-footer__brand .brand img { height: 4rem; }

/* Encabezado */
.site-header-wrap { position: relative; z-index: 20; padding: 1rem var(--gutter) 0; }
.site-header-wrap--overlay { position: absolute; inset: 0 0 auto; padding-top: clamp(1rem, 3vw, 1.5rem); }
.site-header { max-width: var(--wide); margin-inline: auto; }
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: .55rem .6rem .55rem 1.6rem; border-radius: 999px; background: rgb(255 248 238 / .97); box-shadow: var(--shadow);
}
.site-header__panel { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem; }
.site-nav a, .site-nav button {
	display: flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border: 0; background: none;
	font: inherit; font-size: .9rem; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 999px;
}
.site-nav a:hover, .site-nav button:hover { color: var(--leaf); background: rgb(184 201 168 / .3); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mango); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.site-nav button .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.site-nav button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-nav__group { position: relative; }
.site-nav__group ul { display: none; }
.site-nav__group button[aria-expanded="true"] + ul { display: block; }
/* Control segmentado: una píldora propia para que no se lea como otro enlace del menú. */
.lang-switch {
	display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border-radius: 999px;
	background: rgb(184 201 168 / .35); box-shadow: inset 0 0 0 1px rgb(38 56 47 / .12);
	font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.lang-switch a {
	display: block; min-width: 2.1rem; padding: .35rem .6rem; box-sizing: border-box; border-radius: 999px;
	text-align: center; color: rgb(38 56 47 / .75); text-decoration: none; transition: background-color .2s, color .2s;
}
.lang-switch a:hover { color: var(--ink); background: rgb(255 255 255 / .6); }
.lang-switch a[aria-current] { background: var(--leaf); color: #fff; box-shadow: 0 1px 3px rgb(38 56 47 / .3); pointer-events: none; }
.lang-switch abbr { text-decoration: none; }
.site-header__toggle { display: none; }

@media (min-width: 1081px) {
	.site-nav__group ul {
		position: absolute; top: calc(100% + .5rem); left: 0; min-width: 13rem; padding: .5rem;
		background: var(--ivory); border-radius: var(--radius); box-shadow: var(--shadow);
	}
}
@media (max-width: 1080px) {
	.site-header__bar { flex-wrap: wrap; padding-inline-start: 1.1rem; border-radius: 28px; }
	.site-header__toggle {
		display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%;
		background: var(--leaf); color: #fff; cursor: pointer;
	}
	.site-header__panel { display: none; flex: 1 0 100%; box-sizing: border-box; flex-direction: column; align-items: stretch; gap: 1rem; padding: .25rem .5rem 1rem; }
	/* Fondo sólido al abrir: con el 97 % de opacidad se colaba el título del hero. */
	.site-header__bar:has(.site-header__toggle[aria-expanded="true"]) { background: var(--ivory); }
	.site-header__toggle[aria-expanded="true"] + .site-header__panel { display: flex; }
	.site-nav > ul { flex-direction: column; align-items: stretch; }
	.site-nav a, .site-nav button { width: 100%; padding: .8rem .5rem; font-size: 1rem; border-radius: 8px; }
	.site-nav__group ul { padding-inline-start: 1rem; }
	.lang-switch { align-self: center; }
	.lang-switch a { min-width: 3rem; padding-block: .55rem; }
	.site-header__panel .button { justify-content: center; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; color: #fff; overflow: hidden; background: var(--ink); }
.carousel__track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
/* La imagen se muestra primero; el video aparece solo cuando ya está reproduciéndose. */
.hero__media, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .25s ease; }
.hero.has-video .hero__video { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(20 34 27 / .72) 0%, rgb(20 34 27 / .35) 45%, transparent 75%), linear-gradient(0deg, rgb(20 34 27 / .45), transparent 35%); }
.hero__inner {
	position: relative; z-index: 2; display: grid;
	max-width: var(--wide); min-height: inherit; margin-inline: auto; padding: 9rem var(--gutter) 4rem; box-sizing: border-box; pointer-events: none;
}
.hero__inner > * { pointer-events: auto; }
.hero__content { align-self: center; padding-top: 3rem; }
.hero__line { display: block; }
.hero h1 { margin: 0 0 1.25rem; color: #fff; font-weight: 600; line-height: .98; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.hero__lead { max-width: 22rem; margin: 0 0 1.75rem; font-size: var(--wp--preset--font-size--large); line-height: 1.4; }
.hero__pause { margin-top: 2.5rem; }
.hero:not(.has-video) .hero__pause { display: none; }
.hero__pause[aria-pressed="false"] .icon:last-of-type, .hero__pause[aria-pressed="true"] .icon:first-of-type { display: none; }

.carousel__controls { display: flex; align-items: center; gap: .9rem; margin-top: 2.5rem; font-size: .8rem; font-weight: 600; }
.carousel__button {
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1.5px solid currentColor;
	border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color .2s;
}
.carousel__button:hover { background: rgb(255 255 255 / .18); }
.carousel__progress { width: 4.5rem; height: 2px; background: rgb(255 255 255 / .35); }
.carousel__progress span { display: block; height: 100%; width: calc(var(--carousel-progress, 0) * 100%); background: currentColor; transition: width .3s; }

/* Bienvenida */
.welcome {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
	max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}
.welcome__text { position: relative; }
.welcome__title { margin: 0; }
.welcome__title::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 1.25rem; background: var(--mango); transform-origin: left; }
.leaf-deco { display: block; width: 5rem; margin: .75rem 0 0; fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; }
.welcome__photos { display: grid; grid-template-columns: .85fr 1.15fr; gap: .75rem; }
.welcome__photos img { width: 100%; height: clamp(240px, 24vw, 340px); object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }

/* Franja de servicios */
/* Kené shipibo-konibo simplificado: solo trazo, como la hoja. Servicios lleva una cenefa a lo largo de toda
   la franja; en las demás --kene-fade define qué orillas muestran el patrón. */
:is(.amenities, .gardens) { position: relative; isolation: isolate; }
:is(.amenities, .gardens)::before {
	--kene-fade: linear-gradient(#000, #000);
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #fff; opacity: .13;
	-webkit-mask-image: url("assets/images/kene-module.svg"), var(--kene-fade); mask-image: url("assets/images/kene-module.svg"), var(--kene-fade);
	-webkit-mask-size: 300px, 100%; mask-size: 300px, 100%;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
	-webkit-mask-composite: source-in; mask-composite: intersect;
}
/* Jardines: en tinta sobre salvia, solo a los costados del carrusel. */
.gardens::before { --kene-fade: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); background: var(--ink); opacity: .1; }
/* Servicios: cenefa horizontal a la altura exacta de la franja, como una tira de tela kené. */
.amenities::before {
	-webkit-mask-image: url("assets/images/kene-band.svg"), var(--kene-fade); mask-image: url("assets/images/kene-band.svg"), var(--kene-fade);
	-webkit-mask-size: auto 100%, 100%; mask-size: auto 100%, 100%;
	-webkit-mask-repeat: repeat-x, no-repeat; mask-repeat: repeat-x, no-repeat;
}
.amenities { background: var(--leaf); color: #fff; }
.amenities ul { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.amenities a { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.8rem .5rem; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 600; }
.amenities .icon { width: 3rem; height: 3rem; color: var(--mango); stroke-width: 1.5; transition: transform .25s; }
.amenities a:hover .icon { transform: translateY(-3px); }
/* Halo del mismo verde: tapa solo las líneas del kené que tocan el icono y el texto. */
.amenities .icon { filter: drop-shadow(0 0 2px var(--leaf)) drop-shadow(0 0 5px var(--leaf)) drop-shadow(0 0 9px var(--leaf)) drop-shadow(0 0 14px var(--leaf)); }
.amenities a span { text-shadow: 0 0 2px var(--leaf), 0 0 4px var(--leaf), 0 0 8px var(--leaf), 0 0 12px var(--leaf), 0 0 18px var(--leaf); }
.photo-band { overflow: hidden; }
.photo-band img { width: 100%; height: clamp(180px, 26vw, 360px); object-fit: cover; }
/* Parallax solo con CSS: la foto es 30% más alta que la franja y se desplaza mientras cruza el viewport. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.photo-band { height: clamp(180px, 26vw, 360px); }
		.photo-band img { height: 130%; animation: photo-band-parallax linear both; animation-timeline: view(); }
		@keyframes photo-band-parallax { from { transform: translateY(-23%); } to { transform: translateY(0); } }
	}
}

/* Secciones centradas */
.section { padding: clamp(3rem, 7vw, 5rem) var(--gutter); text-align: center; }
.section h2 { margin: 0; }
.section__lead { margin: .5rem 0 0; }
.moments__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1000px; margin: 2.5rem auto 2rem; padding: 0; list-style: none; }
.moment-card { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; }
.moment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.moment-card:hover img { transform: scale(1.05); }
.moment-card span { position: absolute; inset: auto 0 0; padding: 4.5rem 1rem 1.1rem; font: 600 1.6rem/1 var(--serif); background: linear-gradient(transparent, rgb(20 34 27 / .6) 40%, rgb(20 34 27 / .9)); }
.moment-card small { display: block; margin-bottom: .45rem; font: 600 .68rem/1 var(--wp--preset--font-family--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--mango); }
.moment-card--sauna-madera img { object-position: 15% center; }

.gardens { background: var(--sage); }
.gardens .carousel__controls { justify-content: center; margin: 1.25rem 0 1.5rem; color: var(--ink); }
.gardens .carousel__progress { background: rgb(38 56 47 / .25); }
.gardens .carousel__button:hover { background: rgb(255 255 255 / .4); }

.coverflow { gap: 0; margin: 2rem auto 0; max-width: 1100px; padding-block: 1rem; }
.coverflow::before, .coverflow::after { content: ""; flex: 0 0 calc(50% - min(25vw, 260px)); }
.coverflow__slide {
	flex: 0 0 min(50vw, 520px); margin: 0 -2.5rem; scroll-snap-align: center; cursor: pointer;
	transform: scale(.72); opacity: .75; transition: transform .45s, opacity .45s; z-index: 1;
}
.coverflow__slide.is-active { transform: none; opacity: 1; z-index: 2; cursor: default; }
.coverflow__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 3px solid #fff; border-radius: 10px; box-shadow: var(--shadow); }

.rooms { background: var(--leaf); color: #fff; }
.rooms h2 { color: #fff; }
.rooms__stage { position: relative; max-width: 1100px; margin: 0 auto 1.5rem; }
.coverflow--rooms figcaption { margin-top: .9rem; font-weight: 600; opacity: 0; transition: opacity .3s; }
.coverflow--rooms .is-active figcaption { opacity: 1; }
.coverflow--rooms figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--mango); text-underline-offset: .3em; }
.rooms__stage .carousel__button { position: absolute; top: 42%; z-index: 3; background: rgb(38 56 47 / .55); border-color: #fff; color: #fff; }
.carousel__button--prev { left: max(.5rem, calc(50% - min(25vw, 260px) - 1.25rem)); }
.carousel__button--next { right: max(.5rem, calc(50% - min(25vw, 260px) - 1.25rem)); }

/* Confianza */
.reviews { --card: min(24rem, 82vw); background: var(--ivory); }
.reviews__track { gap: 1.25rem; margin: 2rem calc(-1 * var(--gutter)) 0; padding-block: .5rem 2.5rem; }
.reviews__track::before, .reviews__track::after { content: ""; flex: 0 0 calc(50% - var(--card) / 2 - 1.25rem); }
.review { box-sizing: border-box; display: flex; flex-direction: column; flex: 0 0 var(--card); margin: 0; padding: 1.75rem; scroll-snap-align: center; text-align: left; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: .55; transition: opacity .3s; cursor: pointer; }
.review.is-active { opacity: 1; cursor: default; }
.review__topic { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--leaf); }
.review__stars { display: flex; margin: .6rem 0 0; color: var(--mango); }
.review__stars .icon { width: 1.1rem; height: 1.1rem; }
.review blockquote { flex: 1; margin: 1rem 0 1.5rem; font: 400 1.08rem/1.55 var(--serif); font-variation-settings: "opsz" 24; }
.review blockquote p { margin: 0; }
.review blockquote p::before { content: "“"; }
.review blockquote p::after { content: "”"; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: 1rem; border-top: 1px solid rgb(38 56 47 / .12); font-size: .9rem; }
.review figcaption a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--leaf); }
.review figcaption .icon { width: .95rem; }
.reviews .carousel__controls { justify-content: center; margin-top: 0; color: var(--ink); }
.reviews .carousel__progress { background: rgb(38 56 47 / .25); }
.reviews .carousel__button:hover { background: rgb(38 56 47 / .08); }

.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 2rem; padding: 2rem var(--gutter); text-align: center; border-bottom: 1px solid rgb(38 56 47 / .12); }
.trust p { margin: 0; }
.trust__stars { display: flex; align-items: center; gap: .6rem; font: 600 1.15rem var(--serif); color: var(--leaf); }
.trust__stars span { display: flex; color: var(--mango); }
.trust__rating { font-weight: 600; }
.trust__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.trust__link .icon { width: 1rem; }

/* Cierre */
.booking-cta { position: relative; padding: clamp(3rem, 7vw, 5rem) var(--gutter); background: var(--leaf) var(--booking-bg) center / cover; background-blend-mode: multiply; color: #fff; text-align: center; }
/* Las URL vienen del pattern, con ?ver=, y coinciden con las de la franja de foto: se descargan una sola vez. */
@media (max-width: 960px) { .booking-cta { background-image: var(--booking-bg-small); } }
.booking-cta__inner { position: relative; max-width: 40rem; margin: 0 auto; }
.booking-cta h2 { margin: 0 0 1rem; color: #fff; }
.booking-cta p:not(.eyebrow) { margin: 0 0 2rem; font-size: 1.1rem; }
.booking-cta .eyebrow { color: var(--mango); }
/* Con video, la bienvenida pasa a dos columnas: texto a la izquierda y el video como foco a la derecha. */
.welcome--video { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); grid-template-areas: "text video" "body video"; row-gap: 0; }
.welcome--video .welcome__text { grid-area: text; align-self: end; }
.welcome--video .welcome__title { max-width: 11ch; margin-bottom: 2rem; }
.welcome--video .welcome__body { grid-area: body; align-self: start; }
.welcome--video .leaf-deco { margin-top: 1.5rem; }
.welcome__video { grid-area: video; margin: 0; }
.welcome__video-frame { position: relative; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); }
.welcome__video-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.welcome__video-label { margin: 1rem 0 0; }
.video-play {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0;
	background: rgb(20 34 27 / .2); cursor: pointer; transition: background .3s;
}
.video-play__icon {
	display: grid; place-items: center; width: clamp(4rem, 7vw, 5.5rem); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--leaf);
	box-shadow: 0 0 0 .5rem rgb(255 255 255 / .25); transition: transform .3s;
}
.video-play__icon .icon { width: 40%; height: 40%; margin-left: 8%; fill: currentColor; }
.video-play:hover { background: rgb(20 34 27 / .05); }
.video-play:hover .video-play__icon { transform: scale(1.08); }
.video-modal { width: min(92vw, 1200px); padding: 0; border: 0; background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgb(20 34 27 / .92); }
.video-modal video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 9; background: #000; }
.video-modal__player { position: relative; }
/* El selector va sobre el video, arriba a la derecha, y se esconde con los controles mientras se reproduce. */
.video-modal__quality { position: absolute; top: .75rem; right: .75rem; display: flex; align-items: center; gap: .35rem; padding: .25rem .3rem .25rem .75rem; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .8rem; font-weight: 600; transition: opacity .3s; }
.video-modal__quality[hidden] { display: none; }
.video-modal__player.is-idle .video-modal__quality:not(:focus-within) { opacity: 0; pointer-events: none; }
.video-modal__quality select { padding: .2rem .4rem; border: 0; border-radius: 999px; background: rgb(255 255 255 / .15); color: #fff; font: inherit; cursor: pointer; }
.video-modal__quality option { color: #1d2a23; }
.video-modal .carousel__button { position: absolute; color: #fff; background: rgb(38 56 47 / .6); }
.video-modal__close { right: 0; top: -3rem; }

/* Pie */
.site-footer { max-width: var(--wide); margin: 0 auto; padding: 3.5rem var(--gutter) 2rem; }
.site-footer__brand { display: grid; justify-items: center; gap: .8rem; text-align: center; }
/* La línea mango se corta en el centro con una cruz kené. */
.site-footer__brand::before {
	content: ""; width: min(60%, 40rem); height: 28px; margin-bottom: .75rem;
	background:
		url("assets/images/kene-cross.svg") center / 28px no-repeat,
		linear-gradient(90deg, transparent, var(--mango)) left center / calc(50% - 1.5rem) 2px no-repeat,
		linear-gradient(270deg, transparent, var(--mango)) right center / calc(50% - 1.5rem) 2px no-repeat;
}
.site-footer__tagline { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; }
.site-footer__columns { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 5rem; margin-top: 2.5rem; }
.site-footer h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav ul { grid-template-columns: repeat(2, auto); column-gap: 2rem; }
.site-footer__contact li { display: flex; gap: .5rem; align-items: flex-start; }
.site-footer__contact .icon { color: var(--leaf); width: 1.1rem; margin-top: .2rem; }
.site-footer__social { display: flex !important; gap: .5rem !important; }
.site-footer__social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--leaf); color: #fff; }
.site-footer__legal { margin: 2.5rem 0 0; font-size: .8rem; text-align: center; opacity: .75; }
.whatsapp-float {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
	border-radius: 50%; background: #1f8f4e; color: #fff; box-shadow: var(--shadow); transition: transform .2s;
}
.whatsapp-float .icon { width: 1.9rem; height: 1.9rem; }
.whatsapp-float:hover { transform: scale(1.06); }

/* Páginas internas */
.page-main { padding: 3rem var(--gutter) 4rem; }
.page-hero { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 1rem; text-align: center; }
.page-hero h1 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.page-hero .section__lead { max-width: 36rem; margin-inline: auto; font-size: 1.05rem; }

/* Habitaciones: listado */
.button--compact { padding: .6rem 1.2rem; font-size: .85rem; }
.room-group { max-width: var(--wide); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.room-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.room-card__media { display: block; overflow: hidden; }
.room-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.room-card:hover .room-card__media img { transform: scale(1.04); }
.room-card__body { display: flex; flex: 1; flex-direction: column; gap: 1rem; padding: 1.4rem 1.5rem 1.5rem; }
.room-card h3 { margin: 0; font-size: 1.45rem; }
.room-card h3 a { color: inherit; text-decoration: none; }
.room-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--mango); text-underline-offset: .2em; }
.room-card__body > p { margin: 0; color: rgb(38 56 47 / .85); }
.room-price { margin: 0; color: var(--ink); font-size: .92rem; font-variant-numeric: lining-nums tabular-nums; }
.room-price__amount { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--leaf); }
.room-price__unit { color: rgb(38 56 47 / .75); }
.room-price--large .room-price__amount { font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
.room-card__footer { display: grid; gap: 1rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid rgb(38 56 47 / .12); }
.room-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.room-facts { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.room-facts li { display: flex; align-items: center; gap: .6rem; }
.room-facts .icon { color: var(--leaf); }
.room-facts--grid { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }

/* Habitaciones: detalle — fotos y reserva en la primera pantalla; equipamiento en la franja verde de la home; cierre en salvia. */
.room__wrap { max-width: var(--wide); margin: 0 auto; padding: 1.25rem var(--gutter) clamp(2.5rem, 6vw, 4rem); }
.room__back { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 1rem -.6rem; padding: .45rem .9rem .45rem .6rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--leaf); text-decoration: none; transition: background-color .2s; }
.room__back:hover { background: rgb(184 201 168 / .35); }
.room__back .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.room__back:hover .icon { transform: translateX(-3px); }
.room__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem); gap: clamp(1.5rem, 3vw, 2.5rem); }
/* La galería se estira a la altura de la ficha para que no quede un hueco bajo las fotos. */
@media (min-width: 901px) { .room__hero .room-gallery { grid-template-rows: repeat(2, minmax(clamp(150px, 15vw, 225px), 1fr)); } }
.room__summary { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 2.5vw, 2rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.room__summary .eyebrow { margin: 0; }
.room__title { margin: 0; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.05; text-wrap: balance; }
.room__title::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 1rem; background: var(--mango); transform-origin: left; animation: grow var(--t-accent) .4s var(--ease-out) backwards; }
.room__text { font-size: 1rem; line-height: 1.6; color: rgb(38 56 47 / .9); }
.room__text p { margin: 0 0 .6rem; }
.room__text p:last-child { margin: 0; }
.room__summary .room-facts { padding-block: 1rem; border-block: 1px solid rgb(38 56 47 / .12); font-size: .98rem; }
.room__actions { display: grid; gap: .6rem; }
.room__actions .button { justify-content: center; }
.room-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(150px, 15vw, 225px)); gap: .6rem; }
.room-gallery__item[hidden] { display: none; }
.room-gallery__item { display: block; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); cursor: zoom-in; }
.room-gallery__item:first-child { grid-row: span 2; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-gallery__item:hover img { transform: scale(1.04); }
.room-gallery--1 { grid-template-columns: 1fr; }
.room-gallery--2 { grid-template-columns: 2fr 1fr; }
.room-gallery--2 .room-gallery__item:nth-child(2) { grid-row: span 2; }
.room-gallery--3 { grid-template-columns: 2fr 1fr; }
.room-gallery__all {
	position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem;
	border: 0; border-radius: 999px; background: var(--ivory); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); cursor: pointer;
}
.room-gallery__all .icon { width: 1rem; height: 1rem; }
.room-strip .room-strip__list { display: flex; flex-wrap: wrap; justify-content: center; max-width: var(--wide); margin: 0 auto; padding: .5rem var(--gutter); list-style: none; }
.room-strip li { display: flex; flex: 0 1 9.5rem; flex-direction: column; align-items: center; gap: .6rem; padding: 1.4rem .5rem; font-weight: 500; text-align: center; }
.room-strip .icon { width: 2.2rem; height: 2.2rem; }
.room-bar { display: none; }
.room-others { background: var(--sage); }
.room-others .room-grid { max-width: var(--wide); margin: 2.5rem auto 0; text-align: left; }
.lightbox { width: min(92vw, 1200px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(20 34 27 / .92); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox__status { margin: .75rem 0 0; color: #fff; text-align: center; font-size: .85rem; font-weight: 600; }
.lightbox .carousel__button { position: absolute; color: #fff; background: rgb(38 56 47 / .6); }
.lightbox__prev { left: .5rem; top: calc(50% - 1.25rem); }
.lightbox__next { right: .5rem; top: calc(50% - 1.25rem); }
.lightbox__close { right: 0; top: -3rem; }

/* Nuestro hotel: hero con foto, intro editorial, jardines en salvia, arquitectura, espacios y razones en la franja verde. */
.about-hero { position: relative; display: grid; min-height: min(78svh, 700px); color: #fff; overflow: hidden; background: var(--ink); }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: settle var(--t-ambient) var(--ease-out) backwards; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 34 27 / .75), rgb(20 34 27 / .2) 55%, rgb(20 34 27 / .35)); }
.about-hero__inner { position: relative; z-index: 2; align-self: end; box-sizing: border-box; width: 100%; max-width: var(--wide); margin-inline: auto; padding: 9rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.about-hero .eyebrow { color: var(--mango); animation: track .9s var(--ease-out) backwards; }
.about-hero h1 { margin: 0 0 1rem; color: #fff; line-height: .98; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .25); animation: unveil var(--t-focus) .2s var(--ease-out) backwards; }
.about-hero__lead { max-width: 26rem; margin: 0; font-size: var(--wp--preset--font-size--large); line-height: 1.4; animation: rise var(--t-read) .6s var(--ease-out) backwards; }

.about-title { margin: 0; text-wrap: balance; }
.about-title::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 1.25rem; background: var(--mango); transform-origin: left; }

.about-intro {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start;
	max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.about-intro__body p { max-width: 38rem; margin: 0 0 1rem; }
.about-intro__body .about-intro__lead { margin-bottom: 1.5rem; font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.4 var(--serif); color: var(--leaf); }

.about-gardens { background: var(--sage); }
.about-gardens__inner {
	display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
	max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.about-gardens__text > p { margin: 1.5rem 0 2rem; font-size: 1.05rem; }
.about-quote { margin: 0; padding-top: 1.25rem; border-top: 1px solid rgb(38 56 47 / .25); }
.about-quote blockquote { margin: 0 0 .75rem; font: 400 1.15rem/1.5 var(--serif); font-variation-settings: "opsz" 24; }
.about-quote blockquote p { margin: 0; }
.about-quote figcaption { font-size: .85rem; font-weight: 600; }
.about-gardens__photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.about-gardens__photos img, .about-architecture__photos img { width: 100%; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.about-gardens__photos img { aspect-ratio: 4 / 5; }
.about-gardens__photos .wp-block-image { margin: 0; }
.about-gardens__photos img + img, .about-gardens__photos .wp-block-image + .wp-block-image { margin-top: clamp(2rem, 6vw, 5rem); }

.about-architecture {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
	max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.about-architecture__photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: .75rem; align-items: end; }
.about-architecture__photos img { aspect-ratio: 4 / 3; }
.about-architecture__photos img + img { aspect-ratio: 3 / 4; }
.about-architecture__text p { margin: 1.5rem 0 0; font-size: 1.05rem; }

.about-spaces { border-top: 1px solid rgb(38 56 47 / .12); }
.about-spaces__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 2rem); max-width: var(--wide); margin: 2.5rem auto 2.5rem; padding: 0; list-style: none; text-align: left; }
.about-space { display: grid; gap: 1rem; color: inherit; text-decoration: none; }
.about-space img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); transition: transform .6s var(--ease-out); }
.about-space:hover img { transform: scale(1.03); }
.about-space__body { display: grid; gap: .35rem; }
.about-space strong { font: 600 1.6rem/1.1 var(--serif); font-variation-settings: "opsz" 36; color: var(--leaf); }
.about-space:hover strong { text-decoration: underline; text-decoration-color: var(--mango); text-decoration-thickness: 2px; text-underline-offset: .2em; }

.about-reasons { background: var(--leaf); color: #fff; }
.about-reasons__inner {
	display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem);
	max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.about-reasons h2 { color: #fff; }
.about-reasons__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 2rem; margin: 0; padding: 0; list-style: none; }
.about-reasons__list > * { padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .25); }
.about-reasons__list .icon { width: 2.2rem; height: 2.2rem; color: var(--mango); stroke-width: 1.3; }
.about-reasons__list h3 { margin: .9rem 0 .4rem; font-size: 1.25rem; line-height: 1.2; color: #fff; }
.about-reasons__list p { margin: 0; font-size: .95rem; color: rgb(255 255 255 / .85); }

/* Restaurante y spa: reutilizan los bloques de Nuestro hotel. */
.about-reasons .experience-hours { margin-bottom: .3rem; font-weight: 600; color: var(--mango); }
.experience-contact { margin: 2.5rem 0 0; }
.experience-page .about-intro { border-top: 1px solid rgb(38 56 47 / .12); }
.experience-page .about-gardens__photos { margin-top: 2rem; }
/* Editor: un botón del núcleo con variante del tema (button--…) se ve como .button; en el sitio el tema imprime .button. */
.wp-block-button[class*="button--"] > .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
	font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; background: var(--mango); color: var(--ink);
}
.wp-block-button.button--outline-light > .wp-block-button__link { border-color: currentColor; color: #fff; background: transparent; }
.wp-block-button.button--outline > .wp-block-button__link { border-color: var(--ink); color: var(--ink); background: transparent; }

/* Servicios: una fila editorial por servicio, todas con el mismo peso; alternan el lado de la foto. */
.services { display: grid; gap: clamp(3.5rem, 9vw, 7rem); max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 9vw, 7rem); }
.service { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; scroll-margin-top: 7rem; }
.service:nth-child(even) img { order: 2; }
.service img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service__text { max-width: 30rem; }
.service__text > .icon { width: 2.5rem; height: 2.5rem; color: var(--mango); stroke-width: 1.3; }
.service__text h2 { margin: .75rem 0 0; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.service__text p { margin: 1.5rem 0 0; font-size: 1.08rem; line-height: 1.7; }
.services-extras { grid-template-columns: repeat(2, 1fr); }

/* Galería: índice de espacios, un espacio por franja (alternan marfil y salvia) y un mosaico de filas parejas.
   Cada foto conserva su proporción (--ar, la pone inc/gallery.php): crece en proporción a su ancho base, así todas las
   fotos de una fila terminan con el mismo alto y sin recorte. La primera fila de cada espacio es más alta y llena el
   ancho; la última fila incompleta queda al alto de fila, alineada a la izquierda. Sirve igual con 1 o con 30 fotos. */
.gallery-page { --row: clamp(170px, 19vw, 250px); --gap: clamp(.45rem, .9vw, .75rem); } /* --row: solo el editor */
.gallery-index { max-width: var(--wide); margin: 0 auto; padding: .75rem var(--gutter) clamp(1.5rem, 4vw, 2.5rem); }
.gallery-index ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.gallery-index a {
	display: inline-flex; align-items: center; gap: .7rem; padding: .3rem 1.2rem .3rem .3rem; border-radius: 999px; background: #fff;
	color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: background-color .25s, color .25s;
}
.gallery-index a:hover { background: var(--leaf); color: #fff; }
.gallery-index__thumb { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; transition: transform .4s var(--ease-out); }
.gallery-index a:hover .gallery-index__thumb { transform: scale(1.08); }

.gallery-space { scroll-margin-top: 1rem; padding: clamp(2.75rem, 7vw, 5rem) var(--gutter); }
.gallery-index + .gallery-space { padding-top: clamp(.5rem, 2vw, 1.5rem); }
.gallery-space:nth-of-type(even) { background: var(--sage); }
.gallery-space > * { max-width: var(--wide); margin-inline: auto; }
.gallery-space__title { margin-block: 0 clamp(1.5rem, 3.5vw, 2.25rem); font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.1; text-wrap: balance; }
.gallery-space__title::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 1rem; background: var(--mango); }

.hotel-gallery { display: flex; flex-wrap: wrap; column-gap: var(--gap); margin-bottom: calc(-1 * var(--gap)); }
/* Ancho base cero y crecimiento según la proporción: las fotos de una fila comparten el alto y llenan el ancho exacto.
   Las filas las decide inc/gallery.php (repartidas para que todas, la última incluida, tengan un alto parecido). */
.hotel-gallery__item { flex: var(--ar) 1 0; min-width: 0; margin: 0 0 var(--gap); }
.hotel-gallery__break { display: none; flex-basis: 100%; height: 0; }
@media (min-width: 901px) { .hotel-gallery__break--d { display: block; } }
@media (min-width: 641px) and (max-width: 900px) { .hotel-gallery__break--t { display: block; } }
@media (max-width: 640px) { .hotel-gallery__break--m { display: block; } }
/* Una fila con pocas fotos (p. ej. dos verticales) no pasa de ~560 px de alto: el bloque se angosta y se centra. */
@media (min-width: 641px) { .hotel-gallery--one-row { max-width: min(var(--wide), calc(var(--sum) * min(68vh, 560px))); margin-inline: auto; } }
.hotel-gallery--single { justify-content: center; }
.hotel-gallery--single > .hotel-gallery__item { max-width: calc(var(--ar) * min(72vh, 680px)); }
.hotel-gallery__link { display: block; aspect-ratio: var(--ar); overflow: hidden; border-radius: 10px; background: rgb(38 56 47 / .1); box-shadow: var(--shadow); cursor: zoom-in; }
.hotel-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.hotel-gallery__link:hover .hotel-gallery__img { transform: scale(1.04); }
.hotel-gallery__link:focus-visible { outline-offset: 4px; border-radius: 10px; }
.hotel-gallery figcaption { padding-top: .55rem; font-size: .85rem; line-height: 1.4; color: rgb(38 56 47 / .8); }
.gallery-page .hotel-gallery__item.reveal.is-in { animation: rise var(--t-read) calc(var(--i, 0) * 70ms) var(--ease-out) backwards; }
@media (max-width: 640px) {
	.hotel-gallery--single > .hotel-gallery__item { max-width: none; }
	.gallery-index ul { justify-content: flex-start; }
	.gallery-index li { flex: 1 1 calc(50% - .65rem); }
	.gallery-index a { box-sizing: border-box; width: 100%; padding-right: .75rem; font-size: .85rem; line-height: 1.2; }
}
/* Editor: el bloque Galería del núcleo con la clase hotel-gallery se ve como el mosaico, con filas de alto fijo y un
   ancho base parejo (el editor no conoce la proporción de cada foto; el sitio sí). Las reglas del núcleo usan
   :not(#individual-image); estas pesan más y cargan después. */
.wp-block-gallery.hotel-gallery.has-nested-images { display: flex; flex-wrap: wrap; gap: var(--gap, .6rem); }
.wp-block-gallery.hotel-gallery.has-nested-images::after { content: ""; flex: 4 1 0; }
.wp-block-gallery.hotel-gallery.hotel-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 1 1 calc(var(--row, 220px) * 1.45); width: auto; max-width: calc(var(--row, 220px) * 2.4); height: var(--row, 220px); margin: 0; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow);
}
.wp-block-gallery.hotel-gallery.hotel-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { width: 100%; height: 100% !important; object-fit: cover; }

/* Movimiento: el hero entra al cargar; bienvenida, servicios y momentos se revelan una sola vez al entrar en pantalla.
   El estado oculto solo aplica con .has-reveal (lo pone site.js), así sin JS todo queda visible.
   La duración sale del papel de cada pieza: lo que el usuario espera (texto, botones, enlaces) llega rápido;
   lo atmosférico (fondo, fotos, hoja) se toma su tiempo. Piezas pequeñas = recorridos cortos = duraciones cortas. */
:root {
	--t-ambient: 3.5s; /* fondo, nadie lo espera */
	--t-focus: 1.1s;   /* el "momento" de cada pantalla */
	--t-read: .7s;     /* texto que se va a leer */
	--t-action: .5s;   /* botones y enlaces: disponibles pronto */
	--t-accent: .4s;   /* detalles pequeños de recorrido corto */
	--ease-out: cubic-bezier(.16, 1, .3, 1);       /* llegada suave */
	--ease-wipe: cubic-bezier(.65, 0, .25, 1);     /* cortina: arranca lento, frena suave */
	--ease-pop: cubic-bezier(.34, 1.4, .64, 1);    /* leve rebote, solo para la reserva */
}
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes unveil { from { clip-path: inset(0 -.5em 100% -.5em); transform: translateY(.6em); } to { clip-path: inset(-.5em); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes track { from { opacity: 0; letter-spacing: .7em; } }
@keyframes pop { from { opacity: 0; transform: translateY(.75rem) scale(.9); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes curtain { from { clip-path: inset(100% 0 0); } to { clip-path: inset(-2rem); } }
@keyframes fade { from { opacity: 0; } }

/* Hero: la foto ocupa toda la pantalla desde el primer frame y se asienta con un zoom suave; el texto entra encima,
   así nunca flota sobre el fondo vacío. La bajada es el LCP: se pinta desde el primer frame y solo se desplaza,
   porque Chrome no la cuenta mientras su opacidad se anima.
   0.1 marca · 0.2 titular, línea a línea · 0.5 bajada · 0.7 reserva · 1.7 pausa */
@keyframes lift { from { transform: translateY(1.5rem); } }
.hero__media > * { animation: settle 2.2s var(--ease-out) backwards; }
.hero .eyebrow { animation: track .9s .1s var(--ease-out) backwards; }
.hero__line { animation: unveil var(--t-focus) .2s var(--ease-out) backwards; }
.hero__line + .hero__line { animation-delay: .35s; }
.hero__lead { animation: lift var(--t-read) .5s var(--ease-out) backwards; }
.hero__content > .button { animation: pop var(--t-action) .7s var(--ease-pop) backwards; }
.hero__pause { animation: fade .3s 1.7s backwards; }

/* Bienvenida: texto listo para leer, la línea mango subraya de un trazo, las fotos son el foco y la hoja remata sin prisa. */
.welcome__title::after { transform-origin: left; }
.leaf-deco path { stroke-dasharray: 1; }
.has-reveal .welcome:not(.is-in) :is(.welcome__title, .welcome__body, .welcome__photos img, .welcome__video) { opacity: 0; }
.has-reveal .welcome:not(.is-in) .leaf-deco path { stroke-dashoffset: 1; }
.welcome.is-in .welcome__title { animation: rise var(--t-read) var(--ease-out) backwards; }
.welcome.is-in .welcome__title::after { animation: grow var(--t-accent) .5s var(--ease-out) backwards; }
.welcome.is-in .welcome__body { animation: rise var(--t-read) .15s var(--ease-out) backwards; }
.welcome.is-in :is(.welcome__photos img, .welcome__video) { animation: curtain 1.2s .1s var(--ease-wipe) backwards; }
.welcome.is-in .welcome__photos img + img { animation-delay: .35s; }
.welcome.is-in .leaf-deco path { animation: draw 2.2s .6s ease-in-out backwards; }

/* Listas: los iconos son enlaces pequeños, entran en ráfaga (60 ms); las tarjetas, grandes, con más aire (120 ms) y su foto se asienta lento. */
:is(.amenities, .moments__grid) li:nth-child(2) { --i: 1; }
:is(.amenities, .moments__grid) li:nth-child(3) { --i: 2; }
:is(.amenities, .moments__grid) li:nth-child(4) { --i: 3; }
.has-reveal :is(.amenities, .moments__grid):not(.is-in) li { opacity: 0; }
.amenities.is-in li { animation: pop .45s calc(var(--i, 0) * 60ms) var(--ease-out) backwards; }
.moments__grid.is-in li { animation: rise .8s calc(var(--i, 0) * 120ms) var(--ease-out) backwards; }
.moments__grid.is-in img { animation: settle 1.8s calc(var(--i, 0) * 120ms) var(--ease-out) backwards; }


/* Nuestro hotel: cada bloque sube una vez al entrar; las listas en ráfaga corta. */
.has-reveal .about-page :is([data-reveal], .reveal):not(.is-in) { opacity: 0; }
.about-page :is([data-reveal], .reveal).is-in { animation: rise var(--t-read) var(--ease-out) backwards; }
.about-page .is-in .about-title::after { animation: grow var(--t-accent) .4s var(--ease-out) backwards; }

/* Responsive */
@media (max-width: 900px) {
	.hero__inner { padding-top: 8rem; }
	.hero::after { background: linear-gradient(0deg, rgb(20 34 27 / .7), rgb(20 34 27 / .35) 60%, rgb(20 34 27 / .2)); }
	.welcome { grid-template-columns: 1fr; }
	.welcome--video { grid-template-areas: "text" "video" "body"; row-gap: 1.5rem; }
	.welcome--video .welcome__title { margin-bottom: 0; }
	.leaf-deco { display: none; }
	.moments__grid { gap: .6rem; }
	.moment-card span { font-size: 1.2rem; }
}
@media (max-width: 900px) {
	.about-intro, .about-gardens__inner, .about-architecture, .about-reasons__inner { grid-template-columns: 1fr; }
	.about-reasons__list { grid-template-columns: repeat(2, 1fr); }
	.service { grid-template-columns: 1fr; gap: 1.75rem; }
	.service:nth-child(even) img { order: 0; }
}
@media (max-width: 900px) {
	.room__hero { grid-template-columns: 1fr; }
	/* Reserva fija en celular; reemplaza al botón flotante de WhatsApp. */
	.room-bar {
		position: fixed; inset: auto 0 0; z-index: 30; display: flex; gap: .75rem; align-items: center;
		padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); background: var(--ivory); box-shadow: 0 -8px 24px -12px rgb(38 56 47 / .4);
	}
	.room-bar .button { flex: 1; justify-content: center; }
	.room-bar__whatsapp { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #1f8f4e; color: #fff; }
	body:has(.room-bar) .whatsapp-float { display: none; }
	body:has(.room-bar) .site-footer { padding-bottom: 6rem; }
}
@media (max-width: 640px) {
	.about-spaces__list, .about-reasons__list { grid-template-columns: 1fr; }
	.about-space img { aspect-ratio: 16 / 10; }
	.about-reasons__list { gap: 1.5rem; }
	.services-extras { grid-template-columns: 1fr; }
	.room-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 56vw; grid-auto-rows: 28vw; }
	.room-gallery__item:first-child { grid-column: span 2; grid-row: auto; }
	.room-gallery--2 .room-gallery__item:nth-child(2) { grid-column: span 2; grid-row: auto; }
	.amenities ul { grid-template-columns: repeat(2, 1fr); }
	/* Con dos filas los enlaces ocupan casi toda la altura: el patrón queda en una orilla más fina. */
	/* El carrusel ocupa todo el ancho: no quedan costados libres. */
	.gardens::before { display: none; }
	.room-strip li { flex-basis: 33%; padding: 1.1rem .25rem; font-size: .85rem; }
	.room-strip li:nth-child(n) { border: 0; }
	.moments__grid { grid-template-columns: 1fr; max-width: 22rem; }
	.moment-card { aspect-ratio: 16 / 10; }
	.moment-card--restaurante-patacones img { object-position: center 55%; }
	.coverflow::before, .coverflow::after { flex-basis: 12vw; }
	.coverflow__slide { flex-basis: 76vw; margin: 0 -1.5rem; }
	.carousel__button--prev { left: .25rem; }
	.carousel__button--next { right: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; animation-name: fade !important; }
	.hero__video, .hero.has-video .hero__pause { display: none; }
	/* Sin apertura: la foto aparece completa y el texto se funde sin esperar. */
	.hero, .hero__media, .hero__media > *, .hero::after { animation: none !important; }
	.hero *, .hero *::after { animation-delay: 0s !important; }
}
