@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════
   HeyBacalar — Ficha de lugar · v2.1 · revista arriba, libreta abajo
   Lo carga single-gd_place.php. Todo empieza con .hbf- para no chocar
   con la ficha v1 (.hb-band, .hb-card, .hb-gal…).
   ═══════════════════════════════════════════════════════════════════ */

.hbf {
	--tinta: #22302C;
	--gris: #4A5853;
	--gris-2: #5E6C67;
	--linea: #E3E6E0;
	--suave: #F3F5F2;
	--teal: #0B6E7A;
	--teal-h: #085A64;
	--serif: var(--hb-serif, "Fraunces", Georgia, serif);
	--mono: var(--hb-mono, "Space Mono", monospace);
	display: block;
	background: #FFFFFF;
	color: var(--tinta);
	font-family: var(--hb-sans, "Figtree", system-ui, sans-serif);
	padding-bottom: 104px;               /* aire para la barra fija del teléfono */
}
.hbf *, .hbf *::before, .hbf *::after { box-sizing: border-box; }
.hbf svg { flex: none; }
.hbf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hbf a:focus-visible, .hbf button:focus-visible, .hbf summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }


/* ── Portada ──────────────────────────────────────────────────────── */
.hbf-portada {
	position: relative; isolation: isolate;
	display: flex; align-items: flex-end;
	width: 100%; height: min(80svh, 680px); min-height: 420px;
	overflow: hidden; color: #FFFFFF;
	background: #163234;
}
.hbf .hbf-portada-img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%;
}
/* El velo empieza casi transparente y se oscurece donde va el texto:
   el nombre se lee sobre cualquier foto. */
.hbf-portada::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg,
		rgba(10, 18, 20, .30) 0%, rgba(10, 18, 20, 0) 26%,
		rgba(10, 18, 20, .45) 58%, rgba(10, 18, 20, .90) 100%);
}
.hbf-portada-txt {
	width: 100%; max-width: 760px; margin: 0 auto;
	padding: 0 20px 30px;
	display: flex; flex-direction: column; gap: 10px;
}
.hbf .hbf-sec {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: rgba(255, 255, 255, .92);
}
.hbf-punto { width: 9px; height: 9px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.hbf-joya {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px 3px 7px; border-radius: 999px;
	background: #FBF3E2; color: #7A5410; letter-spacing: .08em;
}
.hbf-joya svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbf .hbf-titulo {
	font-family: var(--serif); font-weight: 500;
	font-size: clamp(2.9rem, 13vw, 5.4rem); line-height: .98; letter-spacing: -.02em;
	color: #FFFFFF; text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.hbf .hbf-gancho {
	max-width: 34ch;
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: clamp(1.15rem, 4.6vw, 1.45rem); line-height: 1.4;
	color: rgba(255, 255, 255, .94);
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* Sin foto: portada tipográfica sobre el color de la sección, con la
   rayita de los siete colores. Nunca un cuadro gris. */
.hbf-sinfoto .hbf-portada { height: auto; min-height: 0; padding-top: 84px; background: #163234; }
@supports (background: color-mix(in srgb, red 10%, white)) {
	.hbf-sinfoto .hbf-portada { background: color-mix(in srgb, var(--cat) 34%, #102326); }
}
.hbf-sinfoto .hbf-portada::before { display: none; }
.hbf-sinfoto .hbf-portada::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg,
		#0B6E7A 0 14.3%, #0E8A96 0 28.6%, #17A5AD 0 42.9%, #36C4C0 0 57.2%,
		#6FD9CE 0 71.5%, #A6E8DC 0 85.8%, #CDEFE6 0);
}
.hbf-sinfoto .hbf-portada-txt { padding-bottom: 40px; }


/* ── Columna de lectura ───────────────────────────────────────────── */
.hbf-col { max-width: 700px; margin: 0 auto; padding: 0 20px; }

.hbf .hbf-esencial { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.hbf-esencial li {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 13px; border-radius: 999px;
	background: var(--suave); font-size: 14px; font-weight: 600; line-height: 1.2;
}
.hbf-esencial svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbf-esencial .hbf-estado[data-tono="nd"]      { color: var(--gris-2); }
.hbf-esencial .hbf-estado[data-tono="ok"]      { background: #E8F3EC; color: #1F7A45; }
.hbf-esencial .hbf-estado[data-tono="pronto"]  { background: #FBF3E2; color: #8A5A12; }
.hbf-esencial .hbf-estado[data-tono="cerrado"] { background: #FBECEC; color: #A33131; }

.hbf .hbf-ref { display: flex; gap: 7px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--gris); }
.hbf-ref svg { width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--cat); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Aviso cuando un texto todavía no está traducido */
.hbf .hbf-aviso-idioma { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; line-height: 1.5; color: var(--gris-2); }

/* La nota */
.hbf .hbf-prosa { margin-top: 26px; font-size: 18px; line-height: 1.7; }
.hbf .hbf-prosa p + p { margin-top: 14px; }
.hbf .hbf-capital > p:first-child::first-letter {
	float: left;
	font-family: var(--serif); font-weight: 500;
	font-size: 4.1em; line-height: .82;
	padding: .07em .1em 0 0; color: var(--tinta);
}

/* Nuestra opinión, como cita destacada */
.hbf .hbf-cita {
	margin: 34px 0 6px; padding: 22px 0 0; border: 0; background: none;
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.32; color: var(--tinta);
	position: relative;
}
.hbf .hbf-cita::before {
	content: ""; position: absolute; left: 0; top: 0; width: 84px; height: 4px; border-radius: 2px;
	background: linear-gradient(90deg,
		#0B6E7A 0 14.3%, #0E8A96 0 28.6%, #17A5AD 0 42.9%, #36C4C0 0 57.2%,
		#6FD9CE 0 71.5%, #A6E8DC 0 85.8%, #CDEFE6 0);
}
.hbf .hbf-cita p + p { margin-top: 10px; }
.hbf-cita footer {
	margin-top: 14px; font-family: var(--mono); font-style: normal;
	font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris);
}

/* Una foto a todo lo ancho entre la nota y la libreta */
.hbf .hbf-foto-ancha { margin: 34px 0 0; }
.hbf .hbf-foto-ancha img { display: block; width: 100%; height: clamp(260px, 72vw, 560px); max-width: none; object-fit: cover; }


/* ── La libreta: secciones numeradas, cerradas ────────────────────── */
.hbf-libreta { margin-top: 38px; border-top: 2px solid var(--tinta); }
.hbf-d { border-bottom: 1px solid var(--linea); }
.hbf-d > summary {
	display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; align-items: center; gap: 6px;
	padding: 18px 0; cursor: pointer; list-style: none;
	-webkit-tap-highlight-color: transparent;
}
.hbf-d > summary::-webkit-details-marker { display: none; }
.hbf-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cat); align-self: start; padding-top: 5px; }
.hbf-sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hbf-sum b { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; }
.hbf-sum small { font-size: 14px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbf-d[open] .hbf-sum small { visibility: hidden; height: 0; }
.hbf-signo { position: relative; width: 28px; height: 28px; border: 1.5px solid var(--tinta); border-radius: 50%; }
.hbf-signo::before, .hbf-signo::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--tinta);
	transition: transform .2s ease, opacity .2s ease;
}
.hbf-signo::after { transform: rotate(90deg); }
.hbf-d[open] .hbf-signo::after { transform: rotate(0); opacity: 0; }
.hbf-d > summary:hover .hbf-signo { background: var(--suave); }
.hbf-det { padding: 0 0 26px; }

/* Cómo funciona */
.hbf .hbf-como { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.hbf .hbf-como dt {
	display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gris);
}
.hbf-como dt svg { width: 17px; height: 17px; fill: none; stroke: var(--cat); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbf .hbf-como dd { margin: 0; font-size: 16.5px; line-height: 1.6; }
.hbf .hbf-como dd p + p { margin-top: 8px; }

.hbf .hbf-semana { border-collapse: collapse; font-size: 15.5px; width: auto; min-width: 260px; margin: 0; }
.hbf .hbf-semana th, .hbf .hbf-semana td { padding: 5px 10px; border: 0; text-align: left; font-weight: 400; background: none; }
.hbf .hbf-semana th { width: 64px; padding-left: 8px; color: var(--gris); }
.hbf .hbf-semana tr.hbf-cerrado td { color: var(--gris-2); }
.hbf .hbf-semana tr.hbf-hoy th, .hbf .hbf-semana tr.hbf-hoy td { background: var(--suave); font-weight: 700; color: var(--tinta); }
.hbf-semana tr.hbf-hoy th { border-radius: 8px 0 0 8px; }
.hbf-semana tr.hbf-hoy td { border-radius: 0 8px 8px 0; }
.hbf .hbf-costumbre { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--gris-2); max-width: 52ch; }

.hbf .hbf-hay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.hbf-hay li { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.hbf-hay svg { width: 17px; height: 17px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hbf-hay li.si svg { stroke: #1F7A45; }
.hbf-hay li.no { color: var(--gris-2); }
.hbf-hay li.no svg { stroke: #9AA5A1; }

/* Recomendaciones */
.hbf .hbf-lista { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.5; }
.hbf-lista li { display: flex; gap: 10px; }
.hbf-lista li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; border-radius: 50%; background: var(--cat); }

/* Dónde está */
.hbf-mapa { position: relative; height: 260px; border-radius: 16px; overflow: hidden; background: var(--suave); }
.hbf-mapa iframe { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; border: 0; pointer-events: none; }
.hbf .hbf-mapa-ir {
	position: absolute; left: 12px; bottom: 12px;
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 44px; padding: 0 16px; border-radius: 999px;
	background: var(--teal); color: #FFFFFF; font-size: 14px; font-weight: 700;
	box-shadow: 0 6px 16px -8px rgba(18, 25, 27, .5);
}
.hbf-mapa-ir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbf .hbf-datos { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.hbf-datos li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.hbf-datos svg { width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--gris-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbf .hbf-datos a { color: var(--teal); }

/* Fotos */
.hbf-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hbf .hbf-rejilla a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--suave); }
.hbf .hbf-rejilla img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .4s ease; }
.hbf .hbf-rejilla a:hover img { transform: scale(1.04); }


/* ── Sigue caminando ──────────────────────────────────────────────── */
.hbf-cerca-s { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.hbf .hbf-h { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--tinta); }
.hbf .hbf-cerca { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hbf .hbf-cerca a {
	display: flex; gap: 12px; align-items: center;
	padding: 10px; border: 1px solid var(--linea); border-radius: 14px;
	color: var(--tinta); transition: border-color .15s;
}
.hbf .hbf-cerca a:hover { border-color: var(--c); }
.hbf-cerca-ph { flex: none; width: 60px; height: 60px; border-radius: 10px; background: var(--suave) center / cover no-repeat; }
@supports (background: color-mix(in srgb, red 10%, white)) {
	.hbf-cerca-ph { background-color: color-mix(in srgb, var(--c) 18%, #FFFFFF); }
}
.hbf-cerca-bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hbf-cerca-bd b { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.hbf-cerca-bd small { font-size: 13px; color: var(--gris); }
.hbf-cerca-bd small:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* Pie */
.hbf-pie {
	display: flex; flex-direction: column; gap: 6px;
	margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--linea);
	font-size: 13.5px; color: var(--gris-2);
}
.hbf .hbf-pie a { color: var(--teal); text-decoration: underline !important; text-underline-offset: 3px; }


/* ── Botones ──────────────────────────────────────────────────────── */
.hbf .hbf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; margin: 0; padding: 0 20px;
	border: 1.5px solid var(--tinta); border-radius: 999px;
	background: #FFFFFF; color: var(--tinta);
	font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1;
	text-transform: none; letter-spacing: 0; text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.hbf .hbf-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbf .hbf-btn:hover { background: var(--tinta); color: #FFFFFF; }
.hbf .hbf-btn-p { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.hbf .hbf-btn-p:hover { background: var(--teal-h); border-color: var(--teal-h); color: #FFFFFF; }

/* Teléfono: los botones viven en la barra fija de abajo */
.hbf-acciones { display: none; }
.hbf-barra {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: flex; gap: 8px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-top: 1px solid var(--linea);
}
.hbf-barra .hbf-btn { flex: 1 1 0; padding: 0 12px; }
.hbf-barra .hbf-btn-ic { flex: 0 0 48px; padding: 0; }
.hbf-barra .hbf-btn-ic span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.single-gd_place #ast-scroll-top { bottom: 84px; }


/* ═══ Escritorio ═════════════════════════════════════════════════════ */
@media (min-width: 960px) {
	.hbf { padding-bottom: 80px; }
	.hbf-portada { height: min(86vh, 820px); }
	.hbf-portada-txt { max-width: 900px; padding: 0 32px 60px; gap: 14px; }
	.hbf-sinfoto .hbf-portada { padding-top: 120px; }
	.hbf-sinfoto .hbf-portada-txt { padding-bottom: 64px; }
	.hbf .hbf-gancho { max-width: 40ch; }

	.hbf-col { max-width: 760px; padding: 0 32px; }
	.hbf .hbf-esencial { margin-top: 28px; }
	.hbf-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
	.hbf-barra { display: none; }
	body.single-gd_place #ast-scroll-top { bottom: 30px; }

	.hbf .hbf-foto-ancha { max-width: 1180px; margin: 44px auto 0; padding: 0 32px; }
	.hbf .hbf-foto-ancha img { height: 560px; border-radius: 18px; }

	.hbf-det { padding-left: 46px; }
	.hbf .hbf-como > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
	.hbf .hbf-como dt { margin: 3px 0 0; align-items: flex-start; }
	.hbf-mapa { height: 320px; }
	.hbf-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.hbf .hbf-cerca { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hbf .hbf-cerca a { flex-direction: column; align-items: flex-start; height: 100%; }
	.hbf-cerca-ph { width: 100%; height: 110px; }
}

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