.bsv {
  --bsv-label: #c3b7d6;
  --bsv-body: #ccc5d3;
  --bsv-line: #4a4256;
  color: #efeaf4;
  color-scheme: dark;
  padding-block: clamp(3rem,6vw,6rem);
}
.bsv-heading {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(16rem,.9fr);
  align-items: end;
  gap: .8rem clamp(2rem,5vw,5.5rem);
  margin-bottom: clamp(1.3rem,2.8vw,2.6rem);
}
.bsv-heading p { max-width: 55ch; color: var(--bsv-body); line-height: 1.6 }
.bsv-heading h2 { text-wrap: balance }
.project-index { display: none; }
@media (max-width: 760px) {
  .portfolio-description { display: none; }
  .bsv-portfolio-section { padding-block-start: 1.75rem; }
  .project-index { display: flex; flex-wrap: wrap; gap: .4rem; }
  .project-index .button { min-height: 44px; padding: .45rem .75rem; font-size: .8rem; }
}
.bsv-section-link { gap: .5rem }
.service-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem }
.bsv-demo-section { padding-bottom: clamp(2.6rem,5vw,5rem) }
.bsv-portfolio-section {
  padding-top: clamp(2.4rem,4.6vw,4.8rem);
  padding-bottom: clamp(1.75rem,3.5vw,3.5rem);
  border-top: 1px solid #443a50;
  background: linear-gradient(155deg,#24202c 0%,#17151f 55%,#13121a 100%);
}
.bsv-heading h2, :is(.bsv-feature-copy,.bsv-context) > h3, .bsv-case h3, .bsv-reviews h3 {
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1.08;
}
.bsv-heading h2 { font-size: clamp(2.65rem,4.8vw,5.1rem) }
.bsv-heading em {
  font: inherit;
  color: #c8b6e4;
  font-synthesis: style;
}
.bsv-feature {
  display: grid;
  grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr);
  gap: clamp(1.5rem,5vw,5rem);
  align-items: center;
  padding: clamp(1.15rem,3vw,3.2rem);
  border: 1px solid var(--borde-superficie);
  border-radius: var(--radio-superficie);
  background: var(--superficie);
}
.bsv-discipline { font: .8rem/1.5 var(--mono); font-feature-settings: "ss04" 1; color: var(--bsv-label) }
:is(.bsv-feature-copy,.bsv-context) > h3 { margin: .5rem 0 .7rem; font-size: clamp(1.68rem,2.8vw,3.2rem); max-width: 20ch; text-wrap: balance }
:is(.bsv-feature-copy,.bsv-context) > p:not(.bsv-discipline), .bsv-case-copy > p:not(.bsv-discipline),
.bsv-choice dd,.bsv-details p,.bsv-reviews-empty {
  margin: 0;
  color: var(--bsv-body);
  font-size: 1rem;
  line-height: 1.65;
}
:is(.bsv-feature-copy,.bsv-context) > p { max-width: 51ch }
.bsv-choice { margin: 1rem 0 0; max-width: 48ch }
.bsv-choice dt { margin-bottom: .15rem; font-size: .92rem; font-weight: 700 }
.bsv-context { display: none }
.bsv-feature:has(:is(#bsx-conta,#bsx-inv):checked) > .bsv-feature-copy { display: none }
.bsv-feature:has(#bsx-conta:checked) > .case-conta,
.bsv-feature:has(#bsx-inv:checked) > .case-inv { display: block }
.bsx.case-demo { align-self: start; padding: 0; background: transparent; min-width: 0 }
.bsv-demo-caption { display: flex; align-items: center; gap: .6rem; color: #d6c5e9; font: .8rem/1.55 var(--mono); font-feature-settings: "ss04" 1; margin: 0 0 .7rem }
.bsv-demo-caption::before { content: ""; width: 1.2rem; height: 1px; background: currentColor; flex: none }
.bsv-other {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(.8rem,1.3vw,1.2rem);
}
.bsv-case {
  display: grid;
  align-content: start;
  row-gap: .65rem;
  min-width: 0;
  padding: clamp(1.25rem,2.3vw,2.1rem);
  border: 1px solid var(--borde-superficie);
  border-radius: var(--radio-superficie);
  background: var(--superficie);
}
.bsv-case h3 { font-size: clamp(1.5rem,2.1vw,2.3rem) }
.bsv-case:target { border-color: #a58abb; scroll-margin-block-start: 1.25rem }
.bsv-case:target:focus-visible { outline: 2px solid #b6a2c8; outline-offset: 1px }
.case-web {
  background: radial-gradient(ellipse at 90% 75%,#27315a70,transparent 72%),var(--superficie);
}
.case-accounting {
  background: radial-gradient(ellipse at 100% 0%,#63534430,transparent 75%),var(--superficie);
}
.case-invoice {
  background: radial-gradient(ellipse at 94% 90%,#2c42594a,transparent 75%),var(--superficie);
}
.bsv-case-copy { display: contents }
.bsv-case-copy > p { max-width: 49ch }
@media (min-width:56.251rem) {
  .bsv-other { align-items: start }
  .bsv-other:not(:has(.bsv-details[open])) .bsv-case {
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-self: stretch;
  }
}
.bsv-consult {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: .4rem;
  color: #dac8ee;
  font: 500 .88rem/1.45 var(--mono);
  font-feature-settings: "ss04" 1;
}
.bsv-consult::after {
  content: "";
  flex: none;
  width: .45em;
  height: .45em;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}
.bsv-consult:is(:hover,:focus-visible) { color: #faf4ff }
.bsv-capture {
  position: relative;
  display: grid;
  width: 100%;
  margin-block: .2rem 0;
  padding: clamp(.5rem,1.2vw,1rem);
  border: 1px solid #545267;
  border-radius: .9rem;
  background: linear-gradient(155deg,#40455b70,#1d1b2b 65%,#423958);
  color: #eee6f7;
  cursor: zoom-in;
}
.bsv-capture img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  border-radius: .43rem;
  box-shadow: 0 .35rem 1rem #08081466;
}
.case-web .bsv-capture img {
  background: radial-gradient(ellipse at 70% 58%,#2c4886 0,#101f44 45%,#0b132b 75%);
}
.case-invoice .bsv-capture img { background: linear-gradient(145deg,#243247,#172237); }
.case-accounting .bsv-capture img { background: #111110; }
.bsv-case a.bsv-capture > span {
  justify-self: start;
  margin-block: .55rem 0;
}
.bsv-capture:is(:hover,:focus-visible) {
  border-color:#b6a4cf;
  background:linear-gradient(155deg,#645c7c99,#262134 65%,#504265);
}

.bsv-card-actions {
  --gap-acciones: .55rem;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--gap-acciones);
  align-items: start;
  margin-block-start: .35rem;
}
.bsv-case .bsv-card-actions a.bsv-consult {
  grid-area: 1 / 1;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding-inline: .6rem;
  border-color: #decef6;
  color: #241a36;
  background: linear-gradient(145deg,#e5d7f7,#c5a9e9);
}
.bsv-case .bsv-card-actions a.bsv-consult:is(:hover,:focus-visible) { color: #241a36; background: #ecddff }
.bsv-card-actions .bsv-details { grid-area: 1 / 1 / auto / -1; min-width: 0 }
.bsv-card-actions summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: calc((100% - var(--gap-acciones)) / 2);
  min-height: 44px;
  margin-inline-start: auto;
  padding: .45rem .45rem;
  border: 1px solid #9f86be86;
  border-radius: 999px;
  background: #282232;
  color: #efe1f9;
  font: 500 .84rem/1.4 var(--mono);
  cursor: pointer;
  list-style: none;
}
.bsv-card-actions summary::-webkit-details-marker { display: none }
.bsv-card-actions summary::after {
  content: "";
  flex: none;
  width: .4em;
  height: .4em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1em) rotate(45deg);
}
.bsv-details[open] summary::after { transform: translateY(.1em) rotate(225deg) }
.bsv-details summary:is(:hover,:focus-visible), .bsv-details[open] summary {
  background: #34293f;
  border-color: #b8a0d4;
}
.bsv-details[open] > p {
  margin-block-start: .9rem;
  padding-block-start: .75rem;
  border-block-start: 1px solid var(--bsv-line);
  font-size: .94rem;
}
.bsv-details > .button { min-height: 44px; margin-block-start: .65rem; font-size: .82rem; padding: .45rem .8rem }
@media (forced-colors:active) {
  .bsv-card-actions .bsv-consult, .bsv-card-actions summary {
    border-color:LinkText;
  }
}

.bsv-case:focus-within { border-color:#827292 }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .bsv-capture img { transition:transform .25s ease }
  .bsv-capture:is(:hover,:focus-visible) img { transform:translateY(-2px) }
}
@media(max-width:56.25rem) {
  .bsv-other { grid-template-columns:minmax(0,1fr); gap:.85rem }
}
.project-viewer[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw,76rem);
  max-width: none;
  height: min(90dvh,53rem);
  max-height: 90vh;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  border: 1px solid #8d7b9e;
  border-radius: 1rem;
  overflow: hidden;
  color: #f3ecfa;
  background: #191723;
  box-shadow: 0 2rem 6rem #070710a6;
}
.project-viewer::backdrop { background: #090910de }
html:has(.project-viewer[open]) { overflow: hidden }
.viewer-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .65rem; padding:.6rem 1rem; border-bottom:1px solid #494252 }
.viewer-bar h3 { min-width:0; margin-right:auto; font-size:clamp(1rem,1.9vw,1.4rem) }
.viewer-bar button {
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid #796a8c;
  border-radius: 2rem;
  background: #30283e;
  color: #f1e9fb;
  font: .85rem/1.35 var(--mono);
  cursor: pointer;
}
.viewer-bar .viewer-close,.viewer-size[aria-pressed="true"] { background:#d9caf6; color:#261a34 }
.viewer-image { overflow:auto; overscroll-behavior:contain; padding:.65rem; }
.viewer-image img { display:block; width:100%;height:100%;object-fit:contain; }
.original-size .viewer-image img { width:auto;height:auto;max-width:none;margin-inline:auto }
.viewer-image:focus-visible { outline-offset:-3px }
@media(max-width:29rem) {
  .viewer-bar { gap:.25rem .5rem; padding:.5rem .65rem }
  .viewer-bar h3 { width:100% }
  .viewer-bar button { min-height:40px; }
}
.bsv-reviews { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:.55rem clamp(1rem,3vw,2.4rem); align-items:baseline; margin-top:clamp(1.45rem,3vw,2.8rem); padding-top:1rem; border-top:1px solid var(--bsv-line) }
.bsv-reviews h3 { font-size:clamp(1.25rem,2vw,1.6rem) }
.bsv-reviews-empty { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .8rem; font-size:.92rem }
.bsv-reviews p.bsv-reviews-empty > a { min-height:44px; margin:0; padding-inline:.8rem; font-size:.8rem }
.bsv-review-content a { color:#dac7ef }
.bsv-reviews-list { display:grid; gap:1.5rem; margin:0 }
.bsv-review { margin:0; padding:.1rem 0 .15rem 1.1rem; border-left:2px solid #88779e }
.bsv-review blockquote,.bsv-review blockquote p { margin:0 }
.bsv-review blockquote p { color:#e6dfeb; font-size:1.1rem; line-height:1.65; overflow-wrap:anywhere }
.bsv-review figcaption { margin-top:.6rem; color:var(--bsv-label); font-size:.9rem; overflow-wrap:anywhere }
@media(max-width:48rem) {
  .bsv-heading { grid-template-columns: minmax(0,1fr) }
  .bsv-feature { grid-template-columns:minmax(0,1fr); gap:1.25rem }
  .bsv-feature > .case-demo { grid-row: 1 }
  .bsv-case { padding:1.15rem }
  .bsv-reviews { grid-template-columns:minmax(0,1fr); gap:.45rem }
}
@media(forced-colors:active) {
  .bsv,.bsv-feature { background:Canvas; color:CanvasText }
  .bsv-feature { border-color:CanvasText }
}
