:root {
  --bg-alabaster: #faf8f5;
  --bg-sidebar: #f3eee6;
  --bg-card: #ffffff;
  --bg-sand-soft: #f5efe6;
  --border-stone: #ebe5dc;
  --border-strong: #ded5c7;
  --bronze: #8b734b;
  --bronze-dark: #705b39;
  --bronze-light: #f4ece0;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-muted: #8a837a;
  --sage-bg: #e6f2ea;
  --sage-fg: #2b6b4a;
  --blue-bg: #e8eef6;
  --blue-fg: #385888;
  --amber-bg: #f6ede0;
  --amber-fg: #8c6734;
  --rose-bg: #fae9e8;
  --rose-fg: #9f3a38;
  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 2px 12px rgba(28, 25, 23, 0.035);
  --shadow-modal: 0 24px 60px rgba(28, 25, 23, 0.2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-alabaster);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font-family: var(--font-sans);
}

/* ==================== TOPBAR ==================== */
.topbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-width: 205px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--bronze);
  flex-shrink: 0;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.4px;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 2px;
}

.topbar-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  border-left: 1px solid var(--border-stone);
  padding-left: 20px;
  display: none;
}

@media (min-width: 1120px) {
  .topbar-tagline { display: block; }
}

.topbar-search {
  position: relative;
  flex: 1;
  max-width: 370px;
}

.topbar-search input {
  width: 100%;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-stone);
  border-radius: 10px;
  padding: 9px 14px 9px 36px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.topbar-search input:focus { border-color: var(--bronze); background: #fff; }

.topbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  max-height: 300px;
  overflow-y: auto;
  z-index: 80;
}

.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-stone);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-item:hover { background: var(--bg-alabaster); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.profile-pill:hover { background: var(--bg-alabaster); border-color: var(--border-stone); }

.profile-pill img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 26%;
  border: 1px solid var(--border-stone);
}

.profile-pill strong { display: block; font-size: 13px; line-height: 1.2; }
.profile-pill small { display: block; font-size: 11px; color: var(--ink-muted); }

/* ==================== APP SHELL (SIDEBAR + MAIN) ==================== */
.crm-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

@media (max-width: 920px) {
  .crm-shell { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-stone);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 12px 16px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.nav-btn:hover { background: rgba(139, 115, 75, 0.08); color: var(--ink); }

.nav-btn.active {
  background: #e9e0d2;
  color: var(--ink);
  font-weight: 600;
  border-left: 3px solid var(--bronze);
}

.nav-icon {
  width: 18px;
  text-align: center;
  color: var(--bronze);
  font-size: 15px;
}

.sidebar-editorial {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(243,238,230,0.18) 0%, rgba(235,226,213,0.95) 68%),
              url('media/salon-sidebar.jpg') center/cover;
  padding: 96px 16px 16px;
  text-align: left;
}

.sidebar-editorial blockquote {
  margin: 0 0 14px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
}

.sidebar-editorial .mini-brand {
  border-top: 1px solid var(--border-strong);
  padding-top: 10px;
  text-align: center;
}

.sidebar-editorial .mini-brand strong {
  font-family: var(--font-serif);
  font-size: 17px;
  display: block;
}

.sidebar-editorial .mini-brand span {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-muted);
}

/* ==================== MAIN CONTENT & HERO BANNER ==================== */
.crm-main {
  padding: 20px 26px 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.hero-strip {
  border-radius: 14px;
  border: 1px solid var(--border-stone);
  padding: 22px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(90deg, #faf8f5 0%, rgba(250,248,245,0.94) 44%, rgba(250,248,245,0.72) 74%, rgba(250,248,245,0.92) 100%),
    url('media/terraza-banner.jpg') center/cover;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 4px;
}

.hero-strip h1 {
  font-size: 40px;
  line-height: 1.06;
  margin-bottom: 4px;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.hero-quote {
  max-width: 340px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-soft);
  border-left: 2px solid var(--bronze);
  padding-left: 16px;
}

@media (max-width: 860px) {
  .hero-quote { display: none; }
}

/* ==================== CARDS, KPIS & GRIDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-stone);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 1150px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border-stone);
  border-radius: 13px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s;
}

.kpi-card:hover { transform: translateY(-2px); border-color: var(--bronze); }

.kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 8px;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bronze-light);
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.kpi-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.kpi-delta { font-size: 11.5px; color: var(--sage-fg); font-weight: 600; }
.kpi-delta span { color: var(--ink-muted); font-weight: 400; }

.dash-mid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dash-bot-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  gap: 16px;
}

@media (max-width: 1100px) {
  .dash-mid-grid, .dash-bot-grid { grid-template-columns: 1fr; }
}

/* ==================== LIST ROWS & AVATARS ==================== */
.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-bottom: 1px solid #f2ede4;
  cursor: pointer;
  border-radius: 8px;
}

.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--bg-alabaster); }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 26%;
  border: 1px solid var(--border-stone);
  flex-shrink: 0;
}

.avatar-pair {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.avatar-pair img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.avatar-pair img:nth-child(2) { margin-left: -10px; }

/* ==================== PILLS & BUTTONS ==================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pill--sage { background: var(--sage-bg); color: var(--sage-fg); }
.pill--amber { background: var(--amber-bg); color: var(--amber-fg); }
.pill--blue { background: var(--blue-bg); color: var(--blue-fg); }
.pill--rose { background: var(--rose-bg); color: var(--rose-fg); }
.pill--req { background: #2c2520; color: #f6efe4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.14s ease;
}

.btn--bronze {
  background: var(--bronze);
  color: #ffffff;
}
.btn--bronze:hover { background: var(--bronze-dark); }

.btn--outline {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--bronze); background: var(--bg-alabaster); }

.btn--ghost {
  background: transparent;
  color: var(--bronze);
  padding: 5px 9px;
}
.btn--ghost:hover { background: var(--bronze-light); }

.btn--danger {
  background: #fff;
  border-color: #e6b8b7;
  color: var(--rose-fg);
}
.btn--danger:hover { background: var(--rose-bg); }

.btn--sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }

/* ==================== FICHA DE PERSONA 360 & 9 BLOQUES DOBLE CAPA ==================== */
.ficha-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .ficha-top-grid { grid-template-columns: 1fr; }
}

.ficha-profile-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ficha-photo {
  width: 146px;
  height: 164px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-stone);
  flex-shrink: 0;
}

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

.quick-fact {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-alabaster);
  border: 1px solid #efe9df;
}

.quick-fact strong { display: block; font-size: 14px; color: var(--ink); }
.quick-fact small { color: var(--ink-muted); font-size: 11.5px; }

.blocks-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.block-tab {
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-stone);
  background: #fff;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.block-tab.active {
  background: var(--bronze);
  color: #fff;
  border-color: var(--bronze);
}

.dual-layer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

@media (max-width: 860px) {
  .dual-layer-grid { grid-template-columns: 1fr; }
}

.literal-box {
  background: var(--bg-sand-soft);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--bronze);
  border-radius: 11px;
  padding: 16px;
}

.literal-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bronze-dark);
  margin-bottom: 6px;
  display: block;
}

.structured-box {
  background: #ffffff;
  border: 1px solid var(--border-stone);
  border-radius: 11px;
  padding: 16px;
}

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

.kv-item small { display: block; color: var(--ink-muted); font-size: 11.5px; }
.kv-item strong { display: block; color: var(--ink); font-size: 13.5px; margin-top: 2px; }

/* ==================== COMPATIBILIDADES & EVALUACIÓN ==================== */
.compat-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1020px) {
  .compat-layout { grid-template-columns: 1fr; }
}

.compat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-stone);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.14s;
}

.compat-row.selected, .compat-row:hover {
  border-color: var(--bronze);
  box-shadow: 0 4px 16px rgba(139, 115, 75, 0.09);
}

.score-serif {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--bronze-dark);
  line-height: 1;
}

.eval-versus {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 920px) {
  .eval-versus { grid-template-columns: 1fr; text-align: center; }
}

.gauge-circle {
  width: 164px;
  height: 164px;
  margin: 0 auto;
  border-radius: 50%;
  border: 9px solid #e7dfd2;
  border-top-color: var(--bronze);
  border-right-color: var(--bronze);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* ==================== 7-STAGE STEPPER (PRESENTACIONES) ==================== */
.stepper-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--border-stone);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.step-node {
  text-align: center;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 0.14s;
}

.step-node:hover { background: var(--bg-alabaster); }

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--ink-muted);
}

.step-node.done .step-dot {
  background: var(--bronze);
  border-color: var(--bronze);
  color: #fff;
}

.step-node.current .step-dot {
  background: var(--bronze-light);
  border: 2px solid var(--bronze);
  color: var(--bronze-dark);
}

.step-node strong { display: block; font-size: 12px; color: var(--ink); }
.step-node small { display: block; font-size: 11px; color: var(--ink-muted); }

/* ==================== FORMS & MODALS ==================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-field label .req { color: #b94a48; }

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(139, 115, 75, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.48);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-stone);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 26px;
  box-shadow: var(--shadow-modal);
}

/* ==================== PUBLIC SEO WEBSITE ==================== */
.pub-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pub-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.pub-link.active, .pub-link:hover {
  color: var(--ink);
  border-bottom-color: var(--bronze);
}

.pub-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.intake-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 920px) {
  .intake-layout { grid-template-columns: 1fr; }
  .pub-nav { flex-wrap: wrap; gap: 12px; }
}

.step-circle-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bronze);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-banner {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #1c1917;
  color: #faf8f5;
  border-left: 4px solid var(--bronze);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-modal);
  font-size: 13.5px;
  z-index: 200;
}

/* ==================== CAPA EDITORIAL DE LA WEB PÚBLICA ==================== */
.ed-body {
  background: #f8f6f1;
  color: #25332d;
}

.ed-wrap {
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
}

@media (max-width: 760px) {
  .ed-wrap { width: calc(100% - 32px); }
}

.ed-header {
  background: #f8f6f1;
  border-bottom: 1px solid #dfdacf;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding-block: 10px;
}

.ed-wordmark {
  font-family: var(--font-serif);
  font-size: 25px;
  letter-spacing: 0.12em;
  color: #263731;
  line-height: 1;
  display: block;
}

.ed-descriptor {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #896835;
  margin-top: 4px;
  font-weight: 600;
}

.ed-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ed-nav a {
  font-size: 13.5px;
  color: #25332d;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.ed-nav a:hover, .ed-nav a.active {
  color: #896835;
  border-bottom-color: #896835;
}

@media (max-width: 980px) {
  .ed-nav { display: none; }
}

.ed-utilities {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.language-picker {
  position: relative;
  z-index: 60;
}

.language-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #dfdacf;
  background: #fffefa;
  list-style: none;
  cursor: pointer;
  color: #5b4930;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.language-picker summary::-webkit-details-marker { display: none; }

.language-options {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(340px, calc(100vw - 32px));
  max-height: 400px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #fffefa;
  border: 1px solid #dfdacf;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(38, 47, 40, 0.14);
}

.language-options button {
  width: 100%;
  text-align: start;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: #25332d;
  cursor: pointer;
}

.language-options button:hover,
.language-options button[aria-current="true"] {
  background: #f2eee5;
  color: #806035;
  font-weight: 600;
}

/* Split Video Hero (44% Copy / 56% Video) */
.ed-home-opening {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 600px;
  background: #f2eee6;
  border-bottom: 1px solid #dfdacf;
}

.ed-opening-copy {
  align-self: center;
  padding: 58px clamp(26px, 5vw, 82px);
}

.ed-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: #896835;
  margin-bottom: 14px;
}

.ed-opening-copy h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 4.9vw, 74px);
  line-height: 1.01;
  letter-spacing: -0.03em;
  color: #222e29;
}

.ed-opening-copy h1 em {
  font-weight: 400;
  font-style: italic;
  color: #826339;
}

.ed-opening-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  color: #545047;
  max-width: 42ch;
  margin: 22px 0 26px;
}

.ed-opening-media {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #e5decfe0;
}

.ed-opening-media video,
.ed-opening-media img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}

.ed-media-caption {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 18px;
  background: rgba(248, 246, 241, 0.86);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #3f3b34;
}

@media (max-width: 880px) {
  .ed-home-opening { grid-template-columns: 1fr; min-height: 0; }
  .ed-opening-media video, .ed-opening-media img { min-height: 330px; max-height: 400px; }
}

.ed-btn-primary {
  background: #263731;
  border: 1px solid #263731;
  color: #fbf5e9;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ed-btn-primary:hover { background: #364d44; }

.ed-btn-gold {
  background: #826339;
  border: 1px solid #826339;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ed-btn-gold:hover { background: #6d522d; }

.ed-btn-secondary {
  background: transparent;
  border: 1px solid #9e8e73;
  color: #25332d;
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ed-btn-secondary:hover { background: #eee8dc; }

/* Story Ledger */
.ed-ledger {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 36px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid #d9cbb7;
}

.ed-ledger h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  color: #25332d;
}

.ed-ledger dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}

.ed-ledger dl div {
  border-inline-start: 1px solid #d5c4ac;
  padding-inline-start: 18px;
}

.ed-ledger dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  color: #88673d;
}

.ed-ledger dt {
  margin-top: 6px;
  font-size: 13px;
  color: #564c41;
}

/* Editorial Sections */
.ed-section {
  padding-block: 76px;
}

.ed-section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.ed-serif-p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  color: #555048;
  max-width: 66ch;
}

.ed-method-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.ed-quote-box {
  margin: 22px 0;
  padding: 18px 22px;
  border-inline-start: 2.5px solid #a48356;
  background: #ede4d6;
  color: #554531;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
}

.ed-calm-photo {
  margin: 22px 0 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dfdacf;
}

.ed-calm-photo img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.ed-calm-photo figcaption {
  padding: 10px 14px;
  background: #f2eee5;
  font-size: 12px;
  color: #625a4e;
  font-style: italic;
}

.ed-chapters details {
  border-top: 1px solid #b9a98e;
  padding: 16px 0;
}
.ed-chapters details:last-child { border-bottom: 1px solid #b9a98e; }

.ed-chapters summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ed-chapters summary::-webkit-details-marker { display: none; }

.ed-chapters .idx {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: #8d6c40;
}

.ed-chapters summary strong {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  color: #25332d;
}

.ed-chapters details p {
  margin: 10px 0 0 34px;
  font-size: 15px;
  line-height: 1.65;
  color: #575249;
}

/* Deep Cypress Green Concierge Section ("Dos agendas. Una mesa.") */
.ed-concierge {
  background: #263731;
  color: #fbf5e9;
  padding-block: 82px;
}

.ed-concierge .ed-eyebrow { color: #e3c597; }
.ed-concierge h2 { color: #fbf5e9; font-size: clamp(44px, 6vw, 80px); line-height: 0.98; }

.ed-concierge-top {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 34px;
}

.ed-concierge-body-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.ed-scenario-stack {
  display: grid;
  gap: 16px;
}

.ed-scenario-card {
  padding: 24px 26px;
  border: 1px solid rgba(227, 197, 151, 0.34);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 6px;
}

.ed-scenario-badge {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e3c597;
  margin-bottom: 8px;
}

.ed-scenario-card h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  color: #fbf5e9;
  margin-bottom: 4px;
}

.ed-scenario-dest {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: #e3c597;
  margin: 0 0 10px;
}

.ed-scenario-card p:last-child {
  margin: 0;
  color: #efe7d6;
  font-size: 14.5px;
  line-height: 1.65;
}

.ed-concierge-photo {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(227, 197, 151, 0.34);
  display: flex;
  flex-direction: column;
}

.ed-concierge-photo img {
  width: 100%;
  flex: 1;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.ed-concierge-photo figcaption {
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.24);
  color: #e3dac8;
  font-size: 12px;
  font-style: italic;
}

.ed-fee-details {
  margin-top: 26px;
  border-top: 1px solid rgba(227, 197, 151, 0.34);
  padding-top: 16px;
}

.ed-fee-details summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 22px;
  color: #e3c597;
}

.ed-fee-details p {
  margin: 10px 0 0;
  color: #efe7d6;
  max-width: 78ch;
  line-height: 1.65;
}

/* Global Active Presence Band */
.ed-presence {
  background: #e9e2d6;
  padding-block: 64px;
  border-bottom: 1px solid #d8ccb8;
}

.ed-presence-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.ed-regions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid #cbbda7;
  padding-top: 24px;
}

.ed-region-col h3 {
  font-size: 11.5px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #826339;
  font-weight: 700;
  margin-bottom: 12px;
}

.ed-region-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-region-col li {
  font-family: var(--font-serif);
  font-size: 19px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(185, 169, 142, 0.45);
  color: #25332d;
}

/* Team Section */
.ed-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 30px;
}

.ed-team-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: center;
  background: #fffefa;
  border: 1px solid #dfdacf;
  border-radius: 8px;
  padding: 22px;
}

.ed-team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 26%;
  border-radius: 6px;
}

/* Privacy + FAQ */
.ed-privacy {
  background: #eee8dd;
  border-block: 1px solid #dfd6c5;
  padding-block: 72px;
}

.ed-pillars-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 36px;
}

.ed-pillar {
  background: #faf7f0;
  border: 1px solid #d9cbb7;
  padding: 22px;
  border-radius: 6px;
}

.ed-pillar span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: #88673d;
}

.ed-pillar h3 {
  font-size: 24px;
  margin: 6px 0 8px;
}

/* Private vs Circle Dual Cards */
.ed-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.ed-service-card {
  border: 1px solid #dfdacf;
  background: #fffefa;
  padding: 34px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ed-service-card.featured {
  border-color: #896835;
  box-shadow: 0 14px 38px rgba(38, 55, 49, 0.07);
}

.ed-service-card h3 {
  font-size: 38px;
  color: #25332d;
}

.ed-service-card ul {
  margin: 4px 0 12px;
  padding-inline-start: 18px;
  color: #555048;
  font-size: 14px;
  line-height: 1.7;
}

.ed-service-card .cta-wrap { margin-top: auto; }

.ed-footer {
  background: #263731;
  color: #fbf5e9;
  padding: 42px 0;
}

@media (max-width: 920px) {
  .ed-ledger, .ed-method-grid, .ed-concierge-top, .ed-concierge-body-grid,
  .ed-presence-head, .ed-pillars-3, .ed-services-grid {
    grid-template-columns: 1fr;
  }
  .ed-regions-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-team-card { grid-template-columns: 1fr; }
}
/* >>> MARCA-LOGOTIPO v1 (añadido por scripts/08_marca_theone_logotipo.py) >>> */
/* Marcas cuyo logotipo ya contiene el nombre (wordmark: true en brands.js, p. ej. The One):
   el logotipo se muestra ancho, con el descriptor centrado debajo, y el nombre en texto
   se conserva solo para lectores de pantalla (no se repite a la vista). */
.brand-lockup--wordmark {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: auto;   /* nunca más estrecho que el propio logotipo */
}
.brand-lockup--wordmark .brand-mark {
  width: 138px;
  height: auto;
  color: var(--ink);
}
.brand-lockup--wordmark .brand-mark svg { height: auto; }
.brand-lockup--wordmark .brand-title,
.brand-lockup--wordmark .ed-wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.brand-lockup--wordmark .brand-sub,
.brand-lockup--wordmark .ed-descriptor {
  margin-top: 0;
  font-size: 8.5px;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
}

/* Web pública: el ancho va con !important porque el HTML trae 38px en línea */
.ed-header .brand-lockup--wordmark .brand-mark {
  width: 160px !important;
  height: auto !important;
  color: #263731;
}

/* CRM: si la marca no tiene lema propio (o repite el descriptor), no se deja el hueco */
.topbar-tagline:empty { display: none; }

/* Pie de la web pública: logotipo en lugar del nombre en texto */
.foot-wordmark svg { display: block; width: 176px; max-width: 100%; height: auto; margin-bottom: 7px; }

/* Cabecera pública (todas las marcas): el bloque de marca parte de su ancho mínimo y
   solo crece si sobra sitio. Así el menú conserva su ancho completo y no se parte en
   dos filas mientras quepa, y en móvil lo primero que se ajusta es el descriptor. */
.ed-header .brand-lockup { width: min-content; flex: 1 1 auto; max-width: max-content; }
@media (min-width: 1200px) {
  .ed-wordmark { white-space: nowrap; }
}

/* Si aun así el menú no cabe en una línea junto al logotipo (ventanas de 981 a ~1170 px,
   idiomas con textos largos), public.js añade .ed-header--stacked: el menú pasa a una
   línea propia y centrada, debajo del logotipo. Así nunca se reparte en dos filas. */
.ed-header-inner.ed-header--stacked { flex-wrap: wrap; row-gap: 2px; padding-block: 8px 7px; }
.ed-header--stacked .ed-nav { order: 3; flex: 0 0 100%; justify-content: center; }

/* Móvil: la cabecera no debe salirse de la pantalla; si falta sitio, el botón pasa a dos líneas */
@media (max-width: 560px) {
  .ed-header-inner { gap: 10px; }
  .ed-utilities { flex-shrink: 1; gap: 6px; }
  #pub-top-cta { white-space: normal; line-height: 1.15; min-width: 92px; padding: 7px 10px !important; font-size: 12px !important; }
  .ed-header .brand-lockup--wordmark .brand-mark { width: 124px !important; }
  .ed-header .brand-lockup--wordmark .ed-descriptor { font-size: 7.5px; letter-spacing: 0.16em; }
}
/* Pantallas muy estrechas (menos de 360 px): logotipo algo más pequeño */
@media (max-width: 359px) {
  .ed-header .brand-lockup--wordmark .brand-mark { width: 100px !important; }
  .ed-header .brand-lockup--wordmark .ed-descriptor { font-size: 7px; letter-spacing: 0.1em; }
}
/* <<< MARCA-LOGOTIPO v1 <<< */
