/*
============================================================
QR STUDIO
HOJA DE ESTILOS PRINCIPAL
============================================================

No utiliza:
- Bootstrap
- Tailwind
- Google Fonts
- CDN
- Recursos externos

============================================================
*/

/* =========================================================
   QR STUDIO — PREMIUM DARK / GLASSMORPHISM
   ========================================================= */

:root {
  --bg-primary: #05070f;
  --bg-surface: #0d1219;
  --text-primary: #e8ecf1;
  --text-secondary: #a8b2c1;

  --accent-primary: #8b5cf6;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #06b6d4;

  --border-light: rgba(255,255,255,0.05);
  --border-medium: rgba(255,255,255,0.08);
}


/* =========================================================
   BASE
   ========================================================= */

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg-primary);
}

body {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}


/* =========================================================
   APP ROOT
   ========================================================= */

.app-root {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(139,92,246,0.06),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(59,130,246,0.05),
      transparent 35%
    ),
    var(--bg-primary);

  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}


/* =========================================================
   GRID BACKGROUND
   ========================================================= */

.grid-pattern {
  position: relative;
}

.grid-pattern::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image:
    linear-gradient(
      rgba(139,92,246,0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(139,92,246,0.018) 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 90%
  );
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.app-root > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   BOTÓN MENÚ
   ========================================================= */

.menu-btn {
  position: relative;

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,0.25),
      rgba(59,130,246,0.25)
    );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(139,92,246,0.3);

  box-shadow:
    0 0 10px rgba(139,92,246,0.4),
    0 0 20px rgba(59,130,246,0.3),
    inset 0 0 10px rgba(255,255,255,0.05);

  transition: all .3s ease;
}

.menu-btn::before {
  content: "";

  position: absolute;
  inset: -2px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #3b82f6,
      #6366f1
    );

  filter: blur(12px);

  opacity: .6;

  z-index: -1;

  animation: glowPulse 3s ease-in-out infinite;
}

.menu-btn:hover {
  transform: scale(1.08);

  border-color: rgba(139,92,246,.6);

  box-shadow:
    0 0 20px rgba(139,92,246,.6),
    0 0 40px rgba(59,130,246,.5),
    inset 0 0 15px rgba(255,255,255,.08);
}

.menu-btn i {
  filter:
    drop-shadow(
      0 0 6px
      rgba(139,92,246,.8)
    );
}

@keyframes glowPulse {

  0%,100% {
    opacity: .5;
    transform: scale(1);
  }

  50% {
    opacity: .9;
    transform: scale(1.05);
  }
}


/* =========================================================
   LOGO NEXATECH SUPERIOR
   ========================================================= */

.logo-wrapper {
  padding: 6px;
  position: relative;
}

.logo-container {
  position: relative;
  z-index: 2;
}

.logo-nexa {
  width: 80px;
  height: 80px;

  object-fit: contain;

  animation:
    logoFloat 6s ease-in-out infinite;

  filter:
    drop-shadow(
      0 0 8px
      rgba(139,92,246,.6)
    );
}

.logo-gradient-glow {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #3b82f6,
      #6366f1
    );

  filter: blur(32px);

  opacity: .7;

  z-index: 0;

  animation:
    breathingGlow 3.5s ease-in-out infinite;
}

.logo-cloud {
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(139,92,246,.15),
      transparent 70%
    );

  filter: blur(20px);
}

.logo-wrapper::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 16px;

  box-shadow:
    inset 0 0 12px
    rgba(255,255,255,.08),

    inset 0 0 20px
    rgba(139,92,246,.15);

  pointer-events: none;
}

@keyframes breathingGlow {

  0% {
    transform: scale(1);
    opacity: .6;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: .6;
  }
}

@keyframes logoFloat {

  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media(max-width:768px) {

  .logo-nexa {
    width: 60px;
    height: 60px;
  }
}


/* =========================================================
   DOT NAV
   ========================================================= */

.dot-nav-item {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background:
    rgba(255,255,255,.15);

  border:
    1px solid
    rgba(255,255,255,.1);

  transition:
    all .4s
    cubic-bezier(.23,1,.32,1);

  cursor: pointer;
}

.dot-nav-item:hover {
  background:
    rgba(139,92,246,.5);

  border-color:
    rgba(139,92,246,.5);

  box-shadow:
    0 0 15px
    rgba(139,92,246,.4);
}

.dot-nav-item.active {
  background: #8b5cf6;

  box-shadow:
    0 0 20px
    rgba(139,92,246,.5);

  transform: scale(1.4);

  border-color:
    rgba(139,92,246,.5);
}

.dot-nav-link {
  display: block;
}




/* =========================================================
   QR STUDIO
   ========================================================= */

.app {
  position: relative;
  z-index: 2;

  width: min(1180px, calc(100% - 48px));

  margin:
    0 auto;

  padding:
    130px 0 60px;
}


/* =========================================================
   HEADER QR STUDIO
   ========================================================= */

.header {
  text-align: center;

  margin-bottom: 45px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 16px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand-icon {
  width: 58px;
  height: 58px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 16px;

  /* Fondo blanco premium */
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8fbfd 100%
    );

  /* Borde tecnológico */
  border:
    1px solid
    rgba(10, 173, 213, 0.16);

  /* Sombra elegante */
  box-shadow:
    0 10px 30px
    rgba(4, 4, 4, 0.07),

    0 4px 12px
    rgba(10, 173, 213, 0.06);

  overflow: hidden;
}


/* Imagen del logo */

.brand-icon img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}


.brand h1 {
  margin: 0;

  color: white;

  font-size:
    clamp(30px,5vw,46px);

  font-weight: 800;

  letter-spacing: -1px;
}

.brand span {
  display: block;

  margin-top: 3px;

  color:
    var(--text-secondary);

  font-size: 13px;
}

.header > p {
  max-width: 620px;

  margin:
    18px auto 0;

  color:
    var(--text-secondary);

  line-height: 1.7;
}


/* =========================================================
   WORKSPACE
   ========================================================= */

.workspace {
  display: grid;

  grid-template-columns:
    minmax(320px, .9fr)
    minmax(420px, 1.1fr);

  gap: 28px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
  background:
    rgba(255,255,255,.025);

  backdrop-filter:
    blur(20px);

  -webkit-backdrop-filter:
    blur(20px);

  border:
    1px solid
    rgba(255,255,255,.07);

  border-radius: 22px;

  box-shadow:
    inset 0 1px 1px
    rgba(255,255,255,.04),

    0 25px 80px
    rgba(0,0,0,.22);

  transition:
    all .5s
    cubic-bezier(.23,1,.32,1);
}

.card:hover {
  border-color:
    rgba(139,92,246,.18);

  box-shadow:
    inset 0 1px 1px
    rgba(255,255,255,.06),

    0 30px 90px
    rgba(139,92,246,.08);
}


 /* =========================================================
    CARD HEADER — PREMIUM WHITE
    ========================================================= */

.card-header {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 15px;

  padding: 25px 28px;

  /* Fondo blanco premium */
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfdff 100%
    );

  /* Separación elegante */
  border-bottom:
    1px solid
    rgba(10, 173, 213, 0.12);

  /* Sombra muy sutil */
  box-shadow:
    0 2px 12px
    rgba(4, 4, 4, 0.03);

  position: relative;
}

/* Línea tecnológica superior */

.card-header::before {
  content: "";

  position: absolute;

  top: 0;
  left: 28px;

  width: 45px;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      #0AADD5,
      #046BB9
    );

  border-radius: 0 0 3px 3px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.card-header h2 {
  margin: 0;

  color:
    #111827;

  font-size: 20px;

  font-weight: 700;

  letter-spacing:
    -0.3px;
}


/* =========================================================
   ETIQUETA
   ========================================================= */

.card-header span {
  color:
    #046BB9;

  font-family:
    'Space Mono',
    monospace;

  font-size: 10px;

  text-transform:
    uppercase;

  letter-spacing:
    1px;

  background:
    rgba(10, 173, 213, 0.06);

  border:
    1px solid
    rgba(10, 173, 213, 0.18);

  padding:
    6px 10px;

  border-radius:
    999px;

  /* Acabado premium */
  box-shadow:
    0 2px 8px
    rgba(10, 173, 213, 0.06);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.settings {
  overflow: hidden;
}

.field {
  padding:
    0 28px;

  margin-top: 25px;
}

.field:last-of-type {
  margin-bottom: 25px;
}

.field label {
  display: block;

  color:
    var(--text-primary);

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 10px;
}

.text-input,
input[type="url"] {
  width: 100%;

  box-sizing: border-box;

  padding:
    14px 16px;

  background:
    rgba(255,255,255,.035) !important;

  border:
    1px solid
    rgba(255,255,255,.08) !important;

  border-radius:
    12px !important;

  color:
    white !important;

  outline: none;

  font-family:
    'Outfit',
    sans-serif;

  transition:
    all .3s ease;
}

.text-input:focus,
input[type="url"]:focus {
  border-color:
    rgba(139,92,246,.45) !important;

  background:
    rgba(255,255,255,.055) !important;

  box-shadow:
    0 0 0 3px
    rgba(139,92,246,.08) !important;
}

.text-input::placeholder {
  color:
    rgba(255,255,255,.25);
}

.help {
  color:
    rgba(168,178,193,.75);

  font-size: 12px;

  line-height: 1.6;

  margin-top: 8px;
}


/* =========================================================
   COLORES
   ========================================================= */

.color-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}

.color-control {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px;

  border:
    1px solid
    rgba(255,255,255,.06);

  border-radius: 14px;

  background:
    rgba(255,255,255,.025);
}

.color-control input[type="color"] {
  width: 44px;
  height: 44px;

  padding: 3px;

  border:
    1px solid
    rgba(255,255,255,.1);

  border-radius: 10px;

  background:
    transparent;

  cursor: pointer;
}

.color-control strong {
  display: block;

  color: white;

  font-size: 12px;
}

.color-control small {
  color:
    var(--text-secondary);

  font-family:
    'Space Mono',
    monospace;

  font-size: 10px;
}


/* =========================================================
   UPLOAD
   ========================================================= */

.upload-box {
  display: flex !important;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  min-height: 105px;

  text-align: center;

  border:
    1px dashed
    rgba(139,92,246,.3);

  border-radius: 16px;

  background:
    rgba(139,92,246,.035);

  cursor: pointer;

  transition:
    all .3s ease;
}

.upload-box:hover {
  background:
    rgba(139,92,246,.08);

  border-color:
    rgba(139,92,246,.55);

  transform:
    translateY(-2px);
}

.upload-box strong {
  color:
    #ddd6fe;
}

.upload-box span {
  color:
    var(--text-secondary);

  font-size: 11px;

  margin-top: 5px;
}


/* =========================================================
   LOGO SELECCIONADO
   ========================================================= */

.logo-selected {
  display: none;

  align-items: center;

  justify-content:
    space-between;

  gap: 12px;

  margin-top: 12px;

  padding: 10px;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid
    rgba(255,255,255,.06);

  border-radius: 12px;
}

.logo-selected img {
  width: 48px;
  height: 48px;

  object-fit: contain;

  border-radius: 8px;
}

.logo-file {
  flex: 1;
}

.logo-file span {
  display: block;

  color: white;

  font-size: 12px;
}

.logo-file button {
  margin-top: 5px;

  color:
    #fca5a5;

  background:
    transparent;

  border: 0;

  cursor: pointer;
}


/* =========================================================
   RANGOS
   ========================================================= */

.range-heading {
  display: flex;

  align-items: center;

  justify-content:
    space-between;
}

.range-heading strong {
  color:
    #c4b5fd;

  font-family:
    'Space Mono',
    monospace;

  font-size: 12px;
}

input[type="range"] {
  width: 100%;

  accent-color:
    #8b5cf6;

  cursor: pointer;
}


/* =========================================================
   BOTONES
   ========================================================= */

.actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;

  padding:
    25px 28px 28px;

  border-top:
    1px solid
    rgba(255,255,255,.05);
}

.btn {
  border: 0;

  padding:
    14px 20px;

  border-radius:
    12px;

  font-family:
    'Outfit',
    sans-serif;

  font-weight: 600;

  cursor: pointer;

  transition:
    all .35s
    cubic-bezier(.23,1,.32,1);
}

.btn-primary {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #3b82f6
    );

  color: white;

  box-shadow:
    0 12px 35px
    rgba(139,92,246,.2);
}

.btn-primary:hover:not(:disabled) {
  transform:
    translateY(-3px);

  box-shadow:
    0 20px 50px
    rgba(139,92,246,.35);
}

.btn-primary:disabled {
  opacity: .35;

  cursor: not-allowed;
}

.btn-secondary {
  background:
    rgba(255,255,255,.035);

  color:
    var(--text-primary);

  border:
    1px solid
    rgba(255,255,255,.1);
}

.btn-secondary:hover {
  background:
    rgba(139,92,246,.08);

  border-color:
    rgba(139,92,246,.3);

  transform:
    translateY(-2px);
}


/* =========================================================
   PREVIEW
   ========================================================= */

.preview {
  overflow: hidden;
}

.preview-area {
  min-height: 520px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 35px;

  background:
    radial-gradient(
      circle at center,
      rgba(139,92,246,.04),
      transparent 60%
    );
}

.empty-state {
  text-align: center;

  max-width: 280px;
}

.empty-icon {
  width: 75px;
  height: 75px;

  margin:
    0 auto 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(139,92,246,.15),
      rgba(59,130,246,.1)
    );

  border:
    1px solid
    rgba(139,92,246,.2);

  color:
    #c4b5fd;

  font-family:
    'Space Mono',
    monospace;

  font-weight: 700;

  box-shadow:
    0 15px 50px
    rgba(139,92,246,.1);
}

.empty-state h3 {
  margin:
    0 0 8px;

  color: white;

  font-size: 19px;
}

.empty-state p {
  margin: 0;

  color:
    var(--text-secondary);

  font-size: 13px;

  line-height: 1.6;
}

#qrCanvas {
  display: none;

  max-width: 100%;

  height: auto;

  border-radius: 8px;
}


/* =========================================================
   PREVIEW FOOTER
   ========================================================= */

.preview-footer {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 15px;

  padding:
    18px 25px;

  border-top:
    1px solid
    rgba(255,255,255,.05);

  color:
    var(--text-secondary);

  font-size: 12px;
}

.badge {
  color:
    #a7f3d0;

  background:
    rgba(16,185,129,.08);

  border:
    1px solid
    rgba(16,185,129,.18);

  padding:
    5px 9px;

  border-radius:
    999px;

  font-family:
    'Space Mono',
    monospace;

  font-size: 9px;

  letter-spacing: 1px;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.information {
  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 20px;

  margin-top: 28px;
}

.information > div {
  padding:
    24px;

  border-radius:
    18px;

  background:
    rgba(255,255,255,.02);

  border:
    1px solid
    rgba(255,255,255,.05);

  backdrop-filter:
    blur(15px);
}

.information strong {
  display: block;

  color: white;

  margin-bottom: 7px;

  font-size: 14px;
}

.information p {
  margin: 0;

  color:
    var(--text-secondary);

  font-size: 12px;

  line-height: 1.7;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  margin-top: 60px;

  padding:
    28px 0;

  border-top:
    1px solid
    rgba(255,255,255,.05);

  color:
    rgba(148,163,184,.7);

  text-align: center;

  font-size: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:900px) {

  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-area {
    min-height: 400px;
  }

  .information {
    grid-template-columns: 1fr;
  }
}

@media(max-width:640px) {

  .app {
    width:
      min(
        calc(100% - 28px),
        1180px
      );

    padding-top:
      110px;
  }

  .workspace {
    gap: 18px;
  }

  .brand {
    flex-direction: column;
  }

  .brand h1 {
    font-size: 32px;
  }

  .card-header {
    padding:
      20px;
  }

  .field {
    padding:
      0 20px;
  }

  .actions {
    padding:
      20px;
  }

  .color-grid {
    grid-template-columns:
      1fr;
  }

  .preview-area {
    min-height: 340px;
    padding: 20px;
  }

  .logo-nexa {
    width: 60px;
    height: 60px;
  }
}













/* ============================================================
   NEXATECH MENU — SISTEMA ESTABLE
   ============================================================ */

#menuOverlay {
  position: fixed !important;
  inset: 0 !important;

  z-index: 10000 !important;

  display: block;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}


/* MENÚ ABIERTO */

#menuOverlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* PANEL */

#menuOverlay .menu-panel {
  position: absolute;

  left: 0;
  top: 0;

  width: 18rem;
  height: 100%;

  overflow-y: auto;
  overflow-x: hidden;

  transform: translateX(-100%);

  transition:
    transform 0.3s
    cubic-bezier(.23,1,.32,1);

  background:
    linear-gradient(
      135deg,
      rgba(13,18,25,.97),
      rgba(5,7,15,.99)
    );

  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  border-right:
    1px solid
    rgba(255,255,255,.08);

  z-index: 10001;
}


/* PANEL ABIERTO */

#menuOverlay.open .menu-panel {
  transform: translateX(0);
}


/* FONDO OSCURO */

#menuBackdrop {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  cursor: pointer;

  z-index: 10000;
}


/* ENLACES */

#menuOverlay .menu-link {
  position: relative;

  z-index: 10002;

  display: flex;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform .25s ease,
    color .25s ease;
}


#menuOverlay .menu-link:hover {
  transform: translateX(5px);

  color: white;
}


/* BOTÓN HAMBURGUESA */

#menuBtn {
  position: fixed !important;

  top: 1.25rem !important;
  left: 1.25rem !important;

  z-index: 10003 !important;

  pointer-events: auto;
}


/* LOGO SUPERIOR */

.logo-wrapper {
  position: relative;
}


/* CUANDO EL MENÚ ESTÁ ABIERTO */

html.menu-is-open,
body.menu-is-open {
  overflow: hidden !important;
}


/* ASEGURAR QUE AL CERRAR NO QUEDE NADA BLOQUEANDO */

#menuOverlay:not(.open) {
  pointer-events: none !important;
}












/* =====================================================
   MENU OVERLAY
   ===================================================== */

#menuOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#menuOverlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#menuOverlay .menu-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#menuOverlay.open .menu-panel {
    transform: translateX(0);
}

#menuOverlay #menuBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#menuBtn {
    position: fixed !important;
    top: 1.25rem !important;
    left: 1.25rem !important;
    z-index: 10003 !important;
    pointer-events: auto;
}

html.menu-is-open,
body.menu-is-open {
    overflow: hidden !important;
}

