/* =========================================================
   Estilos (Material 3): color, elevación, íconos, movimiento,
   forma, espaciado y tipografía
   ========================================================= */
:root {
  --s-primary: #3b56c4; --s-on-primary: #fff; --s-primary-container: #dde1ff; --s-on-primary-container: #001257;
  --s-secondary: #5a5d72; --s-on-secondary: #fff; --s-secondary-container: #dfe1f9; --s-on-secondary-container: #171b2c;
  --s-tertiary: #75546f; --s-tertiary-container: #ffd7f5; --s-on-tertiary-container: #2c1229;
  --s-surface: #fbf8ff; --s-on-surface: #1a1b21; --s-surface-variant: #e2e1ec; --s-on-surface-variant: #45464f; --s-outline: #767680;
  --s-surface-container-low: #f4f2fa; --s-surface-container: #efedf4; --s-surface-container-high: #e9e7ef; --s-outline-variant: #c6c5d0;
  --ease-emph: cubic-bezier(0.2, 0, 0, 1);
}
.st-hero { margin-top: 22px; padding: 28px; border: 1px solid var(--borde); border-radius: 16px; background: #f3f6fb; background-image: radial-gradient(#dbe3ef 1px, transparent 1px); background-size: 16px 16px; }
.cs-lbl { font: 500 .8rem "Roboto", sans-serif; color: #4b5563; }
.nav-sub summary { list-style: none; display: block; position: relative; cursor: pointer; }
.nav-sub summary::-webkit-details-marker { display: none; }
.nav-sub summary::after { content: ""; position: absolute; right: 30px; top: 50%; border: 5px solid transparent; border-top-color: #6b7280; margin-top: -2px; transition: transform .2s; }
.nav-sub[open] summary::after { transform: rotate(180deg); margin-top: -7px; }
.sidenav a.nav-subl { padding-left: 48px; font-size: .84rem; }

/* ---------- Resumen ---------- */
.so-hero { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.so-phone { position: relative; width: 210px; height: 300px; border: 7px solid #1f2937; border-radius: 26px; background: var(--s-surface); overflow: hidden; padding: 0 12px; }
.so-top { height: 44px; margin: 0 -12px 12px; background: var(--s-primary); }
.so-card { background: var(--s-surface-container-low); border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 1px 3px 1px rgba(0,0,0,.12); }
.so-card b { display: block; height: 10px; width: 60%; border-radius: 5px; background: var(--s-on-surface); margin-bottom: 8px; }
.so-card i { display: block; height: 6px; border-radius: 3px; background: var(--s-outline-variant); margin-bottom: 5px; }
.so-card.alt { background: var(--s-primary-container); }
.so-fab { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 16px; background: var(--s-primary-container); color: var(--s-on-primary-container); display: grid; place-items: center; font: 400 1.6rem "Roboto", sans-serif; box-shadow: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.3); }
.so-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font: 400 1rem "Roboto", sans-serif; }
.so-legend li { display: flex; align-items: center; gap: 12px; }
.so-legend i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; }
.so-legend i.sh { background: #fff; box-shadow: 0 4px 8px 3px rgba(0,0,0,.15); }
.so-legend i.rd { border: 2px solid var(--s-primary); border-radius: 50%; }
.so-legend i.ty { font: 500 1rem "Roboto", sans-serif; border: 1px solid #cbd5e1; }
.so-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.so-c { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.so-c:hover { border-color: #c7d2fe; box-shadow: 0 8px 20px -12px rgba(29,78,216,.35); }
.so-c h3 { margin: 14px 16px 4px; font-size: 1.05rem; } .so-c p { margin: 0 16px 16px; font-size: .88rem; color: #6b7280; }
.so-prev { height: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #f3f6fb; }
.so-color i { width: 30px; height: 60px; border-radius: 15px; }
.so-elev i { width: 50px; height: 50px; border-radius: 10px; background: #fff; }
.so-elev i:nth-child(1) { box-shadow: 0 1px 2px rgba(0,0,0,.3); } .so-elev i:nth-child(2) { box-shadow: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.3); } .so-elev i:nth-child(3) { box-shadow: 0 8px 12px 6px rgba(0,0,0,.15), 0 4px 4px rgba(0,0,0,.3); }
.so-ic .ms { font-size: 40px; color: var(--azul); }
.so-mo { width: 70%; height: 4px; background: #c7d2fe; border-radius: 2px; position: relative; }
.so-mo i { position: absolute; top: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--azul); animation: soMo 2.4s infinite var(--ease-emph) alternate; }
@keyframes soMo { from { left: 0; } to { left: calc(100% - 24px); } }
.so-sh i { width: 46px; height: 46px; background: var(--azul); }
.so-sp i { width: 14px; height: 70px; background: repeating-linear-gradient(#1d4ed8 0 4px, transparent 4px 8px); opacity: .5; }
.so-sp i:nth-child(2) { width: 50px; background: #c7d2fe; opacity: 1; }
.so-ty b { font: 400 3rem "Roboto", sans-serif; color: var(--azul); } .so-ty span { font-size: .8rem; color: #6b7280; }

/* ---------- Íconos (Material Symbols) ---------- */
.ms, .ms-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; display: inline-block; }
.ms-rounded .ms, .ms.ms-rounded { font-family: "Material Symbols Rounded"; }
.ms-sharp .ms, .ms.ms-sharp { font-family: "Material Symbols Sharp"; }
.ms.fill { font-variation-settings: "FILL" 1; }
.ic-lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; align-items: center; }
.ic-big { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ic-big .ms { font-size: 140px; color: var(--azul); transition: font-variation-settings .2s; }
.ic-big code { display: block; max-width: 100%; white-space: pre-wrap; font-size: .76rem; text-align: center; }
.ic-ctl { display: flex; flex-direction: column; gap: 6px; }
.ic-ctl .vs-field { max-width: none; }
.ic-ctl .vs-field > label { margin-bottom: 2px; }
.ic-style { align-self: flex-start; margin-top: 6px; }
.ic-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ic-st { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; text-align: center; }
.ic-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.ic-row .ms { font-size: 32px; color: #374151; }
.ic-st b { display: block; font: 500 .95rem "Roboto", sans-serif; } .ic-st small { color: #6b7280; }
.ic-search { max-width: 360px; margin-bottom: 14px; }
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ic-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 10px; border: 1px solid transparent; border-radius: 10px; background: #f8fafc; cursor: pointer; color: #1f2937; }
.ic-cell:hover, .ic-cell:focus-visible { border-color: var(--azul); background: #eef2ff; outline: none; }
.ic-cell .ms { font-size: 28px; }
.ic-cell small { font: 400 .7rem var(--mono); color: #6b7280; word-break: break-all; }
.ic-msg { font: 400 .85rem var(--mono); color: var(--verde); min-height: 1.2em; }
.ic-sizes { display: flex; align-items: flex-end; gap: 30px; }
.ic-sizes div { display: flex; flex-direction: column; align-items: center; gap: 6px; } .ic-sizes small { color: #6b7280; }

/* ---------- Color ---------- */
.cs-app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.cs-picker { display: flex; flex-direction: column; gap: 18px; }
.cs-seeds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cs-seeds .cs-lbl { flex-basis: 100%; }
.cs-seed { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; cursor: pointer; padding: 0; }
.cs-seed.on, .cs-seed:focus-visible { box-shadow: 0 0 0 3px #111827; outline: none; }
.cs-custom { display: flex; align-items: center; gap: 6px; font: 400 .85rem "Roboto", sans-serif; cursor: pointer; }
.cs-custom input { width: 40px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; }
.cs-mode { align-self: flex-start; }
.cs-preview { display: flex; justify-content: center; }
.csp-phone { position: relative; width: 240px; height: 400px; border: 8px solid #1f2937; border-radius: 30px; overflow: hidden; background: var(--s-surface); color: var(--s-on-surface); font-family: "Roboto", sans-serif; transition: background .3s; }
.csp-top { height: 56px; display: flex; align-items: center; padding: 0 16px; background: var(--s-surface-container); color: var(--s-on-surface); font-size: 1.05rem; }
.csp-body { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.csp-card { background: var(--s-surface-container-high); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.csp-card.low { background: var(--s-secondary-container); color: var(--s-on-secondary-container); }
.csp-card small { color: var(--s-on-surface-variant); }
.csp-card.low small { color: inherit; opacity: .8; }
.csp-btns { display: flex; gap: 8px; margin-top: 10px; }
.csp-btn { padding: 8px 14px; border-radius: 20px; background: var(--s-primary); color: var(--s-on-primary); font-size: .78rem; font-weight: 500; }
.csp-btn.tonal { background: var(--s-secondary-container); color: var(--s-on-secondary-container); }
.csp-chips { display: flex; gap: 6px; }
.csp-chips span { padding: 5px 10px; border: 1px solid var(--s-outline); border-radius: 8px; font-size: .72rem; color: var(--s-on-surface-variant); }
.csp-chips span.on { background: var(--s-secondary-container); color: var(--s-on-secondary-container); border-color: transparent; }
.csp-fab { position: absolute; right: 14px; bottom: 72px; width: 52px; height: 52px; border-radius: 16px; background: var(--s-tertiary-container); color: var(--s-on-tertiary-container); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 4px 8px 3px rgba(0,0,0,.15); }
.csp-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--s-surface-container); display: flex; justify-content: space-around; align-items: center; }
.csp-nav i { width: 56px; height: 28px; border-radius: 14px; background: var(--s-outline-variant); opacity: .5; }
.csp-nav i.on { background: var(--s-secondary-container); opacity: 1; }
.cs-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 14px 0 18px; }
.role { border-radius: 10px; padding: 12px 14px; font-family: "Roboto", sans-serif; min-height: 84px; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.06); }
.role b { font-weight: 500; font-size: .9rem; } .role small { font: 400 .72rem var(--mono); opacity: .85; } .role span { margin-top: auto; font-size: .72rem; opacity: .9; }
.role.outline { border: 2px solid; }
.cs-palettes { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.pal-row b { display: block; font: 500 .82rem "Roboto", sans-serif; margin-bottom: 3px; }
.pal-tones { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); border-radius: 8px; overflow: hidden; }
.pal-tones span { height: 40px; display: grid; place-items: center; font: 500 .66rem "Roboto", sans-serif; }
.cs-imgs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.cs-img { position: relative; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-img span { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; }
.cs-img.on, .cs-img:focus-visible { border-color: #111827; outline: none; }
.cs-contrast { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ct-pair { border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-family: "Roboto", sans-serif; border: 1px solid rgba(0,0,0,.08); }
.ct-pair b { font-size: 1.6rem; font-weight: 400; } .ct-pair span { font-size: .74rem; }
.ct-pair em { font-style: normal; font: 600 .78rem var(--sans); padding: 2px 8px; border-radius: 10px; align-self: flex-start; background: #fff; }
.ct-pair em.ok { color: #15803d; } .ct-pair em.no { color: #b91c1c; }

/* ---------- Elevación ---------- */
.el-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; transition: background .3s; border-radius: 12px; padding: 10px; }
.el-hero .lst-ctl { grid-column: 2; }
.el-hero.dark { background: #1a1b21; color: #e3e1e9; }
.el-hero.dark .vs-field > label { color: #c6c5d0; }
.el-stage { grid-row: span 2; display: grid; place-items: center; min-height: 220px; }
.el-card, .el-lv { --lv: 0; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; font-family: "Roboto", sans-serif; transition: box-shadow .3s, background .3s; background: #fff;
  box-shadow: var(--sh); --sh: none; }
.el-card { width: 200px; height: 150px; font-size: 1.1rem; }
.el-card, .el-lv { --dp: 0; box-shadow: 0 calc(var(--dp) * .55px) calc(var(--dp) * 1.1px) calc(var(--dp) * .3px) rgba(0,0,0,.16), 0 calc(var(--dp) * .18px) calc(var(--dp) * .4px) rgba(0,0,0,.28); }
.el-card small, .el-lv small { color: #6b7280; }
.el-hero.dark .el-card { background: color-mix(in srgb, #8ea3ff calc(var(--lv) * 2.4%), #1f2027); color: #e3e1e9; }
.el-hero.dark .el-card small { color: #a8a7b3; }
.el-levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; padding: 24px; background: #f3f4f8; border-radius: 12px; margin-bottom: 12px; }
.el-lv { height: 110px; }
.el-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px; background: #121318; border-radius: 12px; }
.el-lv.dark { background: color-mix(in srgb, #8ea3ff calc(var(--lv) * 2.4%), #1f2027); color: #e3e1e9; }

/* ---------- Movimiento ---------- */
.mo-hero { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 560px; margin: 0 auto; }
.mo-lane { position: relative; height: 40px; border-radius: 20px; background: #e5e7eb; }
.mo-lane small { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 .8rem "Roboto", sans-serif; color: #6b7280; }
.mo-ball { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--azul); transition: left 1.2s var(--ease, linear); }
.mo-hero.go .mo-ball { left: calc(100% - 36px); }
.mo-hero .mb { align-self: flex-start; }
.mo-eases { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mo-ease { --ease: linear; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font-family: "Roboto", sans-serif; }
.mo-ease:hover, .mo-ease:focus-visible { border-color: var(--azul); outline: none; }
.mo-curve { width: 90px; height: 90px; }
.mo-curve .axis { stroke: #cbd5e1; stroke-width: 1.5; fill: none; }
.mo-curve .crv { stroke: var(--azul); stroke-width: 3; fill: none; }
.mo-track { position: relative; height: 6px; border-radius: 3px; background: #e5e7eb; margin: 6px 0; }
.mo-track i { position: absolute; left: 0; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--azul); }
.mo-ease.go .mo-track i { animation: moGo 1s var(--ease) forwards; }
@keyframes moGo { to { left: calc(100% - 16px); } }
.mo-ease b { font-weight: 500; } .mo-ease code { font-size: .72rem; } .mo-ease small { color: #6b7280; }
.mo-durs { flex-wrap: wrap; border-radius: 12px; }
.mo-durs button { display: flex; flex-direction: column; align-items: center; font-size: .72rem; padding: 6px 10px; }
.mo-durs small { font-weight: 400; opacity: .75; }
.mo-dur-demo { --dur: 300ms; position: relative; height: 56px; margin: 16px 0 10px; border-radius: 28px; background: #e5e7eb; max-width: 560px; }
.mo-ball.big { width: 48px; height: 48px; transition: left var(--dur) cubic-bezier(0.2, 0, 0, 1); }
.mo-dur-demo.go .mo-ball { left: calc(100% - 52px); }
.mo-pats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mo-pat { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.mo-stage { position: relative; height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #f3f6fb; overflow: hidden; padding: 16px; }
.ct-item { position: absolute; left: calc(50% - 80px); top: 40px; width: 160px; height: 120px; background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .5s var(--ease-emph), top .5s var(--ease-emph), width .5s var(--ease-emph), height .5s var(--ease-emph), border-radius .5s; font-family: "Roboto", sans-serif; }
.ct-item img { width: 100%; height: 70px; object-fit: cover; display: block; transition: height .5s var(--ease-emph); }
.ct-item b { display: block; padding: 8px 10px 0; font-weight: 500; font-size: .85rem; }
.ct-item p { margin: 0; padding: 4px 10px; font-size: .78rem; color: #4b5563; opacity: 0; transition: opacity .3s; }
.pat-ct.on .ct-item { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
.pat-ct.on .ct-item img { height: 120px; }
.pat-ct.on .ct-item p { opacity: 1; transition-delay: .25s; }
.sa-steps { display: flex; gap: 8px; } .sa-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e5e7eb; font: 500 .8rem "Roboto", sans-serif; transition: background .3s, color .3s; }
.sa-steps span.on { background: var(--azul); color: #fff; }
.sa-view { width: 80%; overflow: hidden; border-radius: 10px; background: #fff; }
.sa-track { display: flex; transition: transform .45s var(--ease-emph); }
.sa-track div { flex: 0 0 100%; padding: 28px 16px; text-align: center; font: 500 1rem "Roboto", sans-serif; }
.ft-view { position: relative; width: 70%; height: 100px; }
.ft-p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; border-radius: 10px; font: 500 1rem "Roboto", sans-serif; opacity: 0; transform: scale(.92); transition: opacity .09s linear, transform .21s; }
.ft-p.on { opacity: 1; transform: none; transition: opacity .21s .09s linear, transform .21s .09s var(--ease-emph); }
.ms-lite .ic { width: 30px; height: 30px; color: var(--azul); }
.fd-pop { display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.2); padding: 6px 0; opacity: 0; transform: scale(.94); transition: opacity .15s linear, transform .15s; }
.fd-pop b { padding: 8px 20px; font: 400 .9rem "Roboto", sans-serif; }
.fd-pop.on { opacity: 1; transform: none; }

/* ---------- Forma ---------- */
.sh-lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.sh-demo { --r: 12px; position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.sh-card { width: 200px; background: #fff; border-radius: min(var(--r), 40px); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.2); font-family: "Roboto", sans-serif; transition: border-radius .3s; }
.sh-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.sh-card b { display: block; padding: 10px 14px 6px; font-weight: 500; }
.sh-btn { display: inline-block; margin: 0 14px 14px; padding: 8px 16px; background: var(--azul); color: #fff; font: 500 .82rem "Roboto", sans-serif; border-radius: var(--r); transition: border-radius .3s; }
.sh-fab { width: 56px; height: 56px; background: #dbe1ff; color: #001257; display: grid; place-items: center; border-radius: min(var(--r), 28px); transition: border-radius .3s; box-shadow: 0 4px 8px 3px rgba(0,0,0,.15); }
.sh-fab .ic { width: 24px; height: 24px; }
.sh-chip { padding: 7px 14px; border: 1px solid #767680; border-radius: min(var(--r), 18px); font: 500 .82rem "Roboto", sans-serif; transition: border-radius .3s; }
.sh-ctl { display: flex; flex-direction: column; gap: 10px; }
.sh-seg { flex-wrap: wrap; border-radius: 12px; }
.sh-seg button { display: flex; flex-direction: column; font-size: .76rem; padding: 6px 10px; }
.sh-seg small { font-weight: 400; opacity: .75; }
.sh-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.sh-scale div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sh-scale i { width: 64px; height: 64px; background: var(--azul); }
.sh-scale b { font: 500 .82rem "Roboto", sans-serif; } .sh-scale small { font-size: .7rem; color: #6b7280; }
.sh-fam { display: flex; gap: 16px; flex-wrap: wrap; }
.sh-fam div { width: 150px; height: 90px; display: grid; place-items: center; background: #dbe1ff; color: #001257; font: 500 .9rem "Roboto", sans-serif; }
.sh-rnd { border-radius: 20px; }
.sh-cut { clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
.sh-mix { border-radius: 28px 0 28px 0; }

/* ---------- Espaciado ---------- */
.sp-lab { display: flex; flex-direction: column; gap: 14px; }
.sp-frame-wrap { width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; }
.sp-frame { --esc: 1; height: 260px; background: #fff; border: 6px solid #1f2937; border-radius: 14px; display: flex; overflow: hidden; transition: width .15s; }
.sp-nav { flex: none; background: #eef2ff; transition: width .2s; }
.sp-panes { flex: 1; display: flex; gap: calc(24px * var(--esc)); padding: 12px calc(16px * var(--esc)); min-width: 0; }
.sp-pane { flex: 1; background: #f3f4f8; border-radius: 8px; padding: 10px; min-width: 0; }
.sp-pane.b { display: none; background: #e8eefc; }
.win-compacta { flex-direction: column-reverse; } .win-compacta .sp-nav { height: 34px; width: auto; }
.win-mediana .sp-nav { width: calc(80px * var(--esc)); } .win-mediana .sp-panes { padding: 12px calc(24px * var(--esc)); }
.win-expandida .sp-nav, .win-grande .sp-nav, .win-xgrande .sp-nav { width: calc(80px * var(--esc)); }
.win-grande .sp-nav, .win-xgrande .sp-nav { width: calc(240px * var(--esc)); }
.win-expandida .sp-pane.b, .win-grande .sp-pane.b, .win-xgrande .sp-pane.b { display: block; }
.win-expandida .sp-panes, .win-grande .sp-panes, .win-xgrande .sp-panes { padding: 12px calc(24px * var(--esc)); }
.win-expandida .sp-pane.a, .win-grande .sp-pane.a, .win-xgrande .sp-pane.a { flex: 0 0 calc(360px * var(--esc)); }
.sp-ctl { max-width: 560px; align-self: center; width: 100%; }
.sp-grid-demo { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-grid-card { display: flex; align-items: center; gap: 16px; padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.15); width: 340px; font-family: "Roboto", sans-serif; }
.sp-grid-card > div { flex: 1; } .sp-grid-card small { display: block; color: #6b7280; }
.sp-btn { padding: 8px 16px; border-radius: 20px; background: var(--azul); color: #fff; font-size: .8rem; }
.sp-grid-demo.grid .sp-grid-card { background-image: linear-gradient(rgba(239,68,68,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(239,68,68,.18) 1px, transparent 1px); background-size: 8px 8px; }
.sp-scale { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.sp-scale div { display: flex; flex-direction: column; align-items: center; gap: 4px; } .sp-scale i { background: #f97316; opacity: .75; } .sp-scale small { font: 400 .75rem var(--mono); }
.sp-anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.sp-anat-frame { display: flex; height: 170px; border: 5px solid #1f2937; border-radius: 12px; background: #fff; }
.sp-anat-frame .m { width: 24px; background: repeating-linear-gradient(45deg, #fde68a 0 4px, #fff 4px 8px); }
.sp-anat-frame .g { width: 24px; background: repeating-linear-gradient(45deg, #bbf7d0 0 4px, #fff 4px 8px); }
.sp-anat-frame .p1, .sp-anat-frame .p2 { flex: 1; display: grid; place-items: center; background: #eef2ff; font: 500 .82rem "Roboto", sans-serif; margin: 12px 0; border-radius: 8px; }
.sp-anat-frame .p1 { flex: .7; }
.sp-dens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dens { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.dens > b { display: block; padding: 10px 14px; font: 500 .85rem "Roboto", sans-serif; background: #f8fafc; }
.drow { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-top: 1px solid #f1f5f9; }
.drow .ln { flex: 1; }
.d0 .drow { height: 56px; } .d1 .drow { height: 48px; } .d2 .drow { height: 40px; }
.d1 .li-av { width: 32px; height: 32px; } .d2 .li-av { width: 26px; height: 26px; font-size: .75rem; }

/* ---------- Tipografía ---------- */
.ty-lab { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 26px; align-items: center; }
.ty-ctl { display: flex; flex-direction: column; gap: 18px; }
.ty-ctl .seg { flex-wrap: wrap; align-self: flex-start; }
.ty-sample { display: flex; flex-direction: column; gap: 10px; font-family: "Roboto", sans-serif; color: #1a1b21; }
.ty-d { font-size: 45px; line-height: 52px; } .ty-h { font-size: 28px; line-height: 36px; } .ty-b { font-size: 16px; line-height: 24px; max-width: 46ch; } .ty-l { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; color: var(--azul); }
.ty-scale { font-family: "Roboto", sans-serif; border-top: 1px solid #e5e7eb; }
.ty-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
.ty-meta b { display: block; font: 500 .88rem "Roboto", sans-serif; color: #111827; } .ty-meta small { font: 400 .75rem var(--mono); color: #6b7280; }
.ty-ex { color: #1a1b21; overflow-wrap: anywhere; }
body.docs .ty-ex, body.docs .ty-sample { font-family: inherit; }
.ty-scale, .ty-sample { font-family: "Roboto", sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cs-app, .ic-lab, .el-hero, .sh-lab, .ty-lab, .sp-anat { grid-template-columns: 1fr; }
  .el-hero .lst-ctl { grid-column: 1; }
  .el-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-imgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mo-pats, .ic-styles, .sp-dens { grid-template-columns: 1fr; }
  .sh-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ty-row { grid-template-columns: 1fr; gap: 4px; }
  .pal-tones span { font-size: .5rem; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .so-mo i { animation: none; }
}
.ic-lab > * { min-width: 0; }
.ic-big code { overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .st-hero { padding: 18px 14px; }
  .ic-big .ms { font-size: 100px; }
  .ic-style { flex-wrap: wrap; }
}
/* Mientras carga la fuente de íconos, el nombre no debe desbordar */
.ms { width: 1em; height: 1em; overflow: hidden; }
.ic-row { flex-wrap: wrap; }
.ic-st { min-width: 0; }

/* =========================================================
   Favicons
   ========================================================= */
.fv-i { width: 16px; height: 16px; flex: none; }
.fv-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.fv-browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -14px rgba(15,23,42,.45); border: 1px solid #e5e7eb; }
.fv-bbar { background: #dee1e6; padding: 8px 10px 0; }
.fv-tab { display: flex; align-items: flex-end; gap: 2px; font: 400 12px "Roboto", system-ui, sans-serif; }
.fv-tabi, .fv-tab2 { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px 10px 0 0; min-width: 0; }
.fv-tabi { background: #fff; color: #1f2937; width: 210px; }
.fv-tabi b { flex: 1; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-tabi i { font-style: normal; color: #6b7280; }
.fv-tab2 { color: #4b5563; width: 140px; }
.fv-tab2 b { font-weight: 400; }
.fv-g { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); flex: none; }
.fv-tab.dark { background: #202124; } .fv-tab.dark .fv-tabi { background: #35363a; color: #e8eaed; } .fv-tab.dark .fv-tab2 { color: #9aa0a6; } .fv-tab.dark .fv-tabi i { color: #9aa0a6; }
.fv-tab-solo { background: #dee1e6; padding: 8px 10px 0; border-radius: 10px; overflow: hidden; }
.fv-tab-solo:has(.dark) { background: #202124; }
.fv-url { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; font: 400 13px "Roboto", sans-serif; color: #374151; border-bottom: 1px solid #e5e7eb; }
.fv-url span { font-size: 11px; }
.fv-page { display: flex; align-items: center; gap: 18px; padding: 24px; font-family: "Roboto", sans-serif; }
.fv-page p { margin: 4px 0 0; color: #4b5563; font-size: .92rem; }
.fv-hero-logo img { width: 86px; height: 86px; }
.fv-sizes-live { display: flex; align-items: flex-end; gap: 18px; }
.fv-sizes-live div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fv-sizes-live small { font: 400 .72rem var(--mono); color: #6b7280; }
.fv-fmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fv-fmt { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; border-top: 4px solid #15803d; font-size: .9rem; }
.fv-fmt.warn { border-top-color: #d97706; } .fv-fmt.no { border-top-color: #b91c1c; }
.fv-fmt-h { display: flex; align-items: baseline; justify-content: space-between; }
.fv-fmt-h b { font: 500 1.3rem "Roboto", sans-serif; }
.fv-fmt p { margin: 6px 0; } .fv-fmt ul { margin: 0 0 8px; padding-left: 18px; } .fv-fmt li { margin-bottom: 3px; }
.fv-use { font-size: .85rem; color: #374151; }
.fv-dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fv-d { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.fv-d .bt-info p { margin: 0; font-size: .86rem; }
.fv-dest { min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; background: #f3f6fb; }
.fv-dest .fv-tab { background: #dee1e6; padding: 8px 8px 0; border-radius: 8px; }
.fv-dest .fv-tabi { width: 160px; } .fv-dest .fv-tab2 { width: 80px; }
.fv-bm { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-radius: 6px; font: 400 .84rem "Roboto", sans-serif; }
.fv-serp { display: flex; align-items: center; gap: 10px; font-family: "Roboto", sans-serif; }
.fv-serp-ic { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #e5e7eb; display: grid; place-items: center; }
.fv-serp-ic img { width: 18px; height: 18px; }
.fv-serp b { display: block; font-weight: 400; font-size: .86rem; } .fv-serp small { color: #4b5563; font-size: .74rem; }
.fv-serp-t { margin: 4px 0 0; font: 400 1.05rem "Roboto", sans-serif; color: #1a0dab; }
.fv-home { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #1e3a8a, #7c3aed); align-self: center; font: 400 .74rem "Roboto", sans-serif; color: #fff; }
.fv-home span { width: 60px; height: 60px; overflow: hidden; display: block; }
.fv-home.ios span { border-radius: 14px; } .fv-home.and span { border-radius: 50%; }
.fv-home img { width: 100%; height: 100%; display: block; }
.fv-dis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fv-di { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.fv-di.own { border-color: #2a82c6; box-shadow: 0 0 0 3px #dbeafe; }
.fv-di-img { position: relative; height: 170px; display: flex; align-items: center; justify-content: center; gap: 16px; background: #f3f6fb; }
.fv-di-img > img { width: 110px; height: 110px; border-radius: 22px; object-fit: cover; }
.fv-di-small { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; background: #dee1e6; border-radius: 8px; }
.fv-word { width: 110px; height: 110px; display: grid; place-items: center; text-align: center; padding: 8px; background: #2a82c6; color: #fff; border-radius: 22px; font: 700 14px/1.1 "Roboto", sans-serif; }
.fv-word.s32 { width: 32px; height: 32px; font-size: 4px; padding: 2px; border-radius: 6px; }
.fv-word.s16 { width: 16px; height: 16px; font-size: 2px; padding: 1px; border-radius: 3px; }
.fv-sz { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; padding: 22px; background: #f3f6fb; border-radius: 12px; margin-bottom: 14px; }
.fv-sz-i { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 200px; text-align: center; }
.fv-sz-box { outline: 1px dashed #94a3b8; display: grid; place-items: center; }
.fv-sz-box img { display: block; }
.fv-sz-i b { font: 500 .85rem var(--mono); } .fv-sz-i small { color: #6b7280; font-size: .74rem; }
.fv-special { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fv-special article { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; min-width: 0; }
.fv-special h3 { margin-top: 0; }
.fv-modes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.fv-modes .fv-tabi { width: 170px; }
.fv-dyn { display: flex; align-items: center; gap: 18px; padding: 16px; background: #f3f6fb; border-radius: 10px; }
.fv-dyn canvas { width: 64px; height: 64px; }
.fv-dyn-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fv-test { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.fv-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; padding: 20px; border: 2px dashed #94a3b8; border-radius: 14px; background: #f8fafc; cursor: pointer; text-align: center; font-family: "Roboto", sans-serif; }
.fv-drop:hover, .fv-drop.over { border-color: var(--azul); background: #eef2ff; }
.fv-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fv-drop .ms-free { font-size: 2rem; color: var(--azul); }
.fv-drop small { color: #6b7280; }
.fv-test-out { display: flex; flex-direction: column; gap: 10px; }
.fv-test-sz { display: flex; align-items: flex-end; gap: 18px; padding: 12px; }
.fv-test-sz div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fv-test-sz small { font: 400 .72rem var(--mono); color: #6b7280; }
.fv-test img[data-fv-prev] { object-fit: contain; }
.fv-verdict { margin: 0; font-size: .9rem; }
@media (max-width: 900px) {
  .fv-hero, .fv-special, .fv-test { grid-template-columns: 1fr; }
  .fv-sizes-live { justify-content: center; }
}
@media (max-width: 520px) {
  .fv-tab2 { display: none; }
  .fv-tabi, .fv-dest .fv-tabi, .fv-modes .fv-tabi { width: 100%; }
  .fv-page { flex-direction: column; text-align: center; }
}
