/* =========================================================================
   Herencia · direccion Arco

   El arco del monograma es el sistema: enmarca las fotos, corona el heroe y
   da forma al icono. Paleta de la marca: marron #552D00 para texto y botones,
   cobre y arena para fondos y adornos. El cobre original (#CD9264) no llega a
   3:1 sobre blanco, asi que en texto se usan dos cobres mas hondos, uno para
   titulares grandes y otro para texto pequeno.

   Federo para titulares en mayusculas, Jost para el texto. Autoalojadas.
   Todo dentro de .hrc-scope; la base con :where() para dejar la
   especificidad a cero.
   ========================================================================= */

@font-face {
	font-family: 'Federo';
	src: url('../fonts/federo-400-latin.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Jost';
	src: url('../fonts/jost-variable-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Color */
	--hrc-marron: #552D00;        /* texto principal y botones. 11,9:1 sobre blanco */
	--hrc-marron-hondo: #4A2700;  /* texto sobre cobre. 5:1 */
	--hrc-cobre: #CD9264;         /* adorno y fondo; no sirve para texto sobre blanco */
	--hrc-cobre-g: #B07A4C;       /* titulares de 24px o mas. 3,7:1 */
	--hrc-cobre-t: #94602F;       /* texto pequeno en cobre. 5,3:1 */
	--hrc-arena: #D9C3A8;         /* bandas. marron encima: 7:1 */
	--hrc-arena-filete: #B89C7C;
	--hrc-lino: #F5EEE6;
	--hrc-gris: #F7F8FA;
	--hrc-blanco: #FFFFFF;
	--hrc-texto: #6E5440;         /* texto corrido. 7:1 sobre blanco, 6:1 sobre lino */
	--hrc-filete: #ECE3D9;
	--hrc-hueco-a: #F4EFE9;
	--hrc-hueco-b: #EFE8E0;

	/* Tipografia. Escala de razon 1,25 */
	--hrc-display: 'Federo', 'Marcellus', Georgia, serif;
	--hrc-texto-familia: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
	--hrc-t-xs: 0.8125rem;   /* 13 */
	--hrc-t-s: 0.9375rem;    /* 15 */
	--hrc-t-m: 1.0625rem;    /* 17, base */
	--hrc-t-l: 1.3125rem;    /* 21 */
	--hrc-t-xl: 1.625rem;    /* 26 */
	--hrc-t-2xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.0625rem);  /* 33 */
	--hrc-t-3xl: clamp(2rem, 1.3rem + 2.4vw, 3rem);          /* 48 */
	--hrc-t-4xl: clamp(2.375rem, 1.4rem + 3.6vw, 4.375rem);  /* 70 */

	/* Espacio */
	--hrc-e-1: 0.5rem;
	--hrc-e-2: 1rem;
	--hrc-e-3: 1.5rem;
	--hrc-e-4: 2.5rem;
	--hrc-e-5: 4rem;
	--hrc-seccion: clamp(4.5rem, 3rem + 5vw, 8rem);
	--hrc-margen: clamp(1.25rem, 4vw, 3rem);
	--hrc-ancho: 80rem;
	--hrc-cabecera-alto: 5.5rem;
	--hrc-pestanas-alto: 4.25rem;
	--hrc-barra-admin: 0px;

	/* Movimiento */
	--hrc-curva: cubic-bezier(0.22, 1, 0.36, 1);
	--hrc-rapido: 160ms;
}

@media (max-width: 899px) {
	:root { --hrc-cabecera-alto: 4.5rem; }
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

:where(.hrc-scope) {
	margin: 0;
	background: var(--hrc-blanco);
	color: var(--hrc-texto);
	font-family: var(--hrc-texto-familia);
	font-size: var(--hrc-t-m);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(.hrc-scope) *, :where(.hrc-scope) *::before, :where(.hrc-scope) *::after { box-sizing: border-box; }
:where(.hrc-scope) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.hrc-scope) :where(ul, ol) { padding: 0; list-style: none; }
:where(.hrc-scope) :where(h1, h2, h3, h4) { color: var(--hrc-marron); font-weight: 400; line-height: 1.12; text-wrap: balance; }
:where(.hrc-scope) :where(p) { text-wrap: pretty; }
:where(.hrc-scope) :where(img, svg) { display: block; max-width: 100%; }
:where(.hrc-scope) :where(a) { color: var(--hrc-marron); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(.hrc-scope) :where(a:hover) { color: var(--hrc-cobre-t); }
:where(.hrc-scope) :where(strong, b) { color: var(--hrc-marron); font-weight: 500; }
:where(.hrc-scope) :where(address) { font-style: normal; }
:where(.hrc-scope) :where(button) { font: inherit; }
:where(.hrc-scope) :where(:focus-visible) { outline: 2px solid var(--hrc-marron); outline-offset: 3px; border-radius: 2px; }
:where(.hrc-scope) ::selection { background: var(--hrc-arena); color: var(--hrc-marron); }

html { scroll-padding-top: calc(var(--hrc-barra-admin) + var(--hrc-cabecera-alto) + 1rem); }
html:has(.hrc-pestanas) { scroll-padding-top: calc(var(--hrc-barra-admin) + var(--hrc-cabecera-alto) + var(--hrc-pestanas-alto) + 0.5rem); }
.admin-bar { --hrc-barra-admin: 32px; }
@media (max-width: 782px) { .admin-bar { --hrc-barra-admin: 46px; } }

.hrc-contenedor { width: 100%; max-width: calc(var(--hrc-ancho) + 2 * var(--hrc-margen)); margin-inline: auto; padding-inline: var(--hrc-margen); }
.hrc-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hrc-salto { position: absolute; left: var(--hrc-e-2); top: -4rem; z-index: 100; background: var(--hrc-marron); color: var(--hrc-blanco); padding: 0.75rem 1.25rem; border-radius: 999px; }
.hrc-salto:focus { top: var(--hrc-e-2); color: var(--hrc-blanco); }
.hrc-cifras { font-variant-numeric: tabular-nums; }
.hrc-apagado { color: var(--hrc-texto); }
.hrc-medida { max-width: 36em; }

/* -------------------------------------------------------------------------
   Tipografia
   ------------------------------------------------------------------------- */

.hrc-antetitulo { display: block; font-size: var(--hrc-t-xs); font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--hrc-cobre-t); line-height: 1.4; }
.hrc-display-1, .hrc-display-2, .hrc-display-3 { font-family: var(--hrc-display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--hrc-marron); }
.hrc-display-1 { font-size: var(--hrc-t-4xl); line-height: 1.06; }
.hrc-display-2 { font-size: var(--hrc-t-3xl); line-height: 1.1; }
.hrc-display-3 { font-size: var(--hrc-t-2xl); line-height: 1.15; }
.hrc-acento { color: var(--hrc-cobre-g); }
.hrc-entradilla { font-size: var(--hrc-t-l); line-height: 1.55; color: var(--hrc-marron); max-width: 34em; }
.hrc-firma { font-family: var(--hrc-display); font-size: var(--hrc-t-xl); color: var(--hrc-marron); }
.hrc-estrella { width: 14px; height: 14px; color: var(--hrc-cobre); flex: none; }
.hrc-enlace { color: var(--hrc-marron); text-decoration: underline; text-decoration-color: var(--hrc-cobre); }
.hrc-enlace:hover { color: var(--hrc-cobre-t); }

.hrc-pila { display: flex; flex-direction: column; gap: 0.35rem; }

/* -------------------------------------------------------------------------
   Botones
   ------------------------------------------------------------------------- */

.hrc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0.8rem 1.75rem; border-radius: 999px;
	font-size: var(--hrc-t-s); font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
	border: 1px solid var(--hrc-marron);
	transition: background-color var(--hrc-rapido) var(--hrc-curva), color var(--hrc-rapido) var(--hrc-curva), transform var(--hrc-rapido) var(--hrc-curva);
}
.hrc-btn:active { transform: scale(0.98); }
.hrc-btn--principal { background: var(--hrc-marron); color: var(--hrc-blanco); }
.hrc-btn--secundario { background: transparent; color: var(--hrc-marron); }
.hrc-btn--claro { background: var(--hrc-arena); border-color: var(--hrc-arena); color: var(--hrc-marron); }
@media (hover: hover) {
	.hrc-btn--principal:hover { background: var(--hrc-marron-hondo); color: var(--hrc-blanco); }
	.hrc-btn--secundario:hover { background: var(--hrc-marron); color: var(--hrc-blanco); }
	.hrc-btn--claro:hover { background: var(--hrc-lino); color: var(--hrc-marron); }
}
.hrc-acciones { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* -------------------------------------------------------------------------
   Cabecera
   ------------------------------------------------------------------------- */

.hrc-cabecera { position: sticky; top: 0; z-index: 50; background: var(--hrc-blanco); border-bottom: 1px solid transparent; transition: border-color var(--hrc-rapido) var(--hrc-curva), box-shadow var(--hrc-rapido) var(--hrc-curva); }
.hrc-cabecera[data-scrolled='true'] { border-bottom-color: var(--hrc-filete); box-shadow: 0 6px 24px -18px rgba(85, 45, 0, 0.45); }
.admin-bar .hrc-cabecera { top: var(--hrc-barra-admin); }
.hrc-cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: var(--hrc-e-4); min-height: var(--hrc-cabecera-alto); }
.hrc-marca { display: block; color: #612A00; flex: none; }
.hrc-marca:hover { color: #612A00; }
.hrc-logo { width: auto; height: 50px; fill: currentColor; }
.hrc-nav__lista { display: flex; gap: 2.25rem; }
.hrc-nav__enlace { font-size: var(--hrc-t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding-block: 0.75rem; position: relative; }
.hrc-nav__enlace::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.35rem; height: 1px; background: var(--hrc-cobre); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--hrc-curva); }
.hrc-nav__enlace[aria-current='page'] { color: var(--hrc-cobre-t); }
.hrc-nav__enlace[aria-current='page']::after { transform: scaleX(1); }
@media (hover: hover) { .hrc-nav__enlace:hover::after { transform: scaleX(1); } }
.hrc-cabecera__lado { display: flex; align-items: center; gap: 1.25rem; }
.hrc-cabecera__tel { font-size: var(--hrc-t-s); text-decoration: none; font-variant-numeric: tabular-nums; }
.hrc-hamburguesa { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--hrc-marron); cursor: pointer; }

.hrc-movil { position: fixed; inset: 0; z-index: 60; background: var(--hrc-lino); padding: var(--hrc-e-3) var(--hrc-margen); display: flex; flex-direction: column; gap: var(--hrc-e-4); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 200ms var(--hrc-curva), transform 200ms var(--hrc-curva), visibility 0s linear 200ms; }
.hrc-movil[data-open='true'] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.hrc-movil__alto { display: flex; align-items: center; justify-content: space-between; }
.hrc-movil__nombre { font-family: var(--hrc-display); text-transform: uppercase; color: var(--hrc-marron); font-size: var(--hrc-t-l); }
.hrc-movil__cerrar { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--hrc-marron); cursor: pointer; }
.hrc-movil__lista { display: flex; flex-direction: column; }
.hrc-movil__enlace { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--hrc-filete); font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-2xl); text-decoration: none; }
.hrc-movil__enlace[aria-current='page'] { color: var(--hrc-cobre-g); }
.hrc-movil__pie { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hrc-e-2); }

@media (max-width: 1099px) { .hrc-cabecera__tel { display: none; } .hrc-nav__lista { gap: 1.5rem; } }
@media (max-width: 899px) {
	.hrc-nav, .hrc-cabecera__lado { display: none; }
	.hrc-hamburguesa { display: inline-flex; }
	.hrc-logo { height: 40px; }
}


/* -------------------------------------------------------------------------
   Secciones
   ------------------------------------------------------------------------- */

.hrc-seccion { padding-block: var(--hrc-seccion); }
.hrc-seccion--estrecha { padding-block: var(--hrc-e-5); }
.hrc-seccion--lino { background: var(--hrc-lino); }
.hrc-seccion--arena { background: var(--hrc-arena); color: var(--hrc-marron); }
.hrc-seccion--arena .hrc-antetitulo { color: var(--hrc-marron); }
.hrc-seccion--arena .hrc-acento { color: var(--hrc-marron-hondo); }
.hrc-seccion--gris { background: var(--hrc-gris); }
.hrc-seccion--banda { border-block: 1px solid var(--hrc-filete); }
.hrc-encabezado { display: flex; flex-direction: column; gap: var(--hrc-e-2); margin-bottom: var(--hrc-e-5); }
.hrc-encabezado--centro { align-items: center; text-align: center; }
.hrc-encabezado--centro .hrc-entradilla { margin-inline: auto; }
.hrc-franja { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hrc-e-4); }

/* -------------------------------------------------------------------------
   Fotografia y huecos
   ------------------------------------------------------------------------- */

.hrc-marco { position: relative; overflow: hidden; background: var(--hrc-hueco-a); width: 100%; }
.hrc-marco .hrc-foto, .hrc-marco .hrc-foto-zoom, .hrc-marco .hrc-foto-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hrc-marco--arco { border-radius: 9999px 9999px 0 0; }
.hrc-marco--hueco { display: flex; align-items: flex-end; justify-content: center; padding: var(--hrc-e-3); background: repeating-linear-gradient(135deg, var(--hrc-hueco-a) 0 14px, var(--hrc-hueco-b) 14px 28px); }
.hrc-seccion--lino .hrc-marco--hueco { background: repeating-linear-gradient(135deg, #EDE4D9 0 14px, #E8DED2 14px 28px); }
.hrc-marco__rotulo { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hrc-texto); text-align: center; text-wrap: balance; }
.hrc-foto-zoom { cursor: zoom-in; display: block; }
.hrc-visor { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
.hrc-visor::backdrop { background: rgba(42, 22, 0, 0.88); }
.hrc-visor img { max-width: 100%; max-height: 92vh; width: auto; height: auto; }

/* -------------------------------------------------------------------------
   Heroe
   ------------------------------------------------------------------------- */

.hrc-heroe { padding-block: var(--hrc-e-4) var(--hrc-seccion); }
.hrc-heroe__reticula { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hrc-heroe__texto { display: flex; flex-direction: column; gap: 1.6rem; }
.hrc-heroe__texto .hrc-entradilla { font-size: var(--hrc-t-m); color: var(--hrc-texto); line-height: 1.7; max-width: 32em; }
.hrc-hoy { font-size: var(--hrc-t-s); border-top: 1px solid var(--hrc-filete); padding-top: 1.1rem; font-variant-numeric: tabular-nums; }
.hrc-hoy .hrc-estado { margin: 0; }
.hrc-heroe__arco { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hrc-heroe__arco .hrc-marco { outline: 1px solid var(--hrc-cobre); outline-offset: 12px; }
.hrc-heroe__arco .hrc-estrella { width: 18px; height: 18px; }
@media (max-width: 899px) {
	.hrc-heroe__reticula { grid-template-columns: 1fr; }
	.hrc-heroe__arco { order: -1; max-width: 26rem; margin-inline: auto; width: 100%; padding-inline: 12px; }
}

/* Servicios */
.hrc-servicios { background: var(--hrc-gris); }
.hrc-servicios__lista { display: flex; justify-content: space-between; align-items: center; gap: var(--hrc-e-3); padding-block: 2.25rem; }
.hrc-servicio { display: flex; align-items: center; gap: 0.875rem; color: var(--hrc-marron); font-size: var(--hrc-t-s); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.hrc-servicio svg { width: 34px; height: 34px; flex: none; color: var(--hrc-cobre-g); }
.hrc-servicios__sep { color: var(--hrc-cobre); }
@media (max-width: 1099px) {
	.hrc-servicios__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hrc-servicios__sep { display: none; }
}
@media (max-width: 520px) { .hrc-servicios__lista { grid-template-columns: 1fr; } }

/* Reparto: foto en arco y texto */
.hrc-reparto { display: grid; grid-template-columns: 4fr 1fr 6fr; align-items: center; }
.hrc-reparto--al-reves { grid-template-columns: 6fr 1fr 4fr; }
.hrc-reparto--al-reves > :first-child { order: 3; }
.hrc-reparto__texto { grid-column: 3; display: flex; flex-direction: column; gap: 1.35rem; max-width: 36em; }
.hrc-reparto--al-reves .hrc-reparto__texto { grid-column: 1; grid-row: 1; }
@media (max-width: 899px) {
	.hrc-reparto, .hrc-reparto--al-reves { grid-template-columns: 1fr; gap: var(--hrc-e-4); }
	.hrc-reparto__texto, .hrc-reparto--al-reves .hrc-reparto__texto { grid-column: 1; grid-row: auto; }
	.hrc-reparto > .hrc-marco { max-width: 26rem; }
}

/* Tres arcos */
.hrc-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hrc-e-4); }
.hrc-tres__pieza { display: flex; flex-direction: column; gap: 1.1rem; }
.hrc-tres__pieza:nth-child(2) { margin-top: 3.5rem; }
.hrc-tres__pieza h3 { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-xl); }
.hrc-tres__pieza p { font-size: var(--hrc-t-m); }
.hrc-centro { display: flex; justify-content: center; margin-top: var(--hrc-e-5); }
@media (max-width: 899px) {
	.hrc-tres { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; }
	.hrc-tres__pieza:nth-child(2) { margin-top: 0; }
}

/* Citas */
.hrc-citas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hrc-e-5); max-width: 68rem; margin-inline: auto; }
.hrc-cita { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; text-align: center; }
.hrc-cita::before { content: '\201C'; font-family: var(--hrc-display); font-size: 3.5rem; line-height: 0.6; color: var(--hrc-cobre-g); padding-top: 0.6rem; }
.hrc-cita blockquote { color: var(--hrc-marron); }
.hrc-cita figcaption { font-size: var(--hrc-t-s); }
@media (max-width: 899px) { .hrc-citas { grid-template-columns: 1fr; gap: var(--hrc-e-4); } }

/* Reserva */
.hrc-reserva { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hrc-reserva__texto { display: flex; flex-direction: column; gap: 1.25rem; }
.hrc-reserva .hrc-horario { --hrc-filete-local: var(--hrc-arena-filete); }
.hrc-reserva__titulo-horario { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-xl); color: var(--hrc-marron); margin-bottom: 0.5rem; }
@media (max-width: 899px) { .hrc-reserva { grid-template-columns: 1fr; } }

/* Horario */
.hrc-horario { --hrc-filete-local: var(--hrc-filete); display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.hrc-horario__fila { display: flex; justify-content: space-between; gap: var(--hrc-e-2); padding: 0.7rem 0; border-top: 1px solid var(--hrc-filete-local); }
.hrc-horario__fila:last-child { border-bottom: 1px solid var(--hrc-filete-local); }
.hrc-horario dt { color: var(--hrc-marron); font-weight: 500; }
.hrc-horario dd { text-align: right; }
.hrc-horario__tramo { white-space: nowrap; }
.hrc-estado { margin-top: 0.75rem; font-size: var(--hrc-t-s); color: var(--hrc-marron); display: flex; align-items: center; gap: 0.5rem; }
.hrc-estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hrc-texto); flex: none; }
.hrc-estado[data-abierto='true']::before { background: #3D7A3A; }

/* -------------------------------------------------------------------------
   Paginas interiores
   ------------------------------------------------------------------------- */

.hrc-cabeza { padding-block: var(--hrc-e-5) var(--hrc-e-4); }
.hrc-cabeza__reticula { display: flex; flex-direction: column; gap: var(--hrc-e-2); max-width: 52rem; }
.hrc-cabeza--centro .hrc-cabeza__reticula { align-items: center; text-align: center; margin-inline: auto; }
.hrc-cabeza__acciones { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: var(--hrc-e-1); }
.hrc-cabeza--centro .hrc-cabeza__acciones { justify-content: center; }
.hrc-prosa { max-width: 44rem; display: flex; flex-direction: column; gap: 1.1rem; }
.hrc-prosa h2 { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-xl); margin-top: var(--hrc-e-3); }
.hrc-prosa h3 { font-size: var(--hrc-t-l); font-weight: 500; margin-top: var(--hrc-e-2); }
.hrc-prosa ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.hrc-prosa table { border-collapse: collapse; width: 100%; font-size: var(--hrc-t-s); }
.hrc-prosa th, .hrc-prosa td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hrc-filete); vertical-align: top; }
.hrc-prosa th { color: var(--hrc-marron); font-weight: 500; }
.hrc-tabla { overflow-x: auto; }

/* Carta */
.hrc-carta { display: flex; flex-direction: column; }
.hrc-pestanas { position: sticky; top: calc(var(--hrc-barra-admin) + var(--hrc-cabecera-alto)); z-index: 20; background: var(--hrc-blanco); border-bottom: 1px solid var(--hrc-filete); margin-inline: calc(-1 * var(--hrc-margen)); padding-inline: var(--hrc-margen); }
.hrc-pestanas__lista { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.75rem; scrollbar-width: none; min-height: var(--hrc-pestanas-alto); align-items: center; }
.hrc-pestana { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--hrc-filete); text-decoration: none; font-size: var(--hrc-t-s); white-space: nowrap; transition: background-color var(--hrc-rapido) var(--hrc-curva), color var(--hrc-rapido) var(--hrc-curva); }
.hrc-pestana[aria-current='true'], .hrc-pestana:target-current { background: var(--hrc-marron); border-color: var(--hrc-marron); color: var(--hrc-blanco); }
@media (hover: hover) { .hrc-pestana:hover { border-color: var(--hrc-marron); color: var(--hrc-marron); } .hrc-pestana[aria-current='true']:hover { color: var(--hrc-blanco); } }
.hrc-pestanas__lista { scroll-target-group: auto; }
.hrc-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding-block: var(--hrc-e-3); }
.hrc-filtros__titulo { font-size: var(--hrc-t-s); color: var(--hrc-marron); font-weight: 500; }
.hrc-filtros__lista { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hrc-filtro { min-height: 44px; padding: 0.45rem 1rem; border-radius: 999px; border: 1px dashed var(--hrc-arena-filete); background: var(--hrc-blanco); color: var(--hrc-marron); font-size: var(--hrc-t-s); cursor: pointer; }
.hrc-filtro[aria-pressed='true'] { background: var(--hrc-arena); border-style: solid; border-color: var(--hrc-arena); }
.hrc-filtros__aviso { font-size: var(--hrc-t-s); color: var(--hrc-marron); flex-basis: 100%; }
.hrc-filtros__aviso:empty { display: none; }
.hrc-filtros__nota { flex-basis: 100%; font-size: var(--hrc-t-xs); }
.hrc-carta__seccion { padding-block: var(--hrc-e-5) 0; display: grid; grid-template-columns: 4fr 8fr; gap: var(--hrc-e-5); align-items: start; }
.hrc-carta__seccion[hidden] { display: none; }
.hrc-carta__cabeza { grid-column: 1; position: sticky; top: calc(var(--hrc-barra-admin) + var(--hrc-cabecera-alto) + var(--hrc-pestanas-alto) + 1.5rem); z-index: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.hrc-carta__titulo { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-2xl); }
.hrc-carta__nota { font-size: var(--hrc-t-s); max-width: 22em; }
.hrc-carta__lista { grid-column: 2; min-width: 0; }
.hrc-plato { padding-block: 1.1rem; border-bottom: 1px solid var(--hrc-filete); display: flex; flex-direction: column; gap: 0.25rem; }
.hrc-plato:first-child { padding-top: 0.25rem; }
.hrc-plato__linea { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hrc-e-2); }
.hrc-plato__nombre { font-family: var(--hrc-texto-familia); font-size: var(--hrc-t-l); font-weight: 500; line-height: 1.35; }
.hrc-plato--destacado .hrc-plato__nombre::after { content: ''; display: inline-block; width: 11px; height: 11px; margin-left: 0.6rem; vertical-align: 0.1em; background: var(--hrc-cobre); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.hrc-plato__precio { font-variant-numeric: tabular-nums; color: var(--hrc-marron); white-space: nowrap; }
.hrc-plato__desc { color: var(--hrc-texto); }
.hrc-plato__alergenos { font-size: var(--hrc-t-xs); color: var(--hrc-texto); letter-spacing: 0.01em; }
@media (max-width: 899px) {
	.hrc-carta__seccion { grid-template-columns: 1fr; gap: var(--hrc-e-2); }
	.hrc-carta__cabeza { position: static; }
	.hrc-carta__lista, .hrc-carta__cabeza { grid-column: 1; }
}
.hrc-leyenda { margin-top: var(--hrc-e-5); padding-top: var(--hrc-e-3); border-top: 1px solid var(--hrc-filete); font-size: var(--hrc-t-s); display: flex; flex-direction: column; gap: 0.5rem; max-width: 52rem; }

/* Galeria */
.hrc-galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--hrc-e-3); }
/* Dos fotos grandes, la 1 y la 8: con 14 fotos llenan la reticula sin huecos en 4 y en 2 columnas. */
.hrc-galeria > :nth-child(1), .hrc-galeria > :nth-child(8) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 899px) { .hrc-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hrc-e-2); } }

/* Contacto */
.hrc-contacto { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.hrc-contacto__datos { display: flex; flex-direction: column; gap: var(--hrc-e-4); }
.hrc-contacto__bloque { display: flex; flex-direction: column; gap: 0.4rem; }
.hrc-contacto__bloque h2 { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-xl); margin-bottom: 0.4rem; }
.hrc-contacto__lado { grid-column: 3; display: flex; flex-direction: column; gap: var(--hrc-e-4); }
@media (max-width: 899px) { .hrc-contacto { grid-template-columns: 1fr; gap: var(--hrc-e-5); } .hrc-contacto__lado { grid-column: 1; } }
.hrc-mapa { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--hrc-hueco-a) 0 14px, var(--hrc-hueco-b) 14px 28px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--hrc-e-2); padding: var(--hrc-e-4); text-align: center; border-radius: 9999px 9999px 0 0; overflow: hidden; }
.hrc-mapa[data-cargado] { padding: 0; border-radius: 0; }
.hrc-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.hrc-mapa .hrc-medida { max-width: 24em; font-size: var(--hrc-t-s); }

/* Blog (plantillas heredadas del kit) */
.hrc-entradas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hrc-e-4); }
.hrc-entrada { display: flex; flex-direction: column; gap: var(--hrc-e-2); }
.hrc-entrada__titulo { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-xl); }
.hrc-entrada__enlace { text-decoration: none; }
.hrc-entrada__meta, .hrc-entrada__cat { font-size: var(--hrc-t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hrc-cobre-t); }
.hrc-entrada__texto { max-width: 44rem; }
.hrc-paginacion { display: flex; gap: var(--hrc-e-2); justify-content: center; margin-top: var(--hrc-e-5); }
.hrc-vecinas { display: flex; justify-content: space-between; gap: var(--hrc-e-4); }
.hrc-vecina { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; max-width: 24rem; }
.hrc-vecina--fin { text-align: right; margin-left: auto; }
.hrc-vecina__titulo { color: var(--hrc-marron); font-size: var(--hrc-t-l); }
@media (max-width: 899px) { .hrc-entradas { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Pie
   ------------------------------------------------------------------------- */

.hrc-pie { border-top: 1px solid var(--hrc-filete); padding-top: var(--hrc-e-5); font-size: var(--hrc-t-s); }
.hrc-pie__reticula { display: grid; grid-template-columns: 4fr 3fr 3fr 4fr; gap: var(--hrc-e-4); }
.hrc-pie__marca { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hrc-e-2); color: #612A00; }
.hrc-logo--pie { height: 64px; }
.hrc-pie__titulo { font-family: var(--hrc-display); text-transform: uppercase; font-size: var(--hrc-t-l); color: var(--hrc-marron); margin-bottom: 0.6rem; }
.hrc-pie__direccion { display: flex; flex-direction: column; margin-bottom: 0.4rem; }
.hrc-pie__bajo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--hrc-e-2); margin-top: var(--hrc-e-5); padding-block: var(--hrc-e-3); border-top: 1px solid var(--hrc-filete); font-size: var(--hrc-t-xs); letter-spacing: 0.12em; text-transform: uppercase; }
.hrc-pie__legal { display: flex; flex-wrap: wrap; gap: var(--hrc-e-3); }
.hrc-pie__legal a { text-decoration: none; }
@media (max-width: 1099px) { .hrc-pie__reticula { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .hrc-pie__reticula { grid-template-columns: 1fr; } }

/* Barra fija de movil: llamar, carta y reservar a un toque */
.hrc-barra-movil { display: none; }
@media (max-width: 899px) {
	.hrc-barra-movil { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--hrc-blanco); border-top: 1px solid var(--hrc-filete); padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom)); gap: 0.5rem; }
	.hrc-barra-movil__accion { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: var(--hrc-t-s); border: 1px solid var(--hrc-filete); color: var(--hrc-marron); }
	.hrc-barra-movil__accion--principal { background: var(--hrc-marron); border-color: var(--hrc-marron); color: var(--hrc-blanco); }
	.hrc-barra-movil__accion--principal:hover { color: var(--hrc-blanco); }
	.hrc-scope { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}

/* -------------------------------------------------------------------------
   Movimiento

   Cuatro trabajos, y ninguno mas: la entrada del heroe al cargar, el
   revelado de cada bloque la primera vez que aparece, el fundido entre
   paginas y el desplazamiento suave a los anclas. El scroll es el del
   navegador: no se secuestra.

   Solo opacity, translate y scale. Curva de salida fuerte; nada rebota.
   El contenido se entrega visible: el revelado lo oculta el script justo
   antes de animarlo, asi que si el script no llega, la pagina se lee igual.
   ------------------------------------------------------------------------- */

:root {
	--hrc-curva-doble: cubic-bezier(0.77, 0, 0.175, 1);
	--hrc-revela-recorrido: 18px;
	--hrc-revela-tiempo: 650ms;
	--hrc-revela-paso: 70ms;
}

@keyframes hrc-entra {
	from { opacity: 0; translate: 0 16px; }
}
@keyframes hrc-entra-titular {
	from { opacity: 0; translate: 0 22px; filter: blur(6px); }
}
@keyframes hrc-entra-arco {
	from { opacity: 0; translate: 0 28px; }
}
@keyframes hrc-asienta {
	from { scale: 1.08; }
}
@keyframes hrc-funde {
	from { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }

	/* Heroe y cabeceras interiores: entrada en cascada al cargar */
	.hrc-heroe__texto > *,
	.hrc-cabeza__reticula > * { animation: hrc-entra 700ms var(--hrc-curva) backwards; }
	.hrc-heroe__texto > .hrc-display-1,
	.hrc-cabeza__reticula > .hrc-display-1 { animation-name: hrc-entra-titular; animation-duration: 900ms; }
	.hrc-heroe__texto > :nth-child(1), .hrc-cabeza__reticula > :nth-child(1) { animation-delay: 60ms; }
	.hrc-heroe__texto > :nth-child(2), .hrc-cabeza__reticula > :nth-child(2) { animation-delay: 140ms; }
	.hrc-heroe__texto > :nth-child(3), .hrc-cabeza__reticula > :nth-child(3) { animation-delay: 260ms; }
	.hrc-heroe__texto > :nth-child(4), .hrc-cabeza__reticula > :nth-child(4) { animation-delay: 360ms; }
	.hrc-heroe__texto > :nth-child(n+5), .hrc-cabeza__reticula > :nth-child(n+5) { animation-delay: 440ms; }

	.hrc-heroe__arco { animation: hrc-entra-arco 1000ms var(--hrc-curva) 120ms backwards; }
	.hrc-heroe__arco .hrc-foto { animation: hrc-asienta 1800ms var(--hrc-curva) 120ms backwards; }
	.hrc-heroe__arco .hrc-estrella { animation: hrc-funde 900ms var(--hrc-curva) 700ms backwards; }

	/* Revelado por scroll. El script pone data-revela y luego data-visto. */
	[data-revela] {
		transition:
			opacity var(--hrc-revela-tiempo) var(--hrc-curva),
			translate calc(var(--hrc-revela-tiempo) + 100ms) var(--hrc-curva);
		transition-delay: calc(var(--hrc-i, 0) * var(--hrc-revela-paso));
	}
	[data-revela]:not([data-visto]) { opacity: 0; translate: 0 var(--hrc-revela-recorrido); }
	[data-revela][data-visto] { translate: none; }

	/* La foto se asienta dentro de su marco: el marco no se mueve, la imagen si */
	[data-revela] .hrc-marco .hrc-foto { transition: scale 1600ms var(--hrc-curva); transition-delay: calc(var(--hrc-i, 0) * var(--hrc-revela-paso)); }
	[data-revela]:not([data-visto]) .hrc-marco .hrc-foto { scale: 1.06; }
	[data-revela].hrc-marco .hrc-foto { transition: scale 1600ms var(--hrc-curva); transition-delay: calc(var(--hrc-i, 0) * var(--hrc-revela-paso)); }
	[data-revela].hrc-marco:not([data-visto]) .hrc-foto { scale: 1.06; }

	/* Entre paginas: la vieja se va rapido, la nueva entra con calma */
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: 160ms var(--hrc-curva) both hrc-vt-sale; }
	::view-transition-new(root) { animation: 420ms var(--hrc-curva) 60ms both hrc-vt-entra; }
	.hrc-cabecera { view-transition-name: hrc-cabecera; }
	.hrc-barra-movil { view-transition-name: hrc-barra-movil; }
	::view-transition-group(hrc-cabecera),
	::view-transition-group(hrc-barra-movil) { animation-duration: 0s; }
}

@keyframes hrc-vt-sale { to { opacity: 0; } }
@keyframes hrc-vt-entra { from { opacity: 0; translate: 0 10px; } }

/* Movimiento reducido no es cero: se conserva el fundido y se quita el
   desplazamiento, que es lo que marea. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hrc-heroe__texto > *, .hrc-cabeza__reticula > *, .hrc-heroe__arco { animation: hrc-funde 400ms ease-out backwards; }
	[data-revela] { transition: opacity 400ms ease-out; }
	[data-revela]:not([data-visto]) { opacity: 0; }
	.hrc-btn:active { transform: none; }
}
/* -------------------------------------------------------------------------
   Blog: una fila por articulo, con la foto en arco como el resto de la casa.
   Fecha y seccion en el antetitulo de cobre; titulo en Federo.
   ------------------------------------------------------------------------- */

.hrc-arriba { margin-top: var(--hrc-e-2); }
.hrc-entradas { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hrc-arena-filete); }
.hrc-entrada { display: block; border-bottom: 1px solid var(--hrc-filete); }
.hrc-entrada__enlace { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hrc-e-3) var(--hrc-e-5); padding-block: var(--hrc-e-4); color: inherit; }
.hrc-entrada__enlace:has(.hrc-entrada__foto) { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: center; }
.hrc-entrada__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; max-width: 44rem; }
.hrc-entrada__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: var(--hrc-t-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hrc-cobre-t); }
.hrc-entrada__cat { font-size: inherit; letter-spacing: inherit; }
.hrc-entrada__cat::before { content: '\00B7'; margin-right: 0.9rem; }
.hrc-entrada .hrc-entrada__titulo { font-size: var(--hrc-t-2xl); color: var(--hrc-marron); transition: color var(--hrc-rapido) var(--hrc-curva); }
.hrc-entrada__extracto { max-width: 38em; }
.hrc-entrada__mas { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--hrc-t-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hrc-marron); text-decoration: underline; text-decoration-color: var(--hrc-cobre); text-underline-offset: 0.6em; }
@media (hover: hover) {
	.hrc-entrada__enlace:hover .hrc-entrada__titulo { color: var(--hrc-cobre-g); }
	.hrc-entrada__enlace:hover .hrc-entrada__mas { color: var(--hrc-cobre-t); }
}
.hrc-entrada__enlace:focus-visible { outline-offset: 6px; }
@media (max-width: 599px) {
	.hrc-entrada__enlace:has(.hrc-entrada__foto) { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: var(--hrc-e-2); align-items: start; }
	.hrc-entrada .hrc-entrada__titulo { font-size: var(--hrc-t-xl); }
}

.hrc-paginacion { flex-wrap: wrap; font-size: var(--hrc-t-s); }
.hrc-paginacion :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 0.9rem; border: 1px solid var(--hrc-arena-filete); border-radius: 9999px; color: var(--hrc-marron); text-decoration: none; font-variant-numeric: tabular-nums; }
.hrc-paginacion .current { background: var(--hrc-marron); border-color: var(--hrc-marron); color: var(--hrc-blanco); }
.hrc-paginacion .dots { border-color: transparent; }
@media (hover: hover) { .hrc-paginacion a:hover { border-color: var(--hrc-marron); } }

.hrc-vecinas { flex-wrap: wrap; }
.hrc-vecina__titulo { font-family: var(--hrc-display); text-transform: uppercase; }
.hrc-vecina:hover .hrc-vecina__titulo { color: var(--hrc-cobre-g); }

/* Firma de agencia (Maserai Digital). El hueco de la barra de movil ya lo reserva .hrc-scope. */
.hrc-credito { background: #000; color: var(--hrc-lino); margin-top: var(--hrc-e-3); }
.hrc-credito__texto { margin: 0; padding-block: 0.7rem; font-size: 0.75rem; letter-spacing: 0.06em; text-align: center; }
.hrc-credito__enlace { color: var(--hrc-lino); text-decoration: underline; text-decoration-color: rgba(245, 238, 230, 0.4); text-underline-offset: 3px; }
.hrc-credito__enlace:hover, .hrc-credito__enlace:focus-visible { color: var(--hrc-cobre); text-decoration-color: currentColor; }
