/* Skymbe POS — tema oscuro con la paleta de la aplicación */
:root {
  --paper: #0E111B;
  --surface: #161B29;
  --surface2: #1D2336;
  --tint: #121623;
  --ink: #E8ECF6;
  --muted: #8F9AB3;
  --line: #272F45;
  --blue: #4A90E2;
  --blue-d: #3A78C4;
  --green: #66BB6A;
  --teal: #26A69A;
  --sun: #F5A623;
  --purple: #7E57C2;
  --coral: #EF6F6C;
  --on-accent: #0B1020;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sh: 0 28px 70px -28px rgba(0, 0, 0, .75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--paper);
  color-scheme: dark
}

body {
  font: 400 1rem/1.6 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit
}

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.08;
  letter-spacing: -.025em
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px
}

.narrow {
  max-width: 800px
}

.section {
  padding: 96px 0
}

.tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch
}

.small {
  font-size: .9rem;
  color: var(--muted)
}

/* Skeleton de página */
.page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--paper);
  padding: 14px 24px;
  transition: opacity .5s var(--ease), visibility .5s
}

.page-skeleton.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.sk {
  background: linear-gradient(100deg, #161B29 30%, #212840 50%, #161B29 70%);
  background-size: 300% 100%;
  animation: sweep 1.4s linear infinite;
  border-radius: var(--r-s)
}

@keyframes sweep {
  to {
    background-position: -300% 0
  }
}

.sk-nav {
  max-width: 1180px;
  height: 44px;
  margin: 0 auto 70px
}

.sk-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center
}

.sk-col {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.sk-pill {
  width: 220px;
  height: 28px;
  border-radius: 99px
}

.sk-h {
  height: 48px
}

.sk-h.short {
  width: 70%
}

.sk-p {
  height: 18px
}

.sk-p.short {
  width: 60%
}

.sk-btn {
  width: 210px;
  height: 50px;
  border-radius: 99px;
  margin-top: 10px
}

.sk-shot {
  height: 380px;
  border-radius: var(--r-l)
}

/* Skeleton de imágenes */
.img-skeleton-container {
  position: relative;
  min-height: 220px;
  background: var(--surface);
  overflow: hidden
}

.img-skeleton-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted);
  background: linear-gradient(100deg, #161B29 30%, #212840 50%, #161B29 70%);
  background-size: 300% 100%;
  animation: sweep 1.5s linear infinite;
  transition: opacity .4s
}

.img-skeleton-shimmer.loaded {
  opacity: 0;
  pointer-events: none
}

.sk-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(74, 144, 226, .2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.lazy-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .5s var(--ease)
}

.lazy-img.loaded {
  opacity: 1
}

/* Progreso de scroll */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
  transform: scaleX(0);
  transform-origin: 0 50%
}

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 27, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--line)
}

.nav-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain
}

.brand b {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem
}

.ver {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted)
}

.nav-links {
  display: flex;
  gap: 30px
}

.nav-links a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s
}

.nav-links a:hover {
  color: var(--ink)
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 99px;
  font: 600 .95rem 'Instrument Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s
}

.btn svg {
  width: 18px;
  height: 18px
}

.btn:hover .ic-dl {
  animation: bob .7s var(--ease) infinite alternate
}

@keyframes bob {
  to {
    transform: translateY(3px)
  }
}

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1.02rem
}

.btn-solid {
  background: var(--blue);
  color: var(--on-accent);
  box-shadow: 0 12px 28px -12px rgba(74, 144, 226, .8)
}

.btn-solid:hover {
  background: #6AA6EE;
  transform: translateY(-2px)
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink)
}

.btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--blue);
  color: #fff
}

.full {
  width: 100%
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  position: relative
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 640px;
  background: radial-gradient(55% 70% at 80% 25%, rgba(74, 144, 226, .20), transparent 70%), radial-gradient(45% 55% at 8% 5%, rgba(126, 87, 194, .16), transparent 70%);
  pointer-events: none
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 22px
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative
}

.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: ping 1.8s ease-out infinite
}

@keyframes ping {
  from {
    opacity: .8;
    transform: scale(.6)
  }

  to {
    opacity: 0;
    transform: scale(1.6)
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 22px
}

.hero h1 em {
  font-style: normal;
  color: var(--blue)
}

.hero .lead {
  margin-bottom: 30px
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .9rem;
  color: var(--muted)
}

.trust li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700
}

.hero-copy>* {
  animation: rise .9s var(--ease) both
}

.hero-copy>*:nth-child(2) {
  animation-delay: .08s
}

.hero-copy>*:nth-child(3) {
  animation-delay: .16s
}

.hero-copy>*:nth-child(4) {
  animation-delay: .24s
}

.hero-copy>*:nth-child(5) {
  animation-delay: .32s
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.hero-stage {
  position: relative;
  padding-bottom: 40px;
  animation: rise 1s .2s var(--ease) both
}

.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh), 0 0 0 1px rgba(74, 144, 226, .08);
  overflow: hidden;
  transform: rotate(1.2deg)
}

.win-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #121624;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  color: var(--muted)
}

.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b5e
}

.win-bar i:nth-child(2) {
  background: #ffbd3f
}

.win-bar i:nth-child(3) {
  background: #2ed158;
  margin-right: 8px
}

/* Ticket animado (papel claro sobre fondo oscuro) */
.ticket {
  position: absolute;
  left: -26px;
  bottom: 0;
  width: 250px;
  background: #FFFDF7;
  color: #2A2618;
  border-radius: 6px 6px 0 0;
  padding: 16px 16px 20px;
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .8);
  font: .78rem/1.5 'DM Mono', monospace;
  transform: rotate(-3deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50%/12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50%/12px 100%
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #cfc8b4;
  padding-bottom: 8px;
  margin-bottom: 8px
}

.ticket-head span {
  color: #7a735c
}

.ticket ul {
  list-style: none;
  min-height: 92px
}

.ticket li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  animation: line .5s var(--ease) both
}

@keyframes line {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.ticket-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #cfc8b4;
  margin-top: 8px;
  padding-top: 8px;
  font-size: .95rem
}

.ticket-pay {
  margin-top: 8px;
  min-height: 24px
}

.ticket-pay span {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font: 600 .72rem 'Instrument Sans', sans-serif;
  color: #fff;
  animation: pop .45s var(--ease) both
}

.ticket-pay .cash {
  background: #3E9B43
}

.ticket-pay .card {
  background: var(--purple)
}

@keyframes pop {
  from {
    transform: scale(.4);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

/* Métricas */
.strip {
  padding: 28px 0 8px
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 24px
}

.strip b {
  font: 800 2rem 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.03em
}

.strip>.wrap>div:nth-child(1) b {
  color: var(--blue)
}

.strip>.wrap>div:nth-child(2) b {
  color: var(--teal)
}

.strip>.wrap>div:nth-child(3) b {
  color: var(--purple)
}

.strip>.wrap>div:nth-child(4) b {
  color: var(--sun)
}

.strip p {
  color: var(--muted);
  font-size: .9rem
}

/* Encabezados */
.sec-head {
  max-width: 680px;
  margin-bottom: 48px
}

.sec-head h2,
.split h2,
.dl-panel h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 14px
}

.sec-head p {
  color: var(--muted);
  font-size: 1.08rem
}

/* Bento con los colores de la app */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px
}

.b {
  border-radius: var(--r-l);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  transition: transform .35s var(--ease)
}

.b:hover {
  transform: translateY(-4px)
}

.b h3 {
  font-size: 1.45rem;
  font-weight: 800
}

.b p {
  font-size: .96rem
}

.b7 {
  grid-column: span 7
}

.b5 {
  grid-column: span 5
}

.b4 {
  grid-column: span 4
}

.b-green {
  background: linear-gradient(145deg, #14403C, #0F2B2E);
  border: 1px solid rgba(38, 166, 154, .45);
  color: #fff
}

.b-green h3 {
  color: #5FD8CB
}

.b-green p {
  color: #A8D4CE
}

.b-white {
  background: var(--surface);
  border: 1px solid var(--line)
}

.b-white h3 {
  color: #8DBBF0
}

.b-white p {
  color: var(--muted)
}

.b-sun {
  background: var(--sun);
  color: #1B1200
}

.b-sun p {
  color: #3E2A00
}

.b-ink {
  background: linear-gradient(145deg, #2B2057, #1B1740);
  border: 1px solid rgba(126, 87, 194, .5);
  color: #fff
}

.b-ink p {
  color: #C3B9E8
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px
}

.tags span {
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12)
}

.b-white .tags span {
  background: var(--surface2);
  color: var(--muted)
}

.g-frame {
  position: relative;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .8)
}

.g-frame img {
  cursor: zoom-in
}

.kick {
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px
}

.checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.checks li {
  display: flex;
  gap: 10px;
  font-size: .94rem
}

.checks svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green)
}

/* ===== Galería de módulos ===== */
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0
}

.gallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
  box-shadow: var(--sh)
}

.g-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 36px;
  align-items: start
}

/* Menú lateral (visible completo, sin scroll horizontal) */
.tabs {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 4px
}

.tab-group { display: flex; flex-direction: column; gap: 4px }

.tab-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 14px 6px
}

.tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 500 .98rem/1.2 'Instrument Sans', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s
}

.tab:hover { background: var(--surface2) }

.tab[aria-selected="true"] {
  background: var(--blue);
  color: var(--on-accent);
  font-weight: 700
}

.t-n {
  min-width: 26px;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--muted)
}

.tab[aria-selected="true"] .t-n { background: rgba(11, 16, 32, .2); color: var(--on-accent) }

/* Panel */
.g-main { min-width: 0; display: flex; flex-direction: column; gap: 24px }

.g-head .kick { font-size: .92rem; margin-bottom: 6px }

.g-head h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 10px
}

.g-head p:not(.kick) { color: var(--muted); font-size: 1.08rem; max-width: 64ch }
.g-head.swap { animation: rise .5s var(--ease) }

.views-label { font-size: .9rem; color: var(--muted); margin-bottom: 10px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }

.chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  font: 500 .92rem 'Instrument Sans', sans-serif;
  cursor: pointer;
  transition: border-color .2s, background .2s
}

.chip:hover { border-color: var(--blue) }

.chip[aria-pressed="true"] {
  background: rgba(74, 144, 226, .22);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600
}

/* La marca ✓ evita depender solo del color para saber cuál está activa */
.chip[aria-pressed="true"]::before { content: "✓ "; content: "✓ " / "" }

/* Captura grande + barra de controles FUERA de la imagen (ya no tapa nada) */
.g-fig {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: #0B0E16;
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .8)
}

.gallery .g-frame {
  aspect-ratio: 1.7;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0B0E16;
  cursor: zoom-in
}

.gallery .g-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.g-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface)
}

.cap { font-size: 1rem; font-weight: 600 }
.cap small { color: var(--muted); font-weight: 500; font-size: .9rem; margin-right: 10px }

.g-ctrls { display: flex; gap: 8px }

.ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  font: 600 .92rem 'Instrument Sans', sans-serif;
  cursor: pointer;
  transition: border-color .2s, background .2s
}

.ctl:hover { border-color: var(--blue); background: var(--tint) }
.ctl svg { width: 18px; height: 18px }
.ctl[hidden] { display: none }

/* Qué puedes hacer aquí */
.can-title { font: 800 1.1rem 'Bricolage Grotesque', sans-serif; margin-bottom: 12px }

.can {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px
}

.can li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface2);
  font-size: 1rem;
  line-height: 1.45
}

.can svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--green) }

/* Foco visible y consistente */
.tab:focus-visible, .chip:focus-visible, .ctl:focus-visible, .lightbox button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px
}

/* Móvil / tablet: el menú pasa a una fila deslizable arriba */
@media (max-width: 960px) {
  .gallery { padding: 18px }
  .g-layout { grid-template-columns: 1fr; gap: 20px }

  .tabs {
    position: relative;
    top: auto;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent
  }

  .tab-group { display: contents }
  .tab-label { display: none }
  .tab { flex: 0 0 auto; white-space: nowrap; border-color: var(--line); scroll-snap-align: start }
  .tab[aria-selected="true"] { border-color: var(--blue) }
  .g-bar { padding-left: 14px }
}

/* Reportes */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center
}

.split .lead {
  margin-bottom: 22px
}

.bars {
  display: grid;
  gap: 12px;
  margin-top: 28px
}

.bars div {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--muted)
}

.bars i,
.meter {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: var(--surface2);
  overflow: hidden
}

.bars u,
.meter u {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--c, var(--green));
  transition: width 1.4s var(--ease)
}

.in .bars u,
.bars.in u,
.meter.in u {
  width: var(--w)
}

/* Aportación voluntaria */
.fund {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--sh);
  overflow: hidden
}

.fund-main {
  padding: 36px
}

.fund-side {
  padding: 36px;
  background: #121724;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px
}

.fund-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap
}

.amt {
  font: 800 2.6rem 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.03em
}

.of {
  color: var(--muted);
  font-size: .95rem
}

.pill {
  font-size: .8rem;
  font-weight: 600;
  background: rgba(126, 87, 194, .2);
  color: #BFA9F0;
  padding: 5px 12px;
  border-radius: 99px
}

.meter {
  height: 14px;
  margin-bottom: 12px
}

.meter u {
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green))
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0 16px
}

.amounts button {
  padding: 14px 0;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  font: 700 1.05rem 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: all .2s
}

.amounts button:hover {
  border-color: var(--blue)
}

.amounts button.on {
  border-color: var(--blue);
  background: rgba(74, 144, 226, .16);
  color: #8DBBF0
}

.note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center
}

.fund-side h3 {
  font-size: 1.15rem;
  font-weight: 800
}

.backers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1
}

.backers li {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: line .6s var(--ease) both
}

.av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0
}

.backers b {
  display: block;
  font-size: .92rem;
  line-height: 1.2
}

.backers small {
  color: var(--muted);
  font-size: .78rem
}

.backers .money {
  margin-left: auto;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green)
}

.backers li.new {
  background: rgba(102, 187, 106, .12);
  border-radius: var(--r-s);
  padding: 8px;
  margin: -8px
}

.btn.busy {
  pointer-events: none;
  opacity: .85
}

.btn.ok {
  background: var(--green);
  box-shadow: 0 12px 28px -12px rgba(102, 187, 106, .8)
}

/* Descargas */
.dl-panel {
  background: linear-gradient(160deg, #1A2140, #12162A 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden
}

.dl-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -220px;
  background: radial-gradient(circle, rgba(245, 166, 35, .18), transparent 70%)
}

.dl-panel .lead {
  color: var(--muted);
  margin: 0 auto 36px
}

.dl-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left
}

.dl-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between
}

.dl-card.main {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(74, 144, 226, .25), 0 24px 50px -28px rgba(74, 144, 226, .6)
}

.dl-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 10px 0 8px
}

.dl-card p {
  font-size: .9rem;
  color: var(--muted)
}

.tagx {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--sun);
  color: #3E2A00
}

.tagx.old {
  background: var(--surface2);
  color: var(--muted)
}

/* Modal de descarga */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(5, 7, 14, .75);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s
}

.backdrop.active {
  opacity: 1;
  visibility: visible
}

.dl-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 34px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  transform: scale(.92) translateY(12px);
  transition: transform .4s var(--ease)
}

.backdrop.active .dl-modal {
  transform: none
}

.ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px
}

.ring-wrap svg {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg)
}

.ring-bg,
.ring {
  fill: none;
  stroke-width: 6
}

.ring-bg {
  stroke: var(--surface2)
}

.ring {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 238.76;
  stroke-dashoffset: 238.76;
  transition: stroke-dashoffset .18s linear
}

.ring.done {
  stroke: var(--green);
  animation: pulse .6s var(--ease)
}

@keyframes pulse {
  50% {
    transform: scale(1.08)
  }
}

.ring-c {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 1.1rem 'Bricolage Grotesque', sans-serif
}

.ring-c svg {
  width: 34px;
  height: 34px;
  color: var(--green);
  transform: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6
}

.dl-modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px
}

.dl-modal code {
  display: block;
  font: .82rem 'DM Mono', monospace;
  color: #8DBBF0;
  background: none;
  margin-bottom: 16px
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--surface2);
  overflow: hidden;
  margin-bottom: 12px
}

.bar u {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width .15s linear
}

#dl-status {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 18px
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line)
}

.faq-row {
  border-bottom: 1px solid var(--line)
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 2px;
  background: none;
  border: 0;
  font: 600 1.08rem 'Instrument Sans', sans-serif;
  color: var(--ink);
  text-align: left;
  cursor: pointer
}

.faq-q svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform .35s var(--ease), color .2s
}

.faq-row.open .faq-q svg {
  transform: rotate(135deg);
  color: var(--blue)
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
  color: var(--muted)
}

.faq-a p {
  padding: 0 2px 22px;
  max-width: 62ch
}

code {
  font: .88em 'DM Mono', monospace;
  background: var(--surface2);
  padding: 2px 7px;
  border-radius: 6px;
  color: #8DBBF0
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: .88rem;
  color: var(--muted)
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px
}

.footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap
}

.footer nav a {
  text-decoration: none
}

.footer nav a:hover {
  color: var(--ink)
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(5, 7, 14, .92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s
}

.lightbox.active {
  opacity: 1;
  visibility: visible
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: var(--r-s);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7)
}

.lightbox button {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer
}

/* Revelado al hacer scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.js .reveal.visible {
  opacity: 1;
  transform: none
}

.d1 {
  transition-delay: .08s !important
}

.d2 {
  transition-delay: .16s !important
}

.d3 {
  transition-delay: .24s !important
}

/* Responsive */
@media (max-width: 960px) {

  .hero-grid,
  .split,
  .fund,
  .dl-cards,
  .sk-wrap {
    grid-template-columns: 1fr
  }

  .b7,
  .b5,
  .b4 {
    grid-column: span 12
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav-links {
    display: none
  }

  .fund-side {
    border-left: 0;
    border-top: 1px solid var(--line)
  }

  .ticket {
    left: 8px;
    width: 220px
  }

  .sk-shot {
    display: none
  }

  .section {
    padding: 72px 0
  }
}

@media (max-width: 520px) {

  .fund-main,
  .fund-side {
    padding: 24px
  }

  .dl-panel {
    padding: 44px 20px
  }

  .amounts {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  html {
    scroll-behavior: auto
  }
}