/* =====================================================
   WIRTZ MARKETING · LOGIN CREATIVE STUDIO 6.0
   ===================================================== */

body.wm-studio-active {
  --studio-red: #e5332d;
  --studio-black: #0c0c0e;
  --studio-white: #f6f6f5;

  background: #0b0b0d !important;
  color: #f6f6f5;
  overflow-x: hidden !important;
}

/* Fondo antiguo mucho más discreto */
body.wm-studio-active #wm-login-motion {
  opacity: .12;
}

body.wm-studio-active::before {
  opacity: .2;
}

/* =====================================================
   PRESENTACIÓN IZQUIERDA
   ===================================================== */

#wm-studio-hero {
  --studio-x: 0;
  --studio-y: 0;

  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;

  width: 55%;
  height: 100dvh;
  min-height: 0;
  padding: clamp(24px,3.5vw,56px);

  display: flex;
  flex-direction: column;
  gap: 15px;

  overflow: hidden;
  isolation: isolate;

  color: #f7f7f7;

  background:
    linear-gradient(140deg,#161619 0%,#0c0c0f 72%);

  border-right: 1px solid #39393b;
}

#wm-studio-hero *,
#wm-studio-card * {
  box-sizing: border-box;
}

.studio-top,
.studio-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--studio-red);
  color: #fff;
  border-radius: 9px;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
}

.studio-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 900;
}

.studio-brand small {
  display: block;
  margin-top: 4px;
  color: #a5a5ab;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.studio-top-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 800;
  color: #b2b2b8;
  letter-spacing: 1px;
}

.studio-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc423d;
}

.studio-copy {
  margin-top: clamp(15px,3vh,45px);
}

.studio-overline {
  color: #9a9aa3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.studio-copy h1 {
  max-width: 690px;
  margin: 18px 0;
  font-size: clamp(38px,4vw,68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -2.7px;
}

.studio-copy h1 em {
  color: var(--studio-red);
  font-style: normal;
}

.studio-copy p {
  max-width: 460px;
  margin: 0;
  color: #acacb2;
  font-size: clamp(12px,1vw,15px);
  line-height: 1.7;
}

/* =====================================================
   COMPOSICIÓN DE MARKETING
   ===================================================== */

.studio-composition {
  position: relative;
  flex: 1;
  min-height: 220px;
  max-height: 430px;
  margin-top: 12px;
}

.studio-poster {
  position: absolute;
  width: min(67%,440px);
  height: 94%;
  left: 15%;
  top: 2%;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  border: 1px solid #a72b27;
  background: #c72b27;
  border-radius: 12px;

  transform:
    translate(
      calc(var(--studio-x) * 14px),
      calc(var(--studio-y) * 12px)
    ) rotate(-5deg);

  transition: transform 180ms ease-out;
}

.studio-poster-heading {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 16px;

  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  color: #fff;
}

.studio-poster-art {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    linear-gradient(145deg,#ed4740,#b51c19);
}

.studio-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  transform: rotate(-35deg) scaleX(1.4);
}

.studio-orbit-one {
  animation: studio-rotate 18s linear infinite;
}

.studio-orbit-two {
  transform: rotate(45deg) scaleX(.7);
  animation: studio-rotate-reverse 22s linear infinite;
}

.studio-art-core {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: clamp(105px,16vw,225px);
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -26px;
  transform: rotate(-11deg);
  text-shadow: 12px 14px 0 rgba(50,0,0,.13);
}

.studio-art-stripe {
  position: absolute;
  z-index: 3;
  width: 145%;
  height: 30px;
  background: #111114;
  transform: rotate(-24deg) translateY(75px);
}

.studio-poster-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  gap: 10px;
  color: #fff;
}

.studio-poster-footer span {
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.3px;
}

.studio-poster-footer strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(13px,1.5vw,20px);
  font-weight: 900;
}

.studio-poster-arrow {
  font-size: 25px !important;
}

.studio-floating {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  width: clamp(175px,20vw,250px);
  padding: 13px;

  border: 1px solid #46464b;
  border-radius: 10px;
  background: #202024;
  color: #fff;
  box-shadow: 0 9px 24px #0004;

  transition: transform 180ms ease-out;
}

.studio-floating-top {
  left: 0;
  top: 15%;
  transform: translate(
    calc(var(--studio-x) * -22px),
    calc(var(--studio-y) * -18px)
  ) rotate(4deg);
}

.studio-floating-bottom {
  right: 2%;
  bottom: 15%;
  transform: translate(
    calc(var(--studio-x) * 21px),
    calc(var(--studio-y) * 17px)
  ) rotate(5deg);
}

.studio-floating-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #39393e;
  color: #efefef;
  font-size: 20px;
}

.studio-floating strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.studio-floating small {
  display: block;
  margin-top: 5px;
  color: #aaaab0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
}

.studio-floating i {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #e5332d;
}

.studio-coordinates {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  color: #7f7f88;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.studio-bottom {
  padding-top: 15px;
  border-top: 1px solid #353539;
  color: #9a9aa2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* =====================================================
   FORMULARIO A LA DERECHA
   ===================================================== */

/* Mantiene el DOM y la lógica original. */
body.wm-studio-active #wm-studio-card {
  position: relative !important;
  z-index: 5 !important;

  width: min(400px,39vw) !important;
  max-width: min(400px,39vw) !important;
  min-width: 0 !important;

  max-height: calc(100dvh - 32px);
  overflow-y: auto;

  margin-inline: auto !important;

  transform: translateX(62%) !important;

  background: #f7f7f5 !important;
  color: #171719 !important;

  border: 1px solid #dedee0 !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 75px #0006 !important;
}

/* Evitar la tarjeta oscura anidada que se ve en la captura */
body.wm-studio-active .wm-login-motion-form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #18181a !important;
  animation: none !important;
}

/* Campos y botones del formulario real */
body.wm-studio-active #wm-studio-card input:not(
  [type="checkbox"]
):not([type="radio"]) {
  background: #fff !important;
  color: #1c1c1f !important;
  border: 1px solid #cdced2 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  min-height: 43px;
  width: 100%;
}

body.wm-studio-active #wm-studio-card input:focus {
  border-color: #e5332d !important;
  outline: 1px solid #e5332d !important;
}

body.wm-studio-active #wm-studio-card button[type="submit"] {
  min-height: 44px;
  background: #e5332d !important;
  border-color: #e5332d !important;
  color: white !important;
  border-radius: 7px !important;
  font-weight: 850;
}

body.wm-studio-active #wm-studio-card button[type="submit"]:hover {
  background: #c72722 !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media(max-width:1100px) {
  #wm-studio-hero {
    width: 50%;
    padding: 30px;
  }

  .studio-copy h1 {
    font-size: clamp(34px,4vw,50px);
  }

  body.wm-studio-active #wm-studio-card {
    width: min(390px,44vw) !important;
    max-width: min(390px,44vw) !important;
    transform: translateX(55%) !important;
  }

  .studio-floating {
    padding: 9px;
    width: 165px;
  }
}

@media(max-width:760px) {
  #wm-studio-hero {
    width: 100%;
    height: auto;
    min-height: 150px;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid #39393b;
  }

  .studio-top-label,
  .studio-composition,
  .studio-bottom {
    display: none;
  }

  .studio-copy {
    margin-top: 11px;
  }

  .studio-copy h1 {
    margin: 6px 0;
    font-size: 27px;
    letter-spacing: -1px;
  }

  .studio-copy p {
    font-size: 11px;
  }

  body.wm-studio-active #wm-studio-card {
    width: min(430px,calc(100vw - 30px)) !important;
    max-width: calc(100vw - 30px) !important;
    margin-top: 145px !important;
    margin-bottom: 15px !important;
    transform: none !important;
    max-height: none;
  }
}

@media(max-height:700px) and (min-width:761px) {
  #wm-studio-hero {
    padding: 20px 35px;
  }

  .studio-copy {
    margin-top: 3px;
  }

  .studio-copy h1 {
    font-size: clamp(31px,3vw,45px);
    margin: 9px 0;
  }

  .studio-composition {
    min-height: 140px;
  }
}

@keyframes studio-rotate {
  to {transform: rotate(325deg) scaleX(1.4);}
}

@keyframes studio-rotate-reverse {
  to {transform: rotate(-315deg) scaleX(.7);}
}

@media(prefers-reduced-motion:reduce) {
  #wm-studio-hero *,
  #wm-studio-card {
    animation: none !important;
    transition: none !important;
  }
}

/* ================================================
   WIRTZ MARKETING · LOGIN STUDIO 6.1
   FIX DE DISTRIBUCIÓN Y ESPACIADOS
   ================================================ */

body.wm-studio-active {
  min-height: 100dvh !important;
  overflow-x: hidden !important;
}

/* Ocultar el fondo anterior */
body.wm-studio-active #wm-login-motion {
  display: none !important;
}

/* Panel creativo: exactamente la mitad izquierda */
body.wm-studio-active #wm-studio-hero {
  left: 0;
  top: 0;
  width: 54%;
  height: 100dvh;
  z-index: 10;
}

/* Formulario en la mitad derecha */
body.wm-studio-active #wm-studio-card {
  position: fixed !important;
  top: 50% !important;
  left: 77% !important;
  right: auto !important;

  width: min(440px, 40vw) !important;
  max-width: min(440px, 40vw) !important;

  height: auto !important;
  max-height: calc(100dvh - 40px) !important;

  margin: 0 !important;

  transform: translate(-50%, -50%) !important;

  z-index: 20 !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding: 26px !important;
  border-radius: 13px !important;

  background: #f7f7f5 !important;
  color: #171719 !important;
}

/* Quitar márgenes excesivos de sus contenedores */
body.wm-studio-active #wm-studio-card > * {
  max-width: 100%;
}

/* Mantener los colores de los textos */
body.wm-studio-active #wm-studio-card :is(h1,h2,h3,label,strong) {
  color: #171719;
}

body.wm-studio-active #wm-studio-card :is(p,small) {
  color: #66666d;
}

/* Formulario más compacto */
body.wm-studio-active #wm-studio-card form {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

/* Quitar la segunda tarjeta oscura si existe */
body.wm-studio-active #wm-studio-card form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.wm-studio-active #wm-studio-card form input {
  background: #ffffff !important;
  color: #171719 !important;
}

/* Evitar elementos desbordados */
body.wm-studio-active #wm-studio-card * {
  min-width: 0;
}

/* TABLETS */
@media (max-width: 1000px) {
  body.wm-studio-active #wm-studio-hero {
    width: 50%;
    padding: 24px;
  }

  body.wm-studio-active #wm-studio-card {
    left: 75% !important;
    width: min(420px, 44vw) !important;
    max-width: 44vw !important;
    padding: 22px !important;
  }
}

/* MÓVILES */
@media (max-width: 760px) {
  body.wm-studio-active #wm-studio-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 150px;
  }

  body.wm-studio-active #wm-studio-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;

    width: min(440px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;

    max-height: none !important;
    margin: 18px auto 30px !important;
    transform: none !important;

    padding: 20px !important;
  }

  body.wm-studio-active {
    overflow-y: auto !important;
  }
}

/* Alturas pequeñas */
@media (max-height: 650px) and (min-width: 761px) {
  body.wm-studio-active #wm-studio-card {
    padding: 17px !important;
    max-height: calc(100dvh - 20px) !important;
  }
}
