/* Hexastra — Modo fácil y pulido visual compartido */

body.mode-easy .toolbar,
body.mode-easy .buscador,
body.mode-easy .workspace {
  display: none !important;
}

body.mode-advanced #easy-app {
  display: none !important;
}

body.mode-easy .app {
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

body.mode-easy .header .subtitle {
  max-width: 40rem;
}

/* Toggle de modo en el header */
.mode-switch {
  display: inline-flex;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  gap: 0.15rem;
}
.mode-switch [role="tab"] {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
}
.mode-switch [role="tab"]:hover {
  color: var(--text);
  border-color: transparent;
}
.mode-switch [role="tab"].is-active,
.mode-switch [role="tab"][aria-selected="true"] {
  background: rgba(230, 192, 123, 0.16);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(230, 192, 123, 0.35);
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
.mode-switch [role="tab"]:focus-visible,
.easy-card:focus-visible,
.easy-result:focus-visible,
.easy-btn:focus-visible,
.easy-link:focus-visible,
.easy-step-btn:focus-visible,
.easy-map-btn:focus-visible,
.easy-scope-card:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#easy-app {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.easy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.easy-steps {
  padding: 0.7rem 1.2rem 0.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.easy-stepper {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  max-width: 54rem;
}

.easy-step {
  flex: 0 1 auto;
  min-width: 0;
}

.easy-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}
.easy-step-btn:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--text);
}
.easy-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.easy-step-num {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  flex: none;
}
.easy-step.is-current .easy-step-btn {
  color: var(--text);
  background: rgba(230, 192, 123, 0.08);
  border-color: rgba(230, 192, 123, 0.3);
}
.easy-step.is-current .easy-step-num {
  background: var(--gold);
  color: #1a140c;
  border-color: var(--gold);
}
.easy-step.is-done .easy-step-num {
  background: rgba(111, 191, 154, 0.2);
  color: var(--earth);
  border-color: rgba(111, 191, 154, 0.4);
}
.easy-step-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.easy-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 1fr);
  min-height: 0;
  flex: 1;
}

.easy-main {
  overflow: auto;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.easy-pane {
  padding: 1.1rem 1.25rem 1.8rem;
  max-width: 46rem;
}

.easy-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.easy-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0.25rem 0 0.4rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  line-height: 1.2;
}

.easy-lead, .easy-lead-mini {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 40rem;
}
.easy-lead-mini { font-size: 0.86rem; margin-bottom: 0.4rem; }

.easy-body-toggle {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  gap: 0.15rem;
  margin: 0 0 1rem;
}
.easy-body-toggle button {
  min-width: 7.5rem;
  font-weight: 600;
}
.easy-body-toggle button.is-active,
.easy-body-toggle button[aria-selected="true"] {
  background: rgba(224, 122, 61, 0.18);
  border-color: var(--mars);
  color: var(--mars-2);
}

.easy-cards,
.easy-presets {
  display: grid;
  gap: 0.75rem;
}

.easy-cards {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .easy-cards { grid-template-columns: 1fr 1fr; }
}

.easy-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.easy-card:hover {
  border-color: rgba(230, 192, 123, 0.45);
  color: var(--text);
}
.easy-card.is-selected {
  border-color: var(--mars);
  box-shadow: 0 0 0 1px var(--mars), 0 10px 28px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, rgba(224, 122, 61, 0.12), var(--panel-2) 42%);
}

.easy-card-visual {
  height: 92px;
  position: relative;
  overflow: hidden;
}
.easy-visual-moon {
  background:
    radial-gradient(circle at 30% 40%, #d9d4cc 0 14px, transparent 15px),
    radial-gradient(circle at 62% 58%, #b9b3aa 0 9px, transparent 10px),
    radial-gradient(circle at 78% 28%, #cfc9c0 0 6px, transparent 7px),
    linear-gradient(160deg, #3a3d45, #16181d 55%, #2a2d33);
}
.easy-visual-mars {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 200, 140, 0.35), transparent 40%),
    radial-gradient(circle at 20% 80%, #9a3d24 0 16px, transparent 17px),
    linear-gradient(165deg, #c56a3a, #6b2a18 58%, #2a120c);
}
.easy-card-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--panel-2));
}

.easy-card-body {
  padding: 0.7rem 0.85rem 0.9rem;
}
.easy-card-body h3,
.easy-card-preset h3,
.easy-result-body h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  margin: 0 0 0.15rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 600;
}
.easy-card-name {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.75rem;
}
.easy-card-body p, .easy-card-preset p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.easy-card-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.35rem; }

.easy-chip {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 600;
}
.easy-chip-warn {
  color: #e3c48a;
  border-color: rgba(201, 164, 92, 0.45);
  background: rgba(201, 164, 92, 0.1);
}

.easy-card-preset {
  padding: 0.95rem 1rem;
}
.easy-card-preset h3 { margin-bottom: 0.3rem; }

.easy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(22, 28, 38, 0), var(--panel) 28%);
  padding: 0.85rem 0 0.15rem;
  z-index: 6;
}
.easy-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
}
.easy-btn:hover { border-color: var(--gold); color: var(--gold); }
.easy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
}
.easy-btn-primary {
  background: var(--gold);
  color: #1a140c;
  border-color: var(--gold);
}
.easy-btn-primary:hover {
  background: #f0d39a;
  color: #1a140c;
  border-color: #f0d39a;
}
.easy-btn-primary:disabled {
  background: #5a5244;
  border-color: #5a5244;
  color: #1a140c;
  opacity: 0.7;
}

.easy-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  border-radius: 4px;
}
.easy-link:hover { color: var(--mars-2); }

.easy-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.easy-scope-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  cursor: pointer;
  color: var(--text);
}
.easy-scope-card span { color: var(--muted); font-size: 0.8rem; }
.easy-scope-card.is-selected {
  border-color: var(--mars);
  box-shadow: 0 0 0 1px var(--mars);
}
.easy-scope-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.easy-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}
.easy-filters.is-disabled { opacity: 0.5; }
.easy-filters.is-hidden { display: none; }
.easy-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.easy-field select {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  width: 100%;
}
.easy-field select:disabled {
  cursor: not-allowed;
}

.easy-status {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}
.easy-status-error {
  color: #f0c2c2;
  border-color: rgba(209, 107, 107, 0.4);
  background: rgba(209, 107, 107, 0.1);
}

.easy-results-head {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.easy-results-head h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}

.easy-rank {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.easy-result {
  width: 100%;
  display: flex;
  gap: 0.85rem;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: inherit;
  padding: 0.8rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.easy-result:hover { border-color: rgba(230, 192, 123, 0.45); color: inherit; }
.easy-result.is-selected {
  border-color: var(--mars);
  box-shadow: 0 0 0 1px var(--mars);
}

.easy-score {
  flex: none;
  width: 5.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(224, 122, 61, 0.18), rgba(230, 192, 123, 0.06));
  border-radius: 14px;
  padding: 0.35rem 0.2rem;
}
.easy-score-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--mars-2);
  font-variant-numeric: tabular-nums;
}
.easy-score-den {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.easy-result-rank {
  margin: 0 0 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.easy-result-body h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.easy-why, .easy-breaks {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}
.easy-why strong { color: var(--earth); }
.easy-breaks strong { color: #e3c48a; }
.easy-missing { margin: 0.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.easy-note {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.easy-map-wrap {
  position: relative;
  min-height: 280px;
  height: 100%;
  background: #0a0c10;
}
.easy-map {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}
.easy-map-label {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.86), transparent);
  pointer-events: none;
}
.easy-map-label h2 {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 1px 8px #000;
  font-weight: 600;
}
.easy-map-tools { display: flex; gap: 0.3rem; pointer-events: auto; }
.easy-map-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(12, 15, 20, 0.8);
}
.easy-map-btn.is-active {
  background: rgba(224, 122, 61, 0.22);
  border-color: var(--mars);
  color: var(--mars-2);
}
.easy-map-hint {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.6rem;
  z-index: 500;
  margin: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: rgba(12, 15, 20, 0.78);
  color: var(--text);
  font-size: 0.75rem;
  pointer-events: none;
  max-width: 28rem;
}

.easy-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a140c;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}
.easy-pin.is-active {
  background: var(--mars);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(224, 122, 61, 0.55);
}

.easy-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.easy-modal-bg.is-open { display: flex; }
.easy-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 1.2rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
}
.easy-modal h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 0 1.5rem 0.7rem 0;
}
.easy-close { float: right; }
.easy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.8rem 0;
}
.easy-table th, .easy-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.easy-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .easy-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 55vh;
  }
  .easy-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .easy-map-wrap { min-height: 55vh; }
  .easy-scope, .easy-filters { grid-template-columns: 1fr; }
  .easy-title { font-size: 1.4rem; }
  .easy-result { flex-direction: column; }
  .easy-score { width: auto; flex-direction: row; gap: 0.35rem; justify-content: flex-start; padding: 0.35rem 0.6rem; }
  .easy-score-num { font-size: 1.45rem; }
  .easy-score-den { margin-top: 0; }
  body.mode-easy .header {
    flex-direction: column;
  }
  .header-actions { width: 100%; }
}

@media (max-width: 560px) {
  .easy-cards { grid-template-columns: 1fr; }
  .easy-pane { padding: 0.9rem 0.9rem 1.4rem; }
  .easy-steps { padding: 0.55rem 0.8rem 0.15rem; }
  .easy-step-label { font-size: 0.75rem; }
  body.mode-easy .header { padding-bottom: 0.7rem; }
  body.mode-easy .subtitle { font-size: 0.8rem; }
}


/* Que el zoom de Leaflet no tape el título del mapa (modo avanzado también). */
.map-label { padding-left: 3.5rem; }
a.btn { text-decoration: none; }


/* Lugares destacados */
.easy-featured {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0.65rem 1.2rem 0.8rem;
}
.easy-featured-head h2 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}
.easy-featured-head p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 58rem;
}
.easy-feat-group { margin-top: 0.35rem; }
.easy-feat-group h3 {
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.2rem 0 0.35rem;
}
.easy-feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.easy-feat-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: auto;
  text-align: left;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}
.easy-feat-chip:hover { border-color: var(--gold); color: var(--text); }
.easy-feat-chip.is-selected {
  border-color: var(--earth);
  box-shadow: 0 0 0 1px var(--earth);
  background: rgba(111, 191, 154, 0.12);
}
.easy-feat-chip.is-classic {
  border-color: rgba(224, 122, 61, 0.45);
}
.easy-feat-chip.is-pending {
  opacity: 0.72;
}
.easy-feat-panel {
  margin-top: 0.7rem;
}
.easy-feat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
  max-width: 58rem;
}
.easy-feat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
.easy-feat-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.easy-feat-meta { margin: 0.25rem 0 0.45rem; color: var(--muted); font-size: 0.82rem; }
.easy-feat-card > p { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.45; }
.easy-actions-inline {
  position: static;
  background: none;
  padding: 0.2rem 0 0;
  margin-top: 0.4rem;
}
.easy-pin-feat {
  width: 22px;
  height: 22px;
  background: var(--earth);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.easy-pin-feat.is-active {
  box-shadow: 0 0 0 4px rgba(111, 191, 154, 0.45);
}
.easy-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.7rem 0 0.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}
.easy-check input { accent-color: var(--earth); width: 1.05rem; height: 1.05rem; }
.easy-status-warn {
  color: #e3c48a;
  border-color: rgba(201, 164, 92, 0.4);
  background: rgba(201, 164, 92, 0.08);
}
.easy-rank-compact { margin-top: 0.5rem; }

@media (max-width: 560px) {
  .easy-featured { padding: 0.55rem 0.8rem 0.7rem; }
  .easy-feat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
  .easy-feat-chip { flex: 0 0 auto; }
}
