/* One warm, bone-and-charcoal palette for every NÜA screen and dialog.
   Component geometry, controls and motion stay in their existing stylesheets. */
:is(.editorial-explore, .editorial-welcome, .legal-page) {
  --nua-paper: #fffaf2;
  --nua-muted: #d5c6b6;
  --nua-base: #241e19;
  --nua-panel: #302720;
  --nua-field: #251f1a;
  --nua-line: #fffaf22b;
  --nua-focus: #e8cfaf;
  color-scheme: dark;
}

.editorial-explore, .legal-page {
  --ink: var(--nua-paper);
  --muted: var(--nua-muted);
  --purple: #e2cdb5;
  --line: var(--nua-line);
  --surface: var(--nua-panel);
  --bg: var(--nua-base);
  color: var(--ink);
}

/* Secondary screens keep the welcome photograph behind the content. */
.editorial-explore .app-screen:not(.app-screen-home) { background: #241e19b8; }
.editorial-explore .site-header {
  min-height: 49px;
  padding: calc(2px + env(safe-area-inset-top, 0px)) var(--app-gutter) 2px;
  gap: 16px;
  background: #231b1638;
  border-bottom-color: #fffaf21c;
  /* A filtered header would capture the fixed mobile dock. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.editorial-explore .app-wordmark {
  display: flex;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.editorial-explore .app-wordmark img {
  height: auto;
  filter: brightness(0) invert(1);
}
.editorial-explore .app-address {
  min-width: 0;
  max-width: min(68%, 280px);
  min-height: 44px;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #fffaf218;
  border-radius: 12px;
  background: #fffaf207;
  color: var(--nua-paper);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  transition: background 180ms ease, border-color 180ms ease;
}
.editorial-explore .app-address > svg { width: 14px; height: 14px; color: #d5c6b6; }
.editorial-explore .app-address span { min-width: 0; }
.editorial-explore .app-address .address-chevron { width: 12px; height: 12px; margin-left: 2px; }
@media (hover: hover) {
  .editorial-explore .app-address:hover { background: #fffaf212; border-color: #fffaf238; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-explore :is(.site-header, .app-address) { transition: none; }
}
.editorial-explore.services-page .site-header.is-scrolled {
  background: #fff;
  border-bottom-color: #e9e5e0;
  box-shadow: 0 3px 14px #241e1908;
}
.editorial-explore .site-header.is-scrolled .app-wordmark img { filter: brightness(0); }
.editorial-explore .site-header.is-scrolled .app-address {
  color: #30261e;
  background: #f7f5f2;
  border-color: #e9e5e0;
}
.editorial-explore .site-header.is-scrolled .app-address > svg { color: #6d6258; }
.editorial-explore .site-header.is-scrolled :is(.app-wordmark, .app-address):focus-visible { outline-color: #6b5541; }
@media (hover: hover) {
  .editorial-explore .site-header.is-scrolled .app-address:hover { background: #ede9e3; }
}
.editorial-explore .glass-dock {
  background: #352b23d6;
  border-color: #fffaf234;
  box-shadow: 0 8px 30px #130f1720, inset 0 1px 0 #fffaf20a;
}
.editorial-explore .dock-surface { background: var(--nua-paper); box-shadow: 0 3px 10px #17100b1a; }
.editorial-explore .dock-item { color: #e0d6ca; }
.editorial-explore .dock-item.is-highlighted { color: #2c241e; }
.editorial-explore .app-screen-bar {
  background: #241e19ed;
  border-bottom-color: #fffaf21c;
}
.editorial-explore .app-screen-bar :is(button, strong) { color: var(--nua-paper); }
.editorial-explore .eyebrow { color: #d7c7b5; }
.editorial-explore .booking-copy h2 { color: var(--nua-paper); }
.editorial-explore .booking-assurance { color: var(--nua-muted); }
.editorial-explore .booking-assurance span::before { color: #e2cdb5; }
.editorial-explore .booking-form {
  background: #302720f5;
  border-color: var(--nua-line);
  box-shadow: 0 22px 60px #120d0924;
}
.editorial-explore .booking-form label { color: #eee2d4; }
.editorial-explore .booking-form :is(input, select, textarea),
.editorial-explore .date-picker-trigger {
  background: var(--nua-field);
  border-color: var(--nua-line);
  color: var(--nua-paper);
}
.editorial-explore .booking-form :is(input, textarea)::placeholder { color: #b8aa9c; opacity: 1; }
.editorial-explore .booking-form select option { background: var(--nua-field); color: var(--nua-paper); }
.editorial-explore .booking-form :is(input, select, textarea):focus {
  border-color: var(--nua-focus);
  outline-color: #e8cfaf38;
}
.editorial-explore .booking-form .privacy-consent,
.editorial-explore .form-note { color: var(--nua-muted); }
.editorial-explore .privacy-consent a { color: var(--nua-paper); }
.editorial-explore input[type="checkbox"] { accent-color: var(--nua-paper); }
.editorial-explore .btn-primary,
.editorial-welcome .registration-form .btn {
  background: var(--nua-paper);
  color: #2c241e;
}
.editorial-explore .btn-primary:hover,
.editorial-welcome .registration-form .btn:not(:disabled):hover {
  background: #e9dece;
  color: #2c241e;
}

/* The calendar is part of the reservation, including its selected/focus states. */
.editorial-explore .date-picker-trigger[aria-expanded="true"] {
  border-color: var(--nua-focus);
  box-shadow: 0 0 0 3px #e8cfaf1f;
}
.editorial-explore .date-picker-icon { color: #d7c7b5; }
.editorial-explore .date-picker-popover {
  color: var(--nua-paper);
  background: #352b24fa;
  border-color: #fffaf238;
  box-shadow: 0 24px 70px #120d0966, inset 0 1px 0 #fffaf20a;
  font-weight: 400;
}
.editorial-explore .date-picker-header strong { color: var(--nua-paper); font-weight: 600; }
.editorial-explore .date-picker-header button { background: #fffaf20c; color: var(--nua-paper); }
.editorial-explore .date-picker-header button:hover { background: #fffaf21c; }
.editorial-explore .date-picker-weekdays { color: #c7b7a5; font-weight: 500; }
.editorial-explore .date-picker-days button { color: #f4e9db; background: transparent; font-weight: 500; }
.editorial-explore .date-picker-days button:hover { color: var(--nua-paper); background: #fffaf21a; }
.editorial-explore .date-picker-days button.is-today { box-shadow: inset 0 0 0 1px #e8cfaf99; }
.editorial-explore .date-picker-days button.is-selected { color: #2c241e; background: var(--nua-paper); box-shadow: none; }
.editorial-explore .date-picker-footer { border-top-color: var(--nua-line); }
.editorial-explore .date-picker-footer button { color: #e2cdb5; font-weight: 500; }
.editorial-explore .date-picker-footer button:hover { color: var(--nua-paper); }

/* Warm frosted glass for every service sheet and account panel.
   Keep an opaque fallback and use inset edges to preserve component dimensions. */
.editorial-explore :is(.service-catalogue, .service-detail, .profile-dialog),
:is(.editorial-explore, .editorial-welcome) .registration-dialog {
  color: var(--nua-paper);
  background: var(--nua-panel);
  border-color: var(--nua-line);
  box-shadow: 0 28px 85px #120d0970, 0 8px 24px #120d0926,
    inset 0 0 0 1px #fffaf22b, inset 0 1px 0 #fffaf226;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .editorial-explore :is(.service-catalogue, .service-detail, .profile-dialog),
  :is(.editorial-explore, .editorial-welcome) .registration-dialog {
    background: linear-gradient(135deg, #5546389e, #27201bcc);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
    backdrop-filter: blur(24px) saturate(1.08);
  }
}
:is(.editorial-explore, .editorial-welcome) dialog::backdrop { background: #100d0b66; }
@media (max-width: 650px) {
  .editorial-explore :is(.service-catalogue, .service-detail, .profile-dialog),
  :is(.editorial-explore, .editorial-welcome) .registration-dialog {
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .editorial-explore :is(.service-catalogue, .service-detail, .profile-dialog),
  :is(.editorial-explore, .editorial-welcome) .registration-dialog {
    background: var(--nua-panel);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :is(.editorial-explore, .editorial-welcome) dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.editorial-explore :is(.catalogue-close, .detail-close, .profile-close),
:is(.editorial-explore, .editorial-welcome) .registration-close {
  color: var(--nua-paper);
  background: #fffaf210;
}
.editorial-explore :is(.catalogue-close, .detail-close, .profile-close):hover,
:is(.editorial-explore, .editorial-welcome) .registration-close:hover { background: #fffaf21f; }
.editorial-explore .detail-close { background: #46392f; box-shadow: inset 0 0 0 1px #fffaf21c; }
.editorial-explore .detail-close:hover { background: #594838; }
.editorial-explore .catalogue-handle { background: #a58e77; }
.editorial-explore .catalogue-card { color: var(--nua-paper); }
.editorial-explore .detail-content > p { color: var(--nua-muted); }
.editorial-explore .detail-content .eyebrow { color: #e2cdb5; }
/* Preserve the white-background mascot instead of multiplying it into charcoal. */
.editorial-explore .detail-visual img[src$="nua-limpieza-general-detalle.jpg"] {
  background: var(--nua-paper);
  mix-blend-mode: normal;
}
.editorial-explore :is(.profile-icon, .registration-mark) { background: var(--nua-paper); }
.editorial-explore .profile-register { color: #e2cdb5; }
.editorial-explore .profile-signout:hover { background: #fffaf20c; }
:is(.editorial-explore, .editorial-welcome) .registration-kicker { color: #e2cdb5; }
:is(.editorial-explore, .editorial-welcome) .registration-dialog :is(h2, label, strong) { color: var(--nua-paper); }
:is(.editorial-explore, .editorial-welcome) :is(.registration-intro, .registration-privacy) { color: var(--nua-muted); }
:is(.editorial-explore, .editorial-welcome) .registration-privacy a { color: var(--nua-paper); }
:is(.editorial-explore, .editorial-welcome) .registration-form input {
  background: var(--nua-field);
  border-color: var(--nua-line);
  color: var(--nua-paper);
}
:is(.editorial-explore, .editorial-welcome) .registration-form input::placeholder { color: #b8aa9c; }
:is(.editorial-explore, .editorial-welcome) .registration-form input:focus {
  border-color: var(--nua-focus);
  box-shadow: 0 0 0 3px #e8cfaf1f;
  outline-color: var(--nua-focus);
}
.editorial-welcome .registration-mark img { filter: brightness(0) invert(1); }
:is(.editorial-explore, .editorial-welcome) .registration-form .auth-message,
.editorial-explore .auth-message { color: #ecd2b3; }
:is(.editorial-explore, .editorial-welcome) input:autofill {
  -webkit-text-fill-color: var(--nua-paper);
  box-shadow: 0 0 0 100px var(--nua-field) inset;
}

.editorial-explore .referral-promo { background: #302720f5; border-color: var(--nua-line); }
.editorial-explore .referral-promo .eyebrow,
.editorial-explore .referral-copy > p,
.editorial-explore .referral-helper { color: var(--nua-muted); }
.editorial-explore .referral-share-box { border-color: var(--nua-line); background: #fffaf205; }
.editorial-explore .referral-share-row input { color: var(--nua-paper); background: var(--nua-field); }
.editorial-explore .referral-share-row input::placeholder { color: #b8aa9c; }
.editorial-explore .referral-share-row input:focus { outline-color: var(--nua-focus); }
.editorial-explore .testimonial { color: var(--nua-paper); background: var(--nua-panel); border-color: var(--nua-line); }
.editorial-explore .testimonial > span { color: #e2cdb5; }
.editorial-explore .cookie-banner { background: var(--nua-panel); color: var(--nua-paper); border-color: var(--nua-line); box-shadow: 0 16px 50px #120d0959; }
.editorial-explore .cookie-btn-primary { background: var(--nua-paper); color: #2c241e; }
.editorial-explore .cookie-btn-ghost { background: #fffaf210; color: var(--nua-paper); }
.editorial-explore :is(.app-screen, .catalogue-grid, dialog) { scrollbar-color: #8d7965 transparent; }
:is(.editorial-explore, .editorial-welcome) :is(a, button, input, select, textarea):focus-visible { outline-color: var(--nua-focus); }

/* Linked information pages retain their document layout and content. */
.legal-page { background: var(--nua-base); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; }
.legal-page::before, .legal-page::after { display: none; }
.legal-page :is(h1, h2, h3), .legal-page .legal-header a { color: var(--nua-paper); }
.legal-page .legal-document h1 { font-weight: 500; }
.legal-page :is(h2, h3), .legal-page .legal-header a, .legal-page .eyebrow { font-weight: 600; }
.legal-page .legal-document :is(p, li) { color: var(--nua-muted); }
.legal-page .legal-document .legal-lead { color: #eee2d4 !important; }
.legal-page .legal-document a { color: #eee2d4; }
.legal-page .legal-header .legal-back, .legal-page .eyebrow { color: var(--nua-muted); }
.legal-page .legal-alert { color: #eee2d4; background: var(--nua-panel); border-color: var(--nua-line); }
.legal-page a:focus-visible { outline-color: var(--nua-focus); }

@media (min-width: 1024px) {
  .editorial-explore .site-header {
    min-height: 57px;
    padding-block: calc(4px + env(safe-area-inset-top, 0px)) 4px;
    gap: 24px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .editorial-explore .app-address { max-width: min(100%, 280px); }
}
