/* ===================================================
   Desarrollo · rediseño interactivo
   Tokens propios de la página; todo va bajo .dv para no
   tocar el resto del sitio. Sin iconos decorativos.
   - Qué desarrollamos: marcos dinámicos (crece el activo)
   - Sectores: galería elástica
   - Proceso: carrusel en arco
   - Escalado: galería que se despliega con el scroll (firma)
=================================================== */
.dv {
  --dv-ink: #000066;
  --dv-night: #00002E;
  --dv-gold: #C8A84B;
  --dv-gold-soft: #E9DDB4;
  --dv-paper: #F3F4F9;
  --dv-steel: #8A90B8;
  --dv-line: rgba(0, 0, 102, .12);
  --dv-ease: cubic-bezier(.22, 1, .36, 1);
  --dv-elastic: cubic-bezier(.34, 1.42, .52, 1);
}

.dv .section-title {
  letter-spacing: -.025em;
  line-height: 1.06;
  text-wrap: balance;
}

.dv .section-desc {
  text-wrap: pretty;
}

/* Cabecera en dos columnas: título a la izquierda, texto a la derecha */
.dv .dv-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px 64px;
  align-items: end;
  max-width: none;
  margin: 0 0 56px;
  text-align: left;
}

.dv .dv-head .section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.dv .dv-head .section-desc {
  margin: 0;
  max-width: 46ch;
}

/* ---------- 1. Intro: ficha técnica ---------- */
.des-intro.dv .dv-reg {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--dv-paper);
  border-radius: 4px;
  border-top: 2px solid var(--dv-gold);
}

.des-intro.dv .dv-reg-t {
  margin: 0 0 8px;
  font: 700 .72rem/1.3 'Inter', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dv-ink);
}

.des-intro.dv .dv-reg p:not(.dv-reg-t) {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-muted, #4B5563);
}

.des-intro.dv .dv-spec {
  align-self: center;
  padding: 34px 36px 22px;
  background: var(--dv-ink);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 60, .55);
}

.des-intro.dv .dv-spec-h {
  margin: 0 0 14px;
  font: 700 .72rem/1 'Inter', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dv-gold);
}

.des-intro.dv .dv-spec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.des-intro.dv .dv-spec li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font: 600 1.02rem/1.35 'Inter', sans-serif;
}

.des-intro.dv .dv-spec li::before {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  background: var(--dv-gold);
}

/* ---------- 2. Qué desarrollamos: marcos dinámicos ---------- */
.des-what.dv {
  padding: clamp(80px, 9vw, 120px) 0;
}

.des-what.dv .des-what-layout {
  display: block;
}

.des-what.dv .des-what-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 16px 64px;
  align-items: end;
  max-width: none;
  margin: 0 0 48px;
}

.des-what.dv .des-what-eyebrow {
  grid-column: 1 / -1;
}

.des-what.dv .des-what-copy .section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.des-what.dv .des-what-copy .section-desc {
  margin: 0;
  grid-column: 2;
  grid-row: 2 / span 2;
}

.des-what.dv .des-what-cta {
  grid-column: 1;
  justify-self: start;
}

.dv-frames {
  --cols: 2.3fr 1fr 1fr;
  --rows: 1.55fr 1fr;
  display: grid;
  grid-template-columns: var(--cols);
  grid-template-rows: var(--rows);
  gap: 12px;
  height: clamp(520px, 52vw, 660px);
}

.dv-frames.is-ready {
  transition: grid-template-columns .75s var(--dv-ease), grid-template-rows .75s var(--dv-ease);
}

.dv-frame {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dv-night);
  cursor: pointer;
  outline: none;
}

.dv-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(.7);
  transition: transform 1.1s var(--dv-ease), filter .6s ease;
}

.dv-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 46, .05) 30%, rgba(0, 0, 46, .88) 100%);
  transition: background .6s ease;
}

.dv-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(16px, 2vw, 28px);
  color: #fff;
}

.dv-frame strong {
  display: block;
  font: 800 1.05rem/1.2 'Nunito Sans', sans-serif;
  letter-spacing: -.01em;
  transition: font-size .5s var(--dv-ease);
}

.dv-frame.is-active strong {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
}

.dv-frame figcaption span {
  display: block;
  max-width: 40ch;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  transition: max-height .6s var(--dv-ease), opacity .4s ease, margin .6s var(--dv-ease);
}

.dv-frame.is-active img {
  transform: scale(1);
  filter: none;
}

.dv-frame.is-active::after {
  background: linear-gradient(180deg, rgba(0, 0, 46, 0) 35%, rgba(0, 0, 46, .9) 100%);
}

.dv-frame.is-active figcaption span {
  max-height: 6em;
  margin-top: 10px;
  opacity: 1;
  transition-delay: 0s, .15s, 0s;
}

/* Marca dorada en la esquina del marco activo */
.dv-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--dv-gold);
  border-left: 2px solid var(--dv-gold);
  opacity: 0;
  transform: translate(6px, 6px);
  transition: opacity .4s ease, transform .5s var(--dv-ease);
}

.dv-frame.is-active::before {
  opacity: 1;
  transform: none;
}

.dv-frame:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--dv-ink);
}

/* ---------- 3. Sectores: galería elástica ---------- */
.des-sectores.dv {
  padding: clamp(80px, 9vw, 120px) 0;
  background: var(--dv-paper);
}

.dv-elastic {
  display: flex;
  gap: 10px;
  height: clamp(480px, 44vw, 580px);
}

.dv-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dv-night);
  color: #fff;
  text-decoration: none;
}

.dv-elastic.is-ready .dv-panel {
  transition: flex-grow .9s var(--dv-elastic);
}

.dv-panel.is-active {
  flex-grow: 4.4;
}

.dv-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.35) brightness(.7);
  transition: filter .7s ease, transform 1.2s var(--dv-ease);
  transform: scale(1.08);
}

.dv-panel.is-active img {
  filter: none;
  transform: scale(1);
}

.dv-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 46, .2) 0%, rgba(0, 0, 46, .1) 40%, rgba(0, 0, 46, .9) 100%);
}

.dv-panel-label {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  white-space: nowrap;
  font: 700 .95rem/1 'Inter', sans-serif;
  letter-spacing: .04em;
  transition: opacity .35s ease;
}

.dv-panel.is-active .dv-panel-label {
  opacity: 0;
}

.dv-panel-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(22px, 2.6vw, 36px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .5s var(--dv-ease);
  pointer-events: none;
}

.dv-panel.is-active .dv-panel-body {
  opacity: 1;
  transform: none;
  transition-delay: .25s;
}

.dv-panel-body h3 {
  margin: 0 0 10px;
  font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.08 'Nunito Sans', sans-serif;
  letter-spacing: -.02em;
  color: #fff;
}

.dv-panel-body p {
  max-width: 42ch;
  margin: 0 0 18px;
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}

.dv-panel-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--dv-gold);
  font: 700 .9rem/1 'Inter', sans-serif;
  color: #fff;
}

.dv-panel-more svg {
  width: 16px;
  height: 16px;
  color: var(--dv-gold);
}

.dv-panel:focus-visible {
  outline: 3px solid var(--dv-gold);
  outline-offset: 3px;
}

/* ---------- 4. Proceso: carrusel en arco ---------- */
.des-process.dv {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 120px) 0 clamp(56px, 6vw, 80px);
  background: var(--dv-night);
  color: #fff;
}

.des-process.dv .section-title {
  color: #fff;
}

.des-process.dv .section-desc {
  color: rgba(255, 255, 255, .72);
}

.dv-arc {
  position: relative;
  outline: none;
}

.dv-arc-stage {
  position: relative;
  height: 470px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.dv-arc-stage.is-dragging {
  cursor: grabbing;
}

.dv-arc-card {
  --o: 0;
  --a: 0;
  position: absolute;
  left: 50%;
  top: 20px;
  width: min(360px, 78vw);
  min-height: 300px;
  margin-left: calc(min(360px, 78vw) / -2);
  padding: 34px 32px 30px;
  border-radius: 4px;
  background: #0B0F5C;
  border: 1px solid rgba(255, 255, 255, .1);
  transform-origin: 50% 2200px;
  transform: rotate(calc(var(--o) * 11deg));
  z-index: calc(10 - var(--a));
  transition: transform .8s var(--dv-ease), opacity .6s ease, background .5s ease, border-color .5s ease;
  cursor: pointer;
}

.dv-arc-card:not(.is-active) > * {
  opacity: .55;
}

.dv-arc-card.is-active {
  background: #fff;
  color: var(--dv-ink);
  border-color: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  cursor: default;
}

.dv-arc-card.is-far {
  opacity: 0;
  pointer-events: none;
}

.dv-arc-num {
  display: block;
  margin-bottom: 56px;
  font: 300 3.6rem/1 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  color: var(--dv-gold);
}

.dv-arc-card h3 {
  margin: 0 0 10px;
  font: 800 1.45rem/1.15 'Nunito Sans', sans-serif;
  color: inherit;
}

.dv-arc-card p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}

.dv-arc-card.is-active p {
  color: var(--text-muted, #4B5563);
}

.dv-arc-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.dv-arc-btn {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.dv-arc-btn svg {
  width: 20px;
  height: 20px;
}

.dv-arc-btn:hover {
  background: var(--dv-gold);
  border-color: var(--dv-gold);
  color: var(--dv-ink);
}

.dv-arc-btn:disabled {
  opacity: .3;
}

.dv-arc-steps {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dv-arc-steps button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 .84rem/1 'Inter', sans-serif;
  color: rgba(255, 255, 255, .55);
  transition: background .3s ease, color .3s ease;
}

.dv-arc-steps button span {
  font-variant-numeric: tabular-nums;
  color: var(--dv-gold);
}

.dv-arc-steps button:hover {
  color: #fff;
}

.dv-arc-steps button[aria-current="step"] {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.dv-arc-btn:focus-visible,
.dv-arc-steps button:focus-visible,
.dv-arc:focus-visible .dv-arc-card.is-active {
  outline: 2px solid var(--dv-gold);
  outline-offset: 3px;
}

.dv-arc-hint {
  margin: 18px 0 0;
  text-align: center;
  font: 600 .7rem/1 'Inter', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dv-steel);
}

/* ---------- 5. Escalado: galería que se despliega (firma) ---------- */
.des-scale.dv {
  --p: 1;
  overflow: hidden;
}

.des-scale.dv .des-scale-points li {
  transition: opacity .35s ease;
  cursor: default;
}

.des-scale.dv [data-dv-points].has-on li:not(.is-on) {
  opacity: .4;
}

.des-scale.dv .des-scale-layout {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 80px);
}

.dv-unfurl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
  perspective: 1500px;
}

.dv-fold {
  --s: 1;
  margin: 0;
  transform-style: preserve-3d;
  transform:
    translateY(calc((1 - var(--p)) * (var(--i) - 1) * 70px))
    translateX(calc((1 - var(--p)) * (1 - var(--i)) * 46%));
  transition: transform .2s linear;
}

.dv-fold:nth-child(2) {
  --s: -1;
}

.dv-fold-face {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dv-night);
  transform-origin: 50% 50%;
  transform: rotateY(calc((1 - var(--p)) * var(--s) * 72deg));
  box-shadow: 0 30px 50px -24px rgba(0, 0, 60, .5);
  transition: transform .2s linear, box-shadow .4s ease;
}

.dv-fold-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sombra del pliegue: desaparece al desplegarse */
.dv-fold-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 46, .75), rgba(0, 0, 46, .15));
  opacity: calc((1 - var(--p)) * 1.2);
  pointer-events: none;
}

.dv-fold:nth-child(2) .dv-fold-face::after {
  background: linear-gradient(270deg, rgba(0, 0, 46, .75), rgba(0, 0, 46, .15));
}

.dv-fold figcaption {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 14px;
  font: 700 .86rem/1.3 'Inter', sans-serif;
  color: var(--dv-ink);
  opacity: clamp(0, calc(var(--p) * 2 - 1), 1);
}

.dv-fold figcaption span {
  font-variant-numeric: tabular-nums;
  color: var(--dv-gold);
}

.dv-fold.is-on .dv-fold-face {
  box-shadow: 0 0 0 2px var(--dv-gold), 0 36px 60px -24px rgba(0, 0, 60, .55);
}

/* ---------- 6. NDA ---------- */
.des-nda.dv {
  padding: clamp(72px, 8vw, 112px) 0;
  background: var(--dv-ink);
  color: #fff;
}

.des-nda.dv .des-nda-inner h2 {
  margin: 0 0 18px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  color: #fff;
}

.des-nda.dv .des-nda-inner p {
  color: rgba(255, 255, 255, .74);
}

.des-nda.dv .des-nda-list {
  gap: 0 40px;
}

.des-nda.dv .des-nda-item {
  display: block;
  padding: 22px 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  box-shadow: none;
  font: 700 1.05rem/1.4 'Inter', sans-serif;
  color: #fff;
}

.des-nda.dv .des-nda-item::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--dv-gold);
}

/* ---------- 7. FAQ: título fijo a la izquierda ---------- */
.des-faq.dv .container {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 48px 72px;
  align-items: start;
}

.des-faq.dv .container > .fi:first-child {
  position: sticky;
  top: 120px;
  text-align: left !important;
}

.des-faq.dv .section-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  text-align: left;
}

.des-faq.dv .faq-container {
  max-width: none;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .dv .dv-head,
  .des-what.dv .des-what-copy {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
  }

  .des-what.dv .des-what-copy .section-desc {
    grid-column: 1;
    grid-row: auto;
  }

  .des-faq.dv .container {
    grid-template-columns: 1fr;
  }

  .des-scale.dv .des-scale-layout {
    grid-template-columns: 1fr;
  }

  .des-faq.dv .container > .fi:first-child {
    position: static;
  }

  .dv-unfurl {
    margin-top: 40px;
  }
}

@media (max-width: 820px) {
  /* Marcos: carrusel horizontal con descripción visible */
  .dv-frames {
    display: flex;
    height: auto;
    gap: 12px;
    margin: 0 -24px;
    padding: 0 24px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .dv-frames::-webkit-scrollbar {
    display: none;
  }

  .dv-frame {
    flex: 0 0 80%;
    height: 420px;
    scroll-snap-align: start;
  }

  .dv-frame img {
    transform: none;
    filter: none;
  }

  .dv-frame figcaption span {
    max-height: 8em;
    margin-top: 10px;
    opacity: 1;
  }

  .dv-frame::before {
    opacity: 1;
    transform: none;
  }

  /* Galería elástica en vertical */
  .dv-elastic {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }

  .dv-panel {
    flex: none;
    height: 72px;
  }

  .dv-elastic.is-ready .dv-panel {
    transition: height .8s var(--dv-elastic);
  }

  .dv-panel.is-active {
    height: 380px;
  }

  .dv-panel-label {
    left: 22px;
    bottom: 50%;
    writing-mode: horizontal-tb;
    transform: translateY(50%);
  }

  .dv-arc-stage {
    height: 380px;
  }

  .dv-arc-card {
    transform: rotate(calc(var(--o) * 20deg));
  }

  .dv-arc-steps {
    display: none;
  }

}

@media (max-width: 560px) {
  .dv-unfurl {
    gap: 8px;
  }

  .dv-fold figcaption {
    font-size: .74rem;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dv *,
  .dv *::before,
  .dv *::after {
    transition-duration: .01ms !important;
  }

  .des-scale.dv {
    --p: 1 !important;
  }
}
