/* Bambi — "Ver si entra en mi hogar" (solo celulares). Mobile-first; tokens de bambi.css (--bb-*). Prefijo: bb-room. */
.bb-room { display: none; }

@media (max-width: 767.98px) {
  .bb-room { display: block; margin: 0 0 1rem; }
}

/* Botón en la caja de compra */
.bb-room__open {
  width: 100%; display: flex; align-items: center; gap: .85rem; padding: .8rem .95rem; border: 1.5px solid rgba(9, 54, 77, .14); border-radius: 18px;
  background: var(--bb-white); color: var(--bb-blue); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--bb-ease);
}
.bb-room__open:hover { border-color: var(--bb-blue); }
.bb-room__open:active { transform: scale(.985); }
.bb-room__open:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }
.bb-room__open-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--bb-yellow); font-size: 1.2rem; }
.bb-room__open-text { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.bb-room__open-text strong { font: 700 1rem var(--bb-font); line-height: 1.2; }
.bb-room__open-text small { color: var(--bb-muted); font-size: .78rem; line-height: 1.3; }
.bb-room__open-go { flex: none; color: var(--bb-muted); font-size: .8rem; }

/* Pantalla completa */
.bb-room__dialog {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bb-white); color: var(--bb-ink);
  overflow: hidden; flex-direction: column;
}
.bb-room__dialog[open] { display: flex; }
.bb-room__dialog::backdrop { background: rgba(9, 54, 77, .5); }
.bb-room__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(9, 54, 77, .08); }
.bb-room__head h2 { margin: 0; font-size: 1.15rem; }
.bb-room__close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bb-ice); color: var(--bb-blue); cursor: pointer; }
.bb-room__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom)); }

.bb-room__item { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.25rem; padding: .7rem; border-radius: 16px; background: var(--bb-ice); }
.bb-room__item img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bb-white); }
.bb-room__item p { margin: 0; display: grid; gap: .15rem; font-size: .9rem; line-height: 1.25; }
.bb-room__item small { color: var(--bb-muted); font-size: .76rem; }

.bb-room__step[hidden] { display: none; }
.bb-room__step h3 { margin: 0 0 .35rem; font-size: 1.3rem; line-height: 1.15; }
.bb-room__step > p { margin: 0 0 1.1rem; color: var(--bb-muted); line-height: 1.5; }

/* 1. Foto: los inputs son el propio botón (etiqueta), así el toque abre la cámara */
.bb-room__camera, .bb-room__gallery { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; cursor: pointer; text-align: center; }
.bb-room__camera { min-height: 58px; border-radius: 999px; background: var(--bb-yellow); color: var(--bb-blue); font: 700 1.05rem var(--bb-font); }
.bb-room__gallery { min-height: 50px; margin-top: .6rem; border-radius: 999px; border: 1.5px solid rgba(9, 54, 77, .15); color: var(--bb-blue); font: 700 .95rem var(--bb-font); }
.bb-room__camera input, .bb-room__gallery input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.bb-room__camera:focus-within, .bb-room__gallery:focus-within { outline: 3px solid var(--bb-blue); outline-offset: 3px; }
.bb-room__step > .bb-room__note { margin: 1.25rem 0 0; display: flex; gap: .55rem; align-items: flex-start; color: var(--bb-muted); font-size: .78rem; line-height: 1.45; }
.bb-room__note i { margin-top: .15rem; }

/* 2. Medidas */
.bb-room__preview { position: relative; margin: 0 0 1.1rem; border-radius: 18px; overflow: hidden; background: var(--bb-ice); }
.bb-room__preview img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.bb-room__preview button { position: absolute; right: .6rem; bottom: .6rem; padding: .45rem .85rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--bb-blue); font: 700 .8rem var(--bb-font); cursor: pointer; }
.bb-room__form { display: grid; gap: .8rem; }
.bb-room__form label { display: grid; gap: .3rem; }
.bb-room__form label > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; font-weight: 700; }
.bb-room__form label small { color: var(--bb-muted); font-size: .76rem; font-weight: 400; }
.bb-room__form input {
  width: 100%; height: 54px; padding: 0 1rem; border: 1.5px solid rgba(9, 54, 77, .18); border-radius: 14px; background: var(--bb-white);
  font: 600 1.2rem var(--bb-font); color: var(--bb-ink);
}
.bb-room__form input:focus { border-color: var(--bb-blue); outline: 3px solid rgba(254, 197, 45, .6); outline-offset: 0; }
.bb-room__error { margin: 0; padding: .7rem .9rem; border-radius: 12px; background: #fbe9e7; color: #b3261e; font-size: .88rem; font-weight: 600; }
.bb-room__go {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white);
  font: 700 1.05rem var(--bb-font); text-align: center; text-decoration: none; cursor: pointer;
}
.bb-room__go:hover { color: var(--bb-white); background: var(--bb-blue-2); }
.bb-room__go[hidden] { display: none; }
.bb-room__form .bb-room__go { margin-top: .4rem; background: var(--bb-yellow); color: var(--bb-blue); }

/* 3. Veredicto */
.bb-room__verdict { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 18px; }
.bb-room__verdict i { flex: none; font-size: 2.2rem; }
.bb-room__verdict p { margin: 0; display: grid; gap: .2rem; line-height: 1.3; }
.bb-room__verdict strong { font: 800 1.5rem var(--bb-font-head); }
.bb-room__verdict span { font-size: .9rem; }
.bb-room__verdict.is-yes { background: #e4f5ea; color: #17653a; }
.bb-room__verdict.is-tight { background: #fff3d1; color: #7a5a00; }
.bb-room__verdict.is-no { background: #fbe9e7; color: #b3261e; }

.bb-room__table { width: 100%; margin: 0 0 1.1rem; border-collapse: collapse; font-size: .88rem; }
.bb-room__table th, .bb-room__table td { padding: .55rem .4rem; border-bottom: 1px solid rgba(9, 54, 77, .08); text-align: right; font-weight: 400; }
.bb-room__table thead th { color: var(--bb-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bb-room__table tbody th { text-align: left; font-weight: 700; }
.bb-room__table td:last-child { font-weight: 700; }
.bb-room__table .is-yes td:last-child { color: #17653a; }
.bb-room__table .is-tight td:last-child { color: #7a5a00; }
.bb-room__table .is-no td:last-child { color: #b3261e; }

.bb-room__picture { margin: 0 0 1rem; }
.bb-room__picture img { display: block; width: 100%; border-radius: 18px; background: var(--bb-ice); }
.bb-room__picture p { margin: .6rem 0 0; color: var(--bb-muted); font-size: .88rem; line-height: 1.45; }
.bb-room__picture.is-notice { padding: 1rem; border-radius: 16px; background: var(--bb-ice); }
.bb-room__picture.is-notice p { margin: 0; color: var(--bb-ink); }
.bb-room__retry { margin-top: .7rem; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font: 700 .88rem var(--bb-font); cursor: pointer; }
.bb-room__skeleton { aspect-ratio: 4 / 3; border-radius: 18px; background: linear-gradient(100deg, var(--bb-ice) 30%, #f6f9fb 50%, var(--bb-ice) 70%) 0 0 / 220% 100%; animation: bb-room-shimmer 1.4s linear infinite; }
.bb-room__picture.is-loading p { text-align: center; }
@keyframes bb-room-shimmer { to { background-position: -220% 0; } }
.bb-room__tabs { display: flex; gap: .3rem; margin-top: .7rem; padding: .25rem; border-radius: 999px; background: var(--bb-ice); }
.bb-room__tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--bb-blue); font: 700 .88rem var(--bb-font); cursor: pointer; }
.bb-room__tabs button[aria-pressed="true"] { background: var(--bb-blue); color: var(--bb-white); }
.bb-room__disclaimer[hidden] { display: none; }
.bb-room__disclaimer { margin: 0 0 1.1rem; color: var(--bb-muted); font-size: .78rem; line-height: 1.45; }
.bb-room__actions { display: grid; gap: .6rem; }
.bb-room__again { min-height: 50px; border: 1.5px solid rgba(9, 54, 77, .15); border-radius: 999px; background: transparent; color: var(--bb-blue); font: 700 .95rem var(--bb-font); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .bb-room__skeleton { animation: none; }
  .bb-room__open { transition: none; }
}
