/* /stg-ecommerce/: landing de tiendas virtuales. Completa mozart.css, asi.css y stg.css con lo propio:
   hero con celular, réplica de chat del asistente, tienda de ejemplo, opciones táctiles del formulario
   y detalles de los planes. Generado por _build/ecommerce/build.py. Imágenes en /images/ecommerce/ (mockups.swift). */

/* ── Hero: video de retail de fondo (el de la landing ASI), titular a todo el ancho ── */
.ec-hero {
  position: relative;
  padding: clamp(150px, 13vw, 190px) 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
  background: #0b0c0e;
}
.ec-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ec-hero__media img,
.ec-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.ec-hero__media video {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ec-hero__media video.is-on {
  opacity: 1;
}
.ec-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 14, 0.95) 0%, rgba(11, 12, 14, 0.86) 50%, rgba(11, 12, 14, 0.74) 100%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.45) 0%, rgba(11, 12, 14, 0.1) 35%, #0b0c0e 100%);
}
.ec-hero__inner {
  position: relative;
  z-index: 1;
}
.ec-hero__title {
  max-width: 1180px;
  margin-top: 22px;
  font-size: clamp(44px, 6.4vw, 108px);
}
.ec-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 44px);
}
.ec-hero__copy .mz-hero__sub {
  max-width: 600px;
}
.ec-wa-icon::before {
  display: none !important;
}
.ec-wa-icon i {
  font-size: 22px;
}
.ec-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.ec-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
}
.ec-trust i {
  font-size: 12px;
  color: #d58e5a;
}
.ec-hero__visual {
  display: flex;
  justify-content: center;
}
.ec-phone--hero {
  width: min(100%, 330px);
}

/* ── Celular: marco realista (PNG generado con _build/ecommerce/mockups.swift) sobre el chat HTML en vivo ── */
.ec-phone {
  position: relative;
  width: min(100%, 360px);
  margin: 0;
}
.ec-device {
  position: relative;
  aspect-ratio: 900 / 1820;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 20px 70px rgba(213, 142, 90, 0.22));
}
.ec-device__screen {
  position: absolute;
  left: 4.977%;
  top: 2.461%;
  width: 90.047%;
  height: 95.078%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12.37% / 5.8%;
  background: #0f1013;
}
.ec-device__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ec-phone__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13.6% 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #15161a;
  font-size: 15px;
  color: #fff;
}
.ec-phone__bar b {
  display: block;
  font-weight: 500;
}
.ec-phone__bar small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.ec-phone__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cfe2e6 0%, #9dbcc4 40%, #d58e5a 100%);
  color: #111;
  font-weight: 600;
}
.ec-phone__chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 14px;
  overflow: hidden;
}
.ec-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.42;
}
.ec-msg--me {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #f2f0eb;
  color: #111;
}
.ec-msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #1f2126;
  color: rgba(255, 255, 255, 0.9);
}
.ec-msg b {
  font-weight: 600;
  color: inherit;
}
.ec-phone__input {
  margin: 0 14px 7%;
  padding: 11px 16px;
  border-radius: 999px;
  background: #1a1b1f;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}
.ec-phone figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}
.ec-report {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #15161a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ec-report__t {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.ec-report strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #cfe2e6 0%, #9dbcc4 38%, #d58e5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ec-report__row {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
/* aparición de los mensajes (la activa ecommerce.js; sin JS o con movimiento reducido se ven todos) */
/* los mensajes que faltan no ocupan espacio: el chat crece desde abajo, como uno real */
.ec-phone.is-anim .ec-msg {
  display: none;
}
.ec-phone.is-anim .ec-msg.is-in {
  display: block;
  animation: ecMsgIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ecMsgIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Comandos del asistente ── */
.ec-agent__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.ec-agent__visual {
  display: flex;
  justify-content: center;
}
.ec-cmds {
  display: grid;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.ec-cmd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.ec-cmd__say {
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.01em;
  color: #fff;
}
.ec-cmd__what {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.ec-cmd__what b {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Escena real de la tienda (portátil + iPhone con capturas) ── */
.ec-design__head {
  margin-bottom: clamp(24px, 3vw, 48px);
}
.ec-design__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.ec-scene {
  position: relative;
  margin: 0 0 0 clamp(-40px, -3vw, 0px);
}
/* luz tenue detrás de los equipos para despegarlos del negro, sin marco */
.ec-scene::before {
  content: "";
  position: absolute;
  inset: 6% 4% 10%;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.ec-scene picture,
.ec-scene img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.ec-scene figcaption {
  position: relative;
  margin-top: 4px;
  padding-left: clamp(0px, 3vw, 40px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.ec-design__copy .mz-lead {
  margin: 0;
}
.ec-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.ec-points li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.ec-points li b {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.ec-points li span {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Planes ── */
.ec-plans .stg-l-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.ec-plan__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
/* Orbe blanco con halo: más brillo y un resplandor suave detrás, sin caja */
.ec-halo {
  position: relative;
  display: inline-flex;
  width: 60px;
  height: 60px;
}
.ec-halo::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.ec-halo canvas {
  position: relative;
  width: 60px;
  height: 60px;
  filter: brightness(1.8) drop-shadow(0 0 3px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
}
.ec-plan.is-featured .ec-halo::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0) 70%);
}
.ec-plan__tag {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.ec-plan .pricing-name {
  margin-bottom: 8px;
}
.ec-plan .pricing-desc {
  min-height: 0;
  margin-bottom: 22px;
}
.ec-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  line-height: 1;
}
.ec-plan__price .amount {
  font-family: var(--font_bdogrotesk), sans-serif;
  font-size: clamp(36px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}
.ec-plan__price .per {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.ec-renew {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.ec-renew i {
  margin-top: 3px;
  font-size: 12px;
}
.ec-plans__note {
  margin: 40px 0 0;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
}

/* ── Formulario: opciones de un toque ── */
.ec-form .ec-q {
  margin: 0 0 20px;
}
.ec-q__label {
  margin: 0 0 10px !important;
  font-size: 15.5px !important;
  font-weight: 500;
  color: #fff !important;
}
.ec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ec-chip {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.ec-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ec-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14.5px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ec-chip:hover span {
  border-color: rgba(255, 255, 255, 0.45);
}
.ec-chip input:checked + span {
  background: #fff;
  border-color: #fff;
  color: #111;
}
.ec-chip input:focus-visible + span {
  outline: 2px solid #d58e5a;
  outline-offset: 2px;
}
.ec-q[aria-invalid="true"] .ec-q__label {
  color: #ff9d8a !important;
}
.ec-rec {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ec-rec span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.ec-rec strong {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.ec-rec small {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}
.asi-progress.ec-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.asi-progress.ec-progress li {
  min-width: 0;
  white-space: nowrap;
}

/* ── Sección clara del formulario ── */
.ec-quote__list {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.ec-quote__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  color: rgba(17, 17, 17, 0.78);
}
.ec-quote__list i {
  font-size: 13px;
  color: #b8703d;
}
.ec-quote__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 16px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ec-quote__wa:hover {
  color: #111;
}
.ec-formcard p {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Cierre y gracias ── */
.ec-final {
  padding-top: 0 !important;
}
.ec-final__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}
.ec-thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: clamp(150px, 14vw, 200px);
}
.ec-thanks__box {
  max-width: 820px;
}
.ec-thanks h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111;
}

/* ── Móvil ── */
@media (max-width: 991px) {
  .ec-agent__grid,
  .ec-design__grid {
    grid-template-columns: 1fr;
  }
  /* En móvil la línea central de la rejilla cruza el texto y se mueve al asentarse el viewport (CLS). */
  .ec-page .bg-grid {
    display: none;
  }
}
@media (max-width: 575px) {
  .ec-hero {
    padding-top: 130px;
  }
  .ec-trust li {
    font-size: 13.5px;
  }
  .ec-phone {
    width: min(100%, 300px);
  }
  .ec-chip span {
    padding: 10px 14px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ec-phone.is-anim .ec-msg {
    display: block;
    animation: none;
  }
}

/* ── En esta landing: rótulos en tipo normal (sin mayúscula sostenida, sin espaciado ni monoespaciada) ── */
.ec-page .mz-eyebrow {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.62);
}
.ec-page .mz-close .mz-eyebrow {
  color: rgba(17, 17, 17, 0.55);
}
.ec-page .mz-idea__stays li span {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
}
.ec-page .ec-report__t,
.ec-page .ec-rec span {
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}
.ec-press .stg-press__grid {
  margin-top: clamp(36px, 4vw, 56px);
}
@media (max-width: 991px) {
  .ec-hero__grid {
    grid-template-columns: 1fr;
  }
  .ec-hero__visual {
    margin-top: 10px;
  }
  .ec-hero__media img,
  .ec-hero__media video {
    object-position: 30% center;
  }
  /* En móvil el texto ocupa todo el ancho sobre el video: velo parejo y más denso */
  .ec-hero__media::after {
    background: linear-gradient(180deg, rgba(11, 12, 14, 0.8) 0%, rgba(11, 12, 14, 0.86) 55%, #0b0c0e 100%);
  }
  .ec-scene {
    margin-left: 0;
  }
  .ec-scene figcaption {
    padding-left: 0;
  }
}
