/*
Theme Name:  HCM Theme
Theme URI:   https://hostalcasamiguelmarbella.com
Author:      Felipe Fernández — felipefg.com
Description: Tema clásico a medida para el Hostal Casa Miguel Marbella. Sin FSE. HTML controlado para SEO y Core Web Vitals, system-ui sin fuentes externas, datos desde el plugin hcm-core.
Version:     1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: hcm-theme
License:     GPL v2 or later
*/

/* ===========================================================
   Tokens de diseño — única fuente de verdad de la marca.
   Cambia aquí los colores cuando llegue el logo del cliente.
   =========================================================== */
:root {
	/* === Paleta del design system === */
	--mar-900: #14313F; --mar-700: #1B4965; --mar-500: #3B6E8A; --mar-100: #E3ECF1;
	--terra-700: #C2772F; --terra-500: #D98C4A; --terra-200: #F2D9BF; --terra-50: #FBEFE0;
	--cream: #FBF6EF; --cream-2: #F4ECDD; --paper: #FFFFFF;
	--line: #E8DFD0; --line-2: #D9CFB8;
	--ink: #243B45; --ink-2: #5C7079; --ink-3: #8A9AA0;
	--success: #2F7A4D;

	/* Aliases para compatibilidad con el código existente */
	--hcm-primary:      var(--mar-700);
	--hcm-primary-dark: var(--mar-900);
	--hcm-accent:       var(--terra-500);
	--hcm-accent-dark:  var(--terra-700);
	--hcm-cream:        var(--cream);
	--hcm-surface:      var(--paper);
	--hcm-text:         var(--ink);
	--hcm-text-soft:    var(--ink-2);
	--hcm-border:       var(--line);

	/* === Tipografía === */
	--font-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
	--font-body:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--hcm-font:     var(--font-body);

	/* Escala fija (design) */
	--fs-1: 13px; --fs-2: 14px; --fs-3: 16px; --fs-4: 18px;
	--fs-5: 22px; --fs-6: 28px; --fs-7: 36px; --fs-8: 48px; --fs-9: 64px;

	/* Alias fluidos (componentes existentes los usan) */
	--text-s:   clamp(0.8125rem, 0.78rem + 0.2vw, 0.9rem);
	--text-m:   clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--text-l:   clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
	--text-xl:  clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
	--text-2xl: clamp(1.7rem, 1.45rem + 1.2vw, 2.4rem);
	--text-3xl: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);

	/* === Espaciado (design 4px base) === */
	--s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
	--s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
	--s-9: 56px; --s-10: 72px; --s-11: 96px; --s-12: 120px;

	/* Alias fluidos en uso */
	--space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
	--space-s:  clamp(0.75rem, 0.65rem + 0.5vw, 1.15rem);
	--space-m:  clamp(1.25rem, 1rem + 1vw, 2rem);
	--space-l:  clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
	--space-xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);

	/* === Radios === */
	--r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px; --r-pill: 999px;
	--hcm-radius: var(--r-3);

	/* === Sombras === */
	--sh-1: 0 1px 0 rgba(20,49,63,.05), 0 1px 2px rgba(20,49,63,.06);
	--sh-2: 0 4px 12px rgba(20,49,63,.08), 0 1px 2px rgba(20,49,63,.05);
	--sh-3: 0 12px 32px rgba(20,49,63,.14), 0 2px 6px rgba(20,49,63,.06);
	--sh-focus: 0 0 0 3px rgba(217,140,74,.35);
	--hcm-shadow: var(--sh-2);

	--hcm-maxw: 1180px;
}

/* ===========================================================
   Reset mínimo
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	font-family: var(--hcm-font);
	font-size: var(--text-m);
	line-height: 1.65;
	color: var(--hcm-text);
	background: var(--hcm-cream);
	-webkit-font-smoothing: antialiased;
}
img, picture, svg, iframe { display: block; max-width: 100%; height: auto; }
a { color: var(--hcm-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4 {
	font-family: var(--font-display); font-weight: 500;
	letter-spacing: -0.01em; line-height: 1.15;
	color: var(--hcm-primary-dark); text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p, ul, ol { font-size: var(--text-m); }
:focus-visible { outline: 3px solid var(--hcm-accent); outline-offset: 2px; }

/* ===========================================================
   Layout
   =========================================================== */
.hcm-container { width: min(100% - 2rem, var(--hcm-maxw)); margin-inline: auto; }
.hcm-section { padding-block: var(--space-xl); }
.hcm-section--alt { background: var(--hcm-surface); }
.hcm-skip-link {
	position: absolute; left: -999px;
	background: var(--hcm-primary); color: #fff; padding: 0.75rem 1rem; z-index: 1000;
}
.hcm-skip-link:focus { left: 1rem; top: 1rem; }

/* Botones */
.hcm-btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.85rem 1.6rem; border-radius: 999px;
	font-weight: 600; text-decoration: none; line-height: 1;
	transition: transform .15s ease, background-color .15s ease;
}
.hcm-btn:active { transform: scale(0.97); }
.hcm-btn--primary { background: var(--hcm-accent); color: #fff; }
.hcm-btn--primary:hover { background: var(--hcm-accent-dark); }
.hcm-btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.hcm-btn--ghost:hover { background: rgba(255,255,255,.12); }
.hcm-btn--solid { background: var(--hcm-primary); color: #fff; }
.hcm-btn--solid:hover { background: var(--hcm-primary-dark); }

/* ===========================================================
   Header
   =========================================================== */
.hcm-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--hcm-surface);
	border-bottom: 1px solid var(--hcm-border);
}
.hcm-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-m); padding-block: 0.85rem;
}
.hcm-header__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--hcm-primary-dark); text-decoration: none; font-size: var(--text-l); }
.hcm-brand__logo { display: inline-flex; align-items: center; color: var(--mar-900); }
.hcm-brand__logo svg { height: 56px; width: auto; display: block; }
.hcm-nav { display: flex; align-items: center; gap: var(--space-m); }
.hcm-nav__panel { display: flex; align-items: center; gap: var(--space-m); }
.hcm-header__call { display: none; } /* icono "llamar" solo en móvil */
.hcm-nav__close { display: none; } /* X de cerrar — solo en móvil */
.hcm-nav__wa { display: none; }     /* botón WhatsApp — solo en el menú móvil */
.hcm-nav__menu { display: flex; gap: 1.4rem; list-style: none; padding: 0; }
.hcm-nav__menu a { color: var(--hcm-text); text-decoration: none; font-weight: 500; }
.hcm-nav__menu a:hover, .hcm-nav__menu .current-menu-item > a { color: var(--hcm-accent-dark); }
.hcm-header__phone { font-weight: 700; color: var(--hcm-primary); text-decoration: none; white-space: nowrap; }
/* Selector ES/EN — pill único con dos segmentos (estilo design) */
.hcm-lang {
	display: inline-flex; gap: 0; list-style: none; margin: 0;
	padding: 2px; background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: 12px; text-transform: uppercase;
	letter-spacing: .06em; font-weight: 600;
}
.hcm-lang li { display: inline-flex; }
.hcm-lang a {
	display: inline-flex; align-items: center;
	padding: 6px 12px;
	color: var(--ink-2); text-decoration: none;
	border-radius: 999px;
	transition: background .15s, color .15s;
}
.hcm-lang a:hover { color: var(--mar-900); }
.hcm-lang .current-lang a { background: var(--mar-700); color: #fff; }

.hcm-nav__toggle {
	display: none; background: none; border: 0; cursor: pointer;
	font-size: 1.6rem; color: var(--hcm-primary-dark); padding: 0.25rem 0.5rem;
}

@media (max-width: 900px) {
	.hcm-nav__toggle { display: block; }
	.hcm-header__call {
		display: inline-flex; align-items: center; justify-content: center;
		color: var(--hcm-primary); padding: 0.35rem 0.5rem;
	}
	/* El panel completo (menú + idioma + teléfono) pasa a ser el cajón lateral */
	.hcm-nav__panel {
		position: fixed; top: 0; right: 0; bottom: 0; left: auto;
		width: min(82vw, 330px); height: 100dvh; z-index: 120;
		display: flex; flex-direction: column; align-items: stretch; gap: 0;
		background: var(--hcm-surface);
		padding: 5rem 1.5rem 2rem; transform: translateX(100%);
		transition: transform .25s ease; box-shadow: -8px 0 40px rgba(20,49,63,.18);
		overflow-y: auto;
	}
	.hcm-nav__panel.is-open { transform: translateX(0); }
	/* Especificidad alta para ganar a las reglas del sistema de diseño (más abajo en el archivo) */
	.hcm-nav__panel .hcm-nav__menu { display: flex; flex-direction: column; gap: 0; width: 100%; }
	.hcm-nav__panel .hcm-nav__menu li { width: 100%; }
	.hcm-nav__panel .hcm-nav__menu a {
		display: block; padding: 0.9rem 0; font-size: var(--text-m);
		border-bottom: 1px solid var(--hcm-border); border-radius: 0; background: none;
	}
	.hcm-nav__panel .hcm-nav__menu .current-menu-item > a { background: none; color: var(--hcm-accent-dark); }
	/* Idioma y teléfono dentro del menú */
	.hcm-nav__panel .hcm-nav__menu a { padding: 1rem 0; }
	.hcm-nav__panel .hcm-lang { align-self: flex-start; margin: 1.6rem 0 0.6rem; }
	.hcm-nav__panel .hcm-header__phone {
		display: flex; align-items: center; justify-content: center; gap: 0.5rem;
		width: 100%; padding: 0.85rem 1rem; border-radius: 999px;
		font-size: var(--text-l);
	}
	/* X de cerrar (arriba a la derecha del cajón) */
	.hcm-nav__close {
		display: block; position: absolute; top: 0.9rem; right: 1rem;
		background: none; border: 0; cursor: pointer; padding: 0.25rem 0.6rem;
		font-size: 2rem; line-height: 1; color: var(--hcm-primary-dark);
	}
	/* Botón WhatsApp dentro del menú */
	.hcm-nav__wa {
		display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
		margin-top: 0.8rem; padding: 0.85rem 1rem; width: 100%;
		background: #25D366; color: #fff; border-radius: 999px;
		text-decoration: none; font-weight: 700;
	}
	.hcm-nav__wa svg { color: #fff; }
	.hcm-nav__overlay { position: fixed; inset: 0; background: rgba(20,49,63,.45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 99; }
	.hcm-nav__overlay.is-open { opacity: 1; pointer-events: auto; }
}

/* ===========================================================
   Hero (basado en design)
   =========================================================== */
.hcm-hero {
	position: relative; overflow: hidden; color: #fff;
	background: var(--mar-900);
	z-index: 10; /* el popover/modal del buscador (dentro del hero) pinta sobre las secciones siguientes */
}
.hcm-hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; z-index: 0; pointer-events: none;
}
.hcm-hero__overlay {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(0deg, rgba(20,49,63,.66) 0%, rgba(20,49,63,.36) 42%, rgba(20,49,63,.12) 72%, rgba(20,49,63,0) 100%);
}
.hcm-hero > .hcm-container { position: relative; z-index: 2; }
.hcm-hero__inner {
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(480px, 50vw, 620px);
	padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem);
	max-width: 1280px;
}
.hcm-hero__copy { max-width: 760px; margin-bottom: var(--s-6); }
.hcm-hero__title {
	color: #fff; font-weight: 400;
	font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
	line-height: 1.08; margin-bottom: var(--s-3);
}
.hcm-hero__lead {
	font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
	color: rgba(255,255,255,.85); max-width: 580px;
}
@media (prefers-reduced-motion: reduce) { .hcm-hero__video { display: none; } }

/* ===========================================================
   Grid de habitaciones
   =========================================================== */
.hcm-servicios-grid {
	display: grid; gap: var(--space-m);
	grid-template-columns: repeat(var(--hcm-cols, 3), 1fr);
	margin-top: var(--space-l);
}
@media (max-width: 860px) { .hcm-servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hcm-servicios-grid { grid-template-columns: 1fr; } }
.hcm-servicio-card {
	background: var(--hcm-surface); border: 1px solid var(--hcm-border);
	border-radius: var(--hcm-radius); overflow: hidden; display: flex; flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}
.hcm-servicio-card:hover { transform: translateY(-4px); box-shadow: var(--hcm-shadow); }
.hcm-servicio-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hcm-servicio-card__title { padding: var(--space-s) var(--space-s) 0; font-size: var(--text-l); }
.hcm-servicio-card__title a { text-decoration: none; color: var(--hcm-primary-dark); }
.hcm-servicio-card__excerpt { padding: 0.4rem var(--space-s); color: var(--hcm-text-soft); font-size: var(--text-s); flex: 1; }
.hcm-servicio-card__precio { padding: 0 var(--space-s) var(--space-s); font-weight: 700; color: var(--hcm-accent-dark); }

/* ===========================================================
   Contenido editorial
   =========================================================== */
.hcm-prose { max-width: 70ch; }
.hcm-prose > * + * { margin-top: var(--space-s); }
.hcm-prose h2 { margin-top: var(--space-l); }
.hcm-prose h3 { margin-top: var(--space-m); }
.hcm-prose img { border-radius: var(--hcm-radius); }
.hcm-page-header { padding-block: 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hcm-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.hcm-breadcrumbs a { color: var(--mar-700); font-weight: 500; text-decoration: none; }
.hcm-breadcrumbs a:hover { text-decoration: underline; }
.hcm-breadcrumbs__sep { color: var(--ink-3); }
.hcm-breadcrumbs__current { color: var(--mar-900); font-weight: 600; }

/* ===========================================================
   Footer
   =========================================================== */
.hcm-footer {
	background: var(--mar-900); color: rgba(255,255,255,.78);
	padding-block: 56px 24px;
}
.hcm-footer a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .15s; }
.hcm-footer a:hover { color: #fff; }
.hcm-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--s-7);
}
@media (max-width: 860px) {
	.hcm-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
	.hcm-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .hcm-footer__grid { grid-template-columns: 1fr; } }
.hcm-footer__name {
	font-family: var(--font-display); color: #fff;
	font-size: 22px; line-height: 1.2; margin-bottom: 8px;
}
.hcm-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 320px; margin: 0; }
.hcm-footer__col h4 {
	color: #fff; font-family: var(--font-body);
	font-size: 13px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em;
	margin: 0 0 12px;
}
.hcm-footer__col ul {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 8px;
	font-size: 14px;
}
.hcm-footer__bottom {
	margin-top: 32px; padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.1);
	display: flex; flex-wrap: wrap; gap: 8px 16px;
	justify-content: space-between;
	font-size: 12px; color: rgba(255,255,255,.5);
}
.hcm-legal-links a { margin-inline: 0; }

/* Motor de reservas */
.hcm-reservas { margin-block: var(--space-m); }
.hcm-reservas--fallback { padding: var(--space-m); border: 1px solid var(--hcm-border); border-radius: var(--hcm-radius); background: var(--hcm-surface); text-align: center; }
.hcm-reservas--fallback p { margin-bottom: var(--space-s); }

.hcm-be {
	position: relative;
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-m);
	background: var(--hcm-surface); border: 1px solid var(--hcm-border);
	border-radius: var(--hcm-radius); padding: var(--space-m) var(--space-l);
	box-shadow: var(--hcm-shadow);
}
.hcm-be__field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 240px; position: relative; }
.hcm-be__dates { flex: 1.7 1 360px; }
.hcm-be__field label, .hcm-be__lbl { font-size: var(--text-s); font-weight: 700; color: var(--hcm-text-soft); text-transform: uppercase; letter-spacing: .04em; }
.hcm-be__datebtn {
	display: flex; align-items: center;
	font: inherit; font-size: var(--text-m); font-weight: 600; text-align: left; cursor: pointer;
	padding: 0 1.1rem; height: 62px; border: 1px solid var(--hcm-border);
	border-radius: 10px; background: #fff; color: var(--hcm-text);
	white-space: nowrap; overflow: hidden;
}
.hcm-be__datebtn > span { overflow: hidden; text-overflow: ellipsis; }
.hcm-be__datebtn:hover { border-color: var(--hcm-primary); }
.hcm-be__field input:focus-visible,
.hcm-be__datebtn:focus-visible { outline: 3px solid var(--hcm-accent); outline-offset: 1px; }
.hcm-be__nights {
	position: absolute; top: 0; right: 0; font-size: var(--text-s); font-weight: 700;
	color: var(--hcm-accent-dark);
}

/* Calendario propio — popover flotante (no empuja el layout) */
.hcm-cal {
	position: absolute; bottom: calc(100% + 8px); top: auto; left: 0; z-index: 60;
	background: #fff; border: 1px solid var(--hcm-border); border-radius: var(--hcm-radius);
	padding: var(--space-m); box-shadow: 0 -12px 40px rgba(20,49,63,.22);
	width: max-content; max-width: min(680px, 92vw);
}
.hcm-cal[hidden] { display: none; }
.hcm-cal__bar { display: flex; align-items: center; gap: 0.5rem; }
.hcm-cal__months { display: flex; flex: 1; gap: var(--space-m); }
.hcm-cal__month { flex: 1 1 0; min-width: 230px; }
.hcm-cal__title { text-align: center; font-size: var(--text-m); font-weight: 700; color: var(--hcm-primary-dark); margin-bottom: 0.5rem; }
.hcm-cal__nav {
	flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--hcm-border); border-radius: 8px;
	background: var(--hcm-surface); color: var(--hcm-primary-dark); font-size: 1.2rem;
	cursor: pointer; line-height: 1; align-self: center;
}
.hcm-cal__nav:hover:not([disabled]) { background: var(--hcm-primary); color: #fff; }
.hcm-cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.hcm-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hcm-cal__wd { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--hcm-text-soft); padding: 0.25rem 0; }
.hcm-cal__day {
	aspect-ratio: 1; min-height: 34px; border: 0; border-radius: 7px; cursor: pointer;
	background: transparent; color: var(--hcm-text); font: inherit; font-weight: 600; font-size: var(--text-s);
}
.hcm-cal__day:hover:not([disabled]) { background: var(--hcm-primary); color: #fff; }
.hcm-cal__day.is-off { opacity: .3; cursor: not-allowed; }
.hcm-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--hcm-primary); }
.hcm-cal__day.is-in { background: color-mix(in srgb, var(--hcm-primary) 15%, #fff); border-radius: 0; }
.hcm-cal__day.is-ci, .hcm-cal__day.is-co { background: var(--hcm-primary); color: #fff; box-shadow: none; }
.hcm-cal__day.is-ci { border-radius: 7px 0 0 7px; }
.hcm-cal__day.is-co { border-radius: 0 7px 7px 0; }

/* Backdrop real del modal — se crea por JS a nivel de <body> al abrir (≤900px),
   así escapa de cualquier contexto de apilamiento (p. ej. el hero). */
.hcm-modal-backdrop {
	position: fixed; inset: 0; background: rgba(20,49,63,.5); z-index: 1099;
}
.hcm-modal-lock { overflow: hidden; }

/* Móvil y tablet: el popover pasa a modal centrado.
   El JS lo porta a <body>, por eso position:fixed se centra en el viewport
   en todas las páginas (incluido el hero). */
@media (max-width: 900px) {
	.hcm-cal {
		position: fixed; top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -50%);
		width: calc(100vw - 2rem); max-width: 420px; max-height: 85vh; overflow: auto;
		z-index: 1100;
	}
	.hcm-cal__months { flex-direction: column; }
}

/* Selector de huéspedes — popover con botones circulares */
.hcm-guests {
	position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 60;
	width: 320px; max-width: 90vw; background: #fff;
	border: 1px solid var(--hcm-border); border-radius: var(--hcm-radius);
	padding: var(--space-m); box-shadow: 0 -12px 40px rgba(20,49,63,.22);
}
.hcm-guests[hidden] { display: none; }
.hcm-gst__title { font-weight: 700; color: var(--hcm-primary-dark); margin-bottom: var(--space-s); }
.hcm-gst__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: 0.6rem 0; border-top: 1px solid var(--hcm-border); }
.hcm-gst__row:first-of-type { border-top: 0; }
.hcm-gst__lbl { font-weight: 700; color: var(--hcm-text); }
.hcm-gst__lbl span { display: block; font-weight: 400; font-size: var(--text-s); color: var(--hcm-text-soft); }
.hcm-gst__ctl { display: flex; align-items: center; gap: 0.6rem; }
.hcm-gst__pm {
	width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--hcm-primary);
	background: #fff; color: var(--hcm-primary); font-size: 1.2rem; font-weight: 700;
	cursor: pointer; line-height: 1; flex: 0 0 44px; padding: 0;
	display: grid; place-items: center;
}
.hcm-gst__pm:hover { background: var(--hcm-primary); color: #fff; }
.hcm-gst__pm:active { transform: scale(0.94); }
.hcm-gst__ctl input {
	flex: 0 0 auto; width: 2.5ch; min-width: 2.5ch; padding: 0; text-align: center;
	border: 0; font: inherit; font-weight: 700; line-height: 1;
	color: var(--hcm-text); background: transparent; -moz-appearance: textfield; pointer-events: none;
}
.hcm-gst__ctl input::-webkit-outer-spin-button,
.hcm-gst__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hcm-gst__done { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; margin-top: var(--space-s); min-height: 44px; }

@media (max-width: 900px) {
	.hcm-guests {
		position: fixed; top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -50%);
		width: calc(100vw - 2rem); max-width: 360px; z-index: 1100;
	}
}

.hcm-be__submit { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1 1 100%; }
.hcm-be__submit .hcm-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; font-size: var(--text-l); font-weight: 700; height: 62px; padding-inline: 2.2rem; }
.hcm-be__usp { font-size: var(--text-s); font-weight: 700; color: var(--hcm-text-soft); }
@media (min-width: 760px) {
	.hcm-be__submit { flex: 0 0 auto; gap: 0; }
	.hcm-be__submit .hcm-btn { width: auto; }
	.hcm-be__usp { position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0; text-align: center; white-space: nowrap; }
}
.hcm-be__alt { margin-top: var(--space-s); font-size: var(--text-s); color: var(--hcm-text-soft); }
.hcm-be__alt .hcm-btn { padding: 0.5rem 1rem; }

/* Buscador en el hero (estilo design: card flotante compacto) */
.hcm-reservas--hero { margin: 0; }
.hcm-reservas--hero .hcm-be {
	background: rgba(255,255,255,.97);
	border-color: var(--line);
	border-radius: 14px;
	padding: var(--s-4);
	box-shadow: 0 16px 40px rgba(20,49,63,.18), 0 2px 4px rgba(20,49,63,.06);
	gap: var(--s-3);
}
.hcm-reservas--hero .hcm-be__field { flex: 1 1 200px; }
.hcm-reservas--hero .hcm-be__dates { flex: 1.4 1 280px; }
.hcm-reservas--hero .hcm-be__datebtn { height: 48px; min-height: 48px; font-size: var(--fs-3); padding: 0 var(--s-3); }
.hcm-reservas--hero .hcm-be__submit .hcm-btn { height: 48px; font-size: var(--fs-3); padding-inline: var(--s-6); }
.hcm-reservas--hero .hcm-be__usp { display: none; }
.hcm-reservas--hero .hcm-be__field .hcm-be__lbl,
.hcm-reservas--hero .hcm-be__field label {
	font-size: 12px; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase;
}

/* Buscador compacto — columna estrecha (aside de la ficha de habitación) */
.hcm-reservas--compact { margin: 18px 0 0; }
.hcm-reservas--compact .hcm-be {
	flex-direction: column; align-items: stretch; flex-wrap: nowrap;
	background: transparent; border: 0; box-shadow: none; padding: 0; gap: 14px;
}
.hcm-reservas--compact .hcm-be__field { flex: 1 1 auto; }
.hcm-reservas--compact .hcm-be__datebtn { height: 52px; font-size: var(--fs-2); }
.hcm-reservas--compact .hcm-be__submit { flex: 1 1 auto; align-items: stretch; }
.hcm-reservas--compact .hcm-be__submit .hcm-btn { width: 100%; height: 52px; font-size: var(--fs-3); padding-inline: var(--s-4); }
.hcm-reservas--compact .hcm-be__usp { text-align: center; margin-top: var(--s-2); margin-bottom: var(--s-4); }
.hcm-reservas--compact .hcm-cal__month { min-width: 0; }
/* En escritorio el popover se ajusta al ancho de la columna estrecha y apila
   los dos meses; en móvil (≤680px) NO tocamos nada: sigue el modal centrado. */
@media (min-width: 681px) {
	.hcm-reservas--compact .hcm-cal,
	.hcm-reservas--compact .hcm-guests { left: 0; right: 0; width: auto; max-width: none; }
	.hcm-reservas--compact .hcm-cal__months { flex-direction: column; gap: var(--s-3); }
}

/* Página /reservar — selector de habitación, confianza, ayuda y pasos */
.hcm-be-picker { margin-bottom: var(--s-4); }
.hcm-be-picker__lbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; }
.hcm-be-picker__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hcm-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; text-decoration: none; color: var(--mar-900); line-height: 1.2; transition: border-color .15s, background .15s; }
.hcm-chip:hover { border-color: var(--mar-700); }
.hcm-chip.is-active { background: var(--mar-700); border-color: var(--mar-700); color: #fff; }
.hcm-chip__name { font-weight: 600; font-size: var(--fs-2); }
.hcm-chip__price { font-size: 11px; opacity: .8; }
.hcm-be__trust { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hcm-be__trust li { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2); font-weight: 600; color: var(--mar-900); }
.hcm-be__trust svg { color: var(--success); flex-shrink: 0; }
.hcm-be__help { margin-top: var(--s-5); padding: var(--s-5); border: 1px solid var(--line); border-radius: 14px; background: var(--cream-2); text-align: center; }
.hcm-be__help-lead { margin: 0 0 var(--s-3); color: var(--ink); font-weight: 600; }
.hcm-be__help-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.hcm-steps { counter-reset: step; list-style: none; margin: var(--s-5) 0; padding: 0; display: grid; gap: 14px; }
.hcm-steps li { position: relative; padding-left: 50px; min-height: 34px; line-height: 1.55; display: flex; align-items: center; }
.hcm-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--terra-500); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Utilidades */
.hcm-text-center { text-align: center; }
.hcm-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--terra-700); margin-bottom: var(--s-3); }
.hcm-eyebrow--light { color: var(--terra-200); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ficha de lugar (posts de zona) */
.hcm-lugar {
	background: var(--hcm-surface); border: 1px solid var(--hcm-border);
	border-radius: var(--hcm-radius); padding: var(--space-m);
	margin-block: var(--space-m); box-shadow: var(--hcm-shadow);
}
.hcm-lugar__name { margin-bottom: var(--space-s); color: var(--hcm-primary-dark); }
.hcm-lugar__rows { list-style: none; padding: 0; margin: 0 0 var(--space-s); }
.hcm-lugar__rows li { padding: 0.25rem 0; }
.hcm-lugar__cta { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* ===========================================================
   Sistema design (header, secciones, beneficios, room cards,
   vs booking, ubicación, CTA, iconos, botones sm/lg)
   =========================================================== */

/* Icono SVG en línea */
.hcm-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* Botones — variantes adicionales coherentes con design */
.hcm-btn { font-size: var(--fs-3); }
.hcm-btn--sm { padding: 0.55rem 0.95rem; font-size: var(--fs-2); }
.hcm-btn--lg { padding: 1rem 1.75rem; font-size: var(--fs-3); }
.hcm-btn--ghost {
	background: transparent; color: var(--mar-700);
	border: 1px solid var(--line-2);
}
.hcm-btn--ghost:hover { background: var(--paper); border-color: var(--mar-700); color: var(--mar-700); }

/* === Header — logo tipográfico al estilo design === */
.hcm-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.1) blur(14px); }
.hcm-header__bar { padding-block: var(--s-4); }
.hcm-header__brand { gap: 10px; }
.hcm-brand__mark {
	width: 40px; height: 40px; border-radius: 8px;
	background: var(--mar-700); color: #fff;
	display: grid; place-items: center;
	font-family: var(--font-display); font-weight: 600; font-size: 18px;
	letter-spacing: -0.02em;
}
.hcm-brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.hcm-brand__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--mar-900); }
.hcm-brand__sub { font-size: 10px; color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* Nav: pill activa al estilo design */
.hcm-nav__menu a { padding: 0.55rem 0.85rem; border-radius: 8px; font-size: var(--fs-2); }
.hcm-nav__menu .current-menu-item > a,
.hcm-nav__menu .current_page_item > a { color: var(--mar-900); background: var(--terra-50); }

/* Phone CTA con icono */
.hcm-header__phone {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.55rem 0.95rem; border: 1px solid var(--line-2); border-radius: var(--r-2);
	font-size: var(--fs-2); background: #fff;
}
.hcm-header__phone:hover { border-color: var(--mar-700); }
.hcm-header__phone svg { color: var(--mar-700); }

/* --- Móvil: despejar el header fijo y descongestionar la marca --- */
@media (max-width: 700px) {
	/* El isotipo ya lleva el nombre dentro: ocultamos el texto de al lado en la home */
	body.home .hcm-brand__name { display: none; }
	.hcm-brand__logo svg { height: 48px; }
	/* El hero no debe empezar debajo del header fijo */
	body.home .hcm-hero__inner { padding-top: calc(70px + var(--s-5)); }
}

/* ===== Header transparente sobre el hero (solo HOME) ===== */
body.home .hcm-header {
	position: fixed; left: 0; right: 0; top: 0;
	background: transparent; border-bottom-color: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Al inicio (sin scroll): todo en blanco sobre la foto */
body.home .hcm-header:not(.is-scrolled) .hcm-brand__title,
body.home .hcm-header:not(.is-scrolled) .hcm-brand__sub,
body.home .hcm-header:not(.is-scrolled) .hcm-nav__menu a,
body.home .hcm-header:not(.is-scrolled) .hcm-nav__toggle,
body.home .hcm-header:not(.is-scrolled) .hcm-header__call { color: #fff; text-shadow: 0 1px 6px rgba(20,49,63,.45); }
body.home .hcm-header:not(.is-scrolled) .hcm-brand__logo { color: #fff; filter: drop-shadow(0 1px 4px rgba(20,49,63,.45)); }
body.home .hcm-header:not(.is-scrolled) .hcm-nav__menu a:hover,
body.home .hcm-header:not(.is-scrolled) .hcm-nav__menu .current-menu-item > a,
body.home .hcm-header:not(.is-scrolled) .hcm-nav__menu .current_page_item > a { color: #fff; background: rgba(255,255,255,.18); }
body.home .hcm-header:not(.is-scrolled) .hcm-header__phone { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; }
body.home .hcm-header:not(.is-scrolled) .hcm-header__phone svg { color: #fff; }
body.home .hcm-header:not(.is-scrolled) .hcm-lang { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
body.home .hcm-header:not(.is-scrolled) .hcm-lang a { color: rgba(255,255,255,.88); }
body.home .hcm-header:not(.is-scrolled) .hcm-lang .current-lang a { background: rgba(255,255,255,.92); color: var(--mar-900); }
/* Al hacer scroll: header sólido blanco con sombra */
body.home .hcm-header.is-scrolled {
	background: rgba(255,255,255,.95);
	-webkit-backdrop-filter: saturate(1.1) blur(14px); backdrop-filter: saturate(1.1) blur(14px);
	border-bottom-color: var(--hcm-border); box-shadow: 0 2px 18px rgba(20,49,63,.08);
}

/* === Sección: head (eyebrow + h2 + intro) === */
.hcm-section__head { margin-bottom: var(--s-8); max-width: 760px; }
.hcm-section__intro { font-size: var(--fs-4); color: var(--ink-2); margin-top: var(--s-3); }
.hcm-section--dark { background: var(--mar-900); color: #fff; }
.hcm-section--dark h2 { color: #fff; }
.hcm-section--dark .hcm-eyebrow { color: var(--terra-200); }

/* === Beneficios === */
.hcm-benefits {
	display: grid; gap: var(--s-5);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.hcm-benefit {
	padding: var(--s-5); border: 1px solid var(--line);
	border-radius: 14px; background: var(--cream);
	display: flex; flex-direction: column; gap: 10px;
}
.hcm-benefit__icon {
	width: 44px; height: 44px; border-radius: 10px;
	background: var(--mar-700); color: #fff;
	display: grid; place-items: center;
}
.hcm-benefit__title { font-weight: 600; font-size: var(--fs-3); color: var(--mar-900); }
.hcm-benefit__body { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.55; }
/* Móvil: 2 tarjetas por fila para reducir scroll */
@media (max-width: 700px) {
	.hcm-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
	.hcm-benefit { padding: var(--s-4); border-radius: 12px; gap: 8px; }
	.hcm-benefit__icon { width: 38px; height: 38px; border-radius: 9px; }
	.hcm-benefit__title { font-size: var(--fs-2); }
}

/* === Room cards (nueva versión design) === */
.hcm-servicios-grid {
	display: grid; gap: var(--s-6);
	grid-template-columns: repeat(var(--hcm-cols, 3), 1fr);
}
@media (max-width: 860px) { .hcm-servicios-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hcm-servicios-grid { grid-template-columns: 1fr; } }

.hcm-room-card {
	background: #fff; border: 1px solid var(--line);
	border-radius: 16px; overflow: hidden;
	display: flex; flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.hcm-room-card:hover { box-shadow: 0 12px 32px rgba(20,49,63,.12); transform: translateY(-2px); }
.hcm-room-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.hcm-room-card__img img { width: 100%; height: 100%; object-fit: cover; }
.hcm-ph {
	display: block; width: 100%; height: 100%;
	background:
		repeating-linear-gradient(135deg,
			rgba(27,73,101,.045) 0 10px,
			rgba(27,73,101,.075) 10px 20px);
}
.hcm-room-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hcm-room-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.hcm-room-card__title { font-size: var(--fs-5); font-weight: 500; margin: 0; }
.hcm-room-card__title a { text-decoration: none; color: var(--mar-900); }
.hcm-room-card__price { margin: 0; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.hcm-room-card__price span { font-size: var(--fs-1); color: var(--ink-2); }
.hcm-room-card__price strong { font-size: var(--fs-5); font-weight: 600; color: var(--mar-900); }
.hcm-room-card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.hcm-room-card__tags li {
	font-size: var(--fs-1); color: var(--ink-2);
	border: 1px solid var(--line-2); border-radius: 999px;
	padding: 3px 10px; background: var(--cream);
}
.hcm-room-card__excerpt { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.55; margin: 0; }
.hcm-room-card__actions { display: flex; gap: 10px; margin-top: 6px; }
.hcm-room-card__actions .hcm-btn--primary { flex: 1; }

/* === VS Booking === */
.hcm-vs {
	display: grid; gap: var(--s-9);
	grid-template-columns: 1fr 1.2fr; align-items: start;
}
@media (max-width: 860px) { .hcm-vs { grid-template-columns: 1fr; gap: var(--s-7); } }
.hcm-vs__lede h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-bottom: var(--s-4); color: #fff; font-weight: 400; }
.hcm-vs__lede p { color: rgba(255,255,255,.78); font-size: var(--fs-3); margin-bottom: var(--s-5); }
.hcm-vs__table {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 16px; overflow: hidden;
}
.hcm-vs__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-3); padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); align-items: start; font-size: var(--fs-2); }
.hcm-vs__row--head { background: rgba(255,255,255,.06); border-top: 0; font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); font-weight: 600; padding: 12px 16px; }
.hcm-vs__col-direct { color: var(--terra-200); }
.hcm-vs__label { font-weight: 600; }
.hcm-vs__direct { color: rgba(255,255,255,.92); display: flex; gap: 6px; }
.hcm-vs__direct .hcm-icon { color: var(--terra-500); margin-top: 2px; }
.hcm-vs__booking { color: rgba(255,255,255,.6); display: flex; gap: 6px; }
.hcm-vs__booking .hcm-icon { margin-top: 2px; }

/* === Ubicación grid === */
.hcm-location-grid {
	display: grid; gap: var(--s-7);
	grid-template-columns: 1fr 1.2fr; align-items: center;
}
@media (max-width: 860px) { .hcm-location-grid { grid-template-columns: 1fr; } }
.hcm-location-grid iframe { border-radius: var(--r-3); width: 100%; }

/* === CTA row === */
.hcm-cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* Hover/lift en cards de descubre (posts) coherente con design */
.hcm-servicio-card { border-radius: 16px; transition: box-shadow .2s, transform .2s; }
.hcm-servicio-card:hover { box-shadow: 0 12px 32px rgba(20,49,63,.12); transform: translateY(-2px); }

/* ===========================================================
   Ficha de habitación (single-servicio)
   =========================================================== */
.hcm-room-detail { padding-block: var(--s-9); }

.hcm-room-detail__gallery {
	display: grid; gap: var(--s-3);
	margin-bottom: var(--s-8);
	grid-template-columns: 1.6fr 1fr;
}
.hcm-room-detail__main { margin: 0; }
.hcm-room-detail__main img,
.hcm-room-detail__main .hcm-ph {
	width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px;
}
.hcm-room-detail__thumbs {
	display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
}
.hcm-room-detail__thumbs figure { margin: 0; }
.hcm-room-detail__thumbs img {
	width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
}
@media (max-width: 860px) {
	.hcm-room-detail__gallery { grid-template-columns: 1fr; }
	.hcm-room-detail__thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

.hcm-room-detail__grid {
	display: grid; grid-template-columns: 1.4fr 1fr;
	gap: var(--s-9); align-items: start;
}
@media (max-width: 860px) {
	.hcm-room-detail__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

.hcm-room-detail__body h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
	line-height: 1.05; margin-bottom: var(--s-3);
}
.hcm-room-detail__body h2 {
	font-size: var(--fs-5); margin-top: var(--s-7); margin-bottom: var(--s-3);
}
.hcm-room-detail__meta {
	list-style: none; padding: 0; margin: 0 0 var(--s-6);
	display: flex; flex-wrap: wrap; gap: var(--s-4);
	font-size: var(--fs-3); color: var(--ink-2);
}
.hcm-room-detail__meta li { display: inline-flex; align-items: center; gap: 6px; }
.hcm-room-detail__meta svg { color: var(--mar-700); }

.hcm-amenities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--s-3); margin-bottom: var(--s-7);
}
.hcm-amenity {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px;
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	font-size: var(--fs-2);
}
.hcm-amenity svg { color: var(--mar-700); }

.hcm-includes {
	list-style: none; padding: 0; margin: 0 0 var(--s-7);
	display: flex; flex-direction: column; gap: 10px;
	font-size: var(--fs-3);
}
.hcm-includes li { display: flex; gap: 10px; align-items: flex-start; }
.hcm-includes svg { color: var(--success); margin-top: 2px; flex-shrink: 0; }

.hcm-callout {
	background: var(--cream-2); border: 1px solid var(--line);
	border-radius: 12px; padding: 18px; font-size: var(--fs-2); color: var(--ink-2);
}
.hcm-callout strong { color: var(--mar-900); display: block; margin-bottom: 4px; }

/* Booking card sticky */
.hcm-booking-card {
	position: sticky; top: 100px;
	background: #fff; border: 1px solid var(--line);
	border-radius: 16px; padding: 22px; box-shadow: var(--sh-2);
}
@media (max-width: 860px) { .hcm-booking-card { position: static; } }
.hcm-booking-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.hcm-booking-card__price span { font-size: var(--fs-1); color: var(--ink-2); }
.hcm-booking-card__price strong { font-size: 32px; font-weight: 600; color: var(--mar-900); font-family: var(--font-display); }
.hcm-booking-card__save {
	display: flex; align-items: center; gap: 6px;
	font-size: var(--fs-1); color: var(--terra-700);
	font-weight: 600; margin-bottom: 16px;
}
.hcm-booking-card__cta { width: 100%; justify-content: center; }
.hcm-booking-card__bullets {
	list-style: none; padding: 16px 0 0; margin-top: 16px;
	border-top: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 10px;
	font-size: var(--fs-1); color: var(--ink-2);
}
.hcm-booking-card__bullets li { display: flex; gap: 8px; align-items: center; }
.hcm-booking-card__bullets svg { color: var(--success); flex-shrink: 0; }
.hcm-booking-card__bullets li:last-child svg { color: var(--mar-700); }
.hcm-booking-card__bullets a { color: var(--mar-700); }

/* ===========================================================
   Post de zona (single.php)
   =========================================================== */
.hcm-zone-post { padding-block: var(--s-9); }
.hcm-zone-post__head { max-width: 820px; margin-bottom: var(--s-6); }
.hcm-zone-post__head h1 {
	font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
	line-height: 1.05; margin-top: var(--s-3);
}
.hcm-zone-post__meta {
	font-size: var(--fs-2); color: var(--ink-2);
	margin-top: var(--s-3);
	display: flex; gap: var(--s-3); flex-wrap: wrap;
}
.hcm-zone-post__cover { margin: 0 0 var(--s-7); }
.hcm-zone-post__cover img {
	border-radius: 16px; aspect-ratio: 16 / 8;
	object-fit: cover; width: 100%;
}
.hcm-zone-post__grid {
	display: grid; grid-template-columns: 1.5fr 1fr;
	gap: var(--s-9); align-items: start;
}
@media (max-width: 860px) {
	.hcm-zone-post__grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
.hcm-zone-post__body { font-size: var(--fs-4); line-height: 1.7; color: var(--ink); }
.hcm-zone-post__body p { margin-bottom: 1.25em; font-size: inherit; }
.hcm-zone-post__body h2 { font-size: var(--fs-6); margin: 1.6em 0 0.6em; }
.hcm-zone-post__body h3 { font-size: var(--fs-5); margin: 1.4em 0 0.5em; }

.hcm-zone-post__aside {
	position: sticky; top: 100px;
	background: #fff; border: 1px solid var(--line);
	border-radius: 14px; padding: 22px;
	box-shadow: var(--sh-2);
	display: flex; flex-direction: column; gap: 12px;
}
@media (max-width: 860px) { .hcm-zone-post__aside { position: static; } }
.hcm-zone-post__aside h3 { font-size: var(--fs-5); margin-bottom: 0; }
.hcm-zone-post__aside-lead { font-size: var(--fs-2); color: var(--ink-2); margin: 0 0 4px; }
.hcm-zone-post__aside .hcm-btn { width: 100%; justify-content: center; }

/* CTA final (estilo design) */
.hcm-section--warm { background: var(--terra-50); }
.hcm-cta-final__title { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); line-height: 1.05; margin-bottom: var(--s-3); }
.hcm-cta-final__lead { font-size: var(--fs-4); color: var(--ink-2); max-width: 640px; margin: 0 auto var(--s-7); }
.hcm-section--warm .hcm-cta-row { justify-content: center; gap: var(--s-3); }
.hcm-section--warm .hcm-cta-row .hcm-btn { padding-inline: 1.5rem; }

/* Ubicación — sección estilo design (mapa estilizado + tarjetas distancias) */
.hcm-section--cream2 { background: var(--cream-2); }
.hcm-location-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
@media (max-width: 860px) { .hcm-location-grid { grid-template-columns: 1fr; } }

.hcm-location__copy h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); line-height: 1.1; margin-bottom: var(--s-4); }
.hcm-location__copy p { margin-bottom: var(--s-3); color: var(--ink-2); font-size: var(--fs-3); }

.hcm-distances {
	display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
	margin: var(--s-5) 0 var(--s-6); padding: 0;
}
.hcm-distance {
	padding: 12px 14px;
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.hcm-distance dt { font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.hcm-distance dd { margin: 0; font-size: var(--fs-3); }
.hcm-distance dd strong { font-weight: 600; color: var(--mar-900); font-family: var(--font-display); }
.hcm-distance dd span { font-size: 12px; color: var(--ink-2); margin-left: 4px; }

.hcm-location__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mapa estilizado */
.hcm-map {
	position: relative;
	min-height: 460px;
	border-radius: 16px; overflow: hidden;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, #EFE6D2 0%, #E8DCC0 100%);
}
@media (max-width: 860px) { .hcm-map { min-height: 280px; } }
.hcm-map__svg { width: 100%; height: 100%; display: block; }
.hcm-map__embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hcm-map__pin {
	position: absolute; left: 46%; top: 52%;
	transform: translate(-50%, -100%);
	display: inline-flex; flex-direction: column; align-items: center;
}
.hcm-map__pin-tag {
	background: var(--terra-500); color: #fff;
	padding: 8px 12px; border-radius: 999px;
	font-weight: 600; font-size: 13px;
	box-shadow: 0 6px 18px rgba(20,49,63,.25);
	display: inline-flex; align-items: center; gap: 6px;
	white-space: nowrap;
}
.hcm-map__pin-arrow {
	width: 0; height: 0;
	border-left: 8px solid transparent; border-right: 8px solid transparent;
	border-top: 10px solid var(--terra-500);
	margin: 0 auto;
}
.hcm-map__addr {
	position: absolute; left: 16px; bottom: 16px; z-index: 2; pointer-events: none;
	background: rgba(255,255,255,.95); padding: 10px 12px;
	border-radius: 10px; font-size: 13px;
	border: 1px solid var(--line);
	font-family: ui-monospace, monospace;
	color: var(--mar-900);
}

/* Descubre la zona — tarjeta de post estilo design */
.hcm-section__head--row {
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: var(--s-5); max-width: none;
}
.hcm-section__head--row > div { max-width: 760px; }
.hcm-section__more {
	color: var(--mar-700); text-decoration: underline;
	text-underline-offset: 3px; font-weight: 600;
	white-space: nowrap;
}
.hcm-section__more:hover { color: var(--mar-900); }

.hcm-descubre-grid {
	display: grid; gap: var(--s-6);
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .hcm-descubre-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hcm-descubre-grid { grid-template-columns: 1fr; } }

.hcm-post-card {
	background: #fff; border: 1px solid var(--line);
	border-radius: 16px; overflow: hidden;
	display: flex; flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.hcm-post-card:hover { box-shadow: 0 12px 32px rgba(20,49,63,.12); transform: translateY(-2px); }
.hcm-post-card__img {
	position: relative; display: block;
	aspect-ratio: 4 / 3; overflow: hidden;
	background: var(--terra-50);
	border-bottom: 1px solid var(--line);
}
.hcm-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.hcm-post-card__img .hcm-ph {
	background:
		repeating-linear-gradient(135deg,
			rgba(217,140,74,.08) 0 12px,
			rgba(217,140,74,.16) 12px 24px);
}
.hcm-post-card__tag {
	position: absolute; left: 14px; bottom: 14px;
	background: rgba(255,255,255,.95);
	padding: 5px 10px; border-radius: 6px;
	font-size: 11px; font-family: ui-monospace, monospace;
	letter-spacing: .04em; color: var(--mar-900);
	border: 1px solid var(--line);
}
.hcm-post-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hcm-post-card__meta {
	display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
	font-size: 12px;
}
.hcm-post-card__cat {
	color: var(--terra-700); font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em;
}
.hcm-post-card__dist { color: var(--ink-2); }
.hcm-post-card__title { font-size: var(--fs-5); font-weight: 500; margin: 0; }
.hcm-post-card__title a { color: var(--mar-900); text-decoration: none; }
.hcm-post-card__excerpt { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1; }
.hcm-post-card__link {
	color: var(--mar-700); font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px;
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 4px;
}

/* Cover con etiqueta placeholder (post de zona) */
.hcm-zone-post__cover {
	position: relative; aspect-ratio: 16 / 8; overflow: hidden;
	border-radius: 16px; margin: 0 0 var(--s-7);
}
.hcm-zone-post__cover .hcm-ph {
	display: block; width: 100%; height: 100%;
	background:
		repeating-linear-gradient(135deg,
			rgba(217,140,74,.08) 0 14px,
			rgba(217,140,74,.16) 14px 28px);
	border: 1px solid var(--line);
	border-radius: 16px;
}
.hcm-zone-post__cover-tag {
	position: absolute; left: 18px; bottom: 18px;
	background: rgba(255,255,255,.95);
	padding: 6px 12px; border-radius: 6px;
	font-size: 11px; font-family: ui-monospace, monospace;
	letter-spacing: .06em; color: var(--mar-900);
	border: 1px solid var(--line);
}

/* Callout CONSEJO */
.hcm-consejo {
	margin: var(--s-7) 0;
	padding: 18px 22px;
	background: var(--terra-50);
	border-left: 3px solid var(--terra-500);
	border-radius: 0 12px 12px 0;
}
.hcm-consejo .hcm-eyebrow { margin-bottom: 6px; }
.hcm-consejo p { font-size: var(--fs-3); color: var(--mar-900); line-height: 1.55; }

.hcm-zone-post__cta {
	margin-top: var(--s-6);
	color: var(--ink-2); font-size: var(--fs-3);
}
.hcm-zone-post__cta a {
	color: var(--mar-700); font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px;
}

/* Place card sidebar (sustituye al genérico) */
.hcm-place-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--sh-2); }
.hcm-place-card .hcm-eyebrow { margin-bottom: 10px; }
.hcm-place-card__name {
	font-family: var(--font-display); font-weight: 500;
	font-size: 26px; line-height: 1.15; margin: 0 0 18px; color: var(--mar-900);
}
.hcm-place-card__rows {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 14px;
	font-size: 15px;
}
.hcm-place-card__rows li { display: flex; gap: 12px; align-items: flex-start; }
.hcm-place-card__rows svg { color: var(--mar-700); flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.hcm-place-card__rows a { color: var(--mar-900); font-weight: 700; font-size: 16px; }
.hcm-place-card__rows li:has(svg + a) { /* teléfono más prominente */ }
.hcm-place-card__cta {
	display: flex; flex-direction: column; gap: 10px;
	margin-top: 22px;
}
.hcm-place-card__cta .hcm-btn {
	width: 100%; justify-content: center;
	border-radius: 12px;
	height: 52px;
	padding: 0;
	font-size: 16px;
}
.hcm-place-card__cta .hcm-btn--ghost {
	background: #fff; color: var(--mar-900);
	border: 1px solid var(--line-2);
}
.hcm-place-card__cta .hcm-btn--ghost:hover { border-color: var(--mar-700); }
.hcm-place-card__cta .hcm-btn svg { color: currentColor; }

/* Sidebar de reserva (single-servicio) — estructura estilo design:
   card (precio + form) + botón externo + bullets fuera. */
.hcm-booking-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .hcm-booking-aside { position: static; } }
.hcm-booking-aside__cta { width: 100%; justify-content: center; }
.hcm-booking-aside__bullets {
	list-style: none; padding: 16px 0 0; margin: 0;
	border-top: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 12px;
	font-size: var(--fs-2); color: var(--ink-2);
}
.hcm-booking-aside__bullets li { display: flex; gap: 10px; align-items: center; }
.hcm-booking-aside__bullets svg { color: var(--success); flex-shrink: 0; }
.hcm-booking-aside__bullets li:last-child svg { color: var(--mar-700); }
.hcm-booking-aside__bullets a { color: var(--mar-700); }

/* Reset position de la card interna (ya no sticky por sí misma) */
.hcm-booking-aside .hcm-booking-card { position: static; padding: 24px; }

/* ===========================================================
   Página Ubicación (page-ubicacion.php)
   =========================================================== */
.hcm-ubic-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-9); align-items: start; }
.hcm-ubic-intro__copy, .hcm-nap-card { min-width: 0; }
@media (max-width: 860px) { .hcm-ubic-intro { grid-template-columns: 1fr; gap: var(--s-7); } }
.hcm-ubic-intro__copy h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.04; margin-bottom: var(--s-5); }
.hcm-ubic-intro__copy p { color: var(--ink-2); font-size: var(--fs-4); margin-bottom: var(--s-4); }

.hcm-nap-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--sh-2); max-width: 100%; box-sizing: border-box; }
@media (max-width: 480px) { .hcm-nap-card { padding: 22px; } }
.hcm-nap-card__name { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 8px 0 16px; color: var(--mar-900); overflow-wrap: anywhere; }
.hcm-nap-card__addr { font-style: normal; color: var(--ink-2); font-size: var(--fs-3); line-height: 1.7; margin-bottom: 20px; overflow-wrap: anywhere; }
.hcm-nap-card__btn { width: 100%; justify-content: center; height: 52px; border-radius: 12px; margin-bottom: 10px; }
.hcm-nap-card__btn span { overflow-wrap: anywhere; }
.hcm-nap-card__email { display: block; text-align: center; margin-top: 6px; color: var(--mar-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: break-word; }

/* Mapa grande */
.hcm-map--lg { min-height: 380px; }
.hcm-ubic-mapwrap { padding-top: 0; }
.hcm-ubic-mapcta { margin-top: var(--s-5); }

.hcm-distances--lg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .hcm-distances--lg { grid-template-columns: 1fr 1fr; } }

/* Bloque honesto */
.hcm-ubic-honest { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .hcm-ubic-honest { grid-template-columns: 1fr; gap: var(--s-6); } }
.hcm-ubic-honest h2 { color: #fff; font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); line-height: 1.1; margin-bottom: var(--s-4); }
.hcm-ubic-honest__lede p { color: rgba(255,255,255,.78); font-size: var(--fs-3); max-width: 460px; line-height: 1.6; }
.hcm-ubic-honest__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .hcm-ubic-honest__cards { grid-template-columns: 1fr; } }
.hcm-ubic-honest__card h3 { text-transform: uppercase; letter-spacing: .06em; }
.hcm-ubic-honest__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 18px 20px; }
.hcm-ubic-honest__card h3 { color: var(--terra-200); font-family: var(--font-body); font-size: var(--fs-3); font-weight: 700; margin-bottom: 6px; }
.hcm-ubic-honest__card p { color: rgba(255,255,255,.8); font-size: var(--fs-2); line-height: 1.55; }

/* "Qué hay cerca" — tarjetas POI con icono (estilo design) */
.hcm-poi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
@media (max-width: 1000px) { .hcm-poi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hcm-poi-grid { grid-template-columns: 1fr; } }
.hcm-poi-card {
	background: #fff; border: 1px solid var(--line);
	border-radius: 14px; padding: 22px;
	display: flex; flex-direction: column; gap: 10px;
}
.hcm-poi-card.is-featured { background: var(--cream-2); border-color: var(--line-2); }
.hcm-poi-card__top { display: flex; align-items: center; gap: 12px; }
.hcm-poi-card__icon {
	width: 44px; height: 44px; border-radius: 12px;
	background: var(--mar-700); color: #fff;
	display: grid; place-items: center; flex-shrink: 0;
}
.hcm-poi-card__icon--terra { background: var(--terra-500); }
.hcm-poi-card__title {
	font-family: var(--font-body); font-size: var(--fs-4); font-weight: 600;
	color: var(--mar-900); margin: 0; letter-spacing: 0;
}
.hcm-poi-card__meta { margin: 0; font-size: var(--fs-2); color: var(--ink-2); }
.hcm-poi-card__meta strong { color: var(--terra-700); font-weight: 700; }
.hcm-poi-card__desc { margin: 0; font-size: var(--fs-2); color: var(--ink-2); line-height: 1.5; }

/* Aparcamiento + check-in (2 tarjetas, Ubicación) */
.hcm-info2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 760px) { .hcm-info2-grid { grid-template-columns: 1fr; } }
.hcm-info-card {
	display: flex; gap: 18px; align-items: flex-start;
	background: #fff; border: 1px solid var(--line);
	border-radius: 16px; padding: 26px; box-shadow: var(--sh-1);
}
.hcm-info-card__icon {
	width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
	background: var(--terra-50); color: var(--mar-700);
	display: grid; place-items: center;
}
.hcm-info-card__body h3 { font-size: var(--fs-5); margin-bottom: 10px; }
.hcm-info-card__body p { font-size: var(--fs-3); color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; }
.hcm-info-card__note { font-size: var(--fs-2); color: var(--ink-3); margin-bottom: 0 !important; }

/* ===========================================================
   Página Contacto (page-contacto.php)
   =========================================================== */
.hcm-contacto { max-width: 680px; margin-inline: auto; text-align: center; }
.hcm-contacto__title { font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4rem); line-height: 1.04; margin: var(--s-3) 0 var(--s-5); }
.hcm-contacto__lead { font-size: var(--fs-4); color: var(--ink-2); max-width: 520px; margin: 0 auto var(--s-7); }
.hcm-contacto .hcm-cta-row { justify-content: center; }
.hcm-contacto__divider { width: 48px; height: 2px; background: var(--terra-500); border: 0; margin: var(--s-9) auto; }
.hcm-contacto__details { display: flex; flex-direction: column; gap: var(--s-7); }
.hcm-contacto__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.hcm-contacto__value { display: inline-block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); color: var(--mar-900); text-decoration: none; }
.hcm-contacto__value:hover { color: var(--terra-700); }
.hcm-contacto__note { font-size: var(--fs-2); color: var(--ink-2); margin-top: 4px; }
