/* ==========================================================================
   Marte Studio — overrides sobre el export original de Webflow
   Se carga DESPUÉS del css original, así estos estilos ganan.
   ========================================================================== */

/* -------- 1. Fix: título MARTE que se rompe / se desborda -------- */
.intro-title,
.ms-intro-title {
  white-space: nowrap !important;
  overflow: visible;
  text-transform: uppercase;
}

/* Tablet: bajamos un poco el tamaño así no toca los bordes. */
@media screen and (max-width: 900px) {
  .intro-title,
  .ms-intro-title {
    font-size: clamp(3.5rem, 18vw, 9rem) !important;
    line-height: 1 !important;
  }
}

/* Mobile: MARTE tiene que caber con padding a ambos lados. */
@media screen and (max-width: 560px) {
  .intro-title,
  .ms-intro-title {
    font-size: clamp(2.8rem, 15vw, 5rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
  }
}

/* El h2 "Un viaje hacia el futuro de tu marca" también se desborda en
   mobile porque es muy largo. Lo dejamos ajustar sus líneas naturalmente
   y le capeamos el tamaño. */
@media screen and (max-width: 900px) {
  .orbit-pre-title-text {
    font-size: clamp(2.5rem, 9vw, 5rem) !important;
    line-height: 1 !important;
    padding: 0 1rem !important;
    word-break: normal;
  }
}

@media screen and (max-width: 560px) {
  .orbit-pre-title-text {
    font-size: clamp(2rem, 10vw, 3.5rem) !important;
    padding: 0 1.25rem !important;
  }
}

/* -------- 2. Subtítulo STUDIO debajo de MARTE -------- */
.ms-studio-subtitle {
  font-family: 'Thegoodmonolith', 'Courier New', monospace;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-weight: 400;
  /* aproximadamente 1/10 del tamaño de MARTE */
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  margin-top: -0.3em;
  margin-bottom: 1.5em;
  padding-left: 0.45em; /* compensa el letter-spacing para alinear visualmente */
  opacity: 0.85;
  text-align: center;
}

/* Si la intro-title tiene alineación centrada, mantenerla también en el subtítulo */
.stage-content-wrapper {
  text-align: center;
}

/* -------- 3. Ajustes varios del stage (Marte Studio) -------- */
/* El banner superior ahora dice "MARTE STUDIO / Agencia de Marketing" —
   nos aseguramos que siga legible aunque el texto sea más largo. */
.stage-info-banner .copy-small {
  white-space: nowrap;
}

/* -------- 3b. Botón de servicios ("¿Qué podemos hacer por vos?") --------
   El .button.full-width original de Webflow usa flex con dos hijos
   (ask-nova-text + copy) y se apoya en ese layout para el padding. Con
   un solo hijo y sin esos divs, necesitamos asegurarnos que el botón
   quede bien centrado y con padding propio en todas las pantallas. */
.ms-services-button {
  text-decoration: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem !important;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.ms-services-button > div {
  display: block;
  width: auto;
  flex: 0 1 auto;
}

/* El wrapper .ask-nova-button puede no tener padding horizontal en
   mobile, lo que deja el botón pegado al borde. Le damos aire. */
.ask-nova-button {
  box-sizing: border-box;
}

@media screen and (max-width: 560px) {
  .ask-nova-button {
    padding: 0 1rem !important;
  }
  .ms-services-button {
    padding: 1.1rem 1.25rem !important;
    font-size: 0.95rem !important;
  }
}

/* -------- 4. Contact section -------- */
.ms-contact-section {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  padding: 8rem 1.5rem 4rem;
  z-index: 2;
}

.ms-contact-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ms-contact-banner {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
  text-transform: uppercase;
}

.ms-contact-banner .copy-small {
  font-family: 'Thegoodmonolith', 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.ms-contact-heading {
  font-family: 'Dm sans', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 2rem 0 0.5rem;
  font-weight: 500;
}

.ms-contact-sub {
  font-family: 'Dm sans', 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;
  opacity: 0.7;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* -------- 5. Form fields -------- */
.ms-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.ms-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ms-field label {
  font-family: 'Thegoodmonolith', 'Courier New', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

.ms-optional {
  opacity: 0.5;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
}

.ms-field input,
.ms-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Dm sans', 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.25s ease;
  resize: none;
}

.ms-field input::placeholder,
.ms-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ms-field input:focus,
.ms-field textarea:focus {
  border-bottom-color: #fff;
}

.ms-field textarea {
  min-height: 120px;
  line-height: 1.5;
}

/* -------- 6. Submit button (mantiene la estética del .button original) -------- */
.ms-submit-btn {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  color: #0a0a0a;
  border: none;
  padding: 1.15rem 1.5rem;
  font-family: 'Dm sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: 100%;
}

.ms-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ms-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.ms-submit-text {
  font-family: 'Thegoodmonolith', 'Courier New', monospace;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* -------- 7. Footer -------- */
.ms-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 4rem;
  text-transform: uppercase;
  opacity: 0.6;
}

.ms-footer .copy-small {
  font-family: 'Thegoodmonolith', 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* -------- 8. Mobile tweaks para el contact -------- */
@media screen and (max-width: 560px) {
  .ms-contact-section {
    padding: 5rem 1.25rem 3rem;
  }
  .ms-contact-banner,
  .ms-footer {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* -------- 9. Mobile orbit choreography -------- */
.ms-mobile-hero-mars-sticky,
.ms-mobile-orbit-system,
.ms-mobile-orbit-copy {
  display: none;
}

@media screen and (max-width: 991px) {
  .orbit-chapter-description-wrapper {
    bottom: 42vh !important;
    max-width: min(85vw, 32rem) !important;
    padding-right: var(--container--page-padding, 5vw) !important;
  }
}

@media screen and (max-width: 767px) {
  .stage-wrapper {
    position: relative;
    min-height: calc(100vh + 68vw);
    margin-bottom: 0 !important;
    padding-bottom: 68vw;
    overflow: visible;
  }

  .section-stage-orbit {
    overflow: visible;
  }

  .orbit-content-wrapper {
    overflow: visible;
  }

  .mars-sticky,
  .orbit-circle-wrapper {
    display: none !important;
  }

  .ms-mobile-hero-mars-sticky {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    pointer-events: none;
    overflow: visible;
  }

  .ms-mobile-hero-mars {
    position: absolute;
    left: 50%;
    top: calc(100vh - 58vw);
    bottom: auto;
    width: 112vw;
    max-width: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 2rem rgba(255, 104, 30, 0.2));
    will-change: transform, opacity;
  }

  .stage-info-banner.is-end {
    display: none !important;
  }

  .orbit-content-wrapper {
    margin-top: 2vh;
    overflow: visible;
    position: relative;
    z-index: 3;
  }

  .orbit-sticky {
    overflow: visible !important;
    perspective: 220px !important;
    perspective-origin: 50% 52% !important;
  }

  .ms-mobile-orbit-system {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
  }

  .ms-mobile-earth {
    position: absolute;
    width: min(46vw, 13rem);
    filter: drop-shadow(0 0 2rem rgba(124, 182, 255, 0.22));
    will-change: transform, opacity;
  }

  .ms-mobile-mars-orbit {
    position: relative;
    width: min(84vw, 24rem);
    aspect-ratio: 1;
    transform-origin: 50% 50%;
    will-change: transform;
  }

  .ms-mobile-mars {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(24vw, 7.5rem);
    transform: translate(-50%, -36%);
    filter: drop-shadow(0 0 2rem rgba(255, 104, 30, 0.2));
    will-change: transform;
  }

  .ms-mobile-orbit-copy {
    position: absolute;
    inset: auto 0 8vh 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(90vw, 22rem);
    padding-left: 5vw;
    padding-right: 5vw;
    opacity: 0;
    transform: translate3d(0, 3rem, 0);
    will-change: transform, opacity;
  }

  .ms-mobile-orbit-copy .heading-style-h3,
  .ms-mobile-orbit-copy .copy-medium {
    margin: 0;
  }

  .ms-mobile-orbit-copy .heading-style-h3 {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
    line-height: 0.92;
  }

  .ms-mobile-orbit-copy .copy-medium {
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .orbit-pre-title-wrapper {
    margin-top: 2vh;
    overflow: visible;
  }

  .orbit-stones-wrapper {
    inset: 87% 0% auto;
    overflow: visible;
  }

  .orbit-stone {
    display: block !important;
  }

  .orbit-stone.is-1 {
    width: 23vw !important;
    top: 98% !important;
    left: 2% !important;
  }

  .orbit-stone.is-2 {
    width: 31vw !important;
    top: -20% !important;
    left: auto !important;
  }

  .orbit-stone.is-3 {
    width: 28vw !important;
    top: -122% !important;
    left: 12% !important;
  }

  .orbit-stone.is-5 {
    width: 11vw !important;
    margin-left: 0 !important;
    top: -10% !important;
    right: 10% !important;
    left: auto !important;
  }

  .orbit-stone.is-6 {
    width: 9vw !important;
    top: 30% !important;
    left: 16% !important;
  }

  .orbit-chapter-description-wrapper {
    display: none !important;
  }
}

@media screen and (max-width: 479px) {
  .stage-wrapper {
    min-height: calc(100vh + 72vw);
    padding-bottom: 72vw;
  }

  .orbit-content-wrapper {
    margin-top: 0;
  }

  .ms-mobile-hero-mars {
    top: calc(100vh - 60vw);
    width: 116vw;
  }

  .orbit-sticky {
    perspective: 250px !important;
    perspective-origin: 50% 42% !important;
  }

  .ms-mobile-earth {
    width: min(48vw, 11rem);
  }

  .ms-mobile-mars-orbit {
    width: min(88vw, 21rem);
  }

  .ms-mobile-mars {
    width: min(24vw, 5.8rem);
  }

  .ms-mobile-orbit-copy {
    inset: auto 0 -3vh 0;
    width: min(86vw, 18rem);
  }

  .ms-mobile-orbit-copy .heading-style-h3 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }

  .ms-mobile-orbit-copy .copy-medium {
    font-size: 0.92rem;
  }

  .orbit-stone.is-1 {
    width: 26vw !important;
    top: 95% !important;
    left: 1% !important;
  }

  .orbit-stone.is-2 {
    width: 34vw !important;
    top: -16% !important;
  }

  .orbit-stone.is-3 {
    width: 31vw !important;
    top: -108% !important;
    left: 2% !important;
  }

  .orbit-stone.is-5 {
    width: 13vw !important;
    top: -2% !important;
    right: 4% !important;
  }

  .orbit-stone.is-6 {
    width: 11vw !important;
    top: 33% !important;
    left: 11% !important;
  }

}
