/* Atlas importado de World Atlas Web. Todas las reglas quedan dentro de su página. */
.atlas-page { padding: 34px 0 42px; }
.atlas-page-wrap { max-width: 1540px; padding-inline: clamp(16px, 2.5vw, 38px); }
.atlas-page-head { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 25px; }
.atlas-page-head h1 { font-size: clamp(2rem, 3.1vw, 2.65rem); margin-bottom: 8px; }
.atlas-page-head p { color: var(--muted); max-width: 70ch; margin: 0; }
.atlas-page-head .atlas-eyebrow { color: var(--gold); font-size: .875rem; font-weight: 600; letter-spacing: .12em; margin-bottom: 10px; }
.atlas-counts { display: flex; align-items: center; flex: none; gap: 0; margin: 0; }
.atlas-counts div { display: flex; flex-direction: column-reverse; padding: 0 24px; border-left: 1px solid var(--line); text-align: center; }
.atlas-counts dt { color: var(--muted); font-size: .875rem; }
.atlas-counts dd { margin: 0; font: 600 1.9rem/1.2 var(--f-title); color: var(--gold-2); }
.world-atlas { --atlas-border: #554166; --atlas-canvas: #e7d9bc; --atlas-route: #ffdf85; font: 1rem/1.5 var(--f-body); }
.world-atlas .atlas-shell { position: relative; min-width: 0; background: var(--bg-2); border: 1px solid var(--atlas-border); border-radius: 15px; box-shadow: 0 18px 55px #05020b55; }
.world-atlas .btn { position: relative; display: inline-flex; justify-content: center; align-items: center; flex: none; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--ink); font: 600 .9375rem/1.25 var(--f-body); cursor: pointer; box-shadow: none; text-shadow: none; white-space: nowrap; }
.world-atlas .btn:hover:not(:disabled) { color: var(--gold-2); border-color: var(--gold); background: #3d2c50; }
.world-atlas .btn:disabled { cursor: not-allowed; opacity: .45; }
.world-atlas button:focus-visible, .world-atlas [tabindex]:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.world-atlas .btn.on, .world-atlas .btn[aria-pressed="true"] { background: #60407c; border-color: #b68bd5; color: #fff4d8; }
.world-atlas .icon-btn { width: 38px; min-width: 38px; padding: 7px; font-size: 1.35rem; }
.world-atlas .icon-btn svg, .world-atlas .atlas-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.world-atlas .text-btn { color: var(--gold); background: transparent; border-color: transparent; padding-inline: 8px; }
.world-atlas .atlas-topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); border-radius: 15px 15px 0 0; background: linear-gradient(110deg, #2d1d3f, var(--panel)); }
.world-atlas .atlas-view-heading { display: flex; align-items: center; gap: 7px; flex: 1 0 auto; min-width: 0; }
.world-atlas #title { font: 600 1.05rem/1.4 var(--f-title); color: var(--gold-2); letter-spacing: .035em; margin: 0 8px; }
.world-atlas .atlas-tabs { display: flex; min-width: 0; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.world-atlas .tab { min-height: 36px; margin: 0; padding: 7px 12px; border-color: transparent; background: transparent; font-size: .875rem; }
.world-atlas .close-atlas { background: transparent; }
.world-atlas .atlas-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 14px 18px; }
.world-atlas .atlas-search { position: relative; flex: 1 1 260px; }
.world-atlas .atlas-search svg { position: absolute; left: 13px; top: 13px; color: var(--muted); pointer-events: none; }
.world-atlas #search { min-height: 45px; width: 100%; padding: 9px 15px 9px 42px; background: #120d1b; border: 1px solid var(--line); border-radius: 8px; font: 1rem var(--f-body); color: var(--ink); }
.world-atlas #search::placeholder { color: #ac9dbb; }
.world-atlas #search:focus { outline: 2px solid var(--purple-2); border-color: transparent; }
.world-atlas .atlas-quick-links { display: flex; align-items: center; gap: 9px; }
.world-atlas .atlas-quick-links > span { color: var(--muted); font-size: .875rem; }
.world-atlas .quick { display: flex; flex-wrap: wrap; gap: 5px; }
.world-atlas .quick .btn { background: transparent; font-size: .875rem; padding: 7px 10px; min-height: 37px; }
.world-atlas .list-toggle { color: var(--gold-2); border-color: #765d8a; }
.world-atlas .atlas-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: 0 18px; border: 1px solid var(--atlas-border); border-radius: 9px; overflow: hidden; background: var(--bg); }
.world-atlas .atlas-map-column { min-width: 0; }
.world-atlas .holder { position: relative; width: 100%; height: clamp(390px, 36vw, 550px); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at center, #f0e4c9, #c8b68e); touch-action: pan-y; }
.world-atlas .holder.can-drag { cursor: grab; touch-action: none; }
.world-atlas .holder.dragging { cursor: grabbing; }
.world-atlas .layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world-atlas .layer > img { display: block; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.world-atlas .links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.world-atlas .links line { stroke: #7b6742; stroke-width: 1.75; stroke-dasharray: 4 5; stroke-linecap: round; }
.world-atlas .links line.hl { stroke: #f9c63c; stroke-width: 4; filter: drop-shadow(0 0 2px #4b2b0c); }
.world-atlas .markers { position: absolute; inset: 0; }
.world-atlas .loading { position: absolute; bottom: 16px; right: 16px; max-width: calc(100% - 32px); padding: 8px 15px; border: 1px solid var(--gold); border-radius: 7px; background: #21172fee; color: var(--gold-2); font-size: .9375rem; z-index: 5; }
.world-atlas .loading.error { border-color: var(--bad); color: #ffe0d8; }
.world-atlas .pin { position: absolute; width: 28px; height: 28px; padding: 2px; border: 0; background: none; cursor: pointer; }
.world-atlas .pin svg { display: block; width: 24px; height: 24px; overflow: visible; filter: drop-shadow(0 1px 2px #34250980); }
.world-atlas .pin .disc { fill: #473225; }
.world-atlas .pin .star { fill: #fff0c6; }
.world-atlas .pin:hover .disc, .world-atlas .pin.hl .disc { fill: #e9c767; }
.world-atlas .pin.hl .star { fill: #4b3426; }
.world-atlas .pin:hover { z-index: 4; }
.world-atlas .pin:focus-visible { outline-color: #6a2b91; border-radius: 50%; z-index: 5; }
.world-atlas .marker-named { position: absolute; min-height: 30px; height: auto; min-width: 112px; padding: 5px 9px; border: 1px solid #ad8545; border-radius: 5px; background: #2e1c3ce8; color: #ffedbc; font-size: .875rem; box-shadow: 0 2px 5px #20101e55; }
.world-atlas .marker-named:hover { background: #67417b; }
.world-atlas .popolion { position: absolute; width: 64px; height: 70px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 4; }
.world-atlas .popolion img { position: absolute; left: 7px; top: 0; width: 50px; height: 50px; animation: atlas-bob 1.8s ease-in-out infinite; filter: drop-shadow(0 2px 3px #301b1b88); }
.world-atlas .popolion::before { content: ""; position: absolute; left: 20px; top: 50px; width: 24px; height: 15px; border: 2px solid #f9dd8b; border-radius: 50%; background: #4d285a88; }
@keyframes atlas-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(2px); } }
.world-atlas .atlas-canvas-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; padding: 10px 12px; background: #1e152a; border-top: 1px solid var(--line); }
.world-atlas .atlas-zoom { display: flex; align-items: center; gap: 4px; }
.world-atlas #zoom-level { min-width: 44px; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.world-atlas .atlas-zoom .btn { min-height: 34px; width: 34px; min-width: 34px; }
.world-atlas .atlas-location { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.world-atlas .atlas-location > span { color: var(--muted); font-size: .875rem; }
.world-atlas .atlas-location strong { color: var(--ink); font-weight: 600; }
.world-atlas .atlas-location .btn { min-height: 34px; font-size: .875rem; padding: 6px 10px; }
.world-atlas .drawer { display: flex; flex-direction: column; gap: 0; width: 326px; min-width: 0; height: calc(clamp(390px, 36vw, 550px) + 63px); padding: 0; background: #241b30; border-left: 1px solid var(--atlas-border); }
.world-atlas .atlas-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex: none; padding: 16px 14px 13px; border-bottom: 1px solid var(--line); }
.world-atlas .atlas-drawer-head > div { min-width: 0; }
.world-atlas .atlas-drawer-head h3 { margin: 0 0 4px; font: 600 .95rem/1.4 var(--f-title); color: var(--gold-2); overflow-wrap: anywhere; }
.world-atlas .atlas-drawer-head h3 small { display: block; margin-top: 5px; color: var(--muted); font: 400 .875rem/1.4 var(--f-body); }
.world-atlas .atlas-drawer-head .btn { width: 28px; min-width: 28px; min-height: 28px; padding: 4px; background: transparent; border-color: transparent; }
.world-atlas .atlas-result-count { color: var(--muted); font-size: .875rem; }
.world-atlas .entries { list-style: none; display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px; scrollbar-color: #685078 #21182d; }
.world-atlas .entries li { display: flex; align-items: center; gap: 9px; flex: none; min-height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); font-size: .9375rem; cursor: pointer; overflow-wrap: anywhere; }
.world-atlas .entries li:hover { background: #352642; }
.world-atlas .entries li.sel, .world-atlas .entries li[aria-selected="true"] { color: var(--gold-2); border-color: #a18059; background: #4b3457; }
.world-atlas .entries li > span { min-width: 0; }
.world-atlas .entries li img { width: 64px; height: 45px; object-fit: contain; flex: none; border-radius: 4px; background: #cbb98e; }
.world-atlas .entries .creature { gap: 11px; min-height: 92px; padding: 10px; background: #30233e; border-color: #493557; cursor: default; }
.world-atlas .entries .creature img, .world-atlas .entries .creature .no-img { width: 68px; height: 76px; flex: none; object-fit: contain; border: 1px solid #584066; border-radius: 7px; background: radial-gradient(ellipse at 50% 60%, #5b4569, #271a35); }
.world-atlas .entries .creature .no-img { display: grid; place-items: center; color: var(--muted); font: 600 1.4rem var(--f-title); }
.world-atlas .entries .creature div { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.world-atlas .entries .creature b { color: #f2e5fa; font-size: 1rem; line-height: 1.3; font-weight: 600; }
.world-atlas .entries .creature small { color: #c5b2d6; font-size: .875rem; line-height: 1.4; }
.world-atlas .entries .creature em { align-self: flex-start; padding: 1px 8px; border-radius: 4px; background: #705934; color: #ffe6a4; font-size: .8125rem; font-style: normal; }
.world-atlas .entries .creature.rank-boss { border-color: #885258; background: #3b2434; }
.world-atlas .entries .creature.rank-boss em { background: #853f4c; color: #ffdcda; }
.world-atlas .entries .note { cursor: default; color: var(--muted); padding: 18px 12px; line-height: 1.6; }
.world-atlas .atlas-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; padding: 17px 18px; }
.world-atlas .atlas-selection { display: flex; align-items: center; flex: 1 1 380px; gap: 12px; min-width: 0; }
.world-atlas .thumb { width: 78px; height: 62px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: radial-gradient(ellipse at center, #4b3658, #1e1528); }
.world-atlas .thumb img { max-width: 100%; max-height: 60px; object-fit: contain; }
.world-atlas .thumb:has(img[hidden]) { display: none; }
.world-atlas .details { min-width: 0; margin: 0; color: #cabcdb; font-size: .9375rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.world-atlas .atlas-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.world-atlas .atlas-travel { background: #614078; color: #fff1ca; border-color: #8f6b9c; }
.world-atlas .popup { position: absolute; z-index: 25; min-width: min(240px, calc(100% - 20px)); max-width: calc(100% - 20px); max-height: 300px; overflow-y: auto; padding: 7px; border: 1px solid var(--gold); border-radius: 8px; background: #261930; box-shadow: 0 10px 25px #07020ab3; }
.world-atlas .popup button { display: block; width: 100%; padding: 11px 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; font: 1rem/1.4 var(--f-body); cursor: pointer; }
.world-atlas .popup button:hover, .world-atlas .popup button:focus-visible { background: #493054; border-color: var(--gold); color: var(--gold-2); outline: none; }
.world-atlas .atlas-help { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: .875rem; }
.world-atlas .atlas-help p { margin: 0; }
.world-atlas .atlas-help p:last-child { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.world-atlas kbd { display: inline-block; min-width: 22px; margin-right: 3px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); font: .8125rem/1.5 var(--f-body); text-align: center; }
.world-atlas .atlas-closed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; min-height: 430px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at center, #33203f, #1a1224); text-align: center; }
.world-atlas .atlas-closed h2, .world-atlas .atlas-closed p { margin: 0; }
.world-atlas .atlas-closed p { color: var(--muted); }
@media (max-width: 1150px) {
  .atlas-page-head { align-items: flex-start; }
  .atlas-counts div { padding-inline: 15px; }
  .world-atlas .atlas-topbar { gap: 10px; }
  .world-atlas .atlas-view-heading { flex: 1; }
  .world-atlas .atlas-tabs { order: 3; width: 100%; }
  .world-atlas .tab { flex: 1; }
  .world-atlas .atlas-tools { gap: 12px; }
  .world-atlas .atlas-quick-links { order: 3; width: 100%; }
  .world-atlas .drawer { width: 300px; }
}
@media (max-width: 900px) {
  .atlas-page { padding-top: 25px; }
  .atlas-page-head { display: block; }
  .atlas-page-head .atlas-eyebrow { font-size: .8125rem; }
  .atlas-counts { margin-top: 22px; }
  .atlas-counts div { flex: 1; padding: 0 15px; }
  .atlas-counts div:first-child { padding-left: 0; border-left: 0; text-align: left; }
  .atlas-counts dd { font-size: 1.65rem; }
  .world-atlas .atlas-topbar { padding: 12px; }
  .world-atlas .atlas-body { grid-template-columns: minmax(0, 1fr); margin-inline: 10px; }
  .world-atlas .atlas-tools { padding: 12px 10px; }
  .world-atlas .drawer { width: 100%; height: 370px; border-left: 0; border-top: 1px solid var(--atlas-border); }
  .world-atlas .holder { height: clamp(310px, 63vw, 440px); }
  .world-atlas .atlas-canvas-controls { gap: 10px; }
  .world-atlas .atlas-location > span { width: auto; }
  .world-atlas .atlas-footer { padding: 15px 12px; }
  .world-atlas .atlas-actions { width: 100%; }
  .world-atlas .atlas-actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .world-atlas #title { font-size: .875rem; margin-inline: 2px; }
  .world-atlas .atlas-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-atlas .tab { font-size: .875rem; padding-inline: 10px; }
  .world-atlas .atlas-quick-links { align-items: flex-start; }
  .world-atlas .atlas-quick-links > span { padding-top: 6px; }
  .world-atlas .quick { gap: 6px; }
  .world-atlas .quick .btn { padding-inline: 8px; }
  .world-atlas .atlas-search { flex-basis: calc(100% - 100px); }
  .world-atlas .atlas-location { width: 100%; justify-content: space-between; }
  .world-atlas .atlas-location > span { flex: 1; }
  .world-atlas .atlas-help { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) { .world-atlas .popolion img { animation: none; } }
