﻿:root {
  color-scheme: light;
  --hero-image: url("assets/sababa-jardin.jpg");
  --soil: #514737;
  --coffee: #3f3528;
  --leaf: #526f45;
  --sage: #c8d1b4;
  --moss: #7f8b5b;
  --clay: #bd7b52;
  --rose: #b26463;
  --sun: #dfbd69;
  --cream: #f7f1e4;
  --paper: #fffaf0;
  --line: #ded4c3;
  --ink: #2d2924;
  --muted: #766d61;
  --shadow: 0 18px 50px rgba(63, 53, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e4dcca;
  color: var(--ink);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.house-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(63, 53, 40, 0.14);
  background: rgba(228, 220, 202, 0.94);
  backdrop-filter: blur(14px);
}

.house-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--coffee);
  text-decoration: none;
}

.house-brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}

.house-brand strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.house-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.house-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.house-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(63, 53, 40, 0.13);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 250, 240, 0.64);
  color: var(--coffee);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.house-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.52fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(28px, 6vw, 74px) clamp(16px, 5vw, 72px) clamp(26px, 5vw, 60px);
  background:
    linear-gradient(90deg, rgba(45, 41, 36, 0.72), rgba(45, 41, 36, 0.18) 54%, rgba(228, 220, 202, 0.1)),
    var(--hero-image) center 42%/cover no-repeat;
  color: #fffaf0;
}

.house-hero-copy {
  max-width: 760px;
}

.house-hero h1,
.house-section-heading h2,
.circle-intro h3 {
  margin: 0;
  color: inherit;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.96;
}

.house-hero h1 {
  font-size: clamp(4rem, 12vw, 9.4rem);
}

.house-subtitle {
  margin: 10px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  font-weight: 700;
}

.house-description {
  max-width: 590px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.house-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.house-hero-actions a,
.circle-open-link {
  text-decoration: none;
  text-align: center;
}

.house-hero-actions .secondary-button {
  border-color: rgba(255, 250, 240, 0.55);
  background: rgba(255, 250, 240, 0.14);
  color: #fffaf0;
}

.house-hero-card {
  align-self: end;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 8px;
  padding: 22px;
  background: rgba(63, 53, 40, 0.58);
  box-shadow: 0 24px 80px rgba(22, 18, 12, 0.28);
  backdrop-filter: blur(12px);
}

.house-hero-card h2 {
  margin: 8px 0;
  color: #fffaf0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.house-hero-card p {
  line-height: 1.65;
}

.house-section {
  padding: clamp(32px, 5vw, 70px) clamp(16px, 5vw, 72px);
  background: #e4dcca;
}

.house-section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.house-section-heading h2 {
  color: var(--coffee);
  font-size: clamp(2.3rem, 6vw, 5.2rem);
}

.house-section-heading p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.experience-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  border: 1px solid rgba(81, 71, 55, 0.16);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.92), rgba(221, 205, 180, 0.46));
  box-shadow: 0 18px 44px rgba(63, 53, 40, 0.08);
  cursor: pointer;
}

.experience-card img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: 8px;
}

.experience-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(81, 71, 55, 0.1);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.experience-card.featured {
  background:
    linear-gradient(145deg, rgba(64, 86, 70, 0.94), rgba(81, 71, 55, 0.88));
  color: #fffaf0;
}

.experience-card h3 {
  margin: 0;
  color: inherit;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.experience-card p {
  margin: 0;
  color: inherit;
  line-height: 1.62;
}

.experience-card .text-button {
  align-self: end;
  color: inherit;
}

.experience-detail-view {
  max-width: 1040px;
  margin: 0 auto 32px;
  border: 1px solid rgba(81, 71, 55, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow);
}

.experience-detail-view[hidden] {
  display: none;
}

.experience-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(81, 71, 55, 0.12);
  color: var(--coffee);
}

.experience-detail-top button,
.experience-detail-top a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(81, 71, 55, 0.08);
  color: var(--coffee);
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
}

.experience-detail-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.experience-detail-body {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.experience-detail-body h2 {
  margin: 0;
  color: var(--coffee);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.experience-detail-body h3,
.experience-detail-body p {
  margin: 0;
}

.experience-detail-body p {
  color: var(--muted);
  line-height: 1.65;
}

.experience-detail-meta {
  font-weight: 800;
}

.experience-include-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-include-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-weight: 700;
}

.experience-include-list li::before {
  content: "âœ“";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(128, 111, 82, 0.24);
  color: var(--coffee);
  font-size: 0.78rem;
}

.experience-reserve-button {
  justify-content: center;
  margin-top: 8px;
}

.empty-state {
  border: 1px dashed rgba(81, 71, 55, 0.22);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.66);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--coffee);
  margin-bottom: 6px;
}

.empty-state p {
  margin: 0;
}

.circle-section {
  padding-top: 34px;
}

.circle-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.circle-intro,
.circle-frame-wrap {
  border: 1px solid rgba(81, 71, 55, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.circle-intro {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.circle-intro h3 {
  color: var(--coffee);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.circle-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.circle-frame-wrap {
  overflow: hidden;
  min-height: 820px;
  background: #f7f1e4;
}

.circle-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 820px;
  border: 0;
  background: #f7f1e4;
}

.circle-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.circle-benefits article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 250px;
  border: 1px solid rgba(81, 71, 55, 0.16);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 16px 38px rgba(63, 53, 40, 0.08);
}

.circle-benefits span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coffee);
  color: #fffaf0;
  font-weight: 800;
}

.circle-benefits strong {
  color: var(--coffee);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.05;
}

.circle-benefits p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.circle-admin-frame {
  height: min(820px, 72vh);
  overflow: hidden;
  border: 1px solid rgba(81, 71, 55, 0.14);
  border-radius: 8px;
  background: #f7f1e4;
}

.circle-admin-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f1e4;
}

.expeditions-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.38), rgba(228, 220, 202, 0.96));
}

.expedition-grid {
  display: grid;
  gap: 16px;
}

.expedition-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(81, 71, 55, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow);
}

.expedition-card img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.expedition-card > div {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.expedition-card h3,
.reset-side h2,
.reset-view h2,
.reset-view h3 {
  margin: 0;
  color: var(--coffee);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

.expedition-card h3 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.expedition-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.expedition-card span {
  color: var(--leaf);
  font-weight: 800;
}

.reset-section {
  background: #e4dcca;
}

.reset-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.reset-side,
.reset-content,
.reset-view,
.admin-mini-card {
  border: 1px solid rgba(81, 71, 55, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 18px 48px rgba(63, 53, 40, 0.08);
}

.reset-side {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.reset-side h2 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.reset-side p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reset-progress {
  display: grid;
  gap: 8px;
  color: var(--coffee);
  font-size: 0.82rem;
  font-weight: 900;
}

.reset-progress div,
.territory-card i {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(81, 71, 55, 0.12);
}

.reset-progress i,
.territory-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
}

.reset-nav {
  display: grid;
  gap: 8px;
}

.reset-nav button {
  border: 1px solid rgba(81, 71, 55, 0.12);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--coffee);
  font-weight: 900;
  text-align: left;
}

.reset-nav button.active {
  background: var(--coffee);
  color: #fffaf0;
}

.reset-content {
  min-width: 0;
  padding: 16px;
}

.reset-view {
  display: none;
  box-shadow: none;
  padding: clamp(20px, 4vw, 36px);
}

.reset-view.active {
  display: grid;
  gap: 18px;
}

.reset-view h2 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.reset-view h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.reset-view p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.reset-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reset-hero-actions a {
  text-decoration: none;
}

.reset-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reset-form label,
.territory-card,
.challenge-card,
.footprint-card,
.badge-card,
.timeline-item {
  border: 1px solid rgba(81, 71, 55, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.72);
}

.reset-form .reset-wide {
  grid-column: 1 / -1;
}

.territory-grid,
.footprint-grid,
.badge-grid,
.expedition-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.territory-card,
.challenge-list,
.footprint-card,
.timeline-list,
.admin-mini-card {
  display: grid;
  gap: 10px;
}

.territory-card div,
.challenge-card,
.client-reservation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.territory-card strong,
.challenge-card strong,
.footprint-card strong,
.badge-card strong,
.timeline-item strong,
.admin-mini-card strong {
  color: var(--coffee);
}

.territory-card span,
.challenge-card span,
.footprint-card p,
.badge-card span,
.timeline-item span,
.admin-mini-card span {
  color: var(--muted);
  line-height: 1.45;
}

.challenge-card.done {
  background: #dfead2;
}

.challenge-card button,
.footprint-card button,
.admin-mini-card button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--coffee);
  color: #fffaf0;
  font-weight: 900;
}

.challenge-card button:disabled {
  background: rgba(81, 71, 55, 0.24);
}

.xp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(82, 111, 69, 0.92), rgba(63, 53, 40, 0.9));
  color: #fffaf0;
}

.badge-card {
  min-height: 120px;
  display: grid;
  align-content: end;
}

.badge-card.earned {
  background: linear-gradient(145deg, rgba(223, 189, 105, 0.32), rgba(255, 250, 240, 0.88));
}

.timeline-item {
  border-left: 4px solid var(--leaf);
}

.mobile-app-nav {
  display: none;
}

.mobile-home {
  display: none;
}

.mobile-explore-tools {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(420px, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
  overflow-x: hidden;
}

.reserve-panel,
.spaces-panel,
.admin-panel {
  min-width: 0;
}

.reserve-panel,
.spaces-panel,
.admin-card {
  border: 1px solid rgba(81, 71, 55, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(248, 241, 226, 0.92));
  box-shadow: var(--shadow);
}

.reserve-panel {
  overflow: hidden;
  padding: 24px;
}

.spaces-panel {
  overflow: hidden;
  padding: 24px;
}

.admin-panel {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  width: min(860px, calc(100vw - 26px));
  height: 100vh;
  padding: 16px;
  overflow: auto;
  transform: translateX(106%);
  transition: transform 220ms ease;
}

.admin-panel.open {
  transform: translateX(0);
}

.admin-backdrop {
  position: fixed;
  z-index: 19;
  inset: 0;
  display: none;
  background: rgba(45, 41, 36, 0.3);
}

.admin-backdrop.open {
  display: block;
}

.admin-card {
  padding: 18px;
}

.brand-row,
.space-header,
.admin-title-row,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.space-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brand-row {
  justify-content: flex-start;
}

.brand-logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
}

.logo-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: default;
}

.brand-row .status-pill {
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--leaf);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--soil);
  line-height: 1.05;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

h3 {
  margin: 0;
  color: var(--soil);
  font-size: 1.05rem;
}

.intro {
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.hours-note {
  margin: -10px 0 20px;
  border-left: 3px solid var(--sage);
  color: var(--leaf);
  padding-left: 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill {
  flex: 0 0 auto;
  min-width: 92px;
  max-width: 130px;
  border: 1px solid rgba(82, 111, 69, 0.22);
  background: #e7ecd9;
  color: var(--leaf);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.open {
  border-color: rgba(82, 111, 69, 0.28);
  background: #dfead2;
  color: #3f6c35;
}

.status-pill.late {
  border-color: rgba(189, 123, 82, 0.3);
  background: #f3e1bd;
  color: #8a5a22;
}

.status-pill.closed,
.status-pill.event {
  background: #f4dfd7;
  color: #9b3f2b;
}

.booking-form,
.admin-card {
  display: grid;
  gap: 14px;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--soil);
  font-size: 0.9rem;
  font-weight: 700;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  padding: 13px;
}

legend {
  padding: 0 5px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.86);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(49, 95, 70, 0.12);
}

.client-reservations {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid rgba(81, 71, 55, 0.14);
  padding-top: 20px;
}

.client-reservations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-reservations-head h2 {
  margin: 0;
  color: var(--coffee);
  font-size: 1.25rem;
}

.client-reservation-list {
  display: grid;
  gap: 10px;
}

.client-empty,
.client-reservation-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(81, 71, 55, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.72);
}

.client-empty span,
.client-reservation-card span,
.client-reservation-card small {
  color: var(--muted);
  line-height: 1.45;
}

.client-reservation-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.client-reservation-card em {
  border-radius: 999px;
  padding: 6px 10px;
  background: #dfead2;
  color: #3f6c35;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
}

.radio-line input,
.check-line input {
  width: auto;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.primary-button,
.secondary-button,
.ghost-button,
.zone-filter button,
.icon-button,
.admin-tabs button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--coffee);
  color: #fff;
  padding: 13px 16px;
}

.primary-button:hover {
  background: var(--leaf);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #e7ecd9;
  color: var(--leaf);
  padding: 10px 12px;
}

.ghost-button,
.zone-filter button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--soil);
  padding: 9px 12px;
}

#toggleAdmin {
  border-color: var(--coffee);
  background: var(--coffee);
  color: #fff;
}

.admin-entry {
  display: none;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--soil);
  font-size: 1.35rem;
  line-height: 1;
}

.ghost-button.active,
.zone-filter button.active {
  background: var(--soil);
  border-color: var(--soil);
  color: #fff;
}

.whatsapp-link,
.menu-link {
  display: block;
  border: 1px solid rgba(82, 111, 69, 0.28);
  color: var(--leaf);
  background: rgba(231, 236, 217, 0.45);
  padding: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.menu-embed-panel {
  display: none;
  gap: 10px;
  border: 1px solid rgba(189, 123, 82, 0.22);
  background:
    linear-gradient(135deg, rgba(223, 189, 105, 0.16), rgba(255, 250, 240, 0.86));
  padding: 10px;
}

.menu-embed-panel.visible {
  display: grid;
}

.menu-embed-actions {
  display: grid;
}

.menu-link {
  border-color: rgba(189, 123, 82, 0.32);
  background: var(--coffee);
  color: #fff;
}

.menu-frame-wrap {
  display: none;
  height: min(720px, 72vh);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.menu-frame-wrap.open {
  display: block;
}

.menu-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.reserva-visita {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #12201a;
}
.reserva-visita iframe { display: block; width: 100%; height: 100%; border: 0; }
#zoneFilter[hidden], #spaceGrid[hidden] { display: none !important; }

.hero-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  margin: 20px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(45, 41, 36, 0.02), rgba(45, 41, 36, 0.5)),
    var(--hero-image) 50% 42%/cover;
}

.scene-copy {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: #fffdf7;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.scene-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.02;
}

.scene-copy span {
  font-weight: 800;
}

.zone-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.zone-filter button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 8px 18px rgba(63, 53, 40, 0.06);
  scroll-snap-align: start;
}

.map-panel {
  margin: 20px 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(231, 236, 217, 0.62));
  padding: 18px;
  box-shadow: 0 14px 34px rgba(63, 53, 40, 0.09);
}

.map-panel.collapsed {
  padding: 16px;
}

.map-panel.collapsed .map-legend,
.map-panel.collapsed .map-edit-bar,
.map-panel.collapsed .sababa-map {
  display: none;
}

.map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(81, 71, 55, 0.12);
  padding-bottom: 12px;
}

.map-panel.collapsed .map-heading {
  align-items: center;
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.map-toggle {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-edit-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  border: 1px dashed rgba(189, 123, 82, 0.36);
  background: rgba(223, 189, 105, 0.16);
  color: var(--coffee);
  padding: 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.map-panel.editing .map-edit-bar {
  display: flex;
}

.map-panel.editing .map-zone,
.map-panel.editing .map-path,
.map-panel.editing .map-pin,
.map-panel.editing .map-label {
  cursor: grab;
  outline: 2px dashed rgba(189, 123, 82, 0.45);
  outline-offset: 2px;
  user-select: none;
  touch-action: none;
}

.map-panel.editing .map-zone.dragging,
.map-panel.editing .map-path.dragging,
.map-panel.editing .map-pin.dragging,
.map-panel.editing .map-label.dragging {
  cursor: grabbing;
  opacity: 0.82;
  z-index: 10;
}

.map-panel.editing .sababa-map {
  user-select: none;
  touch-action: none;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.legend-dot.available {
  background: #e7ecd9;
}

.legend-dot.selected {
  background: var(--coffee);
}

.legend-dot.unavailable {
  background: #d9d3c8;
}

.sababa-map {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1.15fr;
  grid-template-rows: 0.78fr 0.82fr 0.72fr 0.9fr 0.46fr;
  grid-template-areas:
    "sidepatio sidecorr frontcorr private"
    "sidepatio sidecorr inside private"
    "slope front front wall"
    "fire fire picnic gardenentry"
    "gate gate gate gate";
  gap: 10px;
  min-height: 760px;
  border: 1px solid rgba(81, 71, 55, 0.16);
  background:
    radial-gradient(circle at 79% 26%, rgba(223, 189, 105, 0.22), transparent 18%),
    radial-gradient(circle at 72% 68%, rgba(82, 111, 69, 0.18), transparent 30%),
    linear-gradient(135deg, #edf0df, #f7edda);
  padding: 12px;
}

.map-path {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(81, 71, 55, 0.24);
  background: rgba(255, 250, 240, 0.48);
  color: var(--muted);
  padding: 10px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-gate {
  grid-area: gate;
  background: rgba(81, 71, 55, 0.12);
}

.map-slope {
  grid-area: slope;
}

.map-low-wall {
  grid-area: wall;
  border-color: rgba(189, 123, 82, 0.35);
  background: rgba(223, 189, 105, 0.15);
}

.map-garden-entry {
  grid-area: gardenentry;
  background: rgba(200, 209, 180, 0.42);
}

.map-zone {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(81, 71, 55, 0.14);
  background: rgba(255, 250, 240, 0.74);
  padding: 32px 10px 10px;
}

.map-zone-garden {
  align-content: center;
  justify-content: center;
  background:
    linear-gradient(rgba(82, 111, 69, 0.1), rgba(82, 111, 69, 0.18)),
    url("assets/sababa-jardin.jpg") center/cover;
}

.map-zone-front {
  grid-area: front;
}

.map-zone-private {
  grid-area: private;
}

.map-zone-inside {
  grid-area: inside;
}

.map-zone-front-corridor {
  grid-area: frontcorr;
}

.map-zone-side-corridor {
  grid-area: sidecorr;
}

.map-zone-side-patio {
  grid-area: sidepatio;
}

.map-zone-garden-fire {
  grid-area: fire;
}

.map-zone-garden-picnic {
  grid-area: picnic;
}

.map-zone-garden-picnic .map-marker {
  margin-top: auto;
}

.zone-label {
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--leaf);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-note,
.map-marker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px dashed rgba(81, 71, 55, 0.18);
  background: rgba(255, 250, 240, 0.62);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.map-note {
  width: 100%;
}

.map-marker.brick {
  border-color: rgba(189, 123, 82, 0.42);
  background: rgba(189, 123, 82, 0.16);
  color: var(--coffee);
}

.map-seat {
  min-width: 82px;
  min-height: 42px;
  border: 1px solid rgba(81, 71, 55, 0.2);
  background: #fffaf0;
  color: var(--coffee);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 8px 18px rgba(63, 53, 40, 0.08);
}

.map-seat:hover {
  border-color: var(--coffee);
}

.map-seat.mini {
  min-width: 58px;
}

.map-seat.small {
  min-width: 70px;
  border-radius: 999px;
}

.map-seat.hammock {
  border-radius: 999px 999px 8px 8px;
  background: #f8edd9;
}

.map-seat.picnic {
  min-width: 104px;
  background: #e7ecd9;
}

.map-seat.garden {
  min-width: 150px;
  min-height: 58px;
  background: rgba(255, 250, 240, 0.92);
  font-size: 0.9rem;
}

.map-seat.selected {
  border-color: var(--coffee);
  background: var(--coffee);
  color: #fff;
}

.map-seat.unavailable {
  border-color: #cfc6b9;
  background: #d9d3c8;
  color: #80766a;
  cursor: not-allowed;
  opacity: 0.78;
}

.garden-note {
  width: 100%;
  color: #fffdf7;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.48);
}

.sababa-map-route {
  display: block;
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(81, 71, 55, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(81, 71, 55, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 55% 56%, rgba(223, 189, 105, 0.18), transparent 18%),
    radial-gradient(circle at 48% 80%, rgba(82, 111, 69, 0.2), transparent 28%),
    linear-gradient(180deg, #f6efdf 0%, #edf0df 56%, #dfe8cf 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

.sababa-map-route::before {
  content: "Planta superior";
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(81, 71, 55, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sababa-map-route::after {
  content: "JardÃ­n inferior";
  position: absolute;
  right: 14px;
  bottom: 150px;
  color: rgba(49, 95, 70, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sababa-map-route .map-zone,
.sababa-map-route .map-path {
  position: absolute;
}

.sababa-map-route .map-gate {
  left: 34%;
  bottom: 12px;
  width: 32%;
  height: 48px;
}

.sababa-map-route .map-slope {
  left: 43%;
  bottom: 70px;
  width: 14%;
  height: 185px;
  border-left-style: solid;
  border-right-style: solid;
  background:
    repeating-linear-gradient(0deg, rgba(189, 123, 82, 0.1) 0 8px, transparent 8px 18px),
    rgba(255, 250, 240, 0.58);
}

.sababa-map-route .map-low-wall {
  left: 24%;
  top: 61%;
  width: 64%;
  height: 34px;
  z-index: 3;
}

.sababa-map-route .map-garden-entry {
  left: 84%;
  top: 58%;
  width: 12%;
  height: 88px;
  z-index: 4;
}

.sababa-map-route .map-zone-front {
  left: 40%;
  top: 43%;
  width: 32%;
  height: 16%;
  z-index: 2;
  background: rgba(255, 250, 240, 0.64);
}

.sababa-map-route .map-zone-private {
  left: 74%;
  top: 20%;
  width: 20%;
  height: 30%;
  background: rgba(248, 237, 217, 0.82);
}

.sababa-map-route .map-zone-inside {
  left: 49%;
  top: 12%;
  width: 24%;
  height: 27%;
  background: rgba(255, 250, 240, 0.88);
}

.sababa-map-route .map-zone-front-corridor {
  left: 30%;
  top: 28%;
  width: 43%;
  height: 13%;
  align-content: center;
  background: rgba(231, 236, 217, 0.78);
}

.sababa-map-route .map-zone-side-corridor {
  left: 25%;
  top: 14%;
  width: 20%;
  height: 42%;
  flex-direction: column;
  background: rgba(255, 250, 240, 0.8);
}

.sababa-map-route .map-zone-side-patio {
  left: 6%;
  top: 11%;
  width: 16%;
  height: 52%;
  flex-direction: column;
  background: rgba(231, 236, 217, 0.82);
}

.sababa-map-route .map-zone-garden-fire {
  left: 10%;
  top: 68%;
  width: 38%;
  height: 20%;
}

.sababa-map-route .map-zone-garden-picnic {
  left: 51%;
  top: 68%;
  width: 36%;
  height: 20%;
}

.sababa-map-route .map-zone-garden-fire,
.sababa-map-route .map-zone-garden-picnic {
  background:
    linear-gradient(rgba(82, 111, 69, 0.1), rgba(82, 111, 69, 0.2)),
    url("assets/sababa-jardin.jpg") center/cover;
}

.sababa-map-route .map-zone-garden-fire::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 35%;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(189, 123, 82, 0.72);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(223, 189, 105, 0.9), rgba(189, 123, 82, 0.35) 55%, transparent 57%);
}

.sababa-map-route .map-zone-side-patio .map-seat,
.sababa-map-route .map-zone-side-corridor .map-seat {
  width: 100%;
}

.sababa-map-image {
  position: relative;
  display: block;
  min-height: auto;
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(81, 71, 55, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.86), rgba(231, 236, 217, 0.28)),
    #fffaf0;
  box-shadow: inset 0 0 0 10px rgba(255, 250, 240, 0.72);
}

.map-base-image {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  filter: saturate(0.58) sepia(0.08) contrast(0.92) brightness(1.06);
  opacity: 0.9;
}

.sababa-map-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.18), rgba(255, 250, 240, 0.08)),
    radial-gradient(circle at 68% 74%, rgba(82, 111, 69, 0.08), transparent 28%);
  mix-blend-mode: multiply;
}

.map-pin {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  min-width: 70px;
  border: 1px solid rgba(81, 71, 55, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--coffee);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 7px 18px rgba(63, 53, 40, 0.16);
  backdrop-filter: blur(5px);
}

.map-label {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(81, 71, 55, 0.22);
  background: rgba(255, 250, 240, 0.9);
  color: var(--leaf);
  padding: 5px 8px;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(63, 53, 40, 0.12);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.map-pin:hover {
  border-color: var(--coffee);
  transform: translate(-50%, -50%) scale(1.04);
}

.map-pin.mini {
  min-width: 56px;
}

.map-pin.small {
  min-width: 62px;
  border-radius: 999px;
}

.map-pin.picnic {
  background: rgba(231, 236, 217, 0.95);
}

.map-pin.hammock {
  background: rgba(248, 237, 217, 0.98);
}

.map-pin.garden {
  min-width: 94px;
  background: rgba(231, 236, 217, 0.97);
}

.map-pin.selected {
  border-color: var(--coffee);
  background: var(--coffee);
  color: #fff;
  box-shadow: 0 10px 22px rgba(63, 53, 40, 0.28);
}

.map-pin.unavailable {
  border-color: #cfc6b9;
  background: rgba(217, 211, 200, 0.92);
  color: #80766a;
  cursor: not-allowed;
  opacity: 0.78;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.space-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 210px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(246, 239, 223, 0.94));
  padding: 15px;
  box-shadow: 0 14px 30px rgba(63, 53, 40, 0.08);
  overflow: hidden;
}

.space-card-image {
  width: calc(100% + 30px);
  height: 150px;
  margin: -15px -15px 0;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
}

.space-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border: 0;
  background:
    linear-gradient(90deg, var(--leaf), var(--sun), var(--rose));
}

.space-card.unavailable {
  opacity: 0.52;
}

.space-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.space-card h3 {
  margin: 0 0 4px;
  color: var(--soil);
  font-size: 1.15rem;
}

.space-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #e7ecd9;
  color: var(--leaf);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.select-space {
  align-self: end;
  border: 1px solid var(--coffee);
  background: rgba(255, 250, 240, 0.72);
  color: var(--coffee);
  padding: 10px;
  cursor: pointer;
  font-weight: 800;
}

.select-space:not(:disabled):hover {
  background: var(--coffee);
  color: #fff;
}

.select-space:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.notify-list,
.reservation-list {
  display: grid;
  gap: 9px;
}

.admin-hero,
.admin-section {
  border: 1px solid rgba(81, 71, 55, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.97), rgba(248, 241, 226, 0.94));
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.8);
  color: var(--muted);
  padding: 10px;
  font-size: 0.86rem;
}

.admin-metrics strong {
  color: var(--coffee);
  font-size: 1.15rem;
}

/* Lo que está oculto, oculto de verdad: otras reglas ponían display y le
   ganaban al atributo hidden. */
.admin-panel [hidden], .admin-tabs[hidden], .admin-section[hidden] { display: none !important; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.admin-tabs button {
  flex: 1 1 112px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.9);
  color: var(--soil);
  padding: 10px 12px;
}

.admin-tabs button.active {
  border-color: var(--coffee);
  background: var(--coffee);
  color: #fff;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 14px;
}

.schedule-grid,
.admin-space-list {
  display: grid;
  gap: 9px;
}

.schedule-row,
.admin-space-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
  padding: 10px;
}

.admin-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.experience-admin-list {
  display: grid;
  gap: 12px;
}

.experience-admin-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
  padding: 12px;
}

.experience-admin-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.experience-admin-preview img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.experience-admin-preview strong,
.experience-admin-preview span {
  display: block;
}

.experience-admin-preview strong {
  color: var(--coffee);
}

.experience-admin-preview span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.experience-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.experience-admin-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.experience-admin-fields label:nth-child(5),
.experience-admin-fields label:nth-child(6) {
  grid-column: 1 / -1;
}

.experience-admin-fields input,
.experience-admin-fields select,
.experience-admin-fields textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 10px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--coffee);
  font: inherit;
}

.danger-button {
  border-color: rgba(141, 77, 77, 0.34);
  color: #8d4d4d;
}

.photo-preview {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px dashed rgba(81, 71, 55, 0.28);
  background: rgba(255, 250, 240, 0.62);
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.hero-banner-preview img {
  aspect-ratio: 16 / 9;
}

.photo-preview span,
.photo-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.photo-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.photo-download.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.editable-space {
  grid-template-columns: 90px minmax(150px, 1fr) minmax(130px, 0.7fr) minmax(220px, 1.2fr) auto auto;
  align-items: end;
}

.editable-space label {
  gap: 5px;
  font-size: 0.78rem;
}

.editable-space input,
.editable-space textarea {
  padding: 9px 10px;
  min-height: 40px;
}

.map-editor-list {
  display: grid;
  gap: 10px;
}

.copy-editor-list {
  display: grid;
  gap: 10px;
}

.map-editor-row {
  display: grid;
  grid-template-columns: 90px minmax(160px, 1fr) minmax(120px, 0.7fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
  padding: 10px;
}

.copy-editor-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
  padding: 10px;
}

.copy-editor-row strong {
  color: var(--soil);
}

.copy-editor-row textarea {
  min-height: 76px;
}

.map-editor-row strong {
  color: var(--soil);
}

.map-editor-row label {
  gap: 5px;
  font-size: 0.78rem;
}

.map-editor-row input,
.map-editor-row select {
  min-height: 40px;
  padding: 9px 10px;
}

.schedule-row strong,
.admin-space-row strong {
  color: var(--soil);
}

.schedule-row span,
.admin-space-row span {
  color: var(--muted);
  line-height: 1.35;
}

.mini-status {
  background: #e7ecd9;
  color: var(--leaf);
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.notice,
.reservation-item {
  border-left: 3px solid var(--rose);
  background: rgba(255, 253, 247, 0.78);
  padding: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.notice strong,
.reservation-item strong {
  display: block;
  color: var(--soil);
}

.notice small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.notice-actions button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--soil);
  padding: 7px 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.reservation-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.8);
  color: var(--soil);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.reservation-status.confirmada {
  border-color: rgba(82, 111, 69, 0.28);
  background: #e7ecd9;
  color: var(--leaf);
}

.reservation-status.cancelada {
  border-color: rgba(155, 63, 43, 0.22);
  background: #f4dfd7;
  color: #9b3f2b;
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.reservation-actions button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--soil);
  padding: 7px 9px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  transform: translateY(18px);
  opacity: 0;
  background: var(--coffee);
  color: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.password-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(45, 41, 36, 0.38);
}

.move-modal {
  position: fixed;
  z-index: 31;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(45, 41, 36, 0.38);
}

.move-modal.open {
  display: flex;
}

.move-card {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  border: 1px solid rgba(81, 71, 55, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(248, 241, 226, 0.96));
  box-shadow: var(--shadow);
  padding: 22px;
}

.password-modal.open {
  display: flex;
}

.password-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  border: 1px solid rgba(81, 71, 55, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(248, 241, 226, 0.96));
  box-shadow: var(--shadow);
  padding: 22px;
}

.password-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 390px 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .reserve-panel,
  .spaces-panel {
    padding: 16px;
  }

  .brand-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-row .status-pill {
    grid-column: auto;
    width: auto;
    max-width: 130px;
    margin-left: 0;
    justify-self: start;
    text-align: center;
  }

  .intro {
    margin: 14px 0 18px;
  }

  .booking-form {
    gap: 12px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 1rem;
  }

  .primary-button,
  .secondary-button,
  .whatsapp-link,
  .menu-link {
    min-height: 48px;
  }

  .menu-frame-wrap {
    height: 76vh;
  }

  .hero-scene {
    min-height: 250px;
    background:
      linear-gradient(180deg, rgba(45, 41, 36, 0.02), rgba(45, 41, 36, 0.5)),
      var(--hero-image) center top/100% auto no-repeat,
      #6f8a55;
  }

  .map-panel {
    padding: 14px;
    overflow-x: auto;
  }

  .map-heading {
    display: grid;
    gap: 10px;
  }

  .map-toggle {
    width: 100%;
  }

  .map-legend {
    justify-content: flex-start;
  }

  .sababa-map {
    display: flex;
    gap: 10px;
    min-height: 0;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }

  .sababa-map-route {
    display: block;
    width: 820px;
    min-width: 820px;
    min-height: 680px;
    overflow: visible;
  }

  .sababa-map-route .map-zone,
  .sababa-map-route .map-path {
    flex: initial;
    min-height: initial;
    scroll-snap-align: none;
  }

  .sababa-map-image {
    display: block;
    width: 920px;
    min-width: 920px;
    overflow: visible;
  }

  .sababa-map-image .map-base-image {
    min-width: 920px;
  }

  .map-zone {
    flex: 0 0 250px;
    min-height: 220px;
    scroll-snap-align: start;
  }

  .map-path {
    flex: 0 0 210px;
    min-height: 120px;
    scroll-snap-align: start;
  }

  .map-zone-garden {
    flex-basis: 290px;
  }

  .sababa-map-route .map-zone,
  .sababa-map-route .map-path {
    position: absolute;
    flex: initial;
    min-height: initial;
    scroll-snap-align: none;
  }

  .space-header {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .space-actions {
    width: 100%;
    justify-content: stretch;
  }

  .zone-filter {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .admin-panel {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  .admin-hero,
  .admin-section,
  .admin-card {
    padding: 14px;
  }

  .admin-tabs {
    margin-inline: -2px;
  }

  .admin-tabs button {
    min-height: 42px;
  }

  .space-grid {
    grid-template-columns: 1fr;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .schedule-row,
  .admin-space-row {
    grid-template-columns: 1fr;
  }

  .editable-space {
    align-items: stretch;
  }

  .map-editor-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .copy-editor-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.85rem;
    line-height: 1.02;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding: 0;
  }

  .reserve-panel,
  .spaces-panel {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .brand-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .status-pill {
    font-size: 0.82rem;
  }

  .hero-scene {
    min-height: 235px;
  }
}

@media (max-width: 980px) {
  .house-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .house-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .house-nav a {
    flex: 0 0 auto;
  }

  .house-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }

  .experience-grid,
  .circle-layout {
    grid-template-columns: 1fr;
  }

  .expedition-card,
  .reset-shell,
  .reset-form,
  .territory-grid,
  .footprint-grid,
  .badge-grid,
  .expedition-admin-grid {
    grid-template-columns: 1fr;
  }

  .reset-side {
    position: static;
  }

  .circle-benefits {
    grid-template-columns: 1fr;
  }

  .circle-frame-wrap,
  .circle-frame-wrap iframe {
    min-height: 760px;
  }
}

@media (min-width: 0px) {
  body {
    padding-bottom: 100px;
  }

  .house-topbar {
    display: none;
  }

  .house-brand small {
    display: none;
  }

  .house-brand-logo {
    width: 46px;
    height: 46px;
  }

  .house-nav {
    display: none;
  }

  .mobile-home {
    display: none;
    gap: 28px;
    padding: 18px 14px 112px;
    background:
      radial-gradient(circle at 18% 0%, rgba(199, 169, 107, 0.18), transparent 28%),
      linear-gradient(180deg, #f5f0e6 0%, #e4dcca 100%);
    overflow-x: hidden;
  }

  .house-section,
  .app-shell,
  .experience-detail-view {
    display: none;
  }

  body.mobile-view-home .mobile-home {
    display: grid;
  }

  body.mobile-view-explorar #experiencias,
  body.mobile-view-experience-detail .experience-detail-view,
  body.mobile-view-camino #camino,
  body.mobile-view-mesa #la-mesa,
  body.mobile-view-bitacora #bitacora,
  body.mobile-view-circle #circle,
  body.mobile-view-expediciones #mis-expediciones,
  body.mobile-view-expediciones.mobile-reset-detail #reset {
    display: block;
  }

  body.mobile-view-expediciones #reset,
  body.mobile-view-expediciones.mobile-reset-detail #mis-expediciones {
    display: none;
  }

  body.mobile-view-reservar .app-shell,
  body.mobile-view-mis .app-shell {
    display: grid;
  }

  body.mobile-view-reservar .client-reservations {
    display: none;
  }

  body.mobile-view-mis .reserve-panel > :not(.client-reservations),
  body.mobile-view-mis .spaces-panel {
    display: none;
  }

  body.mobile-view-mis .client-reservations {
    display: grid;
    min-height: calc(100vh - 110px);
    align-content: start;
  }

  .mobile-home-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 14px;
    align-items: center;
  }

  .mobile-home-head p,
  .mobile-home-head h1,
  .mobile-home-head span {
    margin: 0;
  }

  .mobile-home-head p {
    color: #6b3f4a;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .mobile-home-head h1 {
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.92rem;
    line-height: 1;
  }

  .mobile-home-head span {
    display: block;
    margin-top: 4px;
    color: rgba(75, 62, 45, 0.68);
    font-size: 0.82rem;
  }

  .mobile-home-head img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .mobile-feature-card {
    min-height: 260px;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-radius: 18px;
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(45, 41, 36, 0.08), rgba(45, 41, 36, 0.78)),
      var(--hero-image) center/cover no-repeat;
    box-shadow: 0 18px 48px rgba(63, 53, 40, 0.18);
    color: #fffaf0;
  }

  .mobile-feature-card h2,
  .mobile-feature-card p {
    margin: 0;
  }

  .mobile-feature-card h2 {
    color: #fffaf0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.15rem;
    line-height: 1;
  }

  .mobile-feature-card p:not(.eyebrow) {
    margin-top: 8px;
    line-height: 1.5;
  }

  .mobile-feature-card a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border-radius: 999px;
    padding: 0 18px;
    background: #fffaf0;
    color: var(--coffee);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-immersive-home {
    display: grid;
    gap: 0;
    margin-inline: -14px;
  }

  .mobile-genially-frame {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f5f0e6;
    box-shadow: none;
  }

  .mobile-genially-frame .container-wrapper-genially {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .mobile-genially-frame .genially-embed,
  .mobile-genially-frame iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0;
  }

  .mobile-genially-frame iframe {
    display: block;
  }

  .mobile-section-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-section-row h2 {
    margin: 0;
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
  }

  .mobile-section-row a {
    color: #6b3f4a;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-event-list {
    display: grid;
    gap: 12px;
  }

  .mobile-event-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(75, 62, 45, 0.1);
    border-radius: 22px;
    padding: 11px;
    background: rgba(245, 240, 230, 0.72);
    color: #4b3e2d;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(75, 62, 45, 0.08);
  }

  .mobile-event-card img {
    width: 104px;
    height: 92px;
    border-radius: 16px;
    object-fit: cover;
  }

  .mobile-event-card strong,
  .mobile-event-card small {
    display: block;
  }

  .mobile-event-card small {
    margin-top: 6px;
    color: rgba(75, 62, 45, 0.62);
    line-height: 1.35;
  }

  .mobile-featured-events {
    display: grid;
  }

  .mobile-featured-events a {
    position: relative;
    min-height: 220px;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-radius: 26px;
    color: #fffaf0;
    text-decoration: none;
    box-shadow: 0 20px 48px rgba(75, 62, 45, 0.14);
  }

  .mobile-featured-events img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-featured-events a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(75, 62, 45, 0.05), rgba(75, 62, 45, 0.72));
  }

  .mobile-featured-events span {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 20px;
  }

  .mobile-featured-events small {
    color: rgba(255, 250, 240, 0.82);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-featured-events strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
  }

  .mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-category-grid a {
    min-height: 82px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border: 1px solid rgba(75, 62, 45, 0.1);
    border-radius: 20px;
    padding: 12px 8px;
    background: rgba(245, 240, 230, 0.64);
    color: #4b3e2d;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(75, 62, 45, 0.05);
  }

  .mobile-category-grid svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-category-grid strong,
  .mobile-category-grid small {
    display: block;
  }

  .mobile-category-grid strong {
    font-size: 0.72rem;
    text-align: center;
  }

  .mobile-category-grid small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .house-hero {
    display: none;
  }

  .house-hero h1 {
    font-size: clamp(3.2rem, 20vw, 5rem);
  }

  .house-hero-actions,
  .house-hero-actions a {
    width: 100%;
  }

  .house-hero-card,
  .experience-card,
  .circle-intro {
    padding: 18px;
  }

  .house-section {
    padding: 34px 14px;
  }

  .app-shell {
    gap: 0;
    padding: 0;
    background: #e4dcca;
  }

  .reserve-panel,
  .spaces-panel {
    border: 0;
    border-radius: 0;
    padding: 18px 14px;
    background: #e4dcca;
    box-shadow: none;
  }

  .reserve-panel .brand-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .reserve-panel .brand-logo {
    width: 70px;
    height: 70px;
  }

  .reserve-panel .brand-row h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.1rem;
    line-height: 0.98;
  }

  .reserve-panel .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .reserve-panel .intro {
    margin-bottom: 12px;
    color: var(--muted);
    line-height: 1.55;
  }

  .booking-form {
    gap: 10px;
  }

  .booking-form::before,
  .spaces-panel::before,
  .client-reservations::before {
    display: block;
    margin-bottom: 2px;
    color: var(--leaf);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .booking-form::before {
    content: "1. Datos de tu visita";
  }

  .spaces-panel::before {
    content: "2. Elige tu espacio";
  }

  .client-reservations::before {
    content: "3. Confirmaciones guardadas";
  }

  .booking-form > label,
  .booking-form fieldset,
  .menu-embed-panel,
  .client-reservations {
    border: 1px solid rgba(81, 71, 55, 0.12);
    border-radius: 16px;
    padding: 13px;
    background: rgba(255, 250, 240, 0.78);
    box-shadow: 0 10px 28px rgba(63, 53, 40, 0.06);
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    border-radius: 12px;
    background: rgba(255, 250, 240, 0.9);
  }

  .booking-form .primary-button {
    min-height: 52px;
    border-radius: 999px;
    margin-top: 4px;
  }

  .whatsapp-link {
    justify-content: center;
    text-align: center;
  }

  .client-reservations {
    margin-top: 20px;
    border-top: 0;
  }

  .client-reservations-head .ghost-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .client-reservation-card,
  .client-empty {
    border-radius: 14px;
    background: rgba(255, 250, 240, 0.92);
  }

  .space-header {
    display: grid;
    gap: 12px;
  }

  .space-actions {
    justify-content: flex-start;
  }

  #experiencias .house-section-heading {
    margin-bottom: 16px;
  }

  #experiencias .house-section-heading h2 {
    font-size: 2.2rem;
  }

  #experiencias .house-section-heading p:not(.eyebrow) {
    display: none;
  }

  .mobile-explore-tools {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mobile-explore-tools label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-explore-tools label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .mobile-explore-tools input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(81, 71, 55, 0.12);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 250, 240, 0.82);
    color: var(--coffee);
    outline: none;
  }

  .mobile-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mobile-filter-row button {
    flex: 0 0 auto;
    min-height: 38px;
    border: 1px solid rgba(81, 71, 55, 0.12);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 250, 240, 0.8);
    color: var(--coffee);
    font-size: 0.74rem;
    font-weight: 800;
  }

  .mobile-filter-row button.active {
    background: var(--coffee);
    color: #fffaf0;
  }

  #experiencias .experience-grid {
    gap: 10px;
  }

  #experiencias .experience-card {
    min-height: auto;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 250, 240, 0.82);
    box-shadow: 0 10px 30px rgba(63, 53, 40, 0.08);
  }

  #experiencias .experience-card.featured {
    background:
      linear-gradient(145deg, rgba(64, 86, 70, 0.94), rgba(81, 71, 55, 0.88));
  }

  #experiencias .experience-card img {
    width: 94px;
    height: 94px;
    border-radius: 12px;
    object-fit: cover;
  }

  #experiencias .experience-card div {
    min-width: 0;
    display: grid;
    gap: 6px;
  }

  #experiencias .experience-card span {
    width: fit-content;
    height: auto;
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(81, 71, 55, 0.1);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
  }

  #experiencias .experience-card.featured span {
    background: rgba(255, 250, 240, 0.18);
  }

  #experiencias .experience-card h3 {
    font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  #experiencias .experience-card p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  #experiencias .experience-card small {
    font-size: 0.72rem;
  }

  #experiencias .experience-card a {
    grid-column: 2;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
  }

  .experience-detail-view {
    min-height: calc(100vh - 96px);
    margin: -18px -16px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f7f0df;
  }

  .experience-detail-top {
    position: sticky;
    top: 0;
    z-index: 8;
    min-height: 58px;
    background: rgba(255, 250, 240, 0.96);
    backdrop-filter: blur(12px);
  }

  .experience-detail-top strong {
    font-size: 0.86rem;
  }

  .experience-detail-image {
    max-height: none;
    height: 270px;
    object-fit: cover;
  }

  .experience-detail-body {
    gap: 14px;
    padding: 24px 18px 118px;
  }

  .experience-detail-body h2 {
    font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.7rem;
    line-height: 1.08;
  }

  .experience-detail-body h3 {
    margin-top: 8px;
    color: var(--coffee);
    font-size: 1rem;
  }

  .experience-reserve-button {
    min-height: 52px;
    border-radius: 999px;
    background: #2f1e10;
  }

  .experience-card {
    min-height: auto;
  }

  .circle-frame-wrap,
  .circle-frame-wrap iframe {
    min-height: 720px;
  }

  .mobile-app-nav {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    border: 1px solid rgba(63, 53, 40, 0.12);
    border-radius: 24px;
    padding: 8px 6px;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: 0 16px 42px rgba(63, 53, 40, 0.18);
    backdrop-filter: blur(14px);
  }

  .mobile-app-nav a {
    display: grid;
    grid-template-rows: 20px auto;
    gap: 3px;
    min-height: 42px;
    place-items: center;
    border-radius: 18px;
    color: var(--coffee);
    font-size: 0.58rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-app-nav svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-app-nav span {
    line-height: 1;
  }

  .mobile-app-nav a:active,
  .mobile-app-nav a:hover,
  .mobile-app-nav a.active {
    background: var(--coffee);
    color: #fffaf0;
  }
}

@media (min-width: 0px) {
  .mobile-app-nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-radius: 28px;
  }

  .mobile-app-nav a {
    min-width: 0;
    font-size: 0.52rem;
  }

  .mobile-app-nav svg {
    width: 20px;
    height: 20px;
  }

  .mobile-app-nav a.active {
    background: rgba(107, 63, 74, 0.14);
    color: #6b3f4a;
  }
}

/* Guided SABABA reservation experience */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.booking-step {
  display: grid;
  gap: 16px;
}

.step-kicker {
  margin: 0;
  color: #6b3f4a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.booking-step h2 {
  margin: 0;
  color: #4b3e2d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 0.98;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.intent-grid button {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(75, 62, 45, 0.12);
  border-radius: 20px;
  padding: 0 0 14px;
  background: rgba(245, 240, 230, 0.66);
  color: #4b3e2d;
  text-align: center;
  box-shadow: 0 12px 30px rgba(75, 62, 45, 0.06);
  cursor: pointer;
}

.intent-grid button img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96);
}

.intent-grid button span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(75, 62, 45, 0.82);
  color: #fffaf0;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(35, 28, 22, 0.16);
}

.intent-grid button strong {
  padding: 0 10px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.intent-grid button small {
  display: block;
  padding: 0 14px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.78rem;
  line-height: 1.35;
}

.intent-grid button.wide-intent {
  min-height: 190px;
  align-content: end;
  background: #4b3e2d;
  color: #fffaf0;
  text-align: left;
}

.intent-grid button.wide-intent img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.72;
}

.intent-grid button.wide-intent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(35, 28, 22, 0.78));
}

.intent-grid button.wide-intent strong,
.intent-grid button.wide-intent small {
  position: relative;
  z-index: 1;
}

.intent-grid button.active {
  border-color: rgba(107, 63, 74, 0.35);
  background: linear-gradient(135deg, rgba(107, 63, 74, 0.14), rgba(123, 143, 106, 0.14));
  box-shadow: 0 16px 34px rgba(107, 63, 74, 0.12);
}

.visit-details[hidden],
.visit-confirm[hidden],
.all-spaces-modal[hidden] {
  display: none;
}

/* La pregunta "¿Qué te gustaría vivir?" vive dentro del panel de espacios:
   ahí es un filtro para recomendar rincones, no un paso aparte. Por eso el
   título va en pequeño y no con el titular grande de los pasos. */
.spaces-panel .intent-step {
  margin: 0 0 18px;
  gap: 10px;
}

.spaces-panel .intent-step h2 {
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  line-height: 1.2;
}

.spaces-panel .intent-step .intent-note {
  margin: 0;
  color: #6f6455;
  font-size: 0.85rem;
  line-height: 1.45;
}

.selected-space-note {
  margin: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  color: #4b3e2d;
  font-weight: 800;
  line-height: 1.4;
}

.selected-space-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.7);
  box-shadow: 0 16px 36px rgba(75, 62, 45, 0.08);
}

.selected-space-card img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
}

.selected-space-card div {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 14px 14px 0;
}

.selected-space-card span {
  color: rgba(75, 62, 45, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
}

.selected-space-card strong {
  color: #4b3e2d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.selected-space-card p {
  margin: 0;
  color: rgba(75, 62, 45, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

.selected-space-card button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: #7b8f6a;
  color: #fffaf0;
  font-weight: 900;
  cursor: pointer;
}

.explore-all-spaces {
  width: 100%;
  margin-top: 16px;
  border-radius: 999px;
}

.all-spaces-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  background: rgba(35, 28, 22, 0.34);
}

.all-spaces-card {
  max-height: 88vh;
  overflow: auto;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 18px;
  background: #f5f0e6;
  box-shadow: 0 -20px 50px rgba(35, 28, 22, 0.24);
}

.all-spaces-card header {
  position: sticky;
  top: -18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: -18px -18px 14px;
  padding: 18px;
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(12px);
}

.all-spaces-card h2 {
  margin: 0;
  color: #4b3e2d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.all-spaces-list,
.all-spaces-zone,
.all-spaces-zone > div {
  display: grid;
  gap: 12px;
}

.all-spaces-zone h3 {
  margin: 14px 0 0;
  color: #6b3f4a;
  font-size: 0.9rem;
}

.all-space-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 250, 240, 0.64);
  overflow: hidden;
}

.all-space-card img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.all-space-card > div {
  display: grid;
  gap: 7px;
  padding: 7px 6px 7px 2px;
}

.all-space-card strong {
  color: #4b3e2d;
}

.all-space-card span,
.all-space-card p {
  margin: 0;
  color: rgba(75, 62, 45, 0.68);
  line-height: 1.42;
}

.all-space-card button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #7b8f6a;
  color: #fffaf0;
  font-weight: 900;
}

@media (min-width: 0px) {
  body.mobile-view-reservar .app-shell {
    background:
      radial-gradient(circle at 90% 4%, rgba(123, 143, 106, 0.18), transparent 28%),
      linear-gradient(180deg, #f5f0e6 0%, #e4dcca 100%);
  }

  body.mobile-view-reservar .reserve-panel,
  body.mobile-view-reservar .spaces-panel {
    background: transparent;
  }

  body.mobile-view-reservar .reserve-panel .brand-row h1 {
    color: #4b3e2d;
    font-size: 2.45rem;
  }

  body.mobile-view-reservar .reserve-panel .intro {
    color: rgba(75, 62, 45, 0.72);
    font-size: 0.98rem;
  }

  body.mobile-view-reservar .booking-form::before,
  body.mobile-view-reservar .spaces-panel::before {
    content: none;
  }

  body.mobile-view-reservar .booking-form > label,
  body.mobile-view-reservar .booking-form fieldset,
  body.mobile-view-reservar .menu-embed-panel {
    border: 1px solid rgba(75, 62, 45, 0.1);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.62);
  }

  .intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intent-grid button:last-child {
    grid-column: 1 / -1;
  }

  body.mobile-view-reservar .space-header {
    gap: 8px;
  }

  body.mobile-view-reservar .space-header h2 {
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
  }

  body.mobile-view-reservar .space-header p:not(.eyebrow) {
    margin: 0;
    color: rgba(75, 62, 45, 0.68);
    line-height: 1.45;
  }

  body.mobile-view-reservar .zone-filter {
    display: none;
  }

  body.mobile-view-reservar .space-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.mobile-view-reservar .space-card {
    grid-template-columns: 42% 1fr;
    align-items: stretch;
    min-height: auto;
    gap: 0;
    border: 1px solid rgba(75, 62, 45, 0.1);
    border-radius: 20px;
    padding: 0;
    background: rgba(255, 250, 240, 0.66);
    box-shadow: 0 14px 34px rgba(75, 62, 45, 0.07);
  }

  body.mobile-view-reservar .space-card.booking-empty-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  body.mobile-view-reservar .space-card::before {
    display: none;
  }

  body.mobile-view-reservar .space-card-image {
    grid-row: 1 / 5;
    width: 100%;
    height: 100%;
    min-height: 220px;
    margin: 0;
  }

  body.mobile-view-reservar .space-card > :not(.space-card-image) {
    margin: 0;
    padding-inline: 16px;
  }

  body.mobile-view-reservar .space-card .space-top {
    padding-top: 18px;
  }

  body.mobile-view-reservar .space-card > p {
    padding-top: 8px;
  }

  body.mobile-view-reservar .space-card .tag-row {
    padding-top: 12px;
  }

  body.mobile-view-reservar .space-card .select-space {
    align-self: end;
    margin: 16px;
  }

  body.mobile-view-reservar .space-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    line-height: 1;
    color: #4b3e2d;
  }

  body.mobile-view-reservar .select-space {
    border: 0;
    border-radius: 999px;
    background: #7b8f6a;
    color: #fffaf0;
  }
}

/* SABABA House: Mi Camino */
.camino-heading {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 92% 18%, rgba(199, 169, 107, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.8), rgba(245, 240, 230, 0.42));
}

.camino-heading h2 {
  max-width: 760px;
  color: #4b3e2d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.94;
}

.camino-heading p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(75, 62, 45, 0.72);
}

.camino-mark {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #7b8f6a;
  font-size: 2.4rem;
  opacity: 0.72;
}

.expeditions-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(123, 143, 106, 0.18), transparent 24%),
    linear-gradient(180deg, #f5f0e6 0%, #e4dcca 100%);
}

.reset-journey-card {
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  border: 0;
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 24px 60px rgba(63, 53, 40, 0.12);
}

.journey-card-hero {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(180deg, rgba(30, 48, 24, 0.12), rgba(30, 48, 24, 0.88)),
    url("assets/sababa-jardin.jpg") center / cover;
  color: #fffaf0;
}

.journey-card-hero span {
  color: #fffaf0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 5.3rem);
  line-height: 0.88;
}

.journey-card-hero h3,
.journey-card-hero small {
  margin: 0;
  color: rgba(255, 250, 240, 0.92);
}

.journey-card-hero h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1;
}

.journey-card-hero small {
  width: fit-content;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(123, 143, 106, 0.76);
  font-weight: 900;
}

.journey-card-body {
  display: grid;
  gap: 20px;
  align-content: center;
  padding: clamp(24px, 5vw, 42px);
}

.journey-progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.journey-progress-row strong {
  display: block;
  color: #4b3e2d;
  font-size: 1.18rem;
}

.journey-progress-row span {
  display: block;
  margin-top: 5px;
  color: rgba(75, 62, 45, 0.66);
  font-weight: 800;
}

.journey-progress-ring {
  --progress: 0;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f5f0e6 58%, transparent 60%),
    conic-gradient(#c7a96b calc(var(--progress) * 1%), rgba(75, 62, 45, 0.16) 0);
}

.journey-progress-ring strong {
  color: #4b3e2d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.journey-progress-line {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(75, 62, 45, 0.12);
}

.journey-progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b8f6a, #c7a96b, #6b3f4a);
}

.journey-territories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.journey-territories span {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 114px;
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 20px;
  padding: 12px 8px;
  background: rgba(245, 240, 230, 0.72);
  color: #4b3e2d;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.journey-territories i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(123, 143, 106, 0.16);
  font-style: normal;
}

.journey-territories b {
  color: rgba(75, 62, 45, 0.62);
  font-size: 0.72rem;
}

.reset-section {
  background:
    radial-gradient(circle at 82% 4%, rgba(199, 169, 107, 0.18), transparent 24%),
    linear-gradient(180deg, #f5f0e6 0%, #e4dcca 100%);
}

.reset-shell {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
}

.reset-side,
.reset-content,
.reset-view {
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.7);
  box-shadow: 0 22px 56px rgba(63, 53, 40, 0.1);
}

.reset-side {
  gap: 18px;
  padding: 22px;
}

.reset-back-link {
  width: fit-content;
  color: #4b3e2d;
  font-weight: 900;
  text-decoration: none;
}

.reset-side-leaf {
  justify-self: center;
  color: #7b8f6a;
  font-size: 2.4rem;
}

.reset-side h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.reset-nav {
  gap: 12px;
}

.reset-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 12px 28px rgba(63, 53, 40, 0.06);
}

.reset-nav button span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(123, 143, 106, 0.14);
  font-size: 1.35rem;
}

.reset-nav button strong,
.reset-nav button small {
  grid-column: 2;
}

.reset-nav button strong {
  color: #4b3e2d;
}

.reset-nav button small {
  color: rgba(75, 62, 45, 0.68);
  font-weight: 700;
  line-height: 1.35;
}

.reset-nav button i {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #4b3e2d;
  font-size: 2rem;
  font-style: normal;
}

.reset-nav button.active {
  background: rgba(123, 143, 106, 0.18);
  color: #4b3e2d;
}

.reset-content {
  padding: 14px;
}

.reset-view {
  padding: clamp(22px, 5vw, 42px);
}

.reset-view.active {
  gap: 20px;
}

.reset-view h2 {
  font-size: clamp(2.45rem, 7vw, 5rem);
}

.territory-grid {
  grid-template-columns: 1fr;
}

.territory-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 22px;
  padding: 18px;
}

.territory-icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(123, 143, 106, 0.14);
  font-size: 1.7rem;
}

.territory-card p {
  margin: 3px 0 0;
  color: rgba(75, 62, 45, 0.72);
  line-height: 1.45;
}

.territory-card em {
  color: #4f6f3f;
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 900;
}

.territory-card em small {
  color: rgba(75, 62, 45, 0.6);
  font-size: 0.82rem;
}

.territory-card i {
  grid-column: 2 / 4;
}

.territory-card > small {
  grid-column: 2 / 4;
  color: rgba(75, 62, 45, 0.66);
  font-weight: 800;
}

.territory-hidratacion .territory-icon,
.territory-hidratacion b {
  background: rgba(79, 127, 188, 0.14);
}

.territory-descanso .territory-icon,
.territory-descanso b {
  background: rgba(102, 72, 121, 0.14);
}

.territory-fortaleza .territory-icon,
.territory-fortaleza b {
  background: rgba(188, 105, 52, 0.14);
}

.territory-bienestar .territory-icon,
.territory-bienestar b {
  background: rgba(107, 63, 74, 0.14);
}

.reset-soft-note {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(123, 143, 106, 0.18), rgba(199, 169, 107, 0.14));
  color: #4b3e2d;
  font-weight: 800;
  line-height: 1.5;
}

.xp-card {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 111, 63, 0.96), rgba(75, 62, 45, 0.92));
}

.challenge-list {
  display: grid;
  gap: 12px;
}

.challenge-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  border-radius: 20px;
}

.challenge-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(75, 62, 45, 0.22);
  border-radius: 999px;
  color: #4f6f3f;
  font-weight: 900;
}

.challenge-card.done .challenge-icon {
  border-color: #4f6f3f;
  background: #4f6f3f;
  color: #fffaf0;
}

.footprint-grid {
  position: relative;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footprint-grid::before,
.timeline-list::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 25px;
  width: 2px;
  background: rgba(123, 143, 106, 0.34);
}

.footprint-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 20px;
}

.footprint-card > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c7a96b;
  border-radius: 999px;
  background: #f5f0e6;
  color: #7b8f6a;
  font-weight: 900;
}

.footprint-card.saved > span {
  background: #7b8f6a;
  color: #fffaf0;
}

.reset-footprint-main {
  width: fit-content;
  justify-self: start;
}

.badge-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.badge-card {
  min-height: 110px;
  border-radius: 20px;
}

.timeline-list {
  position: relative;
  padding-left: 18px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-dot {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #eee4d2;
  box-shadow: 0 10px 22px rgba(63, 53, 40, 0.08);
}

.timeline-item time {
  display: block;
  margin-bottom: 4px;
  color: rgba(75, 62, 45, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .reset-journey-card,
  .reset-shell,
  .journey-territories,
  .badge-grid {
    grid-template-columns: 1fr;
  }

  .journey-card-hero {
    min-height: 250px;
  }

  .reset-side {
    position: static;
  }
}

@media (min-width: 0px) {
  body.mobile-view-expediciones #mis-expediciones,
  body.mobile-view-expediciones.mobile-reset-detail #reset {
    min-height: 100vh;
    padding: 18px 14px 104px;
    background:
      radial-gradient(circle at 92% 8%, rgba(199, 169, 107, 0.2), transparent 28%),
      linear-gradient(180deg, #f5f0e6 0%, #e4dcca 100%);
  }

  body.mobile-view-expediciones #mis-expediciones {
    display: block;
  }

  body.mobile-view-expediciones .camino-heading {
    padding: 18px 4px 10px;
    background: transparent;
    border-radius: 0;
  }

  body.mobile-view-expediciones .camino-heading h2 {
    font-size: 2rem;
  }

  body.mobile-view-expediciones .camino-heading .eyebrow {
    color: #6b3f4a;
  }

  .reset-journey-card {
    border-radius: 24px;
  }

  .journey-card-hero {
    min-height: 260px;
    padding: 26px;
  }

  .journey-card-body {
    padding: 18px;
  }

  .journey-progress-row {
    grid-template-columns: 102px 1fr;
  }

  .journey-progress-ring {
    width: 94px;
  }

  .journey-territories {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .reset-shell {
    display: grid;
    gap: 14px;
  }

  .reset-side,
  .reset-content,
  .reset-view {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .reset-side {
    gap: 16px;
  }

  .reset-side .reset-progress {
    margin-bottom: 4px;
  }

  .reset-nav button {
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.72);
  }

  .reset-view.active {
    gap: 16px;
  }

  .reset-view h2 {
    font-size: 2.35rem;
  }

  .reset-content {
    display: contents;
  }

  body.mobile-reset-detail .reset-side {
    display: none;
  }

  body.mobile-reset-detail .reset-content {
    display: block;
  }

  body.mobile-reset-detail .reset-view {
    padding: 0;
  }

  .reset-form,
  .territory-grid,
  .footprint-grid,
  .badge-grid,
  .expedition-admin-grid {
    grid-template-columns: 1fr;
  }

  .territory-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 250, 240, 0.72);
  }

  .challenge-card,
  .footprint-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 250, 240, 0.72);
  }

  .challenge-card button,
  .footprint-card button {
    padding: 9px 12px;
  }

  .timeline-list {
    padding-left: 0;
  }

  .timeline-list::before {
    left: 24px;
  }
}

/* SABABA House experiences refresh */
#experiencias {
  background:
    radial-gradient(circle at 92% 4%, rgba(199, 169, 107, 0.16), transparent 30%),
    linear-gradient(180deg, #f5f0e6 0%, #efe5d2 100%);
}

.featured-experience {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.experience-section-label {
  margin: 0;
  color: #6b3f4a;
  font-size: 0.86rem;
  font-weight: 900;
}

.featured-experience-card {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 10px;
  background: #4b3e2d;
  color: #fffaf0;
  cursor: pointer;
  box-shadow: 0 22px 58px rgba(75, 62, 45, 0.18);
}

.featured-experience-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.05), rgba(20, 16, 12, 0.82));
}

.featured-experience-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 28px;
}

.featured-experience-card span,
.experience-detail-hero span {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: #6b3f4a;
  color: #fffaf0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-experience-card h3 {
  margin: 0;
  color: #fffaf0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.95;
}

.featured-experience-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
  line-height: 1.55;
}

.featured-experience-card footer,
.experience-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.featured-experience-card small,
.experience-card footer small {
  color: inherit;
  opacity: 0.9;
  font-weight: 800;
}

.featured-experience-card button,
.experience-card button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #7b8f6a;
  color: #fffaf0;
  font-weight: 900;
}

.experience-detail-hero {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.experience-detail-hero .experience-detail-image {
  position: absolute;
  inset: 0;
  height: 100%;
  max-height: none;
}

.experience-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0), rgba(20, 16, 12, 0.46));
}

.experience-detail-hero span {
  position: relative;
  z-index: 1;
  margin: 0 0 22px 22px;
}

.experience-detail-lede {
  color: #4b3e2d;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.48;
}

.experience-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(75, 62, 45, 0.14);
}

.experience-detail-facts span {
  color: rgba(75, 62, 45, 0.72);
  font-size: 0.86rem;
  font-weight: 900;
}

.experience-recommendations {
  display: grid;
  gap: 12px;
  border-radius: 10px;
  padding: 18px;
  background: rgba(199, 169, 107, 0.16);
}

.experience-recommendations span {
  color: rgba(75, 62, 45, 0.78);
  font-weight: 700;
  line-height: 1.45;
}

.profile-vip-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(75, 62, 45, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(199, 169, 107, 0.2), rgba(245, 240, 230, 0.92));
  color: #4b3e2d;
  text-decoration: none;
}

.profile-vip-card strong,
.profile-vip-card small {
  display: block;
}

.profile-vip-card small {
  margin-top: 4px;
  color: rgba(75, 62, 45, 0.68);
}

.profile-vip-card b {
  border-radius: 999px;
  padding: 8px 12px;
  background: #4b3e2d;
  color: #fffaf0;
  font-size: 0.72rem;
}

@media (min-width: 0px) {
  #experiencias {
    padding: 36px 16px 112px;
    background:
      radial-gradient(circle at 92% 4%, rgba(123, 143, 106, 0.18), transparent 28%),
      linear-gradient(180deg, #f5f0e6 0%, #efe5d2 100%);
  }

  #experiencias .experiences-heading {
    margin-bottom: 28px;
  }

  #experiencias .experiences-heading .eyebrow {
    color: #6b3f4a;
  }

  #experiencias .experiences-heading h2 {
    max-width: 280px;
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3rem;
    line-height: 0.92;
  }

  #experiencias .house-section-heading p:not(.eyebrow) {
    display: block;
    max-width: 310px;
    color: rgba(75, 62, 45, 0.72);
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .featured-experience-card {
    min-height: 290px;
    border-radius: 18px;
  }

  .featured-experience-card > div {
    padding: 18px;
  }

  .featured-experience-card h3 {
    font-size: 2rem;
  }

  .featured-experience-card footer {
    padding-top: 4px;
  }

  .featured-experience-card button {
    margin-left: auto;
    background: #6b3f4a;
  }

  #experiencias .mobile-explore-tools {
    gap: 14px;
    margin: 26px 0 18px;
  }

  #experiencias .mobile-explore-tools input {
    min-height: 48px;
    border-color: rgba(75, 62, 45, 0.1);
    background: rgba(255, 250, 240, 0.58);
  }

  #experiencias .mobile-filter-row {
    gap: 10px;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  #experiencias .mobile-filter-row button {
    min-height: 42px;
    border: 0;
    background: rgba(255, 250, 240, 0.7);
    color: #4b3e2d;
    box-shadow: 0 10px 24px rgba(75, 62, 45, 0.05);
  }

  #experiencias .mobile-filter-row button.active {
    background: #7b8f6a;
    color: #fffaf0;
  }

  #experiencias .experience-grid {
    gap: 16px;
  }

  #experiencias .experience-card {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 176px;
    gap: 14px;
    border: 0;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 250, 240, 0.64);
    box-shadow: 0 14px 36px rgba(75, 62, 45, 0.08);
  }

  #experiencias .experience-card img {
    width: 132px;
    height: 156px;
    border-radius: 16px;
  }

  #experiencias .experience-card div {
    align-content: center;
    gap: 8px;
  }

  #experiencias .experience-card span {
    background: rgba(123, 143, 106, 0.18);
    color: #4b3e2d;
  }

  #experiencias .experience-card h3 {
    color: #4b3e2d;
    font-size: 1.05rem;
  }

  #experiencias .experience-card p {
    color: rgba(75, 62, 45, 0.72);
  }

  #experiencias .experience-card footer {
    color: rgba(75, 62, 45, 0.72);
    font-size: 0.72rem;
  }

  #experiencias .experience-card button {
    width: fit-content;
    padding: 8px 14px;
    background: #7b8f6a;
    font-size: 0.72rem;
  }

  .experience-detail-view {
    background: #f5f0e6;
  }

  .experience-detail-top {
    border-bottom: 0;
    background: rgba(245, 240, 230, 0.9);
  }

  .experience-detail-hero {
    min-height: 390px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .experience-detail-body {
    padding: 26px 20px 118px;
  }

  .experience-detail-body h2 {
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.7rem;
    line-height: 0.95;
  }

  .experience-include-list li::before {
    background: rgba(123, 143, 106, 0.22);
    color: #4b3e2d;
  }

  .experience-reserve-button {
    background: linear-gradient(135deg, #6b3f4a, #8b405d);
  }

  .mobile-app-nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-radius: 28px;
  }

  .mobile-app-nav a {
    font-size: 0.52rem;
  }

  .mobile-app-nav svg {
    width: 20px;
    height: 20px;
  }

  .mobile-app-nav a.active {
    background: rgba(107, 63, 74, 0.14);
    color: #6b3f4a;
  }
}

/* Final mobile overrides for the SABABA Experiences showcase */
@media (min-width: 0px) {
  body.mobile-view-explorar {
    background: #f5f0e6;
  }

  body.mobile-view-explorar #experiencias {
    min-height: 100vh;
    padding: 38px 16px 116px;
    background:
      radial-gradient(circle at 94% 8%, rgba(123, 143, 106, 0.22), transparent 28%),
      radial-gradient(circle at 12% 0%, rgba(199, 169, 107, 0.18), transparent 25%),
      linear-gradient(180deg, #f5f0e6 0%, #efe5d2 100%);
  }

  body.mobile-view-explorar #experiencias .experiences-heading {
    margin: 0 0 30px;
  }

  body.mobile-view-explorar #experiencias .experiences-heading h2 {
    max-width: 300px;
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.25rem;
    line-height: 0.9;
  }

  body.mobile-view-explorar #experiencias .experiences-heading p:not(.eyebrow) {
    display: block;
    max-width: 320px;
    color: rgba(75, 62, 45, 0.72);
    font-size: 1rem;
    line-height: 1.55;
  }

  body.mobile-view-explorar .experience-section-label {
    color: #6b3f4a;
    font-size: 0.9rem;
    font-weight: 900;
  }

  body.mobile-view-explorar .featured-experience-card {
    min-height: 304px;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(75, 62, 45, 0.14);
  }

  body.mobile-view-explorar .featured-experience-card > div {
    padding: 18px;
  }

  body.mobile-view-explorar .featured-experience-card h3 {
    color: #fffaf0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
    line-height: 0.95;
  }

  body.mobile-view-explorar .featured-experience-card p {
    color: rgba(255, 250, 240, 0.9);
  }

  body.mobile-view-explorar .featured-experience-card button {
    margin-left: auto;
    background: #6b3f4a;
  }

  body.mobile-view-explorar #experiencias .mobile-explore-tools {
    gap: 14px;
    margin: 28px 0 18px;
  }

  body.mobile-view-explorar #experiencias .mobile-explore-tools input {
    min-height: 48px;
    border: 1px solid rgba(75, 62, 45, 0.1);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.62);
  }

  body.mobile-view-explorar #experiencias .mobile-filter-row {
    gap: 10px;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  body.mobile-view-explorar #experiencias .mobile-filter-row button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.72);
    color: #4b3e2d;
    box-shadow: 0 10px 24px rgba(75, 62, 45, 0.05);
  }

  body.mobile-view-explorar #experiencias .mobile-filter-row button.active {
    background: #7b8f6a;
    color: #fffaf0;
  }

  body.mobile-view-explorar #experiencias .experience-grid {
    gap: 16px;
  }

  body.mobile-view-explorar #experiencias .experience-card {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 176px;
    gap: 14px;
    border: 0;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 250, 240, 0.66);
    box-shadow: 0 14px 36px rgba(75, 62, 45, 0.08);
  }

  body.mobile-view-explorar #experiencias .experience-card img {
    width: 132px;
    height: 156px;
    border-radius: 16px;
    object-fit: cover;
  }

  body.mobile-view-explorar #experiencias .experience-card div {
    align-content: center;
    gap: 8px;
  }

  body.mobile-view-explorar #experiencias .experience-card span {
    background: rgba(123, 143, 106, 0.18);
    color: #4b3e2d;
  }

  body.mobile-view-explorar #experiencias .experience-card h3 {
    color: #4b3e2d;
    font-size: 1.05rem;
  }

  body.mobile-view-explorar #experiencias .experience-card p {
    color: rgba(75, 62, 45, 0.72);
    line-height: 1.42;
  }

  body.mobile-view-explorar #experiencias .experience-card footer {
    color: rgba(75, 62, 45, 0.72);
    font-size: 0.72rem;
  }

  body.mobile-view-explorar #experiencias .experience-card button {
    width: fit-content;
    padding: 8px 14px;
    background: #7b8f6a;
    color: #fffaf0;
    font-size: 0.72rem;
  }

  body.mobile-view-experience-detail .experience-detail-view {
    background: #f5f0e6;
  }

  body.mobile-view-experience-detail .experience-detail-top {
    border-bottom: 0;
    background: rgba(245, 240, 230, 0.9);
  }

  body.mobile-view-experience-detail .experience-detail-hero {
    min-height: 390px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  body.mobile-view-experience-detail .experience-detail-body h2 {
    color: #4b3e2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.7rem;
    line-height: 0.95;
  }
}


/* SABABA House: Mi Espacio */
.mi-espacio-section {
  gap: 18px;
  border-top: 0;
  padding-top: 0;
}

.mi-espacio-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border-radius: 28px;
  padding: clamp(22px, 5vw, 38px);
  background:
    radial-gradient(circle at 86% 28%, rgba(199, 169, 107, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.7), rgba(245, 240, 230, 0.34));
}

.mi-espacio-hero::after {
  content: "🌿";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #7b8f6a;
  font-size: 4rem;
  opacity: 0.34;
}

.mi-espacio-hero h2,
.mi-espacio-card h3 {
  margin: 0;
  color: #4b3e2d;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

.mi-espacio-hero h2 {
  max-width: 420px;
  font-size: clamp(2.6rem, 8vw, 4.7rem);
}

.mi-espacio-hero p:not(.eyebrow),
.mi-espacio-card p {
  margin: 0;
  color: rgba(75, 62, 45, 0.74);
  line-height: 1.55;
}

.mi-espacio-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(75, 62, 45, 0.1);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 16px 40px rgba(63, 53, 40, 0.07);
}

.circle-profile-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.circle-profile-card .profile-action {
  grid-column: 1 / -1;
}

.circle-profile-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(199, 169, 107, 0.42);
  border-radius: 999px;
  background: rgba(245, 240, 230, 0.72);
  color: #7b8f6a;
  font-size: 2.3rem;
}

.profile-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 13px 16px;
  background: #3f3528;
  color: #fffaf0;
  font-weight: 900;
  text-decoration: none;
}

.profile-action.soft {
  justify-content: space-between;
  border: 1px solid rgba(75, 62, 45, 0.12);
  background: rgba(238, 228, 212, 0.8);
  color: #4b3e2d;
}

.profile-action b {
  font-size: 1.45rem;
  line-height: 1;
}

.profile-stats-grid {
  display: grid;
  /* Se acomodan solos: con palabras largas (Experiencias, Puntos) cuatro
     columnas fijas se encimaban en pantallas angostas. */
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px 8px;
}

.profile-stats-grid span {
  display: grid;
  gap: 6px;
  justify-items: center;
  border-left: 1px solid rgba(75, 62, 45, 0.1);
  color: #4b3e2d;
  text-align: center;
}

.profile-stats-grid span:first-child {
  border-left: 0;
}

.profile-stats-grid i {
  color: #7b8f6a;
  font-size: 1.5rem;
  font-style: normal;
}

.profile-stats-grid strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.profile-stats-grid small {
  font-size: 0.68rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.profile-stats-grid small {
  color: rgba(75, 62, 45, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
}

.next-visit-profile {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.next-visit-profile img {
  width: 100%;
  height: 100%;
  min-height: 146px;
  border-radius: 16px;
  object-fit: cover;
}

.next-visit-profile div {
  display: grid;
  gap: 7px;
  align-content: center;
}

.next-visit-profile p {
  font-size: 0.9rem;
}

.profile-journey-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.profile-journey-row > span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(123, 143, 106, 0.3);
  border-radius: 999px;
  background: rgba(245, 240, 230, 0.62);
  font-size: 2rem;
}

.profile-journey-row strong {
  color: #4b3e2d;
}

.profile-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(75, 62, 45, 0.12);
}

.profile-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7b8f6a;
}

.memory-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.memory-row > span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 72px;
  border-radius: 16px;
  background: rgba(238, 228, 212, 0.86);
  color: #7b8f6a;
  font-size: 1.8rem;
}

.memory-row strong {
  color: #4b3e2d;
}

.benefits-profile-card a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #4b3e2d;
  text-decoration: none;
}

.benefits-profile-card a span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(123, 143, 106, 0.14);
}

.clear-profile-history {
  justify-self: center;
  opacity: 0.74;
}

.points-note {
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(123, 143, 106, 0.14);
  color: #4b3e2d;
  font-weight: 800;
}

@media (min-width: 0px) {
  body.mobile-view-mis .reserve-panel {
    background:
      radial-gradient(circle at 94% 8%, rgba(123, 143, 106, 0.16), transparent 28%),
      linear-gradient(180deg, #f5f0e6 0%, #e4dcca 100%);
  }

  body.mobile-view-mis .client-reservations {
    gap: 18px;
    padding: 18px 14px 112px;
  }

  .mi-espacio-card {
    border-radius: 22px;
    padding: 17px;
  }

  .profile-stats-grid {
    /* Antes eran 5 columnas de 54px con desplazamiento lateral: con palabras
       como "Experiencias" se encimaban. Ahora bajan a la fila siguiente. */
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    overflow-x: visible;
  }

  .next-visit-profile {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .profile-journey-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }
}


/* SABABA House: asistencias y puntos */
.attendance-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
}

.attendance-event-form {
  align-content: start;
}

.attendance-event-list,
.attendance-table {
  display: grid;
  gap: 10px;
}

.attendance-event-card,
.attendance-person-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(81, 71, 55, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.72);
}

.attendance-event-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.attendance-event-card.active {
  border-color: rgba(82, 111, 69, 0.42);
  background: rgba(231, 236, 217, 0.62);
}

.attendance-event-card strong,
.attendance-person-card strong,
.attendance-award-box strong {
  color: var(--coffee);
}

.attendance-event-card span,
.attendance-event-card small,
.attendance-person-card span,
.attendance-person-card small,
.attendance-award-box span {
  color: var(--muted);
  line-height: 1.4;
}

.attendance-event-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--coffee);
  color: #fffaf0;
  font-weight: 900;
}

.attendance-detail-card {
  margin-top: 14px;
}

.attendance-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
}

.attendance-detail-head h3 {
  margin: 0;
  color: var(--coffee);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.96;
}

.attendance-qr-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(81, 71, 55, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(245, 240, 230, 0.72);
}

.attendance-qr-box img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
}

.attendance-award-box {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 110px minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(82, 111, 69, 0.12), rgba(223, 189, 105, 0.13));
}

.attendance-person-card {
  grid-template-columns: minmax(0, 1fr) 140px minmax(160px, 0.5fr);
  align-items: center;
}

.attendance-person-card select,
.attendance-person-card input,
.attendance-award-box input {
  border-radius: 10px;
}

@media (max-width: 980px) {
  .attendance-admin-layout,
  .attendance-detail-head,
  .attendance-award-box,
  .attendance-person-card {
    grid-template-columns: 1fr;
  }

  .attendance-qr-box {
    justify-items: start;
  }
}


/* ===== Botón flotante para instalar la app (PWA) ===== */
.install-app-button {
  position: fixed;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: none;
  border-radius: 999px;
  background: #2f4138;
  color: #f5f0e6;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(31, 42, 36, 0.32);
  animation: install-pop 0.35s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.install-app-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 42, 36, 0.4);
}
.install-app-button:active {
  transform: translateY(0);
}
.install-app-button img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f0e6;
  object-fit: cover;
  padding: 3px;
}
@keyframes install-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* En pantallas grandes el botón se sienta abajo (no hay nav inferior). */
@media (min-width: 641px) {
  .install-app-button {
    bottom: 24px;
    right: 24px;
  }
}

/* ===== Hoja de ayuda para instalar en iPhone ===== */
.ios-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 26, 22, 0.55);
  backdrop-filter: blur(4px);
}
.ios-install-card {
  width: 100%;
  max-width: 340px;
  background: #f5f0e6;
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.ios-install-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: block;
}
.ios-install-card h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 6px;
  color: #2f4138;
}
.ios-install-card p {
  margin: 0 0 12px;
  color: #4a4a42;
  font-size: 0.95rem;
}
.ios-install-card ol {
  text-align: left;
  margin: 0 0 18px;
  padding-left: 20px;
  color: #4a4a42;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ios-install-card .primary-button {
  width: 100%;
}

/* ===== Vista móvil centrada (columna tipo teléfono) en compu y tablet ===== */
@media (min-width: 641px) {
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(199, 169, 107, 0.22), transparent 40%),
      linear-gradient(180deg, #d9cfb6 0%, #c7bca0 100%);
    background-attachment: fixed;
  }

  .mobile-home,
  #experiencias,
  #circle,
  #mis-expediciones,
  #reset,
  .app-shell,
  .experience-detail-view {
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 0 50px rgba(47, 65, 56, 0.16);
    min-height: 100vh;
  }

  /* La reserva en una sola columna también en pantallas grandes */
  body.mobile-view-reservar .app-shell,
  body.mobile-view-mis .app-shell {
    grid-template-columns: 1fr !important;
  }

  /* Barra de navegación inferior centrada bajo la columna */
  .mobile-app-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(456px, calc(100vw - 24px)) !important;
  }

  /* El home inmersivo (genially) se ata a la columna, no a la ventana */
  .mobile-immersive-home {
    margin-inline: 0 !important;
  }
  /* Altura automática según la proporción 9:16 del genially: sin barras negras */
  .mobile-genially-frame {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
  }
}

/* Respetar el atributo hidden (los display: flex/inline-flex lo anulaban) */
.install-app-button[hidden],
.ios-install-sheet[hidden] {
  display: none !important;
}
