:root {
	color-scheme: light dark;
	--bg: #f7f1e8;
	--bg-alt: #efe5d6;
	--surface: #fffaf3;
	--fg: #2b2420;
	--muted: #6f6157;
	--accent: #a8653f;
	--accent-strong: #8c4f2f;
	--on-accent: #fffaf3;
	--line: rgba(168, 101, 63, 0.28);
	--shadow: 0 18px 40px -24px rgba(60, 35, 20, 0.45);
	--serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 14px;
	--wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1a1513;
		--bg-alt: #221b18;
		--surface: #261f1b;
		--fg: #f1e9df;
		--muted: #b3a597;
		--accent: #d49a72;
		--accent-strong: #e2ad88;
		--on-accent: #1a1513;
		--line: rgba(212, 154, 114, 0.28);
		--shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
	}
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

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

/* Tipografía */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.6rem; }

.eyebrow {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--accent);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

/* Botones */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--on-accent);
	font: 600 .92rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .85rem; }

/* Cabecera */
.header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.logo svg { width: 24px; height: 30px; color: var(--accent); flex: none; }
.logo span { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.logo small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: .9rem; text-decoration: none; color: var(--muted); white-space: nowrap; }
.logo span { white-space: nowrap; }
.nav a:hover { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 12px; }
/* Selector de idioma */
.lang { position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 8px 2px; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover, .lang[open] summary { color: var(--accent); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.lang a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; font-weight: 500; letter-spacing: 0; text-decoration: none; color: var(--fg); }
.lang a:hover { background: var(--bg-alt); }
.lang a[aria-current] { color: var(--accent); font-weight: 600; }

.menu-toggle { display: none; background: none; border: 0; color: var(--fg); width: 40px; height: 40px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

/* El menú en alemán es el más largo: por debajo de 1080 px pasa al menú desplegable */
@media (max-width: 1080px) {
	.nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 8px 20px 16px;
	}
	.nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.header-actions { margin-left: auto; }
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
	.header-actions .btn { display: none; }
}

/* Portada */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); margin: 16px 0 20px; }
.hero h1 em { color: var(--accent); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts div { font-size: .82rem; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--fg); line-height: 1.1; }

.arch-frame {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px var(--radius) var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.arch-frame::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(255, 250, 243, .55);
	border-radius: 999px 999px 6px 6px;
	pointer-events: none;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
	.hero { padding-top: 32px; }
	.hero .wrap { grid-template-columns: 1fr; gap: 40px; }
	.arch-frame { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* Imágenes provisionales (se sustituyen por fotos reales) */
.ph {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(255, 236, 214, .55), transparent 60%),
		linear-gradient(160deg, var(--ph-a, #c98a5e), var(--ph-b, #7b3f24));
	color: rgba(255, 250, 243, .9);
}
.ph svg { width: 34%; max-width: 120px; opacity: .85; }
.ph-note {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: .7rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .8;
}
.ph--1 { --ph-a: #c98a5e; --ph-b: #7b3f24; }
.ph--2 { --ph-a: #b9a07a; --ph-b: #5e4a2f; }
.ph--3 { --ph-a: #d1a27c; --ph-b: #8d5a3b; }
.ph--4 { --ph-a: #a7876b; --ph-b: #4f3a2b; }
.ph--5 { --ph-a: #c7946f; --ph-b: #6e4a35; }

/* Secciones */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section:not(.section--alt) + .section:not(.section--alt) { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.section-head h2 { margin-top: 10px; }
.section-head .lead { margin-top: 12px; }

@media (max-width: 600px) {
	.section { padding: 64px 0; }
}

/* El palacete */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.about-text h2 { margin: 10px 0 24px; }
.about-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; }
.about-list li::before { content: "✦"; color: var(--accent); line-height: 1.6; }
.about-media { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

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

/* Suites */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
	min-height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--muted);
	font: 500 .85rem/1 var(--sans);
	cursor: pointer;
}
.filter:hover { color: var(--fg); border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.suites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card[hidden] { display: none; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.55rem; }
.card-body p { color: var(--muted); font-size: .92rem; }
.card-link { margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 600; color: var(--accent); }

.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); list-style: none; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 16px; height: 16px; color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-strong); }

/* Servicios */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.amenity { background: var(--bg); padding: 26px 24px; }
.section--alt .amenity { background: var(--bg-alt); }
.amenity svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.amenity h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.amenity p { font-size: .9rem; color: var(--muted); }

/* Ubicación */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.places { list-style: none; border-top: 1px solid var(--line); margin-top: 28px; }
.places li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.places span:last-child { color: var(--muted); font-size: .92rem; text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.notice {
	margin-top: 28px;
	padding: 18px 20px;
	border-left: 3px solid var(--accent);
	background: var(--surface);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: .92rem;
	color: var(--muted);
}
.notice strong { color: var(--fg); }

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

/* Opiniones */
.reviews { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.score { text-align: center; padding-right: 56px; border-right: 1px solid var(--line); }
.score strong { display: block; font-family: var(--serif); font-size: 5.5rem; font-weight: 500; line-height: 1; }
.score .stars { color: var(--accent); letter-spacing: .2em; margin: 8px 0 6px; }
.score p { font-size: .85rem; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

.bars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; list-style: none; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .92rem; }
.bars .bar { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bars .bar span { display: block; height: 100%; background: var(--accent); }
.reviews-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; }
.loved { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.loved li { font-size: .82rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

@media (max-width: 760px) {
	.reviews { grid-template-columns: 1fr; gap: 32px; }
	.score { padding: 0 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
	.bars { grid-template-columns: 1fr; }
}

/* Preguntas frecuentes */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	font-family: var(--serif);
	font-size: 1.35rem;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Consulta de disponibilidad */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.contact-info h2 { margin: 10px 0 18px; }
.contact-info p { color: var(--muted); }
.contact-ways { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.contact-ways a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.contact-ways svg { width: 20px; height: 20px; color: var(--accent); }

.form { background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }

@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
	.form { grid-template-columns: 1fr; padding: 22px; }
}

/* Página de suite */
.breadcrumbs { font-size: .82rem; color: var(--muted); padding: 24px 0 0; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.suite-hero { padding: 28px 0 64px; }
.suite-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.suite-gallery { display: grid; gap: 14px; }
.suite-media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.suite-media img { width: 100%; height: 100%; object-fit: cover; }
.suite-summary h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 12px 0 18px; }
.suite-summary .specs { font-size: .95rem; gap: 10px 18px; margin-bottom: 18px; }
.suite-summary .tags { margin-bottom: 20px; }
.suite-summary p { color: var(--muted); }
.suite-summary .hero-actions { margin-top: 28px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.facts div { background: var(--surface); padding: 16px 18px; font-size: .82rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--fg); }

@media (max-width: 860px) {
	.suite-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* Guías */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.guide-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: transform .25s;
}
.guide-card:hover { transform: translateY(-4px); }
.guide-card h3 { font-size: 1.45rem; }
.guide-card p { color: var(--muted); font-size: .92rem; }

.guide-intro { padding-top: 32px; }
.guide-intro h1, .guide-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 12px 0 18px; }
.guide-intro .lead { margin-bottom: 40px; }

.guide { padding: 32px 0 88px; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 24px 56px; }
.guide-head { grid-column: 1 / -1; max-width: 820px; }
.guide-date { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.guide-toc { align-self: start; position: sticky; top: 92px; font-size: .9rem; }
.guide-toc ol { list-style: none; border-left: 2px solid var(--line); display: grid; gap: 10px; padding-left: 16px; }
.guide-toc a { text-decoration: none; color: var(--muted); }
.guide-toc a:hover { color: var(--accent); }

.prose section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
.prose p, .prose li { color: var(--muted); font-size: 1.05rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before { content: "✦"; position: absolute; left: 0; top: .1em; color: var(--accent); font-size: .8rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 860px) {
	.guide-layout { grid-template-columns: 1fr; }
	.guide-toc { position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.guide-card, .guide-card:hover { transition: none; transform: none; }
}

/* Pie */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; }

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

/* Botón flotante de WhatsApp */
.wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 30;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.wa-float svg { width: 28px; height: 28px; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease-out, transform .8s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.card, .card:hover { transition: none; transform: none; }
}

/* Reserva en plataformas */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 820px; }
.platform {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: transform .25s;
}
.platform:hover { transform: translateY(-4px); }
.platform-name { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.platform strong { font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1.1; }
.platform-note { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.platform .btn { margin-top: auto; align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
	.platform, .platform:hover { transition: none; transform: none; }
}
