/* Shared public-site layout. Product profiles keep their own themes. */
:root {
  --studio-night: #0b2d24;
  --studio-pale: #e0f5e8;
  --studio-rule: #cad5cc;
  --studio-muted: #596b60;
  --studio-width: min(calc(100% - 2 * var(--inset)), 1360px);
  scroll-padding-top: 110px;
}
body[data-studio] {
  background: linear-gradient(to bottom, var(--studio-night) 0 155px, var(--hn-paper) 155px);
  color: var(--hn-ink);
  display: flow-root;
}
.studio-header, .studio-panel { font: 500 1rem/1.4 Inter, sans-serif; color:var(--hn-ink); }
.studio-header {
  position: sticky; top: 12px; z-index: 30; width: var(--studio-width);
  margin: 16px auto 0; min-height: 66px; padding: 7px 8px 7px clamp(16px,2vw,32px);
  display: flex; align-items: center; gap: clamp(16px,3.5vw,60px);
  border-radius: 48px; border: 1px solid #e1e9de; background: #f9fbf4;
  box-shadow: 0 3px 14px #09281f12;
}
@supports (backdrop-filter: blur(12px)) {
  .studio-header {background:rgba(252,255,248,.91); backdrop-filter:blur(15px) saturate(135%)}
}
.studio-brand {display:grid;align-items:center;min-height:44px;flex:none}
.studio-brand img {width:clamp(82px,8vw,112px);height:auto}
.studio-navigation,.studio-main-links {display:flex;align-items:center;gap:2px}
.studio-navigation {flex:1;min-width:0}
.studio-main-links a,.studio-disclosure summary,.studio-demo {
  min-height:44px; padding:10px clamp(10px,1.15vw,20px);display:inline-flex;align-items:center;
  font-size:.95rem;font-weight:650;line-height:1.35;border-radius:24px;
}
.studio-disclosure summary {list-style:none;gap:8px;cursor:pointer}
.studio-disclosure summary::-webkit-details-marker {display:none}
.studio-disclosure summary i {
  width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)
}
.studio-disclosure[open] summary i {transform:translateY(2px) rotate(225deg)}
.studio-disclosure[open] summary,.studio-main-links a[aria-current],.studio-main-links a:hover,.studio-disclosure summary:hover {background:#deeadf}
.studio-main-links [aria-current] {text-decoration:underline;text-underline-offset:4px}
.studio-demo {
  flex:none;background:var(--hn-action);color:white;gap:12px;padding:10px 17px;
  border:1px solid transparent;margin-left:auto;text-align:center
}
.studio-demo span {font-size:1.12em}
.studio-demo:hover {background:#0a5940}
.studio-header :focus-visible,.studio-panel a:focus-visible {outline:3px solid #145b40;outline-offset:2px}
.studio-panel {
  position:absolute;top:calc(100% + 9px);inset-inline:0;padding:clamp(18px,2.2vw,34px);
  background:#fcfdf8;border:1px solid var(--studio-rule);border-radius:26px;
  box-shadow:0 20px 48px #061d2130;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);
  overflow:auto;overscroll-behavior:contain;
}
.studio-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3.5vw,56px)}
.studio-group h2 {
  font:680 .85rem/1.45 Inter,sans-serif;letter-spacing:0;color:var(--studio-muted);text-align:left;
  margin:0 0 10px 6px;padding-bottom:10px;border-bottom:1px solid var(--studio-rule)
}
.studio-tool {display:flex;align-items:center;gap:12px;min-height:55px;padding:7px 6px;border-radius:12px}
.studio-tool svg {width:34px;height:34px;flex:none;stroke:var(--hn-action);stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;background:#e6f3e9;border-radius:11px;padding:7px}
.studio-tool strong,.studio-tool small {display:block}
.studio-tool strong {font:680 .98rem/1.35 Manrope,sans-serif}
.studio-tool small {font-size:.81rem;line-height:1.45;color:var(--studio-muted);margin-top:2px}
.studio-tool:is(:hover,[aria-current]),.studio-utilities a:hover {background:#eaf2e9}
.studio-tool[aria-current] strong {text-decoration:underline;text-underline-offset:3px}
.studio-index {display:flex;justify-content:space-between;align-items:center;min-height:44px;border-top:1px solid var(--studio-rule);margin-top:14px;padding:12px 6px 0;font-weight:700}
.studio-index span {font-size:1.3em}
.studio-index:hover {color:var(--hn-action);text-decoration:underline}
.studio-utilities,.studio-disclosure .narrow-label {display:none}
body[data-studio] .skip {z-index:40}
body[data-studio] .wrap {width:var(--studio-width)}
/* The dark opening gives each topic a distinct start. Links remain visible through motion. */
.studio-lead {
  background: var(--studio-night);color:var(--hn-paper);
  box-shadow:0 0 0 100vmax var(--studio-night);clip-path:inset(-100px -100vmax 0);
  padding-block:clamp(42px,5.6vw,92px);
}
.studio-lead :is(p,.eyebrow,.studio-crumb,.studio-back) {color:#d2e5d9}
.studio-lead :is(.eyebrow,.studio-back,.studio-crumb) {font-size:.82rem}
.studio-crumb {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.studio-crumb a,.studio-back {display:inline-flex;align-items:center;min-height:44px}
.studio-crumb a:hover,.studio-back:hover {text-decoration:underline;text-underline-offset:4px}
.studio-lead .primary,.studio-home .primary {background:var(--hn-tint);color:#092d21;border-color:var(--hn-tint)}
.studio-lead .primary:hover {background-color:#ceffe7}
.studio-lead a:focus-visible {outline:3px solid var(--hn-tint);outline-offset:3px}
.studio-lead .subtle {background:transparent;color:var(--hn-paper);border-color:#a6c5b4}
.studio-lead .studio-intro,.studio-lead .inner-hero {min-width:0;margin:0}
.studio-lead .inner-hero h1,.studio-overview h1,.studio-home h1 {
  font:580 clamp(3.2rem,5.7vw,6.6rem)/1.02 Manrope,sans-serif;
  letter-spacing:-.067em;color:var(--hn-paper);overflow-wrap:break-word
}
.studio-lead .inner-hero p,.studio-lead .hero-content p,.studio-overview p {max-width:52ch;font-size:clamp(1rem,1.35vw,1.25rem);line-height:1.55;margin:20px 0}
.studio-intro .inner-hero {margin-top:12px}
.studio-intro .inner-hero :last-child {margin-bottom:0}
.studio-lead .inner-hero .pill {margin-top:5px}
.studio-home {column-gap:clamp(32px,5vw,90px)}
.studio-home em {color:var(--hn-tint)}
.studio-home .set {height:clamp(330px,34vw,530px);border:1px solid #acc7b7;border-radius:clamp(18px,2.2vw,36px)}
.studio-split {display:grid;grid-template-columns:minmax(0, .88fr) minmax(0,1.12fr);align-items:center;gap:clamp(25px,5vw,80px)}
.studio-split figure.module-screen {margin:0;background:#efefe5;padding:clamp(10px,1.5vw,22px);border-radius:18px;border:none;min-width:0}
.studio-split figure.module-screen img {display:block;width:100%;max-height:390px;object-fit:contain;border-radius:6px}
.studio-split figure.module-screen figcaption {color:#385344;font-size:.78rem;padding:8px 0 0}
.studio-feature-art {overflow:hidden;border-radius:18px}
.studio-feature-art img {width:100%;height:clamp(230px,26vw,380px);object-fit:cover}
.studio-nidos-art {
  position:relative;overflow:hidden;isolation:isolate;height:clamp(280px,31vw,465px);border-radius:20px;
  background:linear-gradient(121deg,#deded1 0%,#dbe5d5 44%,#badac9 100%);
}
.studio-nidos-art:before {content:"";position:absolute;inset:38% -35% -75% 0;background:#a9c1af;border-radius:50%;transform:rotate(-18deg);box-shadow:inset 0 2px 3px #edf2df80}
.studio-phone {position:absolute;top:11%;width:39%;border:clamp(2px,.33vw,5px) solid #223b31;background:#20362e;border-radius:10% / 5.5%;overflow:hidden;box-shadow:12px 20px 22px #14372736}
.studio-phone img {width:100%;height:auto;display:block}
.studio-phone.front {left:45%;transform:rotate(5deg);top:17%}
.studio-phone.back {left:12%;transform:rotate(-9deg)}
.studio-text .inner-hero {max-width:960px}
.studio-text .inner-hero p {max-width:59ch}
.studio-overview p {margin-bottom:0!important}
.folio-index:has(.studio-overview) {max-width:none;padding-top:0}
body[data-studio] main .resource-copy {gap:clamp(24px,4vw,68px);margin:clamp(40px,6vw,80px) 0}
body[data-studio] .resource-copy section {min-width:0}
body[data-studio] .resource-copy h2,body[data-studio] .reader-sections h2 {
  font:650 clamp(1.5rem,2.5vw,2.75rem)/1.07 Manrope,sans-serif;letter-spacing:-.045em;margin:0 0 17px;
}
body[data-studio] .resource-copy h2:not(:first-child) {margin-top:28px}
body[data-studio] .resource-copy:has(.studio-steps) {grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-steps {grid-column:1/-1}
.studio-steps ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,44px);padding:0;list-style:none;counter-reset:etapa}
.studio-steps ol li {counter-increment:etapa;border-top:1px solid #8ca798;padding:16px 0 0}
.studio-steps ol li:before {content:counter(etapa,decimal-leading-zero);display:block;font:560 1.65rem/1.25 Manrope,sans-serif;color:#247251;margin-bottom:12px}
body[data-studio] .link-tiles {grid-template-columns:1fr;gap:0;margin-block:clamp(36px,5vw,82px)}
body[data-studio] .link-tiles a {
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:baseline;
  gap:clamp(12px,6vw,95px);border:0;border-top:1px solid var(--studio-rule);
  border-radius:0;background:transparent;padding:clamp(20px,2.7vw,42px) max(3px,1vw);
}
body[data-studio] .link-tiles a:hover {background:#ecf3ea}
body[data-studio] .link-tiles strong {font:650 clamp(1.25rem,2.1vw,2.15rem)/1.15 Manrope,sans-serif;letter-spacing:-.038em}
body[data-studio] .reader-sections {max-width:100%;margin:42px 0}
body[data-studio] .reader-sections section {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px 48px;padding:24px 0;border-top:1px solid var(--studio-rule);margin:0}
body[data-studio] .reader-sections section>* {grid-column:2}
body[data-studio] .reader-sections section h2 {grid-column:1;grid-row:1;margin:0}
body[data-studio] .inner-grid,body[data-studio] .legal,body[data-studio] .inner-main>.faq,body[data-studio] .inner-main>.notice,body[data-studio] .inner-main>.module-grid,body[data-studio] .inner-main>.menu-sample {margin-top:32px}
body[data-studio] .folio-chapter {padding-block:clamp(26px,4vw,60px);scroll-margin-top:48px}
body[data-studio] .section-heading h2,body[data-studio] .sect-heading h2 {font-weight:630}
body[data-studio] .read-next a {min-height:44px}
body[data-studio] .band {margin-top:0;min-height:54px}
body[data-studio] .footer {border-top:1px solid #9aaa9d;padding-top:36px}
@media(max-width:800px) {
  .studio-header {gap:12px;min-height:58px}
  .studio-disclosure .wide-label {display:none}
  .studio-disclosure .narrow-label {display:inline}
  .studio-utilities {display:flex;flex-wrap:wrap;gap:4px 10px;border-bottom:1px solid var(--studio-rule);padding-bottom:10px;margin-bottom:16px}
  .studio-utilities a {min-height:44px;display:inline-flex;align-items:center;padding:4px 8px;font-weight:650}
  .studio-groups {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}
  .studio-tool {min-height:44px}
  .studio-group h2 {margin-bottom:3px}
  .studio-tool small {display:none}
  .studio-panel {border-radius:18px;padding:16px}
}
@media(max-width:700px) {
  :root {scroll-padding-top:88px}
  .studio-lead {padding-block:30px 35px}
  .studio-home,.studio-split {grid-template-columns:minmax(0,1fr);gap:24px}
  .studio-split .studio-crumb a,.studio-lead .studio-back {min-height:40px}
  .studio-home .hero-content {padding:8px 0 0}
  .studio-lead .inner-hero h1,.studio-overview h1,.studio-home h1 {font-size:clamp(2.7rem,10.2vw,4.4rem)}
  .studio-home .set {height:clamp(275px,75vw,355px)}
  .studio-split .module-screen img {max-height:310px}
  .studio-nidos-art {height:clamp(225px,66vw,340px)}
  body[data-studio] .resource-copy:has(.studio-steps),.studio-steps ol {grid-template-columns:minmax(0,1fr)}
  .studio-steps ol {gap:0}
  .studio-steps ol li {display:flex;align-items:baseline;gap:14px;padding:13px 0}
  .studio-steps ol li:before {font-size:1.25rem;margin:0}
  body[data-studio] .reader-sections section,body[data-studio] .link-tiles a {grid-template-columns:minmax(0,1fr);gap:10px}
  body[data-studio] .reader-sections section>* {grid-column:1}
  .studio-tool strong {font-size:.9rem}
}
@media(max-width:550px) {
  .studio-header {width:calc(100% - 20px);margin-top:8px;top:6px;gap:5px;padding:4px 6px 4px 14px}
  .studio-disclosure summary,.studio-demo {font-size:.85rem}
  .studio-demo {padding:8px 12px;gap:6px}
  .studio-brand img {width:76px}
  .studio-panel {top:calc(100% + 6px);padding:12px 14px;max-height:calc(100dvh - 76px)}
  .studio-groups {grid-template-columns:minmax(0,1fr);gap:18px}
  .studio-utilities {margin-bottom:12px;gap:0;justify-content:space-between}
  .studio-utilities a {padding-inline:4px;font-size:.89rem}
  .studio-tool {gap:9px;padding:4px}
  .studio-tool svg {width:28px;height:28px;padding:6px}
  .studio-index {margin-top:10px}
}
@media(prefers-reduced-transparency:reduce),(forced-colors:active) {
  .studio-header,.studio-panel {background:Canvas;color:CanvasText;backdrop-filter:none}
  .studio-tool svg {background:transparent}
}
.studio-home .phone-one {height:69%;width:auto;aspect-ratio:390 / 733;bottom:17%}
.studio-demo span {display:grid;place-items:center;border-radius:50%;border:1px solid #a7c9b7;width:1.55em;height:1.55em;font-size:.9em}
.studio-jump {display:flex;align-items:stretch;flex-wrap:wrap;gap:4px clamp(14px,3.5vw,48px);padding:8px 0;border-bottom:1px solid var(--studio-rule)}
.studio-jump a,.folio-index .studio-jump a {display:inline-flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;border:none;font:650 .91rem/1.35 Manrope,sans-serif}
.studio-jump a:hover {text-decoration:underline;text-underline-offset:4px}
.studio-jump span {color:#38694f}
.studio-steps .module-screen {margin:24px 0 0;background:#e6ede3;padding:clamp(12px,2vw,32px);border-radius:18px;text-align:center}
.studio-steps .module-screen img {max-width:980px;margin:auto;border:1px solid var(--studio-rule)}
.studio-steps .module-screen figcaption {font-size:.83rem;color:var(--studio-muted)}
@media(max-width:550px) {
  .studio-jump,.folio-index .studio-jump {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
  .studio-jump a,.folio-index .studio-jump a {justify-content:flex-start;font-size:.86rem}
  .studio-header {flex-wrap:wrap}
  .studio-navigation {flex:1 1 auto}
}

/* Public presentation of the actual app screens. */
.screen-tour {padding-block:clamp(52px,7vw,108px)}
.screen-heading,.screen-buttons,.screen-foot {display:flex;align-items:center;justify-content:space-between;gap:12px}
.screen-heading {margin-bottom:clamp(16px,2vw,32px);flex-wrap:wrap}
.screen-heading h2 {font-size:clamp(2.1rem,4.6vw,4.7rem);font-weight:630}
.screen-buttons {gap:6px}
.screen-buttons[hidden] {display:none}
.screen-buttons button {width:44px;height:44px;display:grid;place-items:center;border:1px solid #729380;border-radius:50%;font:500 1.35rem/1 Inter,sans-serif;color:var(--hn-action);background:#edf5eb;cursor:pointer}
.screen-buttons button[aria-disabled=true] {background:transparent;color:#59685c;border-color:#aab9ad}
.screen-count {font:650 .9rem/1.2 Manrope,sans-serif;font-variant-numeric:tabular-nums;margin-right:8px}
.screen-track {display:grid;gap:22px;position:relative}
.screen-interactive .screen-track {display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;gap:clamp(10px,1.3vw,22px)}
.screen-interactive .screen-track::-webkit-scrollbar {display:none}
.screen-track.free-scroll {scroll-snap-type:none}
.screen-track.dragging,.screen-track.dragging * {cursor:grabbing;user-select:none}
.screen-slide {display:grid;min-width:0;grid-template-columns:minmax(0,1.7fr) minmax(0,.85fr);align-items:center;background:#e6eee5;border-radius:22px;overflow:hidden}
.screen-interactive .screen-slide {flex:0 0 94%;scroll-snap-align:start}
.screen-interactive .screen-track:after {content:"";flex:0 0 max(0px,calc(6% - clamp(10px,1.3vw,22px)))}
.screen-photo {position:relative;display:block;background:#c3caba;min-width:0}
.screen-photo picture{display:block}
.screen-photo img {border:0;width:100%;height:auto}
.screen-photo>span {position:absolute;bottom:10px;left:10px;background:#fbfdf4ed;color:#18382b;border-radius:30px;padding:5px 11px;font-weight:650;font-size:.82rem}
.screen-copy {padding:clamp(16px,3vw,52px);min-width:0}
.screen-copy h3 {font:640 clamp(1.65rem,3vw,3.2rem)/1.04 Manrope,sans-serif;letter-spacing:-.05em;margin:0}
.screen-copy p {margin:16px 0 18px;font-size:1rem;line-height:1.5;max-width:37ch}
.screen-copy .under,.screen-foot a {min-height:44px;align-items:center;display:inline-flex}
.screen-foot {justify-content:flex-start;flex-wrap:wrap;column-gap:24px;margin-top:12px}
.screen-foot>a {font-size:.9rem}
.screen-status {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.screen-tour :focus-visible {outline:3px solid #265c42;outline-offset:-4px}
.screen-track:focus-visible {outline-offset:4px}
body[data-studio] .tile:has(img[src*="/dispositivos/"]) {padding:0}
body[data-studio] .tile img[src*="/dispositivos/"] {width:100%;height:100%;border:none;border-radius:0;box-shadow:none;object-fit:cover;object-position:center 35%}
body[data-studio] .case-art a:has(img[src*="/dispositivos/"]) img {object-fit:contain;border:none;border-radius:10px}
body[data-studio] .studio-feature-art:has(img[src*="-movil.webp"]) {background:#e8dfce}
body[data-studio] .studio-feature-art img[src*="-movil.webp"] {object-fit:contain}
body[data-studio] .folio-chapter figure img[src*="/dispositivos/"] {object-fit:contain;max-height:360px}
@media(max-width:640px){
 .screen-heading {gap:12px;margin-bottom:16px}
 .screen-interactive .screen-slide {flex-basis:94%}
 .screen-slide {grid-template-columns:minmax(0,1fr);align-content:start}
 .screen-photo>span{justify-self:stretch}
 .screen-copy {padding:18px 20px 16px}
 .screen-copy p {margin:8px 0}
 .screen-foot {gap:6px 18px}
}
#profile-view {width:min(94vw,1100px);max-width:94vw;max-height:94dvh}
#profile-view img {max-height:calc(86dvh - 65px);width:100%;object-fit:contain}
body[data-studio] .case-art:has(a) {grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr)}
body[data-studio] .case-art>a {order:-1}

/* Keep the exhibition handset in view when the wide photograph fills a narrow slide. */
.expo-photo {align-self:stretch}
.nido-examples .foco-photo {padding:0;background:#17251a}
.nido-examples .foco-photo img {width:100%;height:100%;object-fit:contain;border:0;border-radius:0;box-shadow:none}
.restaurant-example {min-width:0;margin:0}
.restaurant-example a {display:block;border-radius:18px}
.restaurant-example img {display:block;width:100%;height:auto;border-radius:inherit}
.restaurant-example figcaption {margin:8px 0 0;color:#d2e5d9;font-size:.88rem}
@media(min-width:851px){.nido-examples {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:346px) and (max-width:850px){.nido-examples {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
}

/* The studio images already include the device and its perspective. */
.docsy-scene, .docsy-spread {
  min-width:0; margin:0; overflow:hidden; border-radius:clamp(16px,2vw,28px);
}
.docsy-scene {display:grid; place-items:center; height:auto; isolation:isolate}
.docsy-scene img, .docsy-spread img {display:block; width:100%; height:auto}
.docsy-hero {background:#a6cdb9}
.docsy-hero img {max-height:clamp(300px,37vw,530px); object-fit:contain}
.docsy-spread .docsy-link, .docsy-cases .docsy-link, .docsy-web .docsy-link {display:block; cursor:zoom-in}
.docsy-link:focus-visible {outline:3px solid #20523c;outline-offset:-5px}
.studio-lead .docsy-link:focus-visible {outline:3px solid #fff;outline-offset:-5px}
.docsy-optica {background:#f3e5d1}
.docsy-optica img {max-height:440px;object-fit:contain}
.folio-chapter#crear .docsy-web {padding:0;background:#b4f3d9}
.folio-chapter#crear .docsy-web img {display:block;width:100%;height:auto;max-height:435px;object-fit:contain;transform:none;box-shadow:none;border:0;border-radius:0}
.folio-chapter#crear .docsy-web figcaption {margin:8px 14px 14px}
.nido-examples .docsy-tile {grid-template-rows:minmax(0,1fr);padding:0;background:var(--photo-ground,#f4eadb);align-items:center}
.nido-examples .docsy-tile img {display:block;width:100%;height:100%;object-fit:contain;box-shadow:none;border:0;border-radius:0}
.nido-examples .prisma-en-mano {--photo-ground:#eee8dd}
.nido-examples .prisma-en-mano img {height:auto}
.docsy-cases {margin-block:clamp(40px,6vw,84px)}
.docsy-cases h2 {font:650 clamp(1.8rem,3.5vw,3rem)/1.1 Manrope,sans-serif;letter-spacing:-.045em}
.docsy-cases .case-triptych {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.5vw,40px)}
.docsy-cases figure {margin:0;min-width:0}
.docsy-cases .docsy-link {display:block;aspect-ratio:4/3;background:#18251d;border-radius:16px;overflow:hidden}
.docsy-cases img {display:block;width:100%;height:100%;object-fit:cover}
.docsy-cases figcaption h3 {font:680 1.3rem/1.2 Manrope,sans-serif;margin:14px 0 5px}
.docsy-cases figcaption p {font-size:1rem;line-height:1.5;margin:0;max-width:46ch}
.screen-photo>span {position:static;display:block;border-radius:0;padding:8px 14px;background:#e6eee5;color:#204834}
@media(max-width:720px) {
  .docsy-cases .case-triptych {grid-template-columns:1fr;gap:32px}
}
.docsy-scene::after {content:none}

/* Product examples keep their edges and copy fixed while the photographs change depth. */
.profile-stack {min-width:0;margin:0;overflow:hidden;border-radius:22px;background:#dfebdf}
.stack-stage {display:grid;place-items:center;position:relative;isolation:isolate;width:100%;aspect-ratio:1.34}
.stack-card {grid-area:1 / 1;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);place-items:center;width:65%;height:76%;overflow:hidden;border-radius:clamp(12px,1.2vw,20px);background:#075038}
.stack-card img {display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.stack-ready .stack-card {box-shadow:0 4px 12px #153b2a24}
.stack-card[data-name="Ruta Nácar"] {background:#c6ebdd}
.stack-card[data-name="Mesa Nami"] {background:#2c3029}
.stack-controls {display:flex;align-items:center;gap:8px;padding:0 clamp(12px,2vw,26px) 16px;color:#163a29}
.stack-controls[hidden] {display:none}
.stack-status {font:650 .9rem/1.4 Manrope,sans-serif;margin-right:auto}
.stack-controls button {width:44px;height:44px;flex:0 0 auto;border-radius:50%;border:1px solid #779083;background:#f8fbf3;color:#103d2c;font:550 1.2rem/1 Manrope,sans-serif;cursor:pointer}
.stack-controls button:focus-visible {outline:3px solid #0b573e;outline-offset:2px}
.screen-photo, .screen-photo picture {perspective:950px}
.screen-photo img {backface-visibility:hidden}
.studio-home .primary {
  background-image:linear-gradient(112deg,transparent calc(var(--glint,-65%) - 19%),#ffffff80 var(--glint,-65%),transparent calc(var(--glint,-65%) + 19%))
}
@media(prefers-reduced-motion:reduce) {
  .studio-home .primary {background-image:none}
}

/* Identical staging makes the four actual profile designs comparable. */
.nido-examples .gallery-card {display:flex;flex-direction:column;overflow:hidden;min-width:0}
.nido-examples .gallery-portrait {display:block;height:auto;aspect-ratio:7/9;padding:0;cursor:zoom-in}
.nido-examples .gallery-portrait img {display:block;width:100%;height:100%;object-fit:contain;border:0;border-radius:0;box-shadow:none}
.gallery-destination {display:flex;flex:1;align-items:flex-start;text-decoration:none;color:var(--hn-ink)}
.gallery-destination .gallery-open {display:inline-block;margin-top:7px;font:650 .82rem/1.25 Manrope,sans-serif;color:#155239}
.gallery-destination:hover .gallery-open,.gallery-destination:focus-visible .gallery-open {text-decoration:underline;text-underline-offset:.2em}
.gallery-card a:focus-visible {outline-offset:-4px}

.reading-progress {
  position:absolute;pointer-events:none;height:2px;bottom:0;left:24px;right:24px;
  border-radius:2px;background:#277556;transform:scaleX(0);transform-origin:left center
}
.scroll-photo {translate:0 var(--photo-rise,0px)}
@media print, (prefers-reduced-motion:reduce) {
  .reading-progress {display:none}
  .scroll-photo {translate:none}
}
.scroll-title {translate:0 var(--title-rise,0px)}
.scroll-rule {position:relative}
.scroll-rule::after {
  content:"";position:absolute;pointer-events:none;inset:0 auto auto 0;
  width:min(4.5rem,23%);height:2px;background:#367f5e;
  transform-origin:left center;transform:scaleX(var(--read-line,0))
}
@media print, (prefers-reduced-motion:reduce) {
  .scroll-title {translate:none}
  .scroll-rule::after {display:none}
}
.screen-interactive .screen-track.read-along{scroll-snap-type:none}
.screen-skip{display:inline-flex;align-items:center;min-height:44px;margin-right:4px;font-size:.85rem;color:var(--hn-action,#064632);text-underline-offset:3px}
@media(max-width:640px){
  .screen-heading h2{font-size:clamp(1.65rem,7.5vw,2.55rem)}
  .screen-heading{gap:4px 10px;margin-bottom:10px}
}
.screen-linear .screen-track{display:grid;overflow:visible;scroll-snap-type:none;gap:24px}
.screen-linear .screen-track:after{display:none}
.screen-linear .screen-slide{width:100%}
.screen-linear .screen-buttons{display:none}

/* Decorative companion. The system pointer and all click targets stay native. */
.nilo-pointer{position:fixed;inset:0 auto auto 0;width:24px;height:24px;pointer-events:none;user-select:none;z-index:120;filter:drop-shadow(0 0 1.5px #faf8f3) drop-shadow(0 1px 1px #faf8f3);transform-origin:center}
.nilo-pointer[hidden],.hn-crossing .nilo-pointer,.hn-first .nilo-pointer{display:none}
@media print,(prefers-reduced-motion:reduce),(hover:none){.nilo-pointer{display:none}}

.screen-tour .screen-caption{margin:.32rem 0 0;font:500 .9rem/1.45 Manrope,sans-serif;color:#476455}
.screen-photo.work-scene{align-self:start;background:#e6eee5;overflow:hidden}
.screen-photo.work-scene>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.screen-photo.work-scene>span{position:static;display:block;padding:7px 14px;background:#e6eee5;color:#204834}
@media(min-width:641px){.screen-slide{grid-template-columns:minmax(0,min(64%,80svh)) minmax(0,1fr)}}
.studio-main-links{min-width:0;flex-wrap:wrap}

.hn-access,.hero-paths {display:flex;align-items:center;gap:clamp(12px,2vw,28px)}
.hn-access {margin-left:auto;flex:none}
.hn-access a,.hero-demo {display:inline-flex;min-height:44px;align-items:center;font-weight:700}
.hn-login {color:#18382b}
.hn-access .studio-demo {background:#064632;color:#fff}
.hero-paths {flex-wrap:wrap;row-gap:4px}
.hero-demo {text-decoration:underline;text-underline-offset:5px;color:#faf8f3;gap:8px}
.studio-home .docsy-hero {position:relative}
.hero-cafe-caption {position:absolute;bottom:12px;left:12px;background:#faf8f3;color:#18382b;border-radius:20px;padding:6px 12px;font-size:.83rem;font-weight:650}
html[data-direct-home] .hn-first-walk {display:none}
@media(max-width:700px){
 .hn-access {gap:8px}
 .hn-login,.hn-access .studio-demo {font-size:.84rem}
 .studio-header .studio-brand img {width:70px}
 .studio-header .studio-disclosure summary {padding-inline:7px;min-height:44px}
 .studio-panel .studio-groups {display:none}
 .studio-panel .studio-utilities {display:grid;grid-template-columns:1fr 1fr;gap:4px}
 .studio-panel .studio-utilities a {min-height:44px}
 .hero-paths {align-items:flex-start}
}
@media(max-width:370px){
 .studio-header {gap:2px;padding-inline:8px}
 .studio-header .studio-brand img {width:55px}
 .hn-access {gap:5px}.hn-access .studio-demo {padding-inline:8px}
}
/* La fila puede partirse al ampliar el texto. Cada grupo conserva su anchura natural. */
.studio-header:has(.hn-access) {flex-wrap:wrap;row-gap:4px}
.studio-header:has(.hn-access) .studio-navigation {width:auto;flex:1 1 auto;min-width:min-content}
.hn-access {max-width:100%;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end}
@media(min-width:801px) and (max-width:1024px){
 .studio-disclosure .wide-label {display:none}
 .studio-disclosure .narrow-label {display:inline}
 .studio-utilities {display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--studio-rule);padding-block-end:12px;margin-block-end:12px}
 .studio-utilities a {min-height:44px;display:inline-flex;align-items:center;padding-inline:8px}
}

/* La navegación pública expone las cinco rutas también con texto ampliado. */
@media (max-width: 800px) {
  .studio-header,
  .studio-header:has(.hn-access) {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    column-gap: 8px; row-gap: 0; border-radius: 24px;
    padding: 4px 8px; align-items: center;
  }
  .studio-header .studio-brand {grid-area: 1 / 1; justify-self: start; padding-inline: 5px;}
  .studio-header > :is(.hn-access,.studio-demo) {grid-area: 1 / 2; justify-self: end;}
  .studio-header .studio-navigation {grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0;}
  .studio-header .studio-main-links {display: flex; width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 0;}
  .studio-main-links a {justify-content: center; padding: 5px clamp(3px,1vw,9px); min-height: 44px; font-size: .875rem;}
  html {scroll-padding-top: 108px;}
}
@media (min-width: 801px) and (max-width: 1024px) {
  .studio-header {gap: 8px; padding-inline: 14px;}
  .studio-main-links a {padding-inline: 8px;}
}
