/* 8888 HOME · Ambiente 3D v1.0.0 — module styles (css/inline/ambiente.css).
   Same tokens as the live pages and as Espacio 3D (css/inline/espacio-3d.css): page #EAEAEA, panels #F5F5F5 radius 32,
   media radius 24 and 480 px tall (320 px on phones), black and outline pills, the lime "EN RENTA" badge, white items
   with a 1 px #DDD border ("Amuebla esta casa"), GalanoGrotesqueLight. Every rule is scoped to .amb, so nothing here
   touches the product page, the property page or the rest of the site. Sizes are in px: the product page changes the
   root font size. */
.amb {
  --amb-page: #EAEAEA; --amb-panel: #F5F5F5; --amb-white: #FFFFFF; --amb-ink: #000000; --amb-ink-2: #555555; --amb-muted: #6B6B6B; --amb-line: #DDDDDD;
  --amb-accent: #0F8F7A; --amb-accent-ink: #0B6D5C; --amb-accent-soft: #DCEFEA; --amb-lime: #D0FF71;
  --amb-floor: #FFFFFF; --amb-grid: #ECECEC; --amb-wall: #000000;
  --amb-paper: #F6F5F2; --amb-floor3d: #E7E0D3; --amb-grid3d: #DAD2C3; --amb-wall3d: #F4F2EC;
  --amb-good: #0B6D5C; --amb-good-bg: #DCEFEA; --amb-warn: #7A4B00; --amb-warn-bg: #FBEFD6; --amb-bad: #B3261E; --amb-bad-bg: #FBE4E2;
  --amb-stage-h: 480px;
  font-family: GalanoGrotesqueLight, 'Outfit', Arial, sans-serif; font-size: 15px; line-height: 1.4; color: var(--amb-ink); margin-block: 20px; text-align: left;
}
.amb, .amb *, .amb *::before, .amb *::after { box-sizing: border-box; }
.amb[hidden], .amb [hidden] { display: none !important; }
.amb button, .amb input, .amb summary { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; margin: 0; box-shadow: none; }
.amb button { cursor: pointer; width: auto; min-width: 0; height: auto; line-height: 1.3; }
.amb a { color: inherit; }
.amb :focus-visible { outline: 2px solid var(--amb-accent); outline-offset: 2px; }
.amb h2, .amb h3, .amb p, .amb ul, .amb dl, .amb dd { margin: 0; padding: 0; }

/* ---- head ---- */
.amb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.amb-kicker { display: inline-block; margin: 0 0 10px; padding: 4px 13.6px; border-radius: 20px; background: var(--amb-lime); color: #1A1A1A; font-size: 12.48px; font-weight: 600; letter-spacing: .624px; text-transform: uppercase; }
.amb .amb-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.amb-studio .amb-title { font-family: MullerNextExpandedTrial, 'Krona One', system-ui, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .02em; }
.amb .amb-sub { margin-top: 4px; font-size: 14px; line-height: 22.4px; max-width: 68ch; }
.amb-controls { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.amb-seg { display: inline-flex; gap: 6px; }
.amb .amb-seg button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #000; background: #fff; color: #000; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.amb .amb-seg button[aria-pressed="true"] { background: #000; color: #fff; }
.amb .amb-seg button:disabled { opacity: .35; cursor: default; }

/* ---- layout: product and property pages use the columns of the photo + price box right above ---- */
.amb-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.amb-studio { --amb-stage-h: clamp(520px, calc(100vh - 250px), 760px); }
.amb-studio .amb-grid { grid-template-columns: 340px minmax(0, 1fr) 340px; gap: 24px; }
.amb-stagewrap { position: sticky; top: 110px; min-width: 0; }
.amb-rail { display: flex; flex-direction: column; gap: 22px; background: var(--amb-panel); border-radius: 32px; padding: 26px 22px; min-width: 0; }
.amb-studio .amb-rail { max-height: calc(var(--amb-stage-h) + 56px); overflow-y: auto; }
.amb .amb-sec > h3, .amb .amb-more > summary { font-size: 16px; font-weight: 700; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.amb .amb-sec > h3 i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--amb-accent-ink); }
.amb .amb-hint { color: var(--amb-ink-2); font-size: 13px; line-height: 1.45; margin: 8px 0 0; }

/* ---- stage ---- */
.amb-stage { position: relative; height: var(--amb-stage-h); border-radius: 24px; overflow: hidden; background: radial-gradient(130% 100% at 50% 0%, #FFFFFF 0%, #FAFAFA 55%, #EFEFEF 100%); outline-offset: -3px; }
.amb .amb-stage > svg, .amb .amb-stage > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.amb .amb-stage > canvas { cursor: grab; display: none; }
.amb .amb-stage > svg [data-uid] { cursor: grab; }
.amb .amb-badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: #fff; border: 1px solid #000; font-size: 13px; font-weight: 600; color: #000; }
.amb-badge i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #000; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; }
.amb-selinfo { position: absolute; left: 16px; top: 58px; z-index: 2; font-size: 12.5px; background: #000; color: #fff; border-radius: 8px; padding: 4px 9px; pointer-events: none; max-width: calc(100% - 90px); }
.amb-selinfo:empty { display: none; }
.amb-tip { position: absolute; left: 16px; bottom: 14px; font-size: 12.5px; color: var(--amb-ink-2); max-width: 44%; pointer-events: none; }
.amb-titleblock { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.07); font-size: 12px; display: grid; grid-template-columns: auto auto; gap: 2px 12px; padding: 8px 12px; pointer-events: none; }
.amb-titleblock div:nth-child(odd) { color: var(--amb-ink-2); }
.amb-titleblock div:nth-child(even) { font-weight: 600; text-align: right; }
.amb-zoom { position: absolute; right: 16px; top: 16px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.amb .amb-zoom button { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid #000; background: #fff; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.amb .amb-zoom #amb-z-fit { font-size: 10.5px; font-weight: 600; }
.amb-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: #000; color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.amb .amb-unlock { display: none; position: absolute; inset: 0; z-index: 4; background: transparent; border: 0; padding: 0 0 12px 12px; align-items: flex-end; justify-content: flex-start; }
.amb .amb-unlock span { background: #000; color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.amb-locked .amb-unlock { display: flex; }
.amb-locked .amb-tip { display: none; }
.amb-levels { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2; }
.amb .amb-levels button { height: 34px; font-size: 13px; padding: 0 14px; }
/* whole home: rooms are opened to change their furniture, so the room tools and the catalog step aside */
.amb-in-house .amb-tools, .amb-in-house #amb-sec-cat, .amb-in-house #amb-furnish, .amb-in-house .amb-more, .amb-in-house .amb-selinfo { display: none; }
.amb-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.amb .amb-tools button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--amb-line); background: #fff; font-size: 13px; }
.amb .amb-tools button:disabled { opacity: .4; cursor: default; }

/* ---- space ---- */
.amb-field { display: flex; gap: 8px; }
.amb .amb-field input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--amb-line); border-radius: 999px; background: #fff; font-size: 14px; }
.amb .amb-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #000; background: #000; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.amb .amb-btn.amb-ghost { background: #fff; color: #000; }
.amb .amb-btn.amb-wide { width: 100%; }
.amb .amb-btn:disabled { opacity: .4; cursor: default; }
.amb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.amb .amb-chip { border: 1px solid var(--amb-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #000; }
.amb .amb-chip i { font-style: normal; color: var(--amb-ink-2); margin-left: 4px; }
.amb .amb-chip[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.amb .amb-chip[aria-pressed="true"] i { color: var(--amb-lime); }
.amb .amb-chip.amb-chip-go { background: var(--amb-lime); border-color: var(--amb-lime); font-weight: 600; }
.amb-result { margin-top: 12px; padding: 12px 14px; background: #fff; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.amb-result small { display: block; color: var(--amb-ink-2); font-size: 12.5px; margin-top: 2px; }
.amb-result.amb-err { background: var(--amb-bad-bg); color: var(--amb-bad); }
.amb-result-act { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.amb .amb-link { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 13px; font-weight: 600; }
.amb-more { margin-top: 12px; }
.amb .amb-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; margin: 0; text-decoration: underline; list-style: none; }
.amb .amb-more > summary::-webkit-details-marker { display: none; }
.amb .amb-more.amb-sec > summary { font-size: 15px; }
.amb-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.amb .amb-dims label { font-size: 12px; color: var(--amb-ink-2); display: grid; gap: 4px; margin: 0; width: auto; }
.amb .amb-dims input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--amb-line); border-radius: 12px; background: #fff; }
.amb #amb-furnish, .amb #amb-around { margin-top: 12px; }
.amb-product #amb-furnish, .amb-home #amb-around, .amb-studio #amb-around, .amb-home #amb-home-form, .amb-home #amb-examples { display: none; }
.amb-home #amb-kinds { margin-top: 12px; }

/* ---- lists: listings, catalog products, sectional layouts ---- */
.amb-list { display: grid; gap: 6px; margin-top: 10px; }
.amb-list:empty { display: none; }
.amb-results { max-height: 372px; overflow-y: auto; padding-right: 2px; }
.amb-studio .amb-results { max-height: none; }
.amb .amb-piece, .amb .amb-home, .amb .amb-lay { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--amb-line); background: #fff; border-radius: 10px; padding: 8px 10px; }
.amb .amb-piece:hover, .amb .amb-home:hover, .amb .amb-lay:hover { border-color: #000; }
.amb .amb-piece:disabled { opacity: .55; cursor: default; }
.amb .amb-piece img, .amb .amb-piece svg { width: 56px; height: 56px; object-fit: contain; max-width: none; }
.amb .amb-piece b, .amb .amb-home b, .amb .amb-lay b { font-weight: 600; display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.amb .amb-piece small, .amb .amb-home small, .amb .amb-lay small { color: var(--amb-ink-2); font-size: 12.5px; display: block; }
.amb .amb-add { width: 30px; height: 30px; border-radius: 50%; background: #000; color: #fff; font-size: 18px; line-height: 30px; text-align: center; }
.amb .amb-home { grid-template-columns: 64px minmax(0, 1fr) auto; }
.amb .amb-home img, .amb .amb-home > i { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: #E4E4E4; display: block; max-width: none; }
.amb .amb-home em { font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.amb .amb-lay { grid-template-columns: 64px minmax(0, 1fr); }
.amb .amb-lay svg { width: 64px; height: 52px; max-width: none; }
.amb-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.amb-tag.amb-good { background: var(--amb-good-bg); color: var(--amb-good); } .amb-tag.amb-warn { background: var(--amb-warn-bg); color: var(--amb-warn); } .amb-tag.amb-bad { background: var(--amb-bad-bg); color: var(--amb-bad); }

/* ---- summary and purchase ---- */
.amb-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; font-size: 14px; }
.amb-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; margin-top: 5px; flex: none; }
.amb-status.amb-good { background: var(--amb-good-bg); color: var(--amb-good); }
.amb-status.amb-warn { background: var(--amb-warn-bg); color: var(--amb-warn); }
.amb-status.amb-bad { background: var(--amb-bad-bg); color: var(--amb-bad); }
.amb-status b { display: block; font-weight: 600; }
.amb .amb-kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; font-size: 14px; }
.amb .amb-kv dt { color: var(--amb-ink-2); font-weight: 400; } .amb .amb-kv dd { text-align: right; font-weight: 600; }
.amb .amb-lines { list-style: none; margin: 14px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--amb-line); padding-top: 12px; }
.amb .amb-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; font-size: 14px; list-style: none; }
.amb-lines .amb-q { color: var(--amb-accent-ink); font-weight: 600; }
.amb-lines small { grid-column: 2; color: var(--amb-ink-2); font-size: 12px; }
.amb-lines .amb-p { font-weight: 600; white-space: nowrap; }
.amb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 12px; padding-top: 12px; border-top: 1px solid #000; }
.amb-total b { font-weight: 700; font-size: 22px; }
.amb-cta { display: grid; gap: 8px; }
.amb-cta-2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 10px; }
.amb-cta-2:empty { display: none; }
.amb-selname { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 15px; }
.amb-selname b { font-weight: 600; }
.amb-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.amb .amb-sw { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--amb-line); padding: 0; }
.amb .amb-sw[aria-pressed="true"] { outline: 2px solid #000; outline-offset: 2px; }
.amb-swname { font-size: 13px; color: var(--amb-ink-2); margin-bottom: 6px; }

/* ---- foot: the estimates notice, always visible ---- */
.amb-foot { display: flex; gap: 10px 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--amb-ink-2); }
.amb-foot > span { flex: 1 1 420px; max-width: 110ch; }
.amb-foot b { color: #000; font-weight: 600; }
.amb-bar { display: none; }
.amb-dialog { border: 0; border-radius: 24px; padding: 26px; max-width: 560px; width: calc(100% - 32px); color: #000; font-family: GalanoGrotesqueLight, 'Outfit', Arial, sans-serif; font-size: 14.5px; line-height: 1.55; }
.amb-dialog::backdrop { background: rgba(0,0,0,.5); }
.amb .amb-dialog h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.amb .amb-dialog ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.amb .amb-dialog .amb-btn { margin-top: 16px; }
.amb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.amb-overlay.amb-open { display: flex; }
.amb-sheet { background: #fff; border-radius: 24px; max-width: 480px; width: 100%; padding: 24px; max-height: 90%; overflow: auto; }
.amb .amb-sheet h3 { font-size: 18px; font-weight: 700; }
.amb-sheet pre { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--amb-panel); padding: 12px; border-radius: 12px; white-space: pre-wrap; margin: 12px 0; }
.amb-row { display: flex; gap: 8px; justify-content: flex-end; }

/* ---- phones and tablets ---- */
@media (max-width: 1100px) { .amb-studio .amb-grid { grid-template-columns: 300px minmax(0, 1fr); } .amb-studio .amb-rail.amb-right { grid-column: 1 / -1; max-height: none; } }
@media (max-width: 980px) {
  .amb { --amb-stage-h: 340px; }
  .amb-studio { --amb-stage-h: min(56vh, 420px); }
  .amb-grid, .amb-studio .amb-grid { display: flex; flex-direction: column; gap: 16px; }
  .amb-stagewrap { position: static; order: -1; width: 100%; }
  .amb-rail, .amb-studio .amb-rail { width: 100%; max-height: none; overflow: visible; border-radius: 22px; padding: 20px 16px; }
  .amb-stage { border-radius: 22px; }
  .amb-tip { display: none; }
  .amb-locked .amb-titleblock { display: none; }
  .amb-titleblock { right: 12px; bottom: 12px; font-size: 11px; padding: 6px 10px; }
  .amb .amb-seg button { height: 44px; }
  .amb .amb-chip { padding: 9px 13px; }
  .amb .amb-tools button { height: 44px; }
  .amb .amb-zoom button { width: 44px; height: 44px; }
  .amb-results { max-height: 340px; }
  .amb-studio .amb-results { max-height: 420px; overflow-y: auto; }
  /* /ambiente on a phone: the total and the cart stay in reach, above the site's bottom bar (--bi-alto) */
  .amb-studio .amb-bar { display: flex; position: sticky; bottom: calc(var(--bi-alto, 0px) + 8px); z-index: 30; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 18px; background: #fff; border: 1px solid #000; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
  .amb-bar small { display: block; font-size: 11px; color: var(--amb-ink-2); }
  .amb-bar b { font-size: 17px; font-weight: 700; }
}
@media (max-width: 420px) { .amb-head { align-items: flex-start; } .amb .amb-seg button { padding: 0 14px; } }
@media (prefers-reduced-motion: no-preference) { .amb .amb-piece, .amb .amb-home, .amb .amb-lay, .amb .amb-chip { transition: border-color .15s, background .15s; } }
