/* accesible.css — Para quien no ve bien. Se carga la ÚLTIMA en todas las páginas públicas.
   §1 Arreglos para todos (contraste, foco, zoom, alto contraste de Windows).
   §2 El panel de accesibilidad (assets/js/ver-mejor.js).
   §3 Lo que cambia cada opción: html[data-texto|data-contraste|data-letra|data-enlaces|data-quieto]. */

/* §1 ------------------------------------------------------------------------ */
:root, [data-theme="nero"] { --color-border: #7E9489; --color-border-control: #7E9489; }
/* El color de los enlaces no debe borrar el texto de los botones al pasar el ratón */
a.btn:not(.btn--link), a.btn:not(.btn--link):hover { color: var(--_fg); }
.btn--primary:hover { --_bg: linear-gradient(135deg, #0F6A4E, #0C5B43); }
.btn--primary::after { opacity: .35; }
.brand__sub, .intro__tag { font-size: .75rem; letter-spacing: .1em; }
.hero__coords { font-size: .8125rem; }

html { scroll-padding-bottom: 1rem; }
@media (max-width: 63.99em) { html { scroll-padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); } }
.site-header { min-height: var(--header-h); }
.site-header .brand { flex: 0 1 auto; min-width: 0; }
@media (max-width: 63.99em) { .servicios__layout { grid-template-columns: minmax(0, 1fr); } }
html .site-footer__grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 47.99em) {
  .btn, .cta-bar__action { white-space: normal; max-width: 100%; text-align: center; line-height: 1.15; }
  .hero__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgb(5 13 10 / .72), rgb(5 13 10 / .62)); }
}
@media (max-width: 20em) { .brand__sub { display: none; } }
/* Con mucho zoom, lo fijo no puede comerse la pantalla */
@media (max-height: 26em) {
  .site-header { position: absolute; }
  html .cta-bar { display: none; }
  .frj .frj-resumen { position: static; }
  html { scroll-padding: 0; }
}

/* Foco en las fotos de la galería */
.gallery-card__trigger:focus-visible { outline: 3px solid #EADBB4; outline-offset: -4px; box-shadow: inset 0 0 0 7px #050D0A; }
.galeria__grid .gallery-card__frame:has(.gallery-card__trigger:focus-visible) { outline: 3px solid #EADBB4; outline-offset: 4px; }

/* Reserva: libre y ocupado se distinguen por color, rayado y borde */
.frj { --frj-libre: #2A4A3D; }
.frj-pista { touch-action: pan-y pinch-zoom; border-color: #7E9489; }
.frj-marca span { color: #fff; font-size: .8rem; }
.frj-dia__info { font-size: .8rem; white-space: normal; text-align: center; }
.frj-ocupado { background: repeating-linear-gradient(-45deg, #07100C 0 7px, #5E7369 7px 8.5px); border-inline: 2px solid #8FA398; }
.frj-ocupado.is-pasado { background: #08110D; }
.frj-ocupado span { padding: 1px 4px; background: #07100C; color: #C9D3CD; font-size: .72rem; letter-spacing: .06em; }
.frj-leyenda__item--ocupado i { background: repeating-linear-gradient(-45deg, #07100C 0 4px, #8FA398 4px 5.5px); }
.frj-flecha[aria-disabled="true"] { opacity: .45; cursor: default; }
.frj-ver-lista { min-block-size: 3rem; }
.rsv-step__h { display: inline; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }

@media (forced-colors: active) {
  .frj-dia[aria-pressed="true"], .frj-hora[aria-pressed="true"], .frj-atajo.is-activo, .frj-pieza {
    forced-color-adjust: none; background: Highlight; border: 2px solid Highlight; color: HighlightText;
  }
  .frj-dia[aria-pressed="true"] * { color: HighlightText; }
  .frj-ocupado { forced-color-adjust: none; background: repeating-linear-gradient(-45deg, Canvas 0 6px, GrayText 6px 8px); border: 1px solid CanvasText; }
  .frj-dia__tramo { border: 1px solid CanvasText; }
  .frj-dia__tramo i { forced-color-adjust: none; background: GrayText; }
  .faq__icon::before, .faq__icon::after, .nav-toggle__bars::before, .nav-toggle__bars::after { forced-color-adjust: none; background: CanvasText; }
}

/* §2 ------------------------------------------------------------------------ */
.vm-boton {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; padding: 0; border: 0; background: none; color: #B5AFA2; cursor: pointer;
  transition: color .2s;
}
html:not(.js) .vm-boton { display: none; }
.vm-boton:hover { color: #D4B77E; }
.vm-icono { width: 1.65rem; height: 1.65rem; }
html:is([data-texto], [data-contraste], [data-letra], [data-enlaces], [data-quieto]) .vm-boton { color: #D4B77E; }  /* hay algo activado */
.vm-mas { margin: 1rem 0 0 !important; }
.vm-mas a { display: inline-block; padding-block: .6rem; color: #D4B77E; }
.cita-top { flex-wrap: wrap; gap: .75rem; }

.ver-mejor {
  width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 1.25rem; overflow: auto;
  border: 2px solid #D4B77E; background: #050D0A; color: #F4EEE2; font: 400 1.0625rem/1.45 var(--font-sans);
}
.ver-mejor::backdrop { background: rgb(0 0 0 / .75); }
.ver-mejor h2 { margin: 0 0 .35rem; font: 700 1.5rem/1.2 var(--font-sans); letter-spacing: 0; text-transform: none; color: inherit; }
.ver-mejor p { margin: 0 0 1rem; }
.ver-mejor fieldset { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.ver-mejor legend { margin: 0 0 .5rem; padding: 0; font-weight: 700; }
.vm-op { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .5rem .75rem; margin: 0 0 .5rem; border: 1px solid #7E9489; cursor: pointer; }
.vm-op:has(:checked) { border-color: #D4B77E; box-shadow: inset 0 0 0 1px #D4B77E; }
.vm-op:has(:focus-visible) { outline: 3px solid #EADBB4; outline-offset: 2px; }
.vm-op input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: #D4B77E; }
.vm-botones { display: flex; flex-wrap: wrap; gap: .75rem; }
.vm-botones .btn { flex: 1 1 10rem; white-space: normal; }

/* §3 ------------------------------------------------------------------------ */
html[data-texto="g"] { font-size: 125%; }
html[data-texto="xg"] { font-size: 150%; }
:root[data-texto] { --nav-height: 5.25rem; --header-h: 5rem; --header-h-desktop: 5.25rem; }
html[data-texto] :is(.btn, .cta-bar__action) { white-space: normal; max-width: 100%; text-align: center; line-height: 1.15; letter-spacing: .02em; padding-block: .5rem; }
html[data-texto] .frj-atajos { flex-wrap: wrap; overflow: visible; }
html[data-texto] .frj-pista { block-size: 5rem; }
html[data-texto] .srv__hero-text, html[data-texto] .hero__inner > * { min-width: 0; overflow-wrap: anywhere; }
html[data-texto] :is(.srv__title, .t-h2, .t-display-l) { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 1799px) {
  html[data-texto] .site-header .nav { display: none; }
  html[data-texto] .site-header .nav-toggle.js-only { display: inline-flex; }
}
@media (max-width: 47.99em) {
  html[data-texto] .site-header { gap: .5rem; padding-inline: .75rem; }
  html[data-texto] .site-header .brand__text, html[data-texto] .site-header .nav-toggle__bars { display: none; }
  html[data-texto] .site-header :is(.vm-boton, .nav-toggle) { font-size: .8rem; padding-inline: .5rem; }
  html[data-texto] :is(.precios td:last-child, .precios th:nth-child(3)) { display: none; }
  html[data-texto] .precios th:nth-child(2), html[data-texto] .precios td:nth-child(2) { inline-size: 5.5rem; }
  html[data-texto] .precios tbody th { overflow-wrap: anywhere; }
}

html[data-contraste="alto"], html[data-contraste="alto"] [data-theme="nero"] {
  --color-bg: #000; --color-surface: #000; --color-surface-raised: #000; --color-surface-special: #000;
  --color-text: #fff; --color-text-secondary: #fff; --color-text-muted: #fff;
  --color-border: #fff; --color-border-control: #fff; --color-border-decorative: #8A8A8A; --color-hairline: #8A8A8A;
  --color-accent: #FFE08A; --color-link: #FFE08A; --color-link-hover: #fff; --color-focus-ring: #FFE08A; --color-focus: #FFE08A;
  --focus-ring-width: 4px; --focus-width: 4px; --lx-gold: #FFE08A;
  background-color: #000;
}
html[data-contraste="alto"] body { background-color: #000; }
html[data-contraste="alto"] .vm-boton { color: #FFE08A; }
html[data-contraste="alto"] [data-theme="ivory"] {
  --color-bg: #000; --color-surface: #000; --color-text: #fff; --color-text-secondary: #fff; --color-text-muted: #fff;
  --color-border: #fff; --color-border-control: #fff; --color-accent: #FFE08A; --color-link: #FFE08A; --color-focus-ring: #FFE08A;
  background: #000; color: #fff;
}
html[data-contraste="alto"] :is(.ambient, body::after, .hero::before) { display: none; }
html[data-contraste="alto"] :is(.site-header, .cta-bar, .site-footer, .frj-resumen, .mobile-menu, .reservar__panel, .srv__card, .srv__terms > div, .ver-mejor) { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-contraste="alto"] :is(p, li, dd, dt, td, th, label, legend, summary, figcaption, address, span, h1, h2, h3, h4):not(.btn *, .btn, .frj-dia *, .frj-pieza, .frj-pieza *, .badge, .badge *, [aria-pressed="true"] *, .status-dot, .carta__price, .srv__price-value, .ver-mejor *) { color: #fff; }
html[data-contraste="alto"] :is(.carta__price, .srv__price-value, .precios__valor) { color: #FFE08A; }
html[data-contraste="alto"] .hero__claim { background: none; color: #fff; -webkit-text-fill-color: #fff; }
html[data-contraste="alto"] .hero__frame img { opacity: .25; }
html[data-contraste="alto"] .btn--primary { --_bg: #FFE08A; --_fg: #000; --_bd: #fff; }
html[data-contraste="alto"] .btn--primary:hover { --_bg: #fff; --_fg: #000; }
html[data-contraste="alto"] .btn--primary::after { display: none; }
html[data-contraste="alto"] .btn--primary :is(span, svg) { color: #000; }
html[data-contraste="alto"] .btn--secondary { --_fg: #FFE08A; --_bd: #FFE08A; }
html[data-contraste="alto"] .frj-dia__info { color: #FFE08A; }
html[data-contraste="alto"] .frj-dia[aria-pressed="true"] { background: #FFE08A; }
html[data-contraste="alto"] .frj-dia[aria-pressed="true"] * { color: #000; }
html[data-contraste="alto"] .frj-hora[aria-pressed="true"] { background: #FFE08A; color: #000; }
html[data-contraste="alto"] :focus-visible { outline: 4px solid #FFE08A; outline-offset: 3px; }

html[data-letra="clara"] { --font-display: var(--font-sans); --font-stencil: var(--font-sans); --font-stretch-condensed: 100%; }
html[data-letra="clara"] :is(h1, h2, h3, h4, legend, .btn, .nav__link, .nav-toggle, .t-eyebrow, .core-eyebrow__word, .carta__name, .carta__title, .srv__title, .srv__price-name, .srv__cta-title, .frj-dia__sem, .frj-carril__nom, .frj-hora, .field__label, .site-footer__title, .rsv-summary__label, .cita-title, .cita-eyebrow, .hero__title-main > span, .precios thead th, .faq__q-text) {
  text-transform: none !important; letter-spacing: normal !important; font-stretch: 100% !important; font-family: var(--font-sans) !important; line-height: 1.2;
}
html[data-letra="clara"] :is(.srv__title, .t-h2, .srv__cta-title) { font-size: clamp(1.8rem, 1.4rem + 2vw, 3rem); }
html[data-letra="clara"] .hero__title-main > span { font-size: .7em; }

html[data-enlaces] :is(main, footer, .mobile-menu) a:not(.btn:not(.btn--link), .brand, .gallery-card__trigger) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em; text-decoration-color: currentColor !important; }

html[data-quieto] *, html[data-quieto] *::before, html[data-quieto] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-quieto] :is(.ambient, .intro) { display: none !important; }
html[data-quieto] [data-reveal], html[data-quieto] [data-reveal] * { opacity: 1 !important; clip-path: none !important; }
/* Letra grande: rejillas que no encogían */
.frj { grid-template-columns: minmax(0, 1fr); }
html[data-texto] .srv__prices { grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); }
html[data-texto] .srv__card, html[data-texto] .srv__card > * { min-width: 0; overflow-wrap: anywhere; }
html[data-texto] .srv__card { grid-template-columns: minmax(0, 1fr); }
html[data-texto] .srv__card-hours > div { flex-wrap: wrap; }
@media (max-width: 79.99em) {
  html[data-texto] .srv__body { grid-template-columns: minmax(0, 1fr); }
  html[data-texto] .srv__aside { display: none; }
}
@media (max-width: 47.99em) {
  html[data-texto] .hours, html[data-texto] .hours :is(tbody, tr, th, td) { display: block; text-align: start; white-space: normal; }
  html[data-texto] .hours__slot { display: inline-block; }
}
html[data-contraste="alto"] tr[aria-current="date"], html[data-contraste="alto"] tr[aria-current="date"] > * { background: #000; color: #FFE08A; }
html .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) { html .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { html .site-footer__grid { grid-template-columns: 1.15fr 1fr 1.2fr .85fr; } }
.site-footer__social, .site-footer__brand { flex-wrap: wrap; min-width: 0; }
.site-footer__brand { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 30em) { .site-header .brand__sub { font-size: .7rem; letter-spacing: 0; white-space: nowrap; } }
html[data-contraste="alto"] :is(.section, .reservar, #reservar, .srv__cta, .hero) { background: #000; }
html[data-letra="clara"] .hero__claim { font-family: var(--font-sans) !important; text-transform: none !important; letter-spacing: normal !important; font-stretch: 100% !important; line-height: 1.2; }
html[data-letra="clara"] .frj-ocupado span { text-transform: none; letter-spacing: 0; }
.frj-pista__vacio { text-shadow: 0 0 4px #000, 0 0 8px #000; }
.frj-atajo.is-esqueleto { opacity: 1; }
