/* Palacio de Herrerías — Reservas */
.phr-app, .phr-modal, .phr-tarifas, .phr-contacto {
	--phr-navy: #0A3846;
	--phr-dark: #002432;
	--phr-light: #F6F6F6;
	--phr-line: #E3E7E9;
	--phr-accent: #0188C9;
	--phr-muted: #5A7380;
	--phr-t-baja: #9CC9DA;
	--phr-t-media: #0188C9;
	--phr-t-alta: #0A3846;
	--phr-r: 10px;
}
.phr-app { color: var(--phr-navy); font-size: 15px; line-height: 1.45; }
.phr-app *, .phr-modal *, .phr-tarifas * { box-sizing: border-box; }
.phr-app [hidden], .phr-modal[hidden] { display: none !important; }

/* Botones */
.phr-btn, .phr-app .phr-btn, a.phr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 22px; border: 0; border-radius: 6px;
	background: var(--phr-navy); color: #fff !important; font: inherit; font-weight: 600; letter-spacing: .01em;
	text-decoration: none !important; cursor: pointer; transition: background .2s, transform .1s;
}
.phr-btn:hover { background: var(--phr-dark); }
.phr-btn:active { transform: translateY(1px); }
.phr-btn:disabled { background: #A9B7BD; cursor: not-allowed; }
.phr-btn--block { width: 100%; }
.phr-btn--wa { background: #1FA855; margin: 6px 0 4px; }
.phr-btn--wa:hover { background: #178a45; }
.phr-app .phr-link { background: none; border: 0; padding: 0; color: var(--phr-accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Tarjeta */
.phr-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 10px 40px rgba(0, 36, 50, .08); }
.phr-grid2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; }
.phr-s3 { border-top: 1px solid var(--phr-line); margin-top: 28px; padding-top: 24px; }
.phr-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--phr-navy); }
.phr-h span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--phr-navy); color: #fff; font-size: 14px; flex: none; }

/* Calendario */
.phr-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.phr-mes { font-size: 16px; font-weight: 600; }
.phr-app .phr-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--phr-line); background: #fff; color: var(--phr-navy); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.phr-app .phr-nav:hover:not(:disabled) { background: var(--phr-light); }
.phr-app .phr-nav:disabled { opacity: .3; cursor: default; }
.phr-dows, .phr-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.phr-dows span { text-align: center; font-size: 12px; font-weight: 600; color: var(--phr-muted); padding: 4px 0; }
.phr-days { min-height: 250px; align-content: start; }
.phr-loading { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--phr-muted); }
.phr-app .phr-day {
	position: relative; aspect-ratio: 1 / 1; min-height: 38px; border: 1px solid var(--phr-line); border-radius: 8px;
	background: #fff; color: var(--phr-navy); font: inherit; font-weight: 500; cursor: pointer; padding: 0 0 4px;
	transition: background .15s, border-color .15s;
}
.phr-app .phr-day::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 5px; height: 3px; border-radius: 3px; background: transparent; }
.phr-app .phr-day--baja::after { background: var(--phr-t-baja); }
.phr-app .phr-day--media::after { background: var(--phr-t-media); }
.phr-app .phr-day--alta::after { background: var(--phr-t-alta); }
.phr-app .phr-day.is-partial::before { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #E0A400; }
.phr-app .phr-day:hover:not(:disabled) { border-color: var(--phr-navy); background: var(--phr-light); }
.phr-app .phr-day.is-sel, .phr-app .phr-day.is-sel:hover:not(:disabled) { background: var(--phr-navy); border-color: var(--phr-navy); color: #fff; }
.phr-app .phr-day.is-sel::after { background: #fff; }
.phr-app .phr-day.is-off { background: var(--phr-light); color: #B5C0C5; border-color: transparent; cursor: not-allowed; text-decoration: line-through; }
.phr-app .phr-day.is-off::after { display: none; }
.phr-app .phr-day--void { border: 0; background: none; }
.phr-leyenda { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--phr-muted); }
.phr-leyenda li { display: flex; align-items: center; gap: 6px; }
.phr-leyenda span { color: var(--phr-navy); font-weight: 600; }
.phr-dot { display: inline-block; width: 14px; height: 4px; border-radius: 3px; }
.phr-dot--baja { background: var(--phr-t-baja); }
.phr-dot--media { background: var(--phr-t-media); }
.phr-dot--alta { background: var(--phr-t-alta); }

/* Horario */
.phr-vacio { margin: 0; padding: 26px 18px; border: 1px dashed var(--phr-line); border-radius: var(--phr-r); color: var(--phr-muted); text-align: center; background: var(--phr-light); }
.phr-fecha { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.phr-fecha strong { font-size: 16px; }
.phr-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--phr-light); }
.phr-tag--media { background: #E1F1FA; }
.phr-tag--alta { background: var(--phr-navy); color: #fff; }
.phr-modos, .phr-franjas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.phr-app .phr-opt {
	display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
	padding: 14px; border: 1.5px solid var(--phr-line); border-radius: var(--phr-r); background: #fff; color: var(--phr-navy);
	font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.phr-app .phr-opt strong { font-size: 15px; }
.phr-app .phr-opt small { font-size: 12.5px; color: var(--phr-muted); }
.phr-app .phr-opt:hover:not(:disabled) { border-color: var(--phr-navy); }
.phr-app .phr-opt.is-on { border-color: var(--phr-navy); background: var(--phr-light); box-shadow: inset 0 0 0 1px var(--phr-navy); }
.phr-app .phr-opt:disabled { opacity: .45; cursor: not-allowed; }
.phr-opt--sm { padding: 11px 12px; }
.phr-horas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.phr-app label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--phr-navy); margin: 0; }
.phr-app input:not([type=checkbox]), .phr-app select, .phr-app textarea {
	width: 100%; padding: 12px 13px; border: 1.5px solid var(--phr-line); border-radius: 8px; background: #fff;
	color: var(--phr-navy); font: inherit; font-weight: 400; font-size: 15px; min-height: 46px;
}
.phr-app input:focus, .phr-app select:focus, .phr-app textarea:focus { outline: none; border-color: var(--phr-accent); box-shadow: 0 0 0 3px rgba(1, 136, 201, .15); }
.phr-hint { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FFF6DB; font-size: 13.5px; }

/* Resumen y formulario */
.phr-resumen { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--phr-r); background: var(--phr-light); margin-bottom: 18px; color: var(--phr-muted); }
.phr-resumen.is-ready { color: var(--phr-navy); }
.phr-resumen__precio { font-size: 26px; font-weight: 700; white-space: nowrap; text-align: right; line-height: 1.1; }
.phr-resumen__precio small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--phr-muted); }
.phr-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.phr-full { grid-column: 1 / -1; }
.phr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.phr-app .phr-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13.5px; margin-bottom: 16px; }
.phr-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--phr-navy); }
.phr-check a { color: var(--phr-accent); }
.phr-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #FBE4E4; color: #8A1F1F; font-size: 14px; }
.phr-legal { margin: 12px 0 0; font-size: 12.5px; color: var(--phr-muted); text-align: center; }

/* Éxito */
.phr-ok { text-align: center; padding: 20px 10px; max-width: 480px; margin: 0 auto; }
.phr-ok h3 { margin: 10px 0 8px; font-size: 24px; color: var(--phr-navy); }
.phr-ok p { margin: 0 0 12px; }
.phr-ok__ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #DFF3E4; color: #1D6B33; font-size: 30px; font-weight: 700; }

/* Modal */
html.phr-lock, html.phr-lock body { overflow: hidden; }
.phr-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; opacity: 0; transition: opacity .2s; }
.phr-modal.is-open { opacity: 1; }
.phr-modal__bg { position: fixed; inset: 0; background: rgba(0, 36, 50, .72); backdrop-filter: blur(3px); }
.phr-modal__box { position: relative; width: 100%; max-width: 920px; background: var(--phr-light); border-radius: 16px; padding: 24px; transform: translateY(14px); transition: transform .25s; }
.phr-modal.is-open .phr-modal__box { transform: none; }
.phr-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.phr-modal__head h2 { margin: 0; font-size: 28px; line-height: 1.15; color: var(--phr-navy); font-weight: 600; }
.phr-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--phr-accent); }
.phr-modal .phr-modal__x { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: #fff; color: var(--phr-navy); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.phr-modal .phr-modal__x:hover { background: var(--phr-navy); color: #fff; }

/* Tarifas */
.phr-tarifas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phr-tarifa { display: flex; flex-direction: column; background: #fff; border-radius: 14px; padding: 28px 24px; color: var(--phr-navy); border-top: 5px solid var(--phr-t-baja); box-shadow: 0 8px 30px rgba(0, 36, 50, .06); }
.phr-tarifa--media { border-top-color: var(--phr-t-media); }
.phr-tarifa--alta { background: var(--phr-navy); color: #fff; border-top-color: var(--phr-accent); }
.phr-tarifa__t { margin: 0 0 18px; font-size: 18px; font-weight: 600; line-height: 1.25; color: inherit; min-height: 2.5em; }
.phr-tarifa__precio { display: flex; align-items: baseline; gap: 6px; }
.phr-tarifa__n { font-size: 46px; font-weight: 700; line-height: 1; }
.phr-tarifa__u { font-size: 16px; opacity: .75; }
.phr-tarifa__min { margin: 6px 0 18px; font-size: 14px; opacity: .75; }
.phr-tarifa__dia { padding: 14px 0; border-top: 1px solid rgba(10, 56, 70, .12); font-size: 15px; margin-bottom: 14px; }
.phr-tarifa--alta .phr-tarifa__dia { border-top-color: rgba(255, 255, 255, .18); }
.phr-tarifa__dia strong { font-size: 22px; }
.phr-tarifa__dia span { font-size: 13.5px; opacity: .75; }
.phr-tarifa__nota { margin: -6px 0 14px; font-size: 12.5px; opacity: .7; }
.phr-tarifa .phr-btn { margin-top: auto; }
.phr-tarifa--alta .phr-btn { background: #fff; color: var(--phr-navy) !important; }
.phr-tarifa--alta .phr-btn:hover { background: var(--phr-light); }

/* Contacto */
.phr-contacto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.phr-contacto a { display: inline-flex; align-items: flex-start; gap: 10px; color: inherit; text-decoration: none; line-height: 1.35; }
.phr-contacto a:hover span { text-decoration: underline; }
.phr-ico { flex: none; margin-top: 1px; color: var(--phr-accent); }

/* Responsive */
/* Barra fija de precio (solo móvil) */
.phr-app .phr-sticky { display: none; }
.phr-swipe { display: none; }
@media (max-width: 1024px) {
	/* Tarifas en carrusel deslizable */
	.phr-tarifas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 18px; margin: 0 -16px; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.phr-tarifas::-webkit-scrollbar { display: none; }
	.phr-tarifa { flex: 0 0 46%; scroll-snap-align: start; }
	.phr-tarifa__t { min-height: 2.5em; }
	.phr-swipe { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--phr-muted, #5A7380); }
	.phr-swipe::after { content: "→"; animation: phr-nudge 1.4s ease-in-out infinite; }
	@keyframes phr-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
}
@media (max-width: 767px) {
	.phr-card { padding: 18px 14px; border-radius: 12px; }
	.phr-grid2 { grid-template-columns: 1fr; gap: 26px; }
	.phr-fields { grid-template-columns: 1fr; }
	.phr-dows, .phr-days { gap: 4px; }
	.phr-app .phr-day { min-height: 0; border-radius: 7px; font-size: 14px; }
	.phr-modal { padding: 0; }
	.phr-modal__box { border-radius: 0; min-height: 100%; padding: 16px 12px 24px; }
	.phr-modal__head h2 { font-size: 23px; }
	.phr-resumen { flex-direction: column; align-items: flex-start; }
	.phr-resumen__precio { text-align: left; }
	.phr-tarifa__n { font-size: 40px; }
	.phr-tarifa { flex-basis: 84%; padding: 24px 20px; }
	.phr-app .phr-sticky:not([hidden]) {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: sticky; bottom: 10px; z-index: 5; margin: 18px -4px 0; padding: 10px 10px 10px 16px;
		background: var(--phr-navy); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,36,50,.35);
		animation: phr-up .25s ease-out;
	}
	@keyframes phr-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
	.phr-sticky__txt { display: flex; flex-direction: column; line-height: 1.2; }
	.phr-sticky__txt strong { font-size: 20px; }
	.phr-sticky__txt span { font-size: 12.5px; opacity: .8; }
	.phr-app .phr-sticky__go { background: #fff; color: var(--phr-navy) !important; padding: 12px 18px; flex: none; }
	.phr-app .phr-btn--block { padding: 16px 20px; font-size: 16px; }
	.phr-app input:not([type=checkbox]), .phr-app select, .phr-app textarea { font-size: 16px; }
	/* Galería de la home en carrusel */
	#galeria .e-gallery-container { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; margin: 0 -16px !important; padding: 0 16px 6px !important; scroll-padding: 0 16px; height: auto !important; scrollbar-width: none; }
	#galeria .e-gallery-container::-webkit-scrollbar { display: none; }
	#galeria .e-gallery-item { position: relative !important; flex: 0 0 82% !important; width: auto !important; margin: 0 !important; scroll-snap-align: start; top: auto !important; left: auto !important; }
}

/* Ajustes de integración */
html { scroll-padding-top: 90px; }
.phr-app button { text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }
.phr-app .phr-day { line-height: 1; }
.phr-app .phr-nav:focus, .phr-app .phr-day:focus, .phr-app .phr-opt:focus { outline: 2px solid var(--phr-accent); outline-offset: 2px; }
.ph-contacto-dark .phr-contacto { color: #fff; font-size: 16px; }
.ph-contacto-dark .phr-ico { color: #7FC3E6; }
.ph-contacto-footer .phr-contacto { color: #325664; font-family: "Inter Tight", sans-serif; font-size: 16px; gap: 8px; }
.ph-contacto-footer .phr-contacto a:hover { color: #002432; }
