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

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% -20%, #34205f 0%, #111018 35%, #08090d 70%);
  color: #ffffff;
  min-height: 100vh;
}

/* HEADER */

header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(8,9,13,0.75);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  background: linear-gradient(90deg, #9d6cff, #5c8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: #b8b8c5;
  text-decoration: none;
  font-size: 14px;
  transition: .2s;
}

nav a:hover {
  color: white;
}

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

.login {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
}

.signup {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #8257ff, #526dff);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* HERO */

.hero {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  padding: 115px 20px 70px;
}

.badge {
  display: inline-block;
  border: 1px solid rgba(157,108,255,.35);
  background: rgba(123,80,255,.10);
  color: #cbb8ff;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -4px;
  margin-bottom: 25px;
}

.gradient {
  background: linear-gradient(90deg, #b48aff, #718cff, #72d7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 680px;
  margin: auto;
  color: #aaaabb;
  font-size: 18px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 13px;
}

.primary {
  background: linear-gradient(135deg, #8b5cff, #536cff);
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: bold;
}

.secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 12px;
}

/* GENERATOR */

.generator {
  width: min(1050px, 90%);
  margin: 25px auto 90px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(18,18,27,.82);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}

.generator-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.generator-title {
  font-weight: bold;
}

.credits {
  color: #bda9ff;
  background: rgba(139,92,255,.12);
  border: 1px solid rgba(139,92,255,.22);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 14px;
}

.panel {
  background: #0d0e14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  padding: 17px;
  min-height: 270px;
}

.panel h3 {
  font-size: 13px;
  color: #aaaabb;
  margin-bottom: 15px;
}

.model {
  padding: 12px;
  border-radius: 9px;
  background: rgba(139,92,255,.13);
  border: 1px solid rgba(139,92,255,.3);
  margin-bottom: 9px;
  font-size: 13px;
}

textarea {
  width: 100%;
  height: 155px;
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

textarea::placeholder {
  color: #666675;
}

.generate {
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cff, #536cff);
  color: white;
  padding: 13px;
  border-radius: 9px;
  font-weight: bold;
}

.result {
  height: 205px;
  border-radius: 9px;
  border: 1px dashed #333342;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #676777;
  font-size: 13px;
}

/* MODELS */

.models-section {
  max-width: 1100px;
  margin: auto;
  padding: 20px 25px 110px;
}

.models-section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 12px;
}

.subtitle {
  text-align: center;
  color: #888899;
  margin-bottom: 45px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.model-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  padding: 21px;
  transition: .25s;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(151,105,255,.45);
}

.model-card h3 {
  margin-bottom: 8px;
}

.model-card p {
  color: #858594;
  font-size: 13px;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  color: #bda9ff;
  background: rgba(139,92,255,.1);
  padding: 6px 9px;
  border-radius: 6px;
}

footer {
  text-align: center;
  color: #656573;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 35px;
  font-size: 13px;
}

/* RESPONSIVE */

@media(max-width: 850px) {
  nav {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .models-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    letter-spacing: -2px;
  }
}

@media(max-width: 520px) {
  .login {
    display: none;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }
}





/* =========================================================
   LUMYNTRA STUDIO
   ========================================================= */

.create-page {
  width: min(1500px, 94%);
  margin: 0 auto;
  padding: 55px 0 80px;
}

.create-header {
  margin-bottom: 30px;
}

.create-header h1 {
  font-size: 42px;
  letter-spacing: -2px;
  margin: 10px 0 8px;
}

.create-header p {
  color: #8f8fa0;
  font-size: 15px;
}

.create-badge {
  display: inline-block;
  color: #bca7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  padding: 7px 10px;
  border: 1px solid rgba(139, 92, 255, .25);
  background: rgba(139, 92, 255, .08);
  border-radius: 7px;
}

/* ESTRUCTURA PRINCIPAL */

.create-layout {
  display: grid;
  grid-template-columns: 250px minmax(400px, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

/* PANELES */

.create-settings,
.create-workspace,
.create-result {
  background: rgba(14, 15, 22, .88);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
}

.create-settings {
  padding: 20px;
}

.create-workspace {
  padding: 20px;
}

.create-result {
  padding: 20px;
}

/* CONFIGURACIÓN */

.setting-block {
  margin-bottom: 23px;
}

.setting-block:last-child {
  margin-bottom: 0;
}

.setting-block > label {
  display: block;
  color: #858596;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  margin-bottom: 10px;
}

.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.type-button,
.ratio-button {
  border: 1px solid rgba(255, 255, 255, .08);
  background: #11121a;
  color: #aaaabb;
  border-radius: 9px;
  padding: 11px 8px;
  cursor: pointer;
  transition: .2s;
}

.type-button:hover,
.ratio-button:hover {
  border-color: rgba(139, 92, 255, .45);
  color: white;
}

.type-button.active,
.ratio-button.active {
  color: white;
  border-color: #815cff;
  background: rgba(129, 92, 255, .15);
}

.setting-block select {
  width: 100%;
  background: #11121a;
  color: #eeeeF5;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  padding: 12px;
  outline: none;
  cursor: pointer;
}

.setting-block select:focus {
  border-color: #805cff;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* PROMPT */

.prompt-card,
.reference-card {
  background: #0d0e14;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  padding: 17px;
}

.reference-card {
  margin-top: 14px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.optional {
  color: #686878;
  font-size: 11px;
  font-weight: 400;
}

#studio-prompt {
  width: 100%;
  min-height: 230px;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 15px;
  color: white;
  outline: none;
  resize: vertical;
}

#studio-prompt:focus {
  border-color: rgba(139, 92, 255, .55);
}

/* SUBIR REFERENCIA */

.upload-area {
  min-height: 125px;
  border: 1px dashed #353543;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  color: #9292a2;
  transition: .2s;
}

.upload-area:hover {
  background: rgba(139, 92, 255, .05);
  border-color: rgba(139, 92, 255, .55);
}

.upload-area strong {
  color: #d4d4dd;
  font-size: 13px;
}

.upload-area span {
  color: #646473;
  font-size: 11px;
}

.upload-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(139, 92, 255, .12);
  color: #bba5ff;
  font-size: 21px;
  margin-bottom: 3px;
}

/* BOTÓN GENERAR */

.generation-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.generation-cost {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.generation-cost span {
  color: #777787;
  font-size: 11px;
}

.generation-cost strong {
  font-size: 14px;
}

.studio-generate {
  min-width: 175px;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cff, #526dff);
  box-shadow: 0 8px 30px rgba(111, 79, 255, .18);
  transition: .2s;
}

.studio-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 35px rgba(111, 79, 255, .28);
}

/* RESULTADO */

.result-preview {
  min-height: 480px;
  border: 1px dashed #30303d;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(112, 79, 255, .07), transparent 55%),
    #0a0b10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.result-preview strong {
  display: block;
  color: #b8b8c5;
  font-size: 14px;
  margin-bottom: 7px;
}

.result-preview p {
  max-width: 230px;
  color: #626271;
  font-size: 12px;
  line-height: 1.5;
}

.result-symbol {
  font-size: 30px;
  color: #8c68ff;
  margin-bottom: 13px;
}

/* RESPONSIVE */

@media (max-width: 1150px) {
  .create-layout {
    grid-template-columns: 220px 1fr;
  }

  .create-result {
    grid-column: 1 / -1;
  }

  .result-preview {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .create-page {
    width: 92%;
    padding-top: 35px;
  }

  .create-layout {
    grid-template-columns: 1fr;
  }

  .create-result {
    grid-column: auto;
  }

  .create-header h1 {
    font-size: 34px;
  }

  .generation-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-generate {
    width: 100%;
  }
}
