/* Sección «Estrategia digital» — un rodaje se desprende en 4 piezas.
   Todo va con prefijo .ed- para no chocar con estilos.css del sitio.
   Colores de la identidad Maverick (mismos tokens que estilos.css). */
.ed-anim {
  --ed-fondo: #101211;
  --ed-carbon: #3a3d38;
  --ed-teal: #2e8582;
  --ed-turquesa: #5bc3c9;
  --ed-tinta: #f0f0ee;
  --ed-tenue: #a9b0ac;
  --ed-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--ed-fondo);
  color: var(--ed-tinta);
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}
.ed-inner { max-width: 1200px; margin: 0 auto; }

.ed-kicker {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ed-turquesa);
}
.ed-title {
  margin: 0; max-width: 18ch;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em;
}
.ed-title .ed-arrow { color: var(--ed-turquesa); font-weight: 400; }
.ed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-sub {
  margin: 18px 0 0; max-width: 52ch;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; font-weight: 300; color: var(--ed-tenue);
}

/* Escenario: principal grande a la izquierda, tres piezas a la derecha */
.ed-stage {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
  align-items: center;
}
.ed-card { position: relative; margin: 0; will-change: transform, opacity; }
.ed-main { z-index: 2; }
.ed-piece { z-index: 1; }
.ed-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: var(--ed-carbon);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(240, 240, 238, .08);
  cursor: pointer;
}
.ed-main .ed-frame { border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(91,195,201,.35); }
.ed-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.ed-cap {
  display: flex; flex-direction: column; gap: 4px; margin-top: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .6s var(--ed-ease);
}
.ed-cap b { font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; }
.ed-cap span {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ed-fondo); background: var(--ed-turquesa); padding: 3px 8px; border-radius: 999px;
}
.ed-cap span.ed-redes { background: transparent; color: var(--ed-turquesa); box-shadow: inset 0 0 0 1px var(--ed-turquesa); }
.ed-anim.ed-done .ed-cap { opacity: 1; transform: none; }
.ed-anim.ed-done .ed-piece:nth-of-type(3) .ed-cap { transition-delay: .1s; }
.ed-anim.ed-done .ed-piece:nth-of-type(4) .ed-cap { transition-delay: .2s; }

.ed-cliente { margin: clamp(28px, 3vw, 40px) 0 0; font-size: 13px; color: var(--ed-tenue); }

/* Celular: principal arriba al centro, tres piezas en fila debajo */
@media (max-width: 899px) {
  .ed-stage { grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
  .ed-main { grid-column: 1 / -1; width: 58%; justify-self: center; margin-bottom: 8px; }
  .ed-frame { border-radius: 12px; }
  .ed-main .ed-frame { border-radius: 18px; }
  .ed-cap { margin-top: 10px; }
  .ed-main .ed-cap { align-items: center; }
  .ed-main .ed-cap span { align-self: center; }
  .ed-piece .ed-cap b { font-size: 12px; line-height: 1.25; }
  .ed-piece .ed-cap span { font-size: 9px; letter-spacing: .1em; padding: 2px 6px; }
}

/* Sin animación: todo en su sitio desde el principio, nada se reproduce solo */
@media (prefers-reduced-motion: reduce) {
  .ed-card { transition: none !important; transform: none !important; opacity: 1 !important; }
  .ed-cap { opacity: 1; transform: none; transition: none; }
}
