/*
 * PG Barbería: estilos del tema. Port de src/app/globals.css y de las clases de Tailwind
 * de los componentes del original (ver docs/design-tokens.md y docs/componentes.md).
 * Puntos de corte de Tailwind: sm 40rem · md 48rem · lg 64rem.
 */

/* ── 1. Tokens ───────────────────────────────────────────────────────────────────────── */

:root {
  --pg-black: #141211;
  --pg-charcoal: #1e1b19;
  --pg-charcoal-2: #282421;
  --pg-line: #34302c;
  --pg-line-strong: #736a60;
  --pg-ivory: #f2eee8;
  --pg-ash: #a39a8e;
  --pg-greige: #b8ac9c;
  --pg-stone: #e4ddd3;
  --pg-stone-2: #ede7df;
  --pg-ink-soft: #5c534a;
  --pg-olive: #5f6b4e;
  --pg-olive-light: #8e9c78;

  --background: var(--pg-black);
  --foreground: var(--pg-ivory);
  --card: var(--pg-charcoal);
  --primary: var(--pg-ivory);
  --primary-foreground: var(--pg-black);
  --muted: var(--pg-charcoal);
  --muted-foreground: var(--pg-ash);
  --accent: var(--pg-charcoal-2);
  --destructive: #e08c78;
  --border: var(--pg-line);
  --input: var(--pg-line-strong);
  --ring: var(--pg-greige);
  --radius: 0.125rem;

  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 400ms;
  --header-height: 4.5rem;

  --font-sans: var(--wp--preset--font-family--sans, Montserrat, ui-sans-serif, system-ui, sans-serif);
  --font-serif: var(--wp--preset--font-family--serif, "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif);
}

/* Tonos de sección: redefinen los tokens semánticos; todo lo de dentro se adapta. */
.tone-dark,
.tone-surface,
.tone-stone,
.tone-greige,
.is-style-tone-dark,
.is-style-tone-surface,
.is-style-tone-stone,
.is-style-tone-greige {
  background-color: var(--background);
  color: var(--foreground);
}

.tone-dark,
.tone-surface,
.is-style-tone-dark,
.is-style-tone-surface {
  --background: var(--pg-black);
  --foreground: var(--pg-ivory);
  --card: var(--pg-charcoal);
  --primary: var(--pg-ivory);
  --primary-foreground: var(--pg-black);
  --muted: var(--pg-charcoal);
  --muted-foreground: var(--pg-ash);
  --accent: var(--pg-charcoal-2);
  --destructive: #e08c78;
  --border: var(--pg-line);
  --input: var(--pg-line-strong);
  --ring: var(--pg-greige);
}

.tone-surface,
.is-style-tone-surface {
  --background: var(--pg-charcoal);
  --card: var(--pg-charcoal-2);
  --muted: var(--pg-charcoal-2);
}

.tone-stone,
.is-style-tone-stone {
  --background: var(--pg-stone);
  --foreground: var(--pg-black);
  --card: var(--pg-stone-2);
  --primary: var(--pg-black);
  --primary-foreground: var(--pg-ivory);
  --muted: var(--pg-stone-2);
  --muted-foreground: var(--pg-ink-soft);
  --accent: var(--pg-stone-2);
  --destructive: #9b3a2a;
  --border: #cfc5b8;
  --input: #857a6c;
  --ring: var(--pg-ink-soft);
}

.tone-greige,
.is-style-tone-greige {
  --background: var(--pg-greige);
  --foreground: var(--pg-black);
  --card: #c4b8a8;
  --primary: var(--pg-black);
  --primary-foreground: var(--pg-ivory);
  --muted-foreground: #3a332d;
  --border: #9c8f7e;
  --ring: var(--pg-black);
}

/* ── 2. Base ─────────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-tap-highlight-color: transparent;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
}
.pg-main {
  flex: 1;
}

/* Sin márgenes heredados (especificidad 0, como el preflight de Tailwind): los espaciados los pone cada componente. */
:where(.wp-site-blocks) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) {
  margin: 0;
}
:where(.wp-site-blocks) :where(ul, ol) {
  padding: 0;
  list-style: none;
}
:where(.wp-site-blocks .is-layout-flow, .wp-site-blocks .is-layout-constrained) > * {
  margin-block: 0;
}
.pg-content > *,
.entry-content > * {
  max-width: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
em {
  font-style: italic;
}

::selection {
  background-color: var(--pg-greige);
  color: var(--pg-black);
}

:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: 3px;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pg-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.pg-skip-link:focus {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
}

/* ── 3. Utilidades de marca ──────────────────────────────────────────────────────────── */

.container-page {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
@media (width >= 48rem) {
  .container-page {
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
  }
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.label-airy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}
.display,
.pg-h2,
.pg-cta__title,
.pg-app__title,
.pg-legal__title,
.pg-404__title {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.hairline {
  display: block;
  height: 1px;
  background-color: currentColor;
  opacity: 0.28;
}
.is-muted {
  color: var(--muted-foreground);
}

/* «01 —— SERVICIOS»: índice en cursiva, línea fina y etiqueta. */
.pg-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.pg-label::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.28;
}
.pg-label em {
  order: -1;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.pg-h2 {
  margin-top: 2rem !important;
  font-size: 2.75rem;
}
@media (width >= 40rem) {
  .pg-h2 {
    font-size: 3.75rem;
    line-height: 1;
  }
}
@media (width >= 64rem) {
  .pg-h2 {
    font-size: 4.5rem;
  }
}
.pg-h2--sm {
  max-width: 56rem;
  font-size: 2.5rem;
}
@media (width >= 40rem) {
  .pg-h2--sm {
    font-size: 3rem;
    line-height: 1;
  }
}
@media (width >= 64rem) {
  .pg-h2--sm {
    font-size: 3.75rem;
  }
}
.pg-intro {
  margin-top: 2rem !important;
  max-width: 36rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}
@media (width >= 48rem) {
  .pg-intro {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

/* ── 4. Animaciones (CSS puro, arrancan sin JS) ───────────────────────────────────────── */

@keyframes pg-rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes pg-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pg-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes pg-bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
@keyframes pg-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.rise-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
  margin-block: -0.08em;
}
.rise {
  display: block;
  animation: pg-rise 900ms var(--ease-brand) both;
  animation-delay: var(--delay, 0ms);
}
.fade-up {
  animation: pg-fade 700ms var(--ease-brand) both;
  animation-delay: var(--delay, 0ms);
}
.draw-line {
  transform-origin: left;
  animation: pg-draw 1100ms var(--ease-brand) both;
  animation-delay: var(--delay, 0ms);
}
.delay-60 { --delay: 60ms; --reveal-delay: 60ms; }
.delay-80 { --delay: 80ms; --reveal-delay: 80ms; }
.delay-100 { --delay: 100ms; --reveal-delay: 100ms; }
.delay-120 { --delay: 120ms; --reveal-delay: 120ms; }
.delay-160 { --delay: 160ms; --reveal-delay: 160ms; }
.delay-180 { --delay: 180ms; }
.delay-520 { --delay: 520ms; }
.delay-760 { --delay: 760ms; }
.delay-900 { --delay: 900ms; }
.delay-1000 { --delay: 1000ms; }
.delay-1100 { --delay: 1100ms; }

/*
 * Entrada al hacer scroll (sustituye a <Reveal> de Motion). Con soporte de animaciones
 * ligadas al scroll, CSS puro; si no, IntersectionObserver en theme.js añade .is-visible.
 * Sin JS no se oculta nada (solo actúa con html.js).
 */
@keyframes pg-reveal {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-offset, 14px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js .reveal {
      animation: pg-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
  @supports not (animation-timeline: view()) {
    html.js .reveal {
      transition:
        opacity 400ms var(--ease-brand) var(--reveal-delay, 0ms),
        transform 400ms var(--ease-brand) var(--reveal-delay, 0ms);
    }
    html.js .reveal:not(.is-visible) {
      opacity: 0;
      transform: translateY(var(--reveal-offset, 14px));
    }
  }
}

/* ── 5. Botones ──────────────────────────────────────────────────────────────────────── */

.pg-btn,
.wp-block-button__link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 3rem;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  transition:
    background-color var(--duration-base) var(--ease-brand),
    color var(--duration-base) var(--ease-brand),
    border-color var(--duration-base) var(--ease-brand),
    opacity var(--duration-base) var(--ease-brand);
}
.pg-btn:hover,
.wp-block-button__link:hover {
  background: color-mix(in srgb, var(--primary) 85%, transparent);
  color: var(--primary-foreground);
}
.pg-btn:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 1px solid var(--ring);
  outline-offset: 4px;
}
.pg-btn svg {
  flex-shrink: 0;
}
.pg-btn--sm {
  height: 2.5rem;
  padding: 0 1.25rem;
}
.pg-btn--lg,
.wp-block-button.is-size-lg .wp-block-button__link {
  height: 3.5rem;
  padding: 0 2.25rem;
}
.pg-btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--foreground) 45%, transparent);
}
.pg-btn--outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
}
.pg-btn--ghost {
  background: transparent;
  color: var(--foreground);
}
.pg-btn--ghost:hover {
  background: var(--accent);
  color: var(--foreground);
}
.pg-btn--icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  letter-spacing: normal;
}
.wp-block-button.is-style-link .wp-block-button__link {
  height: auto;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  color: var(--foreground);
  letter-spacing: 0.2em;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--foreground) 40%, transparent);
  text-underline-offset: 0.6em;
}
.wp-block-button.is-style-link .wp-block-button__link:hover {
  text-decoration-color: var(--foreground);
}

/* Flechas de lucide (ArrowRight / ArrowUpRight) como máscara CSS: el texto sigue siendo editable. */
.wp-block-button.has-arrow .wp-block-button__link::after,
.wp-block-button.has-arrow-up .wp-block-button__link::after {
  content: "";
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  transition: transform var(--duration-base);
}
.wp-block-button.has-arrow {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}
.wp-block-button.has-arrow-up {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}
.wp-block-button.has-arrow .wp-block-button__link:hover::after,
.pg-btn:hover .pg-icon--arrow {
  transform: translateX(0.25rem);
}
.pg-icon--arrow {
  transition: transform var(--duration-base);
}
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.wp-block-button {
  margin: 0;
}

/* ── 6. Cabecera ─────────────────────────────────────────────────────────────────────── */

.pg-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--foreground);
  transition:
    background-color 300ms var(--ease-brand),
    border-color 300ms var(--ease-brand),
    backdrop-filter 300ms var(--ease-brand);
}
.pg-header.is-solid,
body:not(.home) .pg-header {
  border-color: var(--border);
  background: var(--background);
}
@media (width >= 48rem) {
  .pg-header.is-solid,
  body:not(.home) .pg-header {
    background: color-mix(in srgb, var(--background) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.admin-bar .pg-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}
.pg-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.pg-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-block: -0.5rem;
  padding-block: 0.5rem;
  line-height: 1;
  color: var(--foreground);
  transition:
    opacity 500ms var(--ease-brand),
    visibility 500ms var(--ease-brand);
}
.home .pg-header:not(.is-solid) .pg-wordmark {
  visibility: hidden;
  opacity: 0;
}
.pg-wordmark__top {
  margin-right: -0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.pg-wordmark__bottom {
  margin-top: 0.375rem;
  margin-right: -0.62em;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.62em;
  opacity: 0.8;
}
.pg-header__nav {
  display: none !important;
}
@media (width >= 64rem) {
  .pg-header__nav {
    display: flex !important;
  }
}
.pg-header__nav .wp-block-navigation__container {
  gap: 2.5rem !important;
}
.pg-header .pg-header__nav a,
.pg-header .pg-header__nav .wp-block-navigation-item__content {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 200ms;
}
.pg-header .pg-header__nav a:hover {
  color: var(--foreground);
}
.pg-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg-header__book {
  display: none;
}
@media (width >= 40rem) {
  .pg-header__book {
    display: inline-flex;
  }
}
@media (width >= 64rem) {
  .pg-header__menu {
    display: none;
  }
}

/* Menú móvil: <dialog> a la derecha, ancho completo en móvil y 24rem desde sm. */
.pg-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 6rem max(1.25rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-bottom));
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  flex-direction: column;
  gap: 1rem;
}
.pg-sheet[open] {
  display: flex;
  animation: pg-sheet-in 200ms ease-in-out;
}
@keyframes pg-sheet-in {
  from {
    opacity: 0;
    transform: translateX(2.5rem);
  }
}
.pg-sheet::backdrop {
  background: rgb(20 18 17 / 0.7);
  backdrop-filter: blur(4px);
}
@media (width >= 40rem) {
  .pg-sheet {
    max-width: 24rem;
    padding-inline: 2rem;
  }
}
html:has(.pg-sheet[open]) {
  overflow: hidden;
}
.pg-sheet__nav {
  display: flex;
  flex-direction: column;
}
.pg-sheet__link {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pg-sheet__link svg {
  color: var(--muted-foreground);
}
.pg-sheet__meta {
  margin-top: auto;
  padding-top: 2.5rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.pg-sheet__meta > * + * {
  margin-top: 0.5rem;
}
.pg-sheet__book {
  margin-top: 0.5rem;
  width: 100%;
}
.pg-sheet__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* ── 7. Estado de apertura y horario (bloques del plugin) ───────────────────────────── */

.pg-open-status {
  display: inline-flex;
  min-height: 1.25rem;
  align-items: center;
  gap: 0.75rem;
}
.pg-open-status__dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}
.pg-open-status__ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--pg-olive-light);
  opacity: 0.6;
  animation: pg-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pg-open-status__core {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
}
.pg-open-status.is-open .pg-open-status__core {
  background: var(--pg-olive-light);
  opacity: 1;
}

.pg-hours {
  margin-top: 1.5rem;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.pg-hours tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 200ms;
}
.pg-hours th {
  padding: 1.25rem 1.5rem 1.25rem 0;
  font-weight: 400;
}
.pg-hours td {
  padding: 1.25rem 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pg-hours td.is-closed {
  color: var(--muted-foreground);
}
.pg-hours tr.is-today {
  background: var(--card);
}
.pg-hours tr.is-today th {
  padding-left: 1rem;
  font-weight: 600;
}
.pg-hours tr.is-today td {
  padding-right: 1rem;
  font-weight: 600;
}
.pg-hours__range {
  display: block;
}
.pg-hours__sep {
  display: none;
  padding-inline: 0.75rem;
}
@media (width >= 40rem) {
  .pg-hours td {
    white-space: nowrap;
  }
  .pg-hours__range {
    display: inline;
  }
  .pg-hours__sep {
    display: inline;
  }
}
.pg-hours__today {
  margin-left: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ── 8. Pie ──────────────────────────────────────────────────────────────────────────── */

.pg-footer {
  border-top: 1px solid var(--border);
}
.pg-footer__grid {
  display: grid;
  gap: 3.5rem;
  padding-block: 5rem;
}
@media (width >= 48rem) {
  .pg-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.pg-footer__motto {
  max-width: 20rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1.375;
  letter-spacing: -0.01em;
}
@media (width >= 48rem) {
  .pg-footer__motto {
    font-size: 2.25rem;
  }
}
.pg-footer__status {
  margin-top: 2rem !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
nav.pg-footer__nav {
  margin-top: 1rem;
}
.pg-footer__nav .wp-block-navigation__container {
  gap: 0 !important;
  align-items: flex-start !important;
}
.pg-footer .pg-footer__nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.pg-footer__address {
  margin-top: 1.5rem !important;
  font-size: 0.875rem;
  line-height: 1.625;
}
.pg-footer__bottom {
  border-top: 1px solid var(--border);
}
.pg-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 2rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}
@media (width >= 48rem) {
  .pg-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
nav.pg-footer__legal {
  margin-block: -0.75rem !important;
}
.pg-footer__legal .wp-block-navigation__container {
  gap: 0 2rem !important;
}
.pg-footer .pg-footer__legal a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1rem;
  transition: color 200ms;
}
.pg-footer__legal a:hover {
  color: var(--foreground);
}
.pg-footer__giant {
  overflow: hidden;
}
.pg-footer__giant p {
  margin-bottom: -0.18em !important;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15.5vw;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--muted-foreground);
  user-select: none;
}
.wp-block-navigation .wp-block-navigation-item__content {
  padding: 0;
}

/* ── 9. Barra fija de reserva (móvil, portada y legales) ──────────────────────────────── */

.pg-mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1.25rem max(0.75rem, env(safe-area-inset-bottom));
  visibility: hidden;
  opacity: 0;
  translate: 0 100%;
  transition:
    translate 400ms var(--ease-brand),
    opacity 400ms var(--ease-brand),
    visibility 400ms var(--ease-brand);
}
.pg-mobile-bar.is-visible {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}
@media (width >= 48rem) {
  .pg-mobile-bar {
    display: none;
  }
}
.pg-from {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}
.pg-from__price {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--foreground);
}
.pg-mobile-bar__actions {
  flex: 1;
}
.pg-mobile-bar__actions .wp-block-button,
.pg-mobile-bar__actions .wp-block-button__link {
  width: 100%;
}
@media (width >= 40rem) {
  .pg-mobile-bar__actions {
    flex: none;
  }
}

/* ── 10. Secciones de la portada ─────────────────────────────────────────────────────── */

.pg-section {
  padding-block: 7rem;
}
@media (width >= 48rem) {
  .pg-section {
    padding-block: 10rem;
  }
}

/* Hero */
.pg-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding-top: var(--header-height);
}
.pg-hero__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 2rem;
  text-align: center;
}
@media (width >= 48rem) {
  .pg-hero__main {
    padding-block: 4rem;
  }
}
.pg-hero__logo {
  margin-top: 1.75rem !important;
}
.pg-hero__logo svg {
  height: min(26svh, 24rem);
  width: auto;
  max-width: 82vw;
  overflow: hidden;
}
@media (width >= 48rem) {
  .pg-hero__logo {
    margin-top: 3rem !important;
  }
  .pg-hero__logo svg {
    height: min(34svh, 24rem);
  }
}
@media (max-height: 700px) {
  .pg-hero__logo svg {
    height: 23svh;
  }
}
.pg-hero__tagline-mask {
  margin-top: 1.75rem !important;
}
@media (width >= 48rem) {
  .pg-hero__tagline-mask {
    margin-top: 3.5rem !important;
  }
}
.pg-hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (width >= 40rem) {
  .pg-hero__tagline {
    font-size: 2.25rem;
  }
}
@media (width >= 48rem) {
  .pg-hero__tagline {
    font-size: 3rem;
  }
}
.pg-hero__actions {
  margin-top: 2.25rem !important;
  width: 100%;
  justify-content: center;
}
@media (width >= 40rem) {
  .pg-hero__actions {
    width: auto;
  }
}
@media (width >= 48rem) {
  .pg-hero__actions {
    margin-top: 3.5rem !important;
  }
}
.pg-hero__book {
  width: 100%;
  max-width: 20rem;
}
.pg-hero__book .wp-block-button__link {
  width: 100%;
}
.wp-block-buttons > .pg-hero__services {
  display: none;
}
@media (width >= 40rem) {
  .pg-hero__book {
    width: auto;
  }
  .wp-block-buttons > .pg-hero__services {
    display: block;
  }
}
.pg-hero__strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}
@media (width >= 48rem) {
  .pg-hero__strip {
    padding-top: 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}
.pg-hero__line {
  position: absolute;
  inset-inline: 0;
  top: 0;
}
.pg-hero__discover {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  transition: color 200ms;
}
.pg-hero__discover:hover {
  color: var(--foreground);
}
@media (width >= 48rem) {
  .pg-hero__discover {
    display: inline-flex;
  }
}
.pg-bounce {
  animation: pg-bounce 2.4s infinite;
}

/* Imagen del local con apertura ligada al scroll */
.pg-window-section {
  padding-bottom: 2rem;
}
@media (width >= 48rem) {
  .pg-window-section {
    padding-bottom: 3rem;
  }
}
.pg-window {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  --inset: calc((1 - var(--p, 1)) * 9%);
  clip-path: inset(var(--inset));
}
@media (width >= 48rem) {
  .pg-window {
    aspect-ratio: 1010 / 605;
  }
}
.pg-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 40% 50%;
  scale: calc(1 + (1 - var(--p, 1)) * 0.18);
}
@keyframes pg-window-clip {
  from {
    clip-path: inset(9%);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes pg-window-scale {
  from {
    scale: 1.18;
  }
  to {
    scale: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .pg-window {
    --p: 0;
  }
  @supports (animation-timeline: view()) {
    html.js .pg-window {
      --p: 1;
      view-timeline-name: --pg-window;
      animation: pg-window-clip linear both;
      animation-timeline: --pg-window;
      animation-range: entry 0% cover 50%;
    }
    html.js .pg-window img {
      animation: pg-window-scale linear both;
      animation-timeline: --pg-window;
      animation-range: entry 0% cover 50%;
    }
  }
}
.pg-window__caption {
  margin-top: 1.25rem !important;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}
.pg-window__caption .label-airy {
  line-height: 1rem;
}

/* 01 Servicios */
.pg-services__head {
  display: grid;
  gap: 2.5rem;
}
@media (width >= 64rem) {
  .pg-services__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 2rem;
  }
  .pg-services__heading {
    grid-column: span 7;
  }
  .pg-services__intro {
    grid-column: 9 / span 4;
  }
}
.pg-services__heading {
  max-width: 48rem;
}
.pg-services__intro {
  margin-top: 0 !important;
}

.pg-signature {
  position: relative;
  margin-top: 4rem;
  display: grid;
  gap: 3rem;
  overflow: hidden;
  padding: 2rem;
}
@media (width >= 40rem) {
  .pg-signature {
    padding: 3rem;
  }
}
@media (width >= 48rem) {
  .pg-signature {
    margin-top: 6rem;
  }
}
@media (width >= 64rem) {
  .pg-signature {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    padding: 4rem;
  }
  .pg-signature__main {
    grid-column: span 6;
  }
  .pg-signature__includes {
    grid-column: 8 / span 5;
    align-self: center;
  }
}
.pg-signature__mark {
  position: absolute;
  right: -2.5rem;
  bottom: -1.5rem;
  width: 18rem;
  height: auto;
  color: var(--foreground);
  opacity: 0.06;
  pointer-events: none;
}
@media (width >= 48rem) {
  .pg-signature__mark {
    width: 28rem;
  }
}
.pg-signature__main,
.pg-signature__includes {
  position: relative;
}
.pg-signature__name {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 3rem;
  line-height: 1;
}
@media (width >= 48rem) {
  .pg-signature__name {
    font-size: 4.5rem;
  }
}
.pg-signature__subtitle {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 2rem;
  font-size: 1.5rem;
  color: var(--muted-foreground);
}
@media (width >= 48rem) {
  .pg-signature__subtitle {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
.pg-signature__price {
  margin-top: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}
.pg-signature__price .eyebrow {
  line-height: 1rem;
  color: var(--muted-foreground);
}
.pg-signature__amount {
  font-family: var(--font-serif);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 3.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (width >= 48rem) {
  .pg-signature__amount {
    font-size: 4.5rem;
  }
}
.pg-signature__cta {
  margin-top: 2.5rem;
}
.pg-signature__includes .eyebrow {
  color: var(--muted-foreground);
}
.pg-signature__includes ol {
  margin-top: 1.5rem;
}
.pg-signature__includes li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-block: 1rem;
  font-size: 0.95rem;
}
.pg-signature__includes li:last-child {
  border-bottom: 1px solid var(--border);
}
.pg-signature__n {
  width: 1.5rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.pg-menu {
  margin-top: 4rem !important;
  display: grid;
  column-gap: 4rem;
}
@media (width >= 48rem) {
  .pg-menu {
    margin-top: 6rem !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pg-menu > li {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}
.pg-menu__top {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}
.pg-menu__name,
.pg-menu__price {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}
@media (width >= 48rem) {
  .pg-menu__name,
  .pg-menu__price {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
.pg-menu__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
  translate: 0 -0.3em;
}
.pg-menu__bottom {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.pg-menu__desc {
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.pg-menu__dur {
  flex-shrink: 0;
  line-height: 1rem;
  color: var(--muted-foreground);
}

/* 02 El local */
.pg-local {
  padding-top: 5rem;
}
@media (width >= 48rem) {
  .pg-local {
    padding-top: 7rem;
  }
}
.pg-local__grid {
  display: grid;
  gap: 4rem;
}
@media (width >= 64rem) {
  .pg-local__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
  }
  .pg-local__left {
    grid-column: span 6;
  }
  .pg-local__right {
    grid-column: 8 / span 5;
  }
}
.pg-heading {
  max-width: 48rem;
}
.pg-facts {
  margin-top: 4rem !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}
.pg-facts > div {
  padding-block: 2rem;
}
.pg-facts > div + div {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}
.pg-facts__value {
  display: block;
  font-family: var(--font-serif);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 2.25rem;
  line-height: 2.5rem;
}
@media (width >= 48rem) {
  .pg-facts__value {
    font-size: 3rem;
    line-height: 1;
  }
}
.pg-facts__label {
  margin-top: 0.75rem;
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.pg-materials {
  margin-top: 4rem !important;
}
.pg-swatches {
  margin-top: 1.5rem !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (width >= 40rem) {
  .pg-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pg-swatches li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pg-swatch {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 15%, transparent);
}
.pg-swatch__text {
  line-height: 1.25;
}
.pg-swatch__text > span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.pg-swatch__text > .pg-swatch__where {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}
@media (width >= 64rem) {
  .pg-plan {
    position: sticky;
    top: calc(var(--header-height) + 3rem);
  }
}
.pg-plan__svg {
  margin-inline: auto;
  width: 100%;
  max-width: 24rem;
  height: auto;
  color: var(--foreground);
}
@media (width >= 64rem) {
  .pg-plan__svg {
    max-width: none;
  }
}
.pg-plan__marker {
  fill: var(--background);
  stroke: var(--foreground);
  stroke-width: 1;
}
.pg-plan__n {
  fill: var(--foreground);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}
.pg-plan__dim {
  stroke: var(--muted-foreground);
  fill: none;
}
.pg-plan__dimtext {
  fill: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.pg-plan__caption {
  margin-top: 2.5rem;
}
.pg-plan__zones {
  margin-top: 1.25rem !important;
  display: grid;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
@media (width >= 40rem) {
  .pg-plan__zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pg-plan__zones li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pg-plan__badge {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--foreground) 60%, transparent);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

/* 03 Cómo trabajamos */
.pg-values {
  margin-top: 4rem !important;
  display: grid;
  gap: 3rem;
  counter-reset: pg-value;
}
@media (width >= 48rem) {
  .pg-values {
    margin-top: 6rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
.pg-value {
  counter-increment: pg-value;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 40%, transparent);
  padding-top: 2rem;
}
.pg-value::before {
  content: "0" counter(pg-value) / "";
  display: inline;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
/* !important: WP pone margin-block-start:0 al primer hijo de un layout «flow» con especificidad (0,2,0). */
.pg-value h3 {
  margin-top: 1rem !important;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 1.875rem;
  line-height: 2.25rem;
}
@media (width >= 48rem) {
  .pg-value h3 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
.pg-value p {
  margin-top: 1.25rem !important;
  max-width: 20rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

/* 04 Horario y ubicación */
.pg-visit__grid {
  display: grid;
  gap: 4rem;
}
@media (width >= 64rem) {
  .pg-visit__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
  }
  .pg-visit__left {
    grid-column: span 5;
  }
  .pg-visit__right {
    grid-column: 7 / span 6;
  }
}
.pg-visit__status {
  margin-top: 2rem !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.pg-visit__info {
  margin-top: 3rem !important;
}
.pg-visit__info > * + * {
  margin-top: 2.5rem !important;
}
.pg-visit__address {
  margin-top: 1rem !important;
  font-size: 1.125rem;
  line-height: 1.625;
}
.pg-visit__maps {
  margin-top: 1.25rem !important;
}
.pg-visit__contact {
  margin-top: 1rem !important;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.pg-visit__contact > li + li {
  margin-top: 0.5rem;
}
.pg-visit__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pg-visit__note {
  margin-top: 1.5rem !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

/* CTA final */
.pg-cta {
  padding-block: 8rem;
}
@media (width >= 48rem) {
  .pg-cta {
    padding-block: 11rem;
  }
}
.pg-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pg-cta__mark svg {
  width: 4rem;
  height: auto;
  color: var(--muted-foreground);
}
.pg-cta__title {
  margin-top: 3rem !important;
  max-width: 56rem;
  font-size: 3rem;
}
@media (width >= 40rem) {
  .pg-cta__title {
    font-size: 3.75rem;
    line-height: 1;
  }
}
@media (width >= 64rem) {
  .pg-cta__title {
    font-size: 6rem;
  }
}
.pg-cta__text {
  margin-top: 2rem !important;
  max-width: 28rem;
  color: var(--muted-foreground);
}
@media (width >= 48rem) {
  .pg-cta__text {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}
.pg-cta__actions {
  margin-top: 3.5rem !important;
  justify-content: center;
}

/* ── 11. Páginas ─────────────────────────────────────────────────────────────────────── */

/* /reservar y /cita */
.pg-app {
  padding-top: var(--header-height);
}
.pg-app__inner {
  padding-block: 2rem;
}
@media (width >= 48rem) {
  .pg-app__inner {
    padding-block: 6rem;
  }
}
.pg-app__header {
  max-width: 42rem;
}
.pg-app__title {
  margin-top: 1rem !important;
  font-size: 2.5rem;
  line-height: 1;
}
@media (width >= 40rem) {
  .pg-app__title {
    font-size: 3rem;
  }
}
@media (width >= 48rem) {
  .pg-app__title {
    margin-top: 1.5rem !important;
    font-size: 3.75rem;
  }
}
.pg-app__widget {
  margin-top: 2rem;
}
@media (width >= 48rem) {
  .pg-app__widget {
    margin-top: 5rem;
  }
}

/* Legales */
.pg-legal {
  padding-top: var(--header-height);
}
.pg-legal__inner {
  max-width: 48rem;
  padding-block: 4rem;
}
@media (width >= 48rem) {
  .pg-legal__inner {
    padding-block: 6rem;
  }
}
.pg-legal__title {
  margin-top: 1.5rem !important;
  font-size: 3rem;
  line-height: 1;
}
@media (width >= 48rem) {
  .pg-legal__title {
    font-size: 3.75rem;
  }
}
.pg-legal__content {
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.pg-legal__content > * + * {
  margin-top: 1.5rem !important;
}
.pg-legal__content .pg-legal__updated {
  margin-top: 1.5rem !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.pg-legal__content .pg-legal__notice {
  margin-top: 2.5rem !important;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.pg-legal__content .pg-legal__notice + * {
  margin-top: 3rem !important;
}
.pg-legal__content h2 {
  padding-top: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--foreground);
}
.pg-legal__content strong {
  font-weight: 600;
  color: var(--foreground);
}
.pg-legal__content ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.pg-legal__content ul > li + li {
  margin-top: 0.5rem;
}
.pg-legal__content a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pg-legal__content mark,
.pg-review {
  background: color-mix(in srgb, var(--pg-olive) 35%, transparent);
  color: var(--foreground);
  padding-inline: 0.2em;
}

/* 404 */
.pg-404 {
  display: flex;
  min-height: 80svh;
  align-items: center;
  padding-top: var(--header-height);
}
.pg-404__inner {
  text-align: center;
}
.pg-404__title {
  margin-top: 1.5rem !important;
  font-size: 3rem;
  line-height: 1;
}
@media (width >= 48rem) {
  .pg-404__title {
    font-size: 3.75rem;
  }
}
.pg-404__text {
  margin: 1.5rem auto 0 !important;
  max-width: 28rem;
}
.pg-404__actions {
  margin-top: 2.5rem !important;
  justify-content: center;
}

/* ── 12. Marca ───────────────────────────────────────────────────────────────────────── */

.pg-mark {
  height: auto;
}
.wp-block-pg-barberia-mark {
  display: flex;
  justify-content: center;
}

/* Desplazamiento automático (foco, anclas) sin quedar detrás de las barras fijas. */
@media (width < 48rem) {
  html {
    scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* ---------------------------------------------------------------------------
 * Legibilidad de Bodoni Moda (2026-11-11).
 * Con font-optical-sizing:auto, a tamaños grandes el eje opsz llega a 96 y los
 * trazos finos casi desaparecen: «24 €» se leía «21 C». Se fija un tamaño óptico
 * moderado en todo el sitio (Montserrat no tiene eje opsz y lo ignora) y uno
 * más bajo en precios para que el 4 y el € conserven sus barras.
 * ------------------------------------------------------------------------- */
body {
  font-variation-settings: "opsz" 28;
}
.pg-signature__amount,
.pg-signature__price,
.pg-menu__price,
.pg-from__price,
.pgb-service__price,
.pgb-summary__price,
.pgb-bar__price {
  font-variation-settings: "opsz" 18;
}

/* ── Intro de la portada: tijeras que cortan un mechón y abren la hoja (inc/intro.php) ─────
 * Línea de tiempo (ms): 0 mechón · 200–900 entran las tijeras (tijeretazos cortos, la línea
 * de corte las sigue) · 900–1000 corte · 1000–1750 cae el mechón · 1050–1650 siguen cortando
 * hacia la izquierda · 1650–2400 la hoja se abre en dos (parallax: cada capa a su velocidad).
 * Solo con html.pg-intro-on (script en <head>); se oculta sola aunque falle el JS.
 */
.pg-cut {
  display: none;
}
html.pg-intro-on .pg-cut {
  --cut-ease: cubic-bezier(0.76, 0, 0.24, 1);
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  cursor: pointer;
  animation: pg-cut-end 1ms linear 2400ms forwards;
}
.pg-cut.is-leaving {
  opacity: 0;
  transition: opacity 250ms ease-out;
}
@keyframes pg-cut-end {
  to {
    visibility: hidden;
  }
}

/* Las dos mitades de la hoja (se solapan un 1 % para que no se vea la costura). */
.pg-cut__panel {
  position: absolute;
  inset-inline: 0;
  height: 50.5%;
  overflow: hidden;
  background: var(--pg-black);
}
.pg-cut__panel--top {
  top: 0;
  animation: pg-cut-up 750ms var(--cut-ease) 1650ms forwards;
}
.pg-cut__panel--bottom {
  bottom: 0;
  animation: pg-cut-down 750ms var(--cut-ease) 1650ms forwards;
}
@keyframes pg-cut-up {
  to {
    transform: translateY(-101%);
  }
}
@keyframes pg-cut-down {
  to {
    transform: translateY(101%);
  }
}

/* Capa de fondo: la marca en grande, casi invisible, a contracorriente (parallax lento). */
.pg-cut__ghost {
  position: absolute;
  left: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(4.5rem, 19vw, 15rem);
  font-variation-settings: "opsz" 28;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--pg-charcoal-2);
}
.pg-cut__panel--top .pg-cut__ghost {
  bottom: 0.12em;
  animation: pg-cut-drift-l 2400ms linear both;
}
.pg-cut__panel--bottom .pg-cut__ghost {
  top: 0.08em;
  animation: pg-cut-drift-r 2400ms linear both;
}
@keyframes pg-cut-drift-l {
  from {
    opacity: 0;
    transform: translateX(-40%);
  }
  25% {
    opacity: 1;
  }
  to {
    transform: translateX(-60%);
  }
}
@keyframes pg-cut-drift-r {
  from {
    opacity: 0;
    transform: translateX(-60%);
  }
  25% {
    opacity: 1;
  }
  to {
    transform: translateX(-40%);
  }
}

/* Línea de corte: avanza de derecha a izquierda detrás de las tijeras. */
.pg-cut__line {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
  background: var(--pg-ivory);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: right;
  animation:
    pg-cut-line 1160ms linear 200ms forwards,
    pg-cut-out 200ms linear 1650ms forwards;
}
@keyframes pg-cut-line {
  60%,
  70% {
    transform: scaleX(0.5);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes pg-cut-out {
  to {
    opacity: 0;
  }
}

/* Escenario: cuadrado centrado; el corte cae justo en su centro (= centro de la pantalla). */
.pg-cut__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 64vh, 34rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.pg-cut__stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Mechón: entra, se mece, la parte de abajo cae al cortar y la de arriba se va con la hoja. */
.pg-cut__hair {
  transform-origin: 50% 0;
  animation: pg-cut-hair-in 1500ms var(--ease-brand) both;
}
.pg-cut__hair--top {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
  animation:
    pg-cut-hair-in 1500ms var(--ease-brand) both,
    pg-cut-hair-up 750ms var(--cut-ease) 1650ms forwards;
}
.pg-cut__hair--bottom {
  animation:
    pg-cut-hair-in 1500ms var(--ease-brand) both,
    pg-cut-fall 750ms cubic-bezier(0.55, 0, 1, 0.45) 970ms forwards;
}
@keyframes pg-cut-hair-in {
  from {
    opacity: 0;
    transform: translateY(-1.75rem) rotate(-2deg);
  }
  35% {
    opacity: 1;
  }
  60% {
    transform: rotate(1.2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pg-cut-hair-up {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 1;
    transform: translateY(-58vh);
  }
}
@keyframes pg-cut-fall {
  from {
    opacity: 1;
    transform: none;
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(1.25rem, 46vh) rotate(14deg);
  }
}

/* Recortes sueltos que saltan con el tijeretazo. */
.pg-cut__bits path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pg-cut-bit 800ms cubic-bezier(0.2, 0.6, 0.4, 1) 960ms both;
}
@keyframes pg-cut-bit {
  from {
    opacity: 0;
    transform: none;
  }
  8% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  }
}

/* Tijeras (capa delantera, la más rápida). El eje está en (295, 200) del escenario y el
 * punto de corte de las hojas cae en el centro (200, 200). */
.pg-cut__scissors {
  position: absolute;
  left: 30%;
  top: 31.25%;
  width: 68.75%;
  height: 37.5%;
  filter: drop-shadow(0 0.75rem 1.25rem rgb(0 0 0 / 0.55));
  animation: pg-cut-travel 1450ms linear 200ms both;
}
.pg-cut__scissors svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
@keyframes pg-cut-travel {
  from {
    transform: translateX(62vw) rotate(-5deg);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  48% {
    transform: none;
  }
  59% {
    transform: none;
    animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.4);
  }
  to {
    transform: translateX(-118vw) rotate(3deg);
  }
}
.pg-cut__blade {
  --s: 1;
  animation: pg-cut-snip 1450ms linear 200ms both;
}
.pg-cut__blade--b {
  --s: -1;
}
@keyframes pg-cut-snip {
  /* % sobre 1450 ms desde los 200 ms: cierre seco a 960 ms, cerradas hasta 1080 ms. */
  0%,
  16.6%,
  33.1% {
    transform: rotate(calc(var(--s) * 17deg));
    animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0);
  }
  8.3%,
  24.8% {
    transform: rotate(calc(var(--s) * 5deg));
    animation-timing-function: ease-out;
  }
  44.8% {
    transform: rotate(calc(var(--s) * 22deg));
    animation-timing-function: cubic-bezier(0.7, 0, 0.9, 0.3);
  }
  52.4%,
  60.7% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }
  67.6%,
  81.4% {
    transform: rotate(calc(var(--s) * 15deg));
    animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0);
  }
  74.5%,
  88.3% {
    transform: rotate(calc(var(--s) * 1deg));
    animation-timing-function: ease-out;
  }
  to {
    transform: rotate(calc(var(--s) * 14deg));
  }
}

.pg-cut__skip {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid var(--pg-line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--pg-ash);
  font: 500 0.6875rem/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    color var(--duration-fast),
    border-color var(--duration-fast);
  animation:
    pg-fade 400ms var(--ease-brand) 300ms both,
    pg-cut-out 200ms linear 1650ms forwards;
}
.pg-cut__skip:hover,
.pg-cut__skip:focus-visible {
  color: var(--pg-ivory);
  border-color: var(--pg-ivory);
}

/* El hero espera a que se abra la hoja (theme.js adelanta este margen si se salta la intro). */
html.pg-intro-on .pg-hero :is(.fade-up, .rise, .draw-line) {
  animation-delay: calc(var(--delay, 0ms) + var(--pg-intro-offset, 1750ms));
}

@media (prefers-reduced-motion: reduce) {
  .pg-cut {
    display: none !important;
  }
}
@media print {
  .pg-cut {
    display: none !important;
  }
}
