/* ============================================================
   HOME ASSIST - Premium guest theme (dark, gold, classic serif)
   Used only by the guest pages that pass { premium: true }.
   ============================================================ */

.ha-premium {
  --ha-bg: #120e0a;
  --ha-bg-2: #1b1510;
  --ha-panel: rgba(29, 23, 17, 0.88);
  --ha-gold: #c9a66b;
  --ha-gold-light: #e6cc98;
  --ha-gold-dark: #9c7a45;
  --ha-line: rgba(201, 166, 107, 0.55);
  --ha-line-soft: rgba(201, 166, 107, 0.28);
  --ha-ivory: #f3ebdd;
  --ha-text: #e4d9c6;
  --ha-muted: #b3a58d;
  --ha-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --ha-body: "EB Garamond", "Garamond", Georgia, serif;

  background:
    radial-gradient(120% 60% at 50% 0%, #1f1811 0%, var(--ha-bg) 60%) fixed,
    var(--ha-bg);
  color: var(--ha-text);
  font-family: var(--ha-body);
}

.ha-premium ::selection { background: var(--ha-gold); color: var(--ha-bg); }
.ha-premium :focus-visible { outline: 2px solid var(--ha-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.ha-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem 0.8rem;
  background: linear-gradient(180deg, #0d0a07 0%, #15100b 100%);
  border-bottom: 1px solid var(--ha-line-soft);
  color: var(--ha-gold);
}
.ha-header-icon { width: 2rem; height: 2rem; flex-shrink: 0; }
.ha-header-text { display: flex; flex-direction: column; line-height: 1; }
.ha-brand {
  font-family: var(--ha-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--ha-ivory);
}
.ha-tagline {
  font-family: var(--ha-display);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  color: var(--ha-gold);
  margin-top: 0.3rem;
}

/* ---------- Hero ---------- */
.ha-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 1.6rem 1rem 1.25rem;
  overflow: hidden;
}
.ha-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, 0.35) 0%, rgba(18, 14, 10, 0.55) 55%, var(--ha-bg) 100%),
    radial-gradient(80% 70% at 50% 45%, rgba(0, 0, 0, 0.35), transparent 70%);
}
.ha-hero > * { position: relative; }
.ha-eyebrow {
  font-family: var(--ha-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ha-ivory);
}
.ha-title {
  font-family: var(--ha-display);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.05;
  color: #fff;
  margin-top: 0.15rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
.ha-title-sm { font-size: 2.05rem; }
.ha-rule {
  width: 4.5rem;
  height: 1px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, transparent, var(--ha-gold), transparent);
}

/* ---------- Language flags ---------- */
.ha-flags {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.ha-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  background: rgba(20, 15, 11, 0.78);
  border: 1px solid var(--ha-line-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
  padding: 0;
}
.ha-flag span { font-size: 1.45rem; line-height: 1; }
.ha-flag:hover { border-color: var(--ha-gold); }
.ha-flag:active { transform: scale(0.95); }
.ha-flag.is-active {
  border-color: var(--ha-gold);
  box-shadow: 0 0 0 1px var(--ha-gold), 0 0 14px rgba(201, 166, 107, 0.35);
}

/* ---------- Section heading ---------- */
.ha-wrap { padding: 0 1rem; }
.ha-section-title {
  text-align: center;
  font-family: var(--ha-display);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--ha-ivory);
  margin-top: 1.1rem;
}
.ha-section-sub {
  text-align: center;
  font-family: var(--ha-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ha-gold);
  margin: 0.2rem 0 1rem;
}

/* ---------- Category tiles ---------- */
.ha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 0.75rem;
}
.ha-tile {
  position: relative;
  display: block;
  min-height: 6.6rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ha-line);
  overflow: hidden;
  background-color: var(--ha-bg-2);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.ha-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 10, 7, 0.88) 0%, rgba(14, 10, 7, 0.45) 55%, rgba(14, 10, 7, 0.15) 100%),
    linear-gradient(0deg, rgba(14, 10, 7, 0.75) 0%, transparent 55%);
}
.ha-tile:hover { border-color: var(--ha-gold-light); box-shadow: 0 0 16px rgba(201, 166, 107, 0.25); }
.ha-tile:active { transform: scale(0.98); }
.ha-tile-icon {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--ha-gold);
  background: rgba(14, 10, 7, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-gold);
}
.ha-tile-icon svg { width: 1.3rem; height: 1.3rem; }
.ha-tile-label {
  position: absolute;
  left: 0.75rem;
  right: 1.8rem;
  bottom: 0.55rem;
  font-family: var(--ha-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.1;
  color: var(--ha-ivory);
}
.ha-tile-chevron {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--ha-ivory);
}
.ha-tile.is-disabled { cursor: not-allowed; pointer-events: none; border-color: var(--ha-line-soft); }
.ha-tile.is-disabled { filter: grayscale(0.85) brightness(0.7); }
.ha-tile-soon {
  position: absolute;
  right: 0.6rem;
  top: 0.75rem;
  font-family: var(--ha-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ha-gold-light);
}

/* ---------- Footer ---------- */
.ha-footer { text-align: center; padding: 1.6rem 1rem 1.2rem; color: var(--ha-gold); }
.ha-footer-mark { display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.ha-footer-line { flex: 0 1 6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--ha-line)); }
.ha-footer-line:last-child { background: linear-gradient(90deg, var(--ha-line), transparent); }
.ha-colosseum { width: 2.6rem; height: 1.75rem; }
.ha-footer-copy { font-family: var(--ha-display); font-size: 0.8rem; color: var(--ha-muted); margin-top: 0.35rem; }

/* ---------- Inner pages (steps, credentials) ---------- */
.ha-page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 0.9rem 1rem 1.3rem;
  overflow: hidden;
}
.ha-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.4) 0%, rgba(18, 14, 10, 0.6) 60%, var(--ha-bg) 100%);
}
.ha-page-hero > * { position: relative; }
.ha-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ha-display);
  font-size: 1.05rem;
  color: var(--ha-ivory);
  text-decoration: none;
}
.ha-back svg { width: 1rem; height: 1rem; }
.ha-page-hero .ha-head { text-align: center; margin-top: 1rem; }
.ha-category {
  font-family: var(--ha-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ha-gold);
}

.ha-progress { padding: 0 1rem; margin-top: 0.4rem; }
.ha-progress-label { font-family: var(--ha-display); font-size: 1rem; color: var(--ha-text); margin-bottom: 0.4rem; }
.ha-progress-track { height: 0.4rem; border-radius: 999px; background: rgba(243, 235, 221, 0.12); overflow: hidden; }
.ha-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ha-gold-dark), var(--ha-gold-light));
  transition: width 0.3s ease;
}

.ha-listen {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ha-line);
  background: var(--ha-panel);
  color: var(--ha-ivory);
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.ha-listen:hover { border-color: var(--ha-gold-light); }
.ha-listen-icon { width: 2rem; height: 2rem; color: var(--ha-gold); flex-shrink: 0; }
.ha-listen-text { flex: 1; text-align: left; }
.ha-listen-wave { width: 1.6rem; height: 1.6rem; color: var(--ha-gold); flex-shrink: 0; }

.ha-step-card {
  position: relative;
  margin-top: 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ha-line);
  overflow: hidden;
  background-color: var(--ha-bg-2);
  background-size: cover;
  background-position: right center;
}
.ha-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 17, 12, 0.97) 0%, rgba(22, 17, 12, 0.9) 55%, rgba(22, 17, 12, 0.55) 100%);
}
.ha-step-body { position: relative; padding: 1.2rem 1.1rem 1.3rem; }
.ha-step-title {
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.55rem;
}
.ha-step-text { font-family: var(--ha-body); font-size: 1.06rem; line-height: 1.5; color: var(--ha-text); }
.ha-step-text a { color: var(--ha-gold-light); text-decoration: underline; }
.ha-step-photo { width: 100%; border-radius: 0.6rem; margin-top: 0.9rem; border: 1px solid var(--ha-line-soft); }

.ha-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.4rem; }
.ha-btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ha-gold-light);
  background: linear-gradient(180deg, #e3c48c 0%, #c9a66b 55%, #b48f55 100%);
  color: #1d150c;
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(201, 166, 107, 0.18);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.ha-btn-gold:hover { filter: brightness(1.05); }
.ha-btn-gold:active { transform: scale(0.98); }
.ha-btn-gold svg { width: 1.2rem; height: 1.2rem; }
.ha-btn-dark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 2.2rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ha-line);
  background: var(--ha-panel);
  color: var(--ha-ivory);
  font-family: var(--ha-display);
  font-weight: 500;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.ha-btn-dark:hover { border-color: var(--ha-gold-light); }
.ha-btn-dark:active { transform: scale(0.98); }
.ha-btn-dark .ha-chevron { position: absolute; right: 1rem; width: 1rem; height: 1rem; color: var(--ha-ivory); }

.ha-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.4rem;
  border-radius: 0.8rem;
  background: #1f7a4d;
  border: 1px solid #3fae73;
  color: #fff;
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}
.ha-whatsapp svg { width: 1.5rem; height: 1.5rem; }

.ha-panel {
  border-radius: 0.8rem;
  border: 1px solid var(--ha-line);
  background: var(--ha-panel);
  padding: 1.2rem 1.1rem;
}
.ha-panel-center { text-align: center; }
.ha-panel-icon { width: 3rem; height: 3rem; margin: 0 auto 0.6rem; color: var(--ha-gold); }
.ha-panel-title { font-family: var(--ha-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: #fff; }
.ha-label {
  display: block;
  font-family: var(--ha-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ha-gold);
  margin-bottom: 0.3rem;
}
.ha-value { font-family: var(--ha-display); font-weight: 600; font-size: 1.6rem; color: #fff; word-break: break-all; }
.ha-link-btn {
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ha-gold-light);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.ha-small { font-size: 1rem; color: var(--ha-text); }

/* Keep the Tailwind "hidden" toggles used by the page scripts working */
.ha-premium .hidden { display: none !important; }
.ha-premium .step-card { background: none; padding: 0; box-shadow: none; border: 0; border-radius: 0; }

/* ---------- House guide (Info casa) ---------- */
.ha-tile-wide { grid-column: 1 / -1; min-height: 5.4rem; }
.ha-info-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.4rem; }
.ha-info-list .ha-step-card { margin-top: 0; }
.ha-info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.ha-info-listen {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--ha-gold);
  background: rgba(14, 10, 7, 0.55);
  color: var(--ha-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ha-info-listen svg { width: 1.35rem; height: 1.35rem; }

/* ---------- Access code (screen only) ---------- */
.ha-code {
  margin-top: 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--ha-gold);
  background: rgba(14, 10, 7, 0.7);
  padding: 0.7rem 0.85rem;
}
.ha-code-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.ha-code-value {
  display: block;
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.ha-code-note { font-family: var(--ha-body); font-style: italic; font-size: 0.85rem; color: var(--ha-muted); margin-top: 0.3rem; }

/* ---------- Locked code (booking calendar) ---------- */
.ha-unlock { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.ha-unlock-input {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--ha-line);
  background: rgba(243, 235, 221, 0.06);
  color: #fff;
  font-family: var(--ha-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem;
}
.ha-unlock-input:focus { outline: none; border-color: var(--ha-gold-light); }
.ha-unlock-btn {
  border-radius: 0.5rem;
  border: 1px solid var(--ha-gold-light);
  background: linear-gradient(180deg, #e3c48c 0%, #c9a66b 55%, #b48f55 100%);
  color: #1d150c;
  font-family: var(--ha-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.ha-unlock-btn:disabled { opacity: 0.6; }
.ha-unlock-error { font-family: var(--ha-body); font-size: 0.92rem; color: #f0b4a4; margin-top: 0.45rem; }
