


.credits .txt { max-width: min(760px, 92vw); text-align: center; line-height: 1.35; }
.credits .txt em { font-style: normal; opacity: .8; }


.card, .drawer { transition: opacity .22s var(--ease-ui), translate .22s var(--ease-ui), display .22s allow-discrete; }
.card[hidden], .drawer[hidden] { display: none; opacity: 0; translate: 0 12px; }
.drawer[hidden] { translate: -12px 0; }
@starting-style { .card, .drawer { opacity: 0; } }


.card-actions { position: sticky; bottom: 0; z-index: 3; margin: 18px -20px 0; padding: 12px 20px 12px; background: linear-gradient(to bottom, transparent, var(--glass-strong) 14px); }
.card-actions::before { content: ""; position: absolute; inset: 14px 0 0; z-index: -1; background: var(--glass-strong); }
.card-actions .btn { position: relative; }
.card-media:has(img:not(.ready))::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) 0 0 / 220% 100%; animation: cxShimmer 1.2s linear infinite; }
@keyframes cxShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

#tourBtn:disabled { display: none; }
.card-actions:has(#tourBtn:disabled) #planoBtn { grid-column: 1 / -1; }


.cx-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 10px; }
.cx-nav .cx-pos { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cx-nav .cx-steps { display: flex; gap: 4px; }
.cx-nav button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.cx-nav button:hover:not(:disabled) { background: var(--violet); color: #fff; border-color: transparent; }
.cx-nav button:active:not(:disabled) { transform: scale(.94); }
.cx-nav button:disabled { opacity: .35; cursor: default; }
.cx-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-nav kbd { font: inherit; opacity: .6; margin-left: 6px; }
.cx-grip, .cx-facts { display: none; }


.cx-chips { position: absolute; z-index: 5; left: calc(50% + 122px); bottom: 52px; display: none; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
@media (max-width: 1240px) and (min-width: 761px) { .cx-chips { left: 50%; translate: -50% 0; bottom: 100px; align-items: center; } }
#app[data-mode="pisos"] .cx-chips { display: flex; }
.cx-chip-row { display: flex; gap: 2px; padding: 3px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.cx-chip-row button { height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: transparent; white-space: nowrap; transition: background .2s var(--ease-ui), color .2s; }
.cx-chip-row button:hover { background: var(--accent-soft); color: var(--ink); }
.cx-chip-row button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.cx-count { margin: 0; padding: 4px 10px; font-size: 12px; color: #fff; background: rgba(5,5,9,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: none; display: none; align-items: center; gap: 8px; }
.cx-count.on { display: inline-flex; animation: cxPop .3s var(--ease); }
.cx-count b { font-weight: 600; }
.cx-count button { color: var(--violet-pale); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; background: none; }
@keyframes cxPop { from { opacity: 0; transform: translateY(-4px); } }
.unit.cx-off { fill: rgba(250,249,246,.62); transition: fill .3s; }
:root[data-theme="dark"] .unit.cx-off { fill: rgba(5,5,9,.55); }
.unit.cx-hit { stroke: var(--violet); stroke-width: 2; }
.ulabel.cx-off { opacity: .28; filter: grayscale(1); }
.ulabel.cx-hit { box-shadow: 0 0 0 2px var(--violet), 0 4px 14px rgba(24,19,30,.25); }
.ulabel { transition: opacity .3s, filter .3s, transform .2s var(--ease), box-shadow .2s; }


.cx-tip { position: absolute; z-index: 9; pointer-events: none; min-width: 190px; padding: 10px 12px 11px; background: var(--ink-0); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35); opacity: 0; translate: 0 6px; transition: opacity .15s, translate .15s var(--ease); font-size: 12.5px; }
.cx-tip.on { opacity: 1; translate: 0 0; }
.cx-tip strong { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 3px; }
.cx-tip span { display: block; color: rgba(255,255,255,.72); font-weight: 300; }
.cx-tip i { display: block; margin-top: 7px; height: 3px; background: rgba(255,255,255,.18); position: relative; }
.cx-tip i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--violet-light); }
.cx-tip small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-pale); }
@media (hover: none) { .cx-tip { display: none; } }


.tour-main { overflow: hidden; }
.tour-main img#tourImg { position: absolute; left: 76px; right: 76px; top: 0; bottom: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 152px); max-height: 100%; }
@media (max-width: 760px) { .tour-main img#tourImg { left: 8px; right: 8px; max-width: calc(100% - 16px); } }
.tour-main { touch-action: pan-y; }
.tour-main img.cx-in { animation: cxTourIn .5s var(--ease) both; }
@keyframes cxTourIn { from { opacity: 0; transform: scale(1.025); } }
.tour-main.cx-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--violet-pale); border-radius: 50%; animation: cxSpin .8s linear infinite; }
@keyframes cxSpin { to { rotate: 360deg; } }
.cx-progress { display: flex; gap: 4px; justify-content: center; padding: 10px var(--gutter) 0; }
.cx-progress button { width: 36px; height: 3px; padding: 0; background: rgba(255,255,255,.22); position: relative; overflow: visible; transition: background .3s, width .3s var(--ease); }
.cx-progress button::before { content: ""; position: absolute; inset: -10px 0; }
.cx-progress button.done { background: var(--violet-light); }
.cx-progress button.on { background: var(--violet-pale); width: 54px; }
.cx-tour-aviso { margin: 0 auto; padding: 2px var(--gutter) 0; max-width: 640px; text-align: center; font-size: 11px; font-weight: 300; line-height: 1.4; color: rgba(255,255,255,.5); }
.cx-tour-hint { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); text-align: center; padding-top: 4px; }
.tour-thumbs { scroll-behavior: smooth; }


.modal.dark .x:focus-visible, .modal.dark button:focus-visible { outline-color: var(--violet-pale); }


@media (max-width: 760px) {
  .credits .txt { display: block; order: -1; flex: 0 0 100%; font-size: 9px; opacity: .85; padding: 0 8px; }
  .floorbar { top: 176px; max-height: calc(100% - 176px - 130px); }
  #app:has(#card:not([hidden])) .floorbar { max-height: calc(100% - 176px - 320px); }
  .cx-chips { left: 0; right: 76px; translate: none; top: 122px; bottom: auto; max-width: none; flex-direction: column; align-items: flex-start; padding-left: var(--gutter); }
  .cx-chip-row { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cx-chip-row button { height: 38px; padding: 0 13px; }
  .cx-count { max-width: calc(100vw - 100px); }
  
  .card { max-height: 78%; overflow-y: auto; overscroll-behavior: contain; }
  .card[data-sheet="peek"] { max-height: none; overflow: hidden; }
  .card[data-sheet="peek"] .card-media, .card[data-sheet="peek"] .similar-btn, .card[data-sheet="peek"] .m2, .card[data-sheet="peek"] .rows,
  .card[data-sheet="peek"] .estancias, .card[data-sheet="peek"] .fuente, .card[data-sheet="peek"] .dl-link, .card[data-sheet="peek"] .ref-note { display: none; }
  .card[data-sheet="peek"] .card-body { padding-top: 22px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .card[data-sheet="peek"] .card-actions { position: static; margin: 12px 0 0; padding: 0; background: none; }
  .card[data-sheet="peek"] .card-actions::before { display: none; }
  .card[data-sheet="peek"] .card .x, .card[data-sheet="peek"] .x { top: 10px; }
  .cx-grip { display: flex; position: sticky; top: 0; z-index: 4; justify-content: center; align-items: center; height: 22px; margin-bottom: -22px; width: calc(100% - 60px); cursor: grab; touch-action: none; }
  .cx-grip::before { content: ""; width: 38px; height: 4px; border-radius: 4px; background: rgba(25,24,29,.28); }
  .card:not([data-sheet="peek"]) .cx-grip::before { background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(25,24,29,.2); }
  .cx-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 2px; }
  .cx-facts span { padding: 4px 9px; font-size: 12.5px; border: 1px solid var(--line); color: var(--ink); background: var(--accent-soft); }
  .card:not([data-sheet="peek"]) .cx-facts { display: none; }
  .card[data-sheet="peek"] .x { right: 10px; top: 14px; }
  .card[data-sheet="peek"] .cx-nav { padding-right: 52px; }
  .cx-nav button { width: 40px; height: 40px; }
}
@media (max-width: 520px) { .cx-progress button { width: 22px; } .cx-progress button.on { width: 38px; } }
@media (prefers-reduced-motion: reduce) { .cx-tip, .cx-count, .tour-main img.cx-in { animation: none; transition: none; } .tour-thumbs { scroll-behavior: auto; } }
