/* ==========================================================================
   Lanzamiento Expectativa — Landing + Gracias
   Todas las reglas van prefijadas con .lexp- para no afectar otras páginas.
   Fuentes: Khaviax (display), Borndia Bold (eyebrows/botones), Cera Pro
   (ya existe en el tema, ver fonts/Cera Pro Regular.otf / Bold.otf).
   ========================================================================== */

@font-face {
  font-family: "LEXP Khaviax";
  src: url("../fonts/Khaviax.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LEXP Borndia";
  src: url("../fonts/Borndia-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Ocultar el chrome global del tema (nav, pre-footer, footer, botones
   flotantes) únicamente en estas dos plantillas.
   -------------------------------------------------------------------------- */
.page-template-page-lanzamiento-expectativa header.sticky-top,
.page-template-page-lanzamiento-expectativa .offcanvas-desktop,
.page-template-page-lanzamiento-expectativa #pre-footer,
.page-template-page-lanzamiento-expectativa footer,
.page-template-page-lanzamiento-expectativa .only-single-project,
.page-template-page-lanzamiento-expectativa .btn-float-contact,
.page-template-page-lanzamiento-expectativa #contact-floating-button,
.page-template-page-lanzamiento-expectativa-gracias header.sticky-top,
.page-template-page-lanzamiento-expectativa-gracias .offcanvas-desktop,
.page-template-page-lanzamiento-expectativa-gracias #pre-footer,
.page-template-page-lanzamiento-expectativa-gracias footer,
.page-template-page-lanzamiento-expectativa-gracias .only-single-project,
.page-template-page-lanzamiento-expectativa-gracias .btn-float-contact,
.page-template-page-lanzamiento-expectativa-gracias #contact-floating-button {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Base / tokens
   -------------------------------------------------------------------------- */
.lexp-page {
  --lexp-lime: #dbfe86;
  --lexp-purple: #7a306d;
  --lexp-cream: #ede9e6;
  --lexp-dark: #182c2d;
  --lexp-white: #ffffff;
  --lexp-glass: rgba(255, 255, 255, 0.24);
  --lexp-font-display: "LEXP Khaviax", Georgia, serif;
  --lexp-font-accent: "LEXP Borndia", "Cera Pro", sans-serif;
  --lexp-font-body: "Cera Pro", Arial, sans-serif;

  box-sizing: border-box;
  font-family: var(--lexp-font-body);
  color: var(--lexp-cream);
  overflow-x: hidden;
}

.lexp-page *,
.lexp-page *::before,
.lexp-page *::after {
  box-sizing: border-box;
}

.lexp-page a {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero — común a landing y gracias
   -------------------------------------------------------------------------- */
.lexp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  /* stretch (not center) so .lexp-container fills the full hero height,
     letting its own vertical centering (see .lexp-landing .lexp-container)
     position the intro/form block against the real viewport height. */
  align-items: stretch;
  overflow: hidden;
  background-color: var(--lexp-dark);
}

.lexp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lexp-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 6.5%;
}

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */
.lexp-landing .lexp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.lexp-intro {
  max-width: 600px;
  flex: 1 1 480px;
}

.lexp-eyebrow {
  font-family: var(--lexp-font-accent);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--lexp-cream);
  margin: 0 0 28px;
}

.lexp-headline {
  font-family: var(--lexp-font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  color: var(--lexp-lime);
  margin: 0 0 24px;
  letter-spacing: 0.5px;
}

.lexp-subtitle-band {
  display: inline-block;
  background: var(--lexp-purple);
  color: var(--lexp-cream);
  font-family: var(--lexp-font-body);
  font-size: 19px;
  padding: 12px 22px;
  margin: 0 0 40px;
}

.lexp-tagline {
  font-family: var(--lexp-font-accent);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  color: var(--lexp-white);
  text-transform: uppercase;
}

.lexp-tagline strong {
  display: block;
  color: var(--lexp-lime);
}

/* Banda lima del eyebrow y tagline debajo del form — solo mobile (ver media
   query). En desktop el eyebrow es texto plano y el tagline vive en
   .lexp-intro, tal como en el frame de escritorio de Figma. */
.lexp-eyebrow-band {
  display: none;
}

.lexp-tagline-mobile {
  display: none;
}

/* Columna del form: agrupa la card + el logo para que este quede centrado
   contra el ancho de la card (no contra todo el hero), tal como en Figma. */
.lexp-form-col {
  flex: 0 1 460px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Form panel (glass card) */
.lexp-form-panel {
  width: 100%;
  background: var(--lexp-glass);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
  padding: 36px 34px;
  backdrop-filter: blur(6px);
}

.lexp-form-title {
  font-family: var(--lexp-font-body);
  font-weight: 700;
  font-size: 30px;
  color: var(--lexp-lime);
  text-align: center;
  letter-spacing: -1px;
  margin: 0 0 8px;
}

.lexp-form-subtitle {
  font-family: var(--lexp-font-body);
  font-size: 18px;
  color: var(--lexp-white);
  text-align: center;
  letter-spacing: -0.5px;
  margin: 0 0 26px;
  line-height: 1.3;
}

.lexp-field {
  margin-bottom: 16px;
}

.lexp-field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.lexp-field-row .lexp-field {
  margin-bottom: 0;
  flex: 1;
}

.lexp-field-row .lexp-field-pais {
  flex: 0 0 38%;
}

.lexp-field label {
  display: block;
  font-family: var(--lexp-font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--lexp-white);
  margin-bottom: 6px;
}

.lexp-field input,
.lexp-field select {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--lexp-cream);
  border-radius: 25px;
  padding: 12px 18px;
  font-family: var(--lexp-font-body);
  font-size: 15px;
  color: var(--lexp-white);
  appearance: none;
}

.lexp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23EDE9E6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 34px;
}

.lexp-field input::placeholder {
  color: rgba(237, 233, 230, 0.7);
}

.lexp-field input:focus,
.lexp-field select:focus {
  outline: none;
  border-color: var(--lexp-lime);
}

.lexp-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--lexp-font-body);
  font-size: 13px;
  color: var(--lexp-cream);
  margin-bottom: 10px;
  cursor: pointer;
  line-height: 1.4;
}

.lexp-checkbox input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  border: 1.5px solid var(--lexp-lime);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.lexp-checkbox input[type="checkbox"]:checked {
  background-color: var(--lexp-lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23182C2D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.lexp-checkbox a {
  color: var(--lexp-cream);
  font-weight: 700;
  text-decoration: underline;
}

.lexp-btn-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: var(--lexp-lime);
  border: 1.5px solid var(--lexp-lime);
  border-radius: 28px;
  padding: 16px 24px;
  font-family: var(--lexp-font-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lexp-dark);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lexp-btn-submit:hover {
  opacity: 0.85;
}

.lexp-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lexp-form-error {
  display: none;
  font-family: var(--lexp-font-body);
  font-size: 13px;
  color: #ff8a8a;
  margin: 4px 0 0;
}

.lexp-form-error:not(:empty) {
  display: block;
}

.lexp-brand {
  width: 150px;
}

.lexp-brand img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Gracias
   -------------------------------------------------------------------------- */
.lexp-gracias .lexp-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  max-width: 900px;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 15%;
}

/* Marca + título en fila, como en Figma (la marca queda a la izquierda del
   título, no apilada encima). */
.lexp-title-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
}

.lexp-mark {
  flex: 0 0 auto;
  width: 64px;
  height: auto;
}

.lexp-gracias .lexp-headline {
  color: var(--lexp-cream);
  font-size: clamp(36px, 5vw, 56px);
  margin: 0;
}

.lexp-rule {
  align-self: stretch;
  border: none;
  border-top: 1.5px solid rgba(237, 233, 230, 0.5);
  margin: 0;
}

.lexp-gracias-body {
  font-family: var(--lexp-font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.5;
  color: var(--lexp-lime);
  margin: 26px 0;
}

.lexp-btn-outline {
  display: inline-block;
  align-self: flex-start;
  margin-top: 20px;
  padding: 15px 34px;
  border: 2px solid var(--lexp-lime);
  border-radius: 28px;
  font-family: var(--lexp-font-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lexp-cream);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lexp-btn-outline:hover {
  background: var(--lexp-lime);
  color: var(--lexp-dark);
}

.lexp-brand-row {
  position: absolute;
  z-index: 3;
  right: 6.5%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lexp-brand-row span {
  font-family: var(--lexp-font-body);
  font-size: 13px;
  letter-spacing: 2.4px;
  color: var(--lexp-cream);
  text-transform: uppercase;
  white-space: nowrap;
}

.lexp-brand-row img {
  width: 110px;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Responsive — mobile (<=768px), calcado del frame mobile de Figma
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .lexp-hero {
    min-height: auto;
  }

  .lexp-container {
    padding: 40px 24px;
  }

  .lexp-landing .lexp-container {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-top: 100px;
  }

  /* .lexp-intro / .lexp-form-col carry a desktop flex-basis (width, in the
     row layout) that would otherwise apply as a *height* basis once the
     container switches to flex-direction: column, forcing huge empty gaps. */
  .lexp-intro,
  .lexp-form-col {
    flex: none;
  }

  .lexp-intro {
    display: flex;
    flex-direction: column;
  }

  /* El eyebrow pasa de texto plano a una banda lima full-bleed */
  .lexp-eyebrow {
    display: none;
  }

  .lexp-eyebrow-band {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    align-items: center;
    justify-content: center;
    height: 96px;
    background: var(--lexp-lime);
    text-align: center;
  }

  .lexp-eyebrow-band p {
    margin: 0;
    font-family: var(--lexp-font-accent);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--lexp-dark);
  }

  .lexp-headline {
    font-size: 34px;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Full-bleed (rompe el padding del container) para dar espacio suficiente
     y que la frase quede en una sola línea, como en Figma. */
  .lexp-subtitle-band {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  /* El tagline se mueve debajo del form y pierde el acento lima (ver .lexp-tagline-mobile) */
  .lexp-tagline {
    display: none;
  }

  .lexp-tagline-mobile {
    display: block;
    text-align: center;
    font-family: var(--lexp-font-accent);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--lexp-cream);
  }

  .lexp-form-col {
    max-width: none;
  }

  /* Panel full-bleed sin esquinas redondeadas ni título en mobile */
  .lexp-form-panel {
    width: calc(100% + 48px);
    margin: 0 -24px;
    border-radius: 0;
    border-width: 0;
    padding: 32px 28px;
  }

  .lexp-form-title,
  .lexp-form-subtitle {
    display: none;
  }

  .lexp-field-row {
    flex-direction: column;
    gap: 16px;
  }

  .lexp-field-row .lexp-field-pais {
    flex: 1;
  }

  .lexp-brand {
    width: 130px;
  }

  /* .lexp-hero es flex-direction:row por defecto (necesario para el layout
     desktop de gracias, donde .lexp-brand-row es position:absolute y no
     participa del flex). En mobile .lexp-brand-row pasa a position:static
     y se vuelve un segundo item de fila — sin esto, compite por el ancho
     con .lexp-container (que es width:100%) y todo se ve comprimido.
     min-height:100vh en el hero asegura que el fondo cubra toda la
     pantalla aunque el contenido sea corto; .lexp-container usa flex:1
     (en vez de min-height:100vh) para repartirse ese alto con
     .lexp-brand-row sin dejar un salto vacío entre ambos. */
  .lexp-gracias .lexp-hero {
    flex-direction: column;
    min-height: 100vh;
  }

  .lexp-gracias .lexp-container {
    flex: 1;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 24px;
    align-items: center;
    text-align: center;
  }

  /* En mobile la marca queda centrada arriba del título, no en fila */
  .lexp-title-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .lexp-gracias .lexp-headline {
    font-size: 30px;
  }

  .lexp-gracias-body {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }

  .lexp-btn-outline {
    align-self: center;
  }

  .lexp-brand-row {
    position: static;
    margin-top: 32px;
    padding-bottom: 60%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
}

