/* ==========================================================================
   CONIFY.APP — TIPOGRAFÍA CLAY STYLE
   Roobert para títulos y llamadas principales.
   Inter para subtítulos, párrafos y botones.
   ========================================================================== */

@font-face {
  font-family: "Roobert";
  src: url("./RoobertVF.woff2") format("woff2"),
       url("https://cdn.prod.website-files.com/61477f2c24a826836f969afe/6a1e067cbcc79b9f76bb28f5_RoobertVF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-heading: "Roobert", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --framer-color-primary: #F5F5F0;
  --framer-color-secondary: rgba(245, 245, 240, 0.76);
  --framer-color-button-text: #000000;
  --framer-bg: #000000;
}

html {
  width: 100%;
  min-height: 100%;
  background-color: var(--framer-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: var(--framer-bg);
  font-family: var(--font-body);
  color: var(--framer-color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* En la landing page (index.html): altura fija de viewport sin scroll */
body:not(.page-waitlist) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

/* En la página waitlist y thank you: scroll vertical libre en html y body */
html.waitlist-root,
body.page-waitlist {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* --------------------------------------------------------------------------
   Canvas WebGL Background (Sunrise 2)
   -------------------------------------------------------------------------- */
#sunrise-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Contenedor Principal (Centrado Absoluto en Pantalla)
   -------------------------------------------------------------------------- */
.framer-page {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Hero Central
   -------------------------------------------------------------------------- */
.framer-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-title-container {
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1em;
  text-align: center;
  color: var(--framer-color-primary);
  white-space: nowrap;
}

.hero-subtitle-container {
  margin-top: 24px;
  max-width: 660px;
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-heading); /* Roobert VF para subtítulo */
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55em;
  text-align: center;
  color: var(--framer-color-secondary); /* #F5F5F0 atenuado para jerarquía */
  text-wrap: balance;
}

.desktop-br {
  display: inline;
}

/* --------------------------------------------------------------------------
   Botón CTA Deslizante (Inspirado en componente shadcn / lucide)
   -------------------------------------------------------------------------- */
.hero-cta-container {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-sliding {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 4px 62px 4px 28px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  
  /* Paleta #F5F5F0: Fondo oscuro translúcido, texto #F5F5F0, borde sutil */
  background: rgba(245, 245, 240, 0.05);
  border: 1px solid rgba(245, 245, 240, 0.22);
  color: var(--framer-color-primary); /* #F5F5F0 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.7), 2px 4px 10px rgba(245, 245, 240, 0.04);
  
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background-color 0.4s ease;
}

.btn-sliding .btn-text {
  position: relative;
  z-index: 10;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sliding .btn-icon-circle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F5F5F0; /* Círculo en #F5F5F0 */
  color: #000000;    /* Flecha negra para contraste limpio */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sliding .btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto Hover y Estado de Clic Activo (.is-sliding): La bola viaja a la izquierda, borde e iluminación #F5F5F0 */
.btn-sliding:hover,
.btn-sliding.is-sliding {
  padding-left: 62px;
  padding-right: 28px;
  border-color: rgba(245, 245, 240, 0.65);
  background: rgba(245, 245, 240, 0.09);
  box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.8), 3px 5px 14px rgba(245, 245, 240, 0.1);
}

.btn-sliding:hover .btn-icon-circle,
.btn-sliding.is-sliding .btn-icon-circle {
  right: calc(100% - 46px);
}

.btn-sliding:hover .btn-arrow,
.btn-sliding.is-sliding .btn-arrow {
  transform: rotate(45deg);
}

.btn-sliding:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   ANIMACIÓN DE ENTRADA IDÉNTICA A FRAMER (Appear Animations)
   -------------------------------------------------------------------------- */
@keyframes framerAppear {
  0% {
    opacity: 0.001;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.appear-d4 {
  opacity: 0.001;
  animation: framerAppear 0.6s cubic-bezier(0.44, 0, 0.56, 1) 0.4s forwards;
}

.appear-d5 {
  opacity: 0.001;
  animation: framerAppear 0.6s cubic-bezier(0.44, 0, 0.56, 1) 0.5s forwards;
}

.appear-d6 {
  opacity: 0.001;
  animation: framerAppear 0.6s cubic-bezier(0.44, 0, 0.56, 1) 0.6s forwards;
}

/* --------------------------------------------------------------------------
   Responsive Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 809.98px) {
  .hero-title {
    font-size: 2.1rem;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    padding: 0 10px;
  }

  .desktop-br {
    display: none;
  }

  .btn-sliding {
    height: 48px;
    padding: 4px 56px 4px 22px;
    font-size: 0.92rem;
  }

  .btn-sliding .btn-icon-circle {
    width: 36px;
    height: 36px;
    right: 5px;
  }

  .btn-sliding:hover,
  .btn-sliding.is-sliding {
    padding-left: 56px;
    padding-right: 22px;
  }

  .btn-sliding:hover .btn-icon-circle,
  .btn-sliding.is-sliding .btn-icon-circle {
    right: calc(100% - 41px);
  }

  .btn-sliding:hover .btn-arrow,
  .btn-sliding.is-sliding .btn-arrow {
    transform: rotate(45deg);
  }
}

/* --------------------------------------------------------------------------
   Página /waitlist (Formulario Tally)
   -------------------------------------------------------------------------- */
body.page-waitlist {
  overflow-y: auto; /* Permite scroll natural si el formulario o pantalla lo requieren */
  height: auto;
  min-height: 100vh;
}

/* Estado inicial del cuestionario: perfectamente centrado verticalmente */
.waitlist-page {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centrado vertical perfecto mientras el usuario rellena el formulario */
  padding: 32px 20px;
}

/* Estado completado (Thank You Page): se posiciona arriba con margen elegante y scroll libre */
body.is-completed .waitlist-page {
  justify-content: flex-start;
  padding: 56px 20px 120px 20px;
}

@media (max-height: 720px) {
  .waitlist-page {
    justify-content: flex-start;
    padding: 36px 20px 60px 20px;
  }
}

.waitlist-main {
  width: 100%;
  max-width: 700px; /* Tarjeta y cabecera más ancha para máxima holgura */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Todo alineado a la izquierda */
}

/* Encabezado compacto alineado a la izquierda */
.waitlist-intro {
  text-align: left;
  margin-bottom: 22px;
  width: 100%;
}

.waitlist-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--framer-color-primary);
  text-align: left;
  margin-bottom: 14px;
}

/* Lista de beneficios alineada a la izquierda en 2 columnas con espacio suficiente */
.waitlist-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 36px;
  justify-content: flex-start;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--framer-color-primary); /* Color 100% idéntico y unificado en todos los textos */
  line-height: 1.35;
  white-space: nowrap; /* Asegura que cada beneficio esté en una sola línea */
}

.benefit-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 2.5px;
  border-radius: 50%;
  color: var(--framer-color-primary);
  background: rgba(245, 245, 240, 0.08);
  border: 1px solid rgba(245, 245, 240, 0.22);
}

/* Tarjeta del formulario con sombra únicamente abajo y a la derecha */
.tally-card {
  width: 100%;
  border-radius: 24px;
  background: rgba(245, 245, 240, 0.03);
  border: 1px solid rgba(245, 245, 240, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 16px;
  box-shadow: 6px 10px 24px rgba(0, 0, 0, 0.65), 12px 18px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.tally-card iframe {
  width: 100%;
  border: none;
  background: transparent !important;
  display: block;
}

/* --------------------------------------------------------------------------
   Thank You Page Nativa (Conify)
   -------------------------------------------------------------------------- */
.thank-you-card {
  width: 100%;
  max-width: 700px;
  border-radius: 24px;
  background: rgba(245, 245, 240, 0.03);
  border: 1px solid rgba(245, 245, 240, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px 32px;
  box-shadow: 6px 10px 24px rgba(0, 0, 0, 0.65), 12px 18px 40px rgba(0, 0, 0, 0.5);
  animation: framerAppear 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: left;
}

.ty-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--framer-color-primary);
  margin-bottom: 12px;
}

.ty-subtitle {
  font-family: var(--font-heading); /* Roobert para subtítulo */
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.85);
  margin-bottom: 26px;
}

.ty-box {
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: rgba(245, 245, 240, 0.025);
  border: 1px solid rgba(245, 245, 240, 0.1);
  text-align: left;
}

.ty-box-resource {
  border-left: 3px solid rgba(245, 245, 240, 0.65);
}

.ty-box-alert {
  border-left: 3px solid #E5A84B;
  background: rgba(229, 168, 75, 0.03);
}

.ty-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ty-box-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.08);
  color: var(--framer-color-primary);
  flex-shrink: 0;
}

.ty-alert-icon-wrap {
  background: rgba(229, 168, 75, 0.15);
  color: #E5A84B;
}

.ty-box-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--framer-color-primary);
  margin: 0;
}

.ty-box-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.88);
  margin-bottom: 8px;
}

.ty-box-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(245, 245, 240, 0.65);
  margin-bottom: 14px;
}

.ty-email-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ty-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--framer-color-primary);
  background: rgba(245, 245, 240, 0.06);
  border: 1px solid rgba(245, 245, 240, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.ty-mail-link:hover {
  background: rgba(245, 245, 240, 0.12);
  border-color: rgba(245, 245, 240, 0.5);
  transform: translateY(-1px);
}

.ty-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ty-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245, 245, 240, 0.88);
}

.ty-step-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.1);
  border: 1px solid rgba(245, 245, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--framer-color-primary);
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Apartado de Contacto con el Fundador en LinkedIn (Abierto, alineado a la izquierda)
   -------------------------------------------------------------------------- */
.ty-contact-section {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(245, 245, 240, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.ty-contact-title {
  font-family: var(--font-heading); /* Roobert VF */
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--framer-color-primary);
  margin-bottom: 8px;
  text-align: left;
}

.ty-contact-desc {
  font-family: var(--font-body); /* Inter */
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.78);
  margin-bottom: 20px;
  text-align: left;
}

.ty-contact-btn-wrap {
  display: flex;
  justify-content: flex-start;
}

.ty-contact-btn {
  font-size: 0.92rem;
  height: 50px;
  padding: 4px 58px 4px 26px;
  font-family: var(--font-body); /* Inter */
}

.ty-contact-btn .btn-icon-circle {
  width: 38px;
  height: 38px;
}

.ty-contact-btn:hover {
  padding-left: 58px;
  padding-right: 26px;
}

.ty-contact-btn:hover .btn-icon-circle {
  right: calc(100% - 44px);
}

@media (max-width: 809.98px) {
  .waitlist-page {
    padding: 32px 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .waitlist-main {
    max-width: 100%;
  }
  .waitlist-intro {
    margin-bottom: 18px;
  }
  .waitlist-title {
    font-size: 1.35rem;
  }
  .waitlist-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .benefit-item {
    font-size: 0.85rem;
    white-space: normal;
  }
  .tally-card {
    padding: 20px 14px;
    border-radius: 20px;
  }
  .thank-you-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .ty-title {
    font-size: 1.4rem;
  }
  .ty-box {
    padding: 16px 14px;
  }
  .ty-contact-section {
    margin-top: 24px;
    padding-top: 20px;
  }
  .ty-contact-title {
    font-size: 1.05rem;
  }
  .ty-contact-desc {
    font-size: 0.86rem;
    margin-bottom: 16px;
  }
  .ty-contact-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
  }
}
