@font-face{font-family:Kalam;src:url(../catalogo/fuentes/kalam.woff2) format("woff2");font-display:swap}
:root{--ink:#352d24;--paper:#fbf3df;--wine:#614333;--rule:#b7a47f;--folder:#d4b678;--green:#424e39}
body{background-color:#e6decd}
button{font:inherit;color:inherit;cursor:pointer}
.back,.office-label,.slots,th[scope=col]{font:600 .78rem/1.45 'Courier New',monospace}
.back{padding:10px 0}
.scene{background:#493120}
.speech::after{left:45%}
.directory{background:linear-gradient(115deg,#ebdcc0,#fbf5e9 28%,#f6edda)}
.office-label{margin:0 0 .55rem;letter-spacing:.12em;text-transform:uppercase;color:#64513b}
.panel h1{margin-bottom:32px}
.panel nav{gap:18px}
.folder-choice{position:relative;display:flex;align-items:center;gap:13px;border:1px solid #715638;background:#e9d4a6;box-shadow:2px 3px 0 #71563840;border-radius:0 5px 4px 4px;text-align:left;padding:.62em .7em;font:clamp(1.15rem,2.15vw,1.65rem)/1.15 Kalam,Georgia,serif}
.folder-choice::before{content:"";position:absolute;top:-7px;left:-1px;width:31%;height:6px;border:1px solid #715638;border-bottom:0;border-radius:4px 8px 0 0;background:inherit}
.folder-choice:hover{background:#f5dfaf}
.folder-choice i{margin-left:auto;font:normal 1.15rem Georgia}
.folder-icon,.glass-icon{position:relative;display:inline-block;flex:none}
.folder-icon{border:1.6px solid;width:21px;height:14px;border-radius:2px}
.folder-icon::before{content:"";position:absolute;top:-4px;left:0;width:9px;height:3px;border:1.5px solid;border-bottom:0;border-radius:2px 2px 0 0}
.glass-icon{border:1.6px solid;border-radius:50%;width:16px;height:16px;margin:0 4px 3px 1px}
.glass-icon::after{content:"";position:absolute;width:9px;height:2px;background:currentColor;top:13px;left:11px;transform:rotate(48deg)}
.quote,.ink-link{font:600 14px/1.5 'Courier New',monospace;text-decoration:underline;text-underline-offset:4px}
.quote{padding:8px 0;width:fit-content}
@media(max-width:720px){body,main{background:#442d1e}.directory{background:transparent}.scene{aspect-ratio:768/981}.directory .panel{padding:17px}.panel h1{margin-bottom:18px}.panel nav{gap:15px}.office-label{font-size:.68rem}.folder-choice{min-height:44px}.speech{right:6%;left:5%}.quote{padding:3px 0}.back{font-size:.72rem}}

.grip-axis {
  position: absolute;
  inset: 0;
  transform: rotate(-45deg);
  pointer-events: none;
}
.grip {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 0;
  width: 8%;
  height: 32%;
  min-width: 9px;
  border: 1px solid #382e23;
  border-radius: 3px 3px 40% 40%;
  background: linear-gradient(90deg,#785639,#b08a60,#64462f);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}
.grip::before { content: ""; position: absolute; inset: -3px -9px; }
.grip:active { cursor: grabbing; }
.sheet {
  --room: calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  width: min(94vw, 630px); max-width: none; max-height: var(--room); padding: clamp(12px,2.5vmin,22px);
  overflow: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink);
  border: 1px solid #735a3b; border-top: 6px solid #b99b69; border-radius: 7px; box-shadow: 4px 6px 0 #37291855;
}
.sheet :is(button,a) { touch-action: manipulation; }
.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sheet h2 { margin:0; font:normal clamp(22px,4vmin,34px)/1.05 Georgia,serif; letter-spacing:-.045em; }
.sheet .exit-sheet { position:static; width:36px; height:36px; border:1px solid #9a896b; border-radius:50%; background:transparent; color:inherit; font:24px/1 Georgia; flex:none; }
.sheet :focus-visible { outline:3px solid #a94c32; outline-offset:2px; }
.sheet.simulator, .sheet.gallery, .sheet.example {
  width:min(calc(100% - 12px), 98dvh, 1040px);
  padding:clamp(6px,1.25vmin,14px);
}
.sheet.simulator[open], .sheet.example[open], .sheet.gallery[open] {
  display:flex; flex-direction:column; gap:6px; height:min(var(--room), 1200px);
}
.studio { flex:1; min-height:0; display:grid; grid-template-rows:auto minmax(90px,1fr) auto auto; gap:8px; }
.choices { display:grid; gap:6px; }
.chips { display:flex; min-width:0; border:0; padding:0; margin:0; gap:5px; }
.chips legend,.foot small { padding:0; font:.82rem/1.25 'Courier New',monospace; margin-bottom:3px; color:#584d38; }
.chips label { flex:1 1 0; min-width:0; cursor:pointer; position:relative; }
.chips input { position:absolute; opacity:0; width:1px; height:1px; }
.chips span { display:flex; align-items:center; justify-content:center; height:100%; min-height:33px; padding:4px 2px; border:1px solid #9e8966; border-radius:5px; background:#f1e2c4; font:1rem/1.1 Kalam,Georgia,serif; text-align:center; }
.chips input:checked + span { background:var(--green); color:#fff9e6; border-color:var(--green); }
.chips input:checked + span::before { content:'✓'; margin-right:4px; font: .85em Georgia; }
.chips input:focus-visible + span { outline:3px solid #a94c32; outline-offset:1px; }
.preview, .example figure { margin:0; display:grid; grid-template-rows:minmax(0,1fr) auto; gap:4px; min-height:0; }
.drawing-space { min-height:0; container-type:size; display:grid; place-items:center; border:1px solid #cebc99; border-radius:4px; background:#eee6d4; overflow:visible; }
.artwork { --ratio:1; --x:43%; --y:42%; --r:24%; position:relative; width:min(98cqw,calc(98cqh * var(--ratio))); aspect-ratio:var(--ratio);  cursor:crosshair; touch-action:none; user-select:none; }
.artwork img,.artwork .reveal { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.reveal { clip-path:ellipse(var(--r) calc(var(--r) * var(--ratio)) at var(--x) var(--y)); overflow:hidden; }
.zoom .reveal img { transform:scale(1.6); transform-origin:var(--x) var(--y); }
.lens { position:absolute; top:var(--y); left:var(--x); width:calc(var(--r) * 2); aspect-ratio:1; transform:translate(-50%,-50%); border:3px solid #4c4031; border-radius:50%; box-shadow:0 0 0 2px #e9cf94,inset 0 0 0 2px #f5e5b2; pointer-events:none; }
#usage,.example figcaption { font: .88rem/1.2 Georgia,serif; text-align:center; }
.accessories { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 12px; border-top:1px solid #caba99; padding-top:6px; }
.accessories label,.bg-row,.stepper { display:inline-flex; align-items:center; gap:5px; }
.accessories label { font-size:.95rem; }
.accessories input { width:16px; height:16px; margin:0; accent-color:var(--green); }
.stepper { gap:4px; }
.stepper button, .secondary, .portfolio-controls button { border:1px solid #8f7956; background:#edd9b2; border-radius:4px; padding:5px 9px; font:1rem Kalam,Georgia,serif; }
.stepper button { width:31px; height:31px; font:1.15rem Georgia; padding:0; }
.stepper button:disabled { opacity:.45; }
.stepper output { min-width:1ch; text-align:center; }
.inline-btn,.portfolio-social a { color:#584128; background:none; border:0; padding:3px 1px; text-decoration:underline; text-underline-offset:3px; font:inherit; cursor:pointer; }
.foot { display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 6px; border-top:3px double #ad9874; padding-top:5px; }
.foot strong { display:block; font: bold clamp(19px,3vmin,28px)/1.1 Georgia,serif; }
.foot .inline-btn { grid-column:1/-1; justify-self:start; font-size:.86rem; }
.sheet .action { display:inline-block; border:1px solid var(--green); border-radius:4px; background:var(--green); color:#fff9e7; text-decoration:none; padding:7px 11px; font:1rem/1.2 Kalam,Georgia,serif; letter-spacing:normal; text-align:center; }
.sheet.example { width:min(calc(100% - 12px), 76dvh, 830px); }
.example figure,.gallery .portfolio-view { flex:1; min-height:0; }
.example img,.portfolio-view img { width:100%; height:100%; object-fit:contain; min-height:0; }
.note { width:min(94vw,435px); }
.note p { margin:12px 0; font:1rem/1.4 Georgia,serif; }
.note-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#desglose { white-space:pre-line; }
.portfolio-view figure { width:100%; height:100%; margin:0; }
.portfolio-view figcaption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.portfolio-controls { display:flex; justify-content:center; align-items:center; gap:12px; font:1rem Kalam,Georgia,serif; }
.portfolio-controls button { min-width:38px; }
.gallery .portfolio-social { margin:0; text-align:center; font:1rem/1.25 Georgia,serif; }
.portfolio-social a { display:inline; }
@media(max-width:520px) {
  .accessories { display:grid; grid-template-columns:auto auto; gap:5px; justify-content:space-between; }
  .personas { grid-row:span 2; flex-direction:column; align-items:start!important; }
  .chips span { font-size:.95rem; }
}
@media(max-height:560px) and (orientation:portrait) {
  .sheet.simulator { padding:7px 10px; gap:4px; }
  .studio,.choices { gap:4px; }
  .chips span { min-height:28px; }
}
@media(orientation:landscape) and (min-width:610px) {
  .sheet.simulator { width:min(calc(100% - 16px), calc(96dvh + 360px), 1450px); }
  .studio { grid-template-columns:minmax(0,1fr) clamp(240px,29vw,350px); grid-template-rows:1fr auto 1fr; gap:12px 24px; }
  .choices { grid-column:2; align-self:end; }
  .preview { grid-column:1; grid-row:1/4; }
  .accessories { grid-column:2; flex-direction:column; align-items:flex-start; justify-content:flex-start; }
  .foot { grid-column:2; align-self:start; }
}
@media(orientation:landscape) and (max-height:440px) {
  .sheet.simulator[open] { padding:6px 12px; gap:2px; }
  .studio { gap:3px 12px; }
  @media (min-width:610px) {
    .studio { grid-template-columns:minmax(0,1fr) minmax(275px,44%); }
  }
  .choices { gap:2px; }
  .sheet .exit-sheet { width:30px;height:30px; }
  .accessories { flex-direction:row; gap:3px 8px; }
  .chips span { min-height:26px; }
}
.personas { display:flex; align-items:center; gap:5px; font-size:.95rem; }
@media (max-width:370px) and (max-height:560px) {
  .chips legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .foot { grid-template-columns:auto 1fr; }
  .foot .action { justify-self:end; max-width:132px; }
  #usage { font-size:.8rem; }
}

@media (min-width:800px) and (orientation:landscape) {
  .sheet.example[open], .sheet.gallery[open] {
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    grid-template-rows:1fr auto auto 1fr;
    align-items:center;
    gap:12px 18px;
  }
  .sheet.example { width:min(calc(100% - 16px), calc(71dvh + 245px)); }
  .sheet.gallery { width:min(calc(100% - 16px), calc(100dvh + 245px)); }
  .example figure, .gallery .portfolio-view {
    grid-column:1; grid-row:1 / -1; height:100%; min-width:0;
  }
  .example .sheet-head, .gallery .sheet-head { grid-column:2; align-self:end; }
  .example .chips, .example .action, .gallery .portfolio-controls, .gallery .portfolio-social { grid-column:2; }
}
@media (max-width:520px) {
  .sheet.simulator[open], .sheet.gallery[open], .sheet.example[open] { gap:4px; }
  .sheet.gallery[open] { height:min(var(--room), calc(100vw + 105px)); }
  .sheet.example[open] { height:min(var(--room), calc(141.5vw + 175px)); }
  .studio { gap:4px; }
}
.eye-button { width:36px; height:32px; display:inline-grid; place-items:center; border:1px solid #937747; border-radius:9px; background:#eedbb6; color:#463d2e; }
.eye-button:hover, .eye-button:focus-visible { background:#ffebbe; }
.eye-shape { width:21px; height:17px; display:grid; place-items:center; }
.eye-shape::before, .eye-shape i { grid-area:1/1; }
.eye-shape::before { content:""; width:14px; height:14px; border:1.6px solid currentColor; border-radius:75% 8%; rotate:45deg; }
.eye-shape i { width:6px; height:6px; border-radius:50%; background:currentColor; }
@media (prefers-reduced-motion:no-preference) {
  .eye-shape { animation:eye-blink 8s 1.4s 2; }
  @keyframes eye-blink { 0%,94%,98%,100% { transform:scaleY(1); } 96% { transform:scaleY(.13); } }
}
