/* Navegación de portada y controles de inspección de materiales. */
#portada {touch-action:pan-y}
.hero-inner {padding-bottom:6.1rem}
.hero-foot {
  position:absolute; inset:auto 0 1.25rem; display:flex; align-items:center;
  justify-content:space-between; gap:.8rem; pointer-events:none;
}
.hero-foot .hero-caption {position:static; text-align:right}
.slide-nav {
  display:flex; align-items:center; pointer-events:auto; border:1px solid #ffffff63;
  border-radius:2rem; color:#fff; background:#292925b8; backdrop-filter:blur(12px);
}
.slide-nav button {color:inherit; display:grid; place-items:center; min-height:42px}
.slide-nav>button {width:39px; border-radius:50%}
.slide-nav .ico {width:16px; height:16px}
.slide-nav button:focus-visible,.cam-tools button:focus-visible {outline-offset:-3px}
.slide-nav>button:hover,.slide-markers button:hover {background:#ffffff25}
.slide-markers {display:flex; align-items:center}
.slide-markers button {width:24px; border-radius:12px}
.slide-markers button:after {content:''; width:6px; height:6px; border-radius:6px; background:#d4d4d0}
.slide-markers button[aria-pressed=true]:after {width:18px; background:#fff}
#main-nav a[href="#cotizacion"] {display:flex; align-items:center; gap:.35rem}
#nav-quote-count {min-width:1.2rem; padding:.03rem .27rem; border-radius:1rem; background:var(--blue); color:#fff; text-align:center; font-size:.7rem}
.rooms:has(button:nth-child(7)) {grid-template-columns:repeat(6,minmax(0,1fr))}
.rooms:has(button:nth-child(7)) button {grid-column:span 2; min-height:42px; gap:.28rem}
.rooms:has(button:nth-child(7)) button:nth-child(n+4) {grid-column:span 3}
.selection-actions {display:flex; align-items:center; justify-content:space-between; gap:.25rem .55rem; flex-wrap:wrap; margin-top:.5rem}
.selection-actions button {min-height:42px}
.selection-actions .primary {font-size:.78rem; padding:.5rem .75rem; gap:.35rem; border-radius:1.5rem}
.selection-actions .primary svg {width:15px; height:15px}
.selection-feedback {display:flex; align-items:baseline; flex-wrap:wrap; gap:.2rem .5rem; font-size:.76rem; line-height:1.4}
.selection-feedback:has(#add-result:not(:empty)) {margin-top:.5rem}
.selection-feedback p {margin:0;color:#284e39}
.selection-feedback a {color:var(--blue); text-decoration:underline; text-underline-offset:.15em}
#rubber-variants {margin:.6rem 0 .2rem}
#rubber-variants>span,.inspector-group>span,.camera-panel strong {display:block; margin-bottom:.37rem; font-size:.77rem; font-weight:660; color:#334953}
#rubber-variants div {display:flex;gap:.4rem}
#rubber-variants button {border:1px solid #c3cfd0; min-height:38px; padding:.3rem .75rem; border-radius:1.3rem; font-size:.78rem}
#rubber-variants button[aria-pressed=true] {background:#e8f1f6; border-color:#2a658a; color:#174e70}
.view-options {gap:1.3rem 2rem; justify-content:flex-start; padding:1rem 0 .7rem}
.light-actions button {min-height:40px}
#touch-help {margin-left:auto}
.camera-help {border-top:1px solid #d6ddda; color:var(--muted); font-size:.82rem}
.camera-help summary {cursor:pointer; width:fit-content; color:#324e5e; font-weight:620; padding:.6rem .2rem .6rem 0}
.camera-panel {display:flex; flex-wrap:wrap; gap:1rem 2.5rem; margin:.25rem 0 .65rem}
.camera-help p {line-height:1.55; max-width:82ch; margin-bottom:.8rem}
.workbench {
  grid-template-areas:"escena ajustes" "encuadre ajustes" "camara ajustes";
  grid-template-rows:clamp(440px,36.5vw,560px) max-content minmax(min-content,1fr);
}
.workbench .stage {grid-area:escena; min-height:0}
.workbench .settings {grid-area:ajustes}
.workbench .view-options {
  grid-area:encuadre; padding:.75rem 1rem .6rem; gap:.7rem 1.2rem;
  background:#f9f9f6; border-top:1px solid #d6ddda;
}
.workbench .camera-help {grid-area:camara; padding-inline:1rem; background:#f9f9f6}
.workbench #touch-help {font-size:.71rem}
.back-to-surface {display:none}
.cam-tools button {width:42px; height:42px}
.cam-tools button svg {width:18px; height:18px}
.stage-caption {background:#19221dbb; padding:.32rem .56rem; border-radius:5px; text-shadow:none; width:fit-content}
#rubber-variants[hidden],#review-quote[hidden],#nav-quote-count[hidden] {display:none}
@media(min-width:761px) and (max-width:1030px) {
  #main-nav {gap:.8rem} #main-nav a {font-size:.8rem}
  .header-inner {gap:.7rem}
}
@media(max-width:760px) {
  .workbench {grid-template-areas:"escena" "encuadre" "camara" "ajustes"; grid-template-rows:auto auto auto auto}
  .workbench .view-options {padding:.65rem .85rem; gap:.6rem 1rem}
  .workbench .camera-help {padding-inline:.85rem}
  .back-to-surface {display:inline-flex;align-items:center;min-height:40px;color:var(--blue);font-size:.78rem;text-decoration:underline;text-underline-offset:.15rem}
  .hero-foot {bottom:1rem}
  .hero-inner {padding-bottom:5.6rem}
  .hero-caption {line-height:1.3;max-width:48%}
  .view-options {gap:.75rem 1.2rem}
  #touch-help {margin-left:0}
  .light-actions {gap:.25rem}
  .camera-panel {gap:.8rem}
  .selection-actions {justify-content:flex-start;gap:.3rem 1rem}
  .cam-tools button {width:38px;height:40px}
}
@media(max-width:480px) {
  .workbench #touch-help {display:none}
  .workbench .view-options {gap:.4rem .58rem}
  .hero-inner {min-height:460px}
  .hero-actions {row-gap:.4rem}
  .hero-foot {gap:.4rem}
  .hero-foot .hero-caption {font-size:.66rem}
  .slide-nav>button {width:32px}
  .slide-markers button {width:20px}
  .rooms:has(button:nth-child(7)) button {font-size:.73rem}
  .view-options {gap:.6rem .8rem}
  .stage-top,.stage-bottom {left:.56rem;right:.56rem}
  .stage-caption span {font-size:.56rem;letter-spacing:.045em}
  .stage-caption strong {font-size:1.05rem}
  .stage-caption {max-width:calc(100% - 187px);overflow-wrap:anywhere}
  .cam-tools button {width:34px; height:39px}
}
@media(prefers-reduced-motion:reduce) { .hero *, .view-options button {animation:none!important;transition:none!important} }
