/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(168, 85, 247, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(0, 251, 255, 0.08),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #08080d,
      #101018 50%,
      #08080d
    );
}

/* =========================================================
   FONDO
========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.82),
      rgba(10, 10, 18, 0.72)
    ),
    url("https://i.imgur.com/pQvtre2.jpeg")
      center / cover no-repeat;

  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      transparent 20%,
      rgba(0, 0, 0, 0.65) 100%
    );

  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  padding: 14px 20px;

  background: rgba(10, 10, 16, 0.82);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.25);
}

.header-container {
  width: 100%;
  max-width: 1150px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

/* =========================================================
   MARCA
========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 12px;

  color: #fff;
  text-decoration: none;

  font-size: 20px;
  font-weight: 700;

  transition: 0.3s ease;
}

.brand img {
  width: 42px;
  height: 42px;

  object-fit: contain;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(168, 85, 247, 0.2),
      rgba(124, 58, 237, 0.15)
    );

  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.3);

  transition: 0.3s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover img {
  transform: scale(1.05);

  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.55);
}

/* =========================================================
   ABOUT HEADER
========================================================= */

.about-header-btn {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 10px 17px;

  border: 1px solid rgba(168, 85, 247, 0.6);
  border-radius: 10px;

  background: rgba(168, 85, 247, 0.08);

  color: #fff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-header-btn i {
  color: #c084fc;
}

.about-header-btn:hover {
  background: rgba(168, 85, 247, 0.2);

  border-color: #a855f7;

  transform: translateY(-2px);

  box-shadow:
    0 5px 20px rgba(168, 85, 247, 0.2);
}

/* =========================================================
   MAIN
========================================================= */

.main {
  width: 100%;

  padding: 55px 20px 20px;
}

.container {
  width: 100%;
  max-width: 700px;

  margin: auto;
}

/* =========================================================
   TÍTULO
========================================================= */

.page-title {
  text-align: center;

  margin-bottom: 35px;
}

.title-icon {
  width: 70px;
  height: 70px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(168, 85, 247, 0.25),
      rgba(0, 251, 255, 0.12)
    );

  border: 1px solid rgba(168, 85, 247, 0.35);

  box-shadow:
    0 0 35px rgba(168, 85, 247, 0.15);
}

.title-icon i {
  font-size: 32px;

  background:
    linear-gradient(
      135deg,
      #c084fc,
      #00fbff
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title h1 {
  color: #fff;

  font-size: 34px;
  font-weight: 700;

  letter-spacing: -0.5px;
}

.page-title p {
  margin-top: 8px;

  color: #aaa;

  font-size: 14px;
}

/* =========================================================
   TARJETA
========================================================= */

.generator-card {
  width: 100%;

  padding: 30px;

  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(28, 28, 39, 0.88),
      rgba(14, 14, 22, 0.9)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45);

  animation: fadeIn 0.5s ease;
}

.generator-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 10%;
  right: 10%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(168, 85, 247, 0.8),
      rgba(0, 251, 255, 0.5),
      transparent
    );
}

/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
  width: 100%;
  margin-bottom: 22px;
}

.form-group > label {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 9px;

  color: #ddd;

  font-size: 14px;
  font-weight: 600;
}

.form-group > label i {
  color: #a855f7;
}

/* =========================================================
   INPUT
========================================================= */

.inputBox {
  position: relative;

  width: 100%;

  margin: 20px 0;
}

.inputBox input {
  width: 100%;

  padding: 15px;

  background: rgba(0, 0, 0, 0.25);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 12px;

  outline: none;

  color: #fff;

  font-family: inherit;
  font-size: 14px;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.inputBox input:focus {
  border-color: #a855f7;

  background:
    rgba(168, 85, 247, 0.05);

  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.1);
}

.inputBox span {
  position: absolute;

  left: 14px;
  top: 50%;

  transform: translateY(-50%);

  padding: 0 5px;

  color: #888;

  background: #191922;

  pointer-events: none;

  font-size: 13px;

  transition: 0.25s ease;
}

.inputBox input:focus ~ span,
.inputBox input:not(:placeholder-shown) ~ span {
  top: 0;

  color: #c084fc;

  font-size: 11px;
}

/* =========================================================
   SELECT
========================================================= */

select {
  width: 100%;

  padding: 13px 15px;

  background: rgba(0, 0, 0, 0.3);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 12px;

  outline: none;

  color: #fff;

  font-family: inherit;
  font-size: 14px;

  cursor: pointer;

  transition: 0.3s ease;
}

select:hover {
  border-color:
    rgba(168, 85, 247, 0.5);
}

select:focus {
  border-color: #a855f7;

  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.1);
}

select option {
  background: #181820;
  color: #fff;
}

/* =========================================================
   VERSION
========================================================= */

.version-group {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  margin: 10px 0 20px;
}

.version-group input {
  width: 85px;

  padding: 12px;

  text-align: center;

  font-size: 16px;
  font-family: inherit;

  background: rgba(0, 0, 0, 0.3);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #fff;

  border-radius: 10px;

  outline: none;

  transition: 0.25s ease;
}

.version-group input:focus {
  border-color: #a855f7;

  background:
    rgba(168, 85, 247, 0.05);

  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.1);
}

.version-group span {
  color: #c084fc;

  font-weight: bold;
  font-size: 18px;
}

/* =========================================================
   OPCIONES
========================================================= */

.option-container {
  margin: 4px 0;
}

.checkboxBox {
  display: flex;
  align-items: center;

  gap: 10px;

  margin: 13px 0;

  cursor: pointer;

  color: #bbb;

  font-size: 14px;

  user-select: none;
}

.checkboxBox input {
  appearance: none;

  width: 20px;
  height: 20px;

  flex-shrink: 0;

  border: 1px solid #555;

  border-radius: 6px;

  background: rgba(0, 0, 0, 0.35);

  cursor: pointer;

  position: relative;

  transition: 0.25s ease;
}

.checkboxBox input:checked {
  background:
    linear-gradient(
      135deg,
      #a855f7,
      #7c3aed
    );

  border-color: #a855f7;

  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.3);
}

.checkboxBox input:checked::after {
  content: "✓";

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -52%);

  color: #fff;

  font-size: 12px;
  font-weight: bold;
}

.checkboxBox span {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #bbb;

  transition: 0.25s ease;
}

.checkboxBox span i {
  color: #a855f7;
  font-size: 13px;
}

.checkboxBox input:checked ~ span {
  color: #c084fc;

  text-shadow:
    0 0 8px rgba(192, 132, 252, 0.25);
}

/* =========================================================
   CONTENEDORES DINÁMICOS
========================================================= */

.dynamic-container {
  display: none;

  margin-top: 5px;

  padding: 2px 14px;

  border-left:
    2px solid rgba(168, 85, 247, 0.45);

  background:
    rgba(168, 85, 247, 0.025);

  border-radius: 0 10px 10px 0;
}

.dynamic-container .inputBox {
  margin: 15px 0;
}

.subpack-container {
  padding: 14px 15px 5px;

  border:
    1px solid rgba(168, 85, 247, 0.15);

  border-left:
    2px solid rgba(168, 85, 247, 0.6);

  border-radius: 12px;
}

.subpack-title {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 8px;

  color: #c084fc;

  font-size: 13px;
  font-weight: 600;
}

.subpack-title i {
  color: #a855f7;
}

/* =========================================================
   BOTONES
========================================================= */

.actions {
  display: flex;

  gap: 10px;

  margin-top: 28px;
}

.actions button {
  flex: 1;

  min-height: 48px;

  border-radius: 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.primary-btn {
  border: none;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #a855f7,
      #7c3aed
    );

  box-shadow:
    0 8px 25px rgba(168, 85, 247, 0.18);
}

.primary-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(168, 85, 247, 0.3);
}

.secondary-btn {
  border:
    1px solid rgba(0, 251, 255, 0.4);

  color: #00fbff;

  background:
    rgba(0, 251, 255, 0.05);
}

.secondary-btn:hover {
  background:
    rgba(0, 251, 255, 0.12);

  border-color: #00fbff;

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(0, 251, 255, 0.1);
}

.download-btn {
  border:
    1px solid rgba(168, 85, 247, 0.5);

  color: #c084fc;

  background:
    rgba(168, 85, 247, 0.06);
}

.download-btn:hover {
  background:
    rgba(168, 85, 247, 0.16);

  border-color: #a855f7;

  color: #fff;

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(168, 85, 247, 0.15);
}

.actions button:active {
  transform: translateY(0);
}

.actions button i {
  margin-right: 6px;
}

/* =========================================================
   OUTPUT
========================================================= */

.output-section {
  margin-top: 30px;

  padding-top: 25px;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);
}

.output-header {
  display: flex;
  align-items: center;

  justify-content: space-between;

  margin-bottom: 14px;
}

.output-header h2 {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #ddd;

  font-size: 17px;
}

.output-header h2 i {
  color: #a855f7;
}

.output-header p {
  margin-top: 5px;

  color: #777;

  font-size: 12px;
}

.textarea-container {
  position: relative;
}

textarea {
  width: 100%;

  min-height: 320px;

  display: block;

  padding: 18px;

  resize: vertical;

  background:
    rgba(0, 0, 0, 0.4);

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 14px;

  outline: none;

  color: #c084fc;

  font-family:
    "Consolas",
    "Cascadia Code",
    monospace;

  font-size: 13px;

  line-height: 1.6;

  transition: 0.3s ease;
}

textarea:focus {
  border-color:
    rgba(168, 85, 247, 0.5);

  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.08);
}

textarea::placeholder {
  color: #555;
}

/* =========================================================
   ABOUT MODAL
========================================================= */

.about-panel {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.about-panel.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

/* =========================================================
   ABOUT CONTENT
========================================================= */

.about-content {
  position: relative;

  width: 100%;
  max-width: 560px;

  max-height: 85vh;

  overflow-y: auto;

  padding: 30px;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 30, 42, 0.97),
      rgba(14, 14, 21, 0.98)
    );

  border:
    1px solid rgba(168, 85, 247, 0.3);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65);

  transform:
    translateY(20px)
    scale(0.97);

  transition: 0.3s ease;
}

.about-panel.active .about-content {
  transform:
    translateY(0)
    scale(1);
}

.about-content::-webkit-scrollbar {
  width: 4px;
}

.about-content::-webkit-scrollbar-thumb {
  background: #a855f7;

  border-radius: 10px;
}

/* =========================================================
   CERRAR
========================================================= */

.about-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.05);

  color: #aaa;

  font-size: 18px;

  cursor: pointer;

  transition: 0.3s ease;
}

.about-close:hover {
  color: #fff;

  background:
    rgba(255, 0, 60, 0.12);

  border-color:
    rgba(255, 0, 60, 0.4);

  transform: rotate(90deg);
}

/* =========================================================
   ABOUT HEADER
========================================================= */

.about-header {
  text-align: center;

  margin-bottom: 25px;
}

.about-icon {
  width: 60px;
  height: 60px;

  margin: 0 auto 12px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      #a855f7,
      #7c3aed
    );

  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.25);
}

.about-icon i {
  color: #fff;

  font-size: 25px;
}

.about-header h2 {
  color: #fff;

  font-size: 24px;
}

.about-header p {
  margin-top: 5px;

  color: #999;

  font-size: 13px;
}

/* =========================================================
   ABOUT SECTIONS
========================================================= */

.about-section {
  margin-top: 24px;
}

.about-section h3 {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-bottom: 14px;

  color: #c084fc;

  font-size: 15px;
}

.about-section h3 i {
  font-size: 13px;
}

.about-content > hr {
  border: none;

  height: 1px;

  margin: 22px 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
}

/* =========================================================
   LINKS
========================================================= */

.links {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 10px;
}

.links a {
  position: relative;

  width: 45px;
  height: 45px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.04);

  color: #bbb;

  text-decoration: none;

  font-size: 17px;

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.links a:hover {
  color: #fff;

  background:
    linear-gradient(
      135deg,
      rgba(168, 85, 247, 0.25),
      rgba(124, 58, 237, 0.18)
    );

  border-color:
    rgba(168, 85, 247, 0.6);

  transform:
    translateY(-3px);

  box-shadow:
    0 8px 20px rgba(168, 85, 247, 0.15);
}

.links a::after {
  content: attr(title);

  position: absolute;

  left: 50%;

  bottom: calc(100% + 9px);

  transform:
    translateX(-50%)
    translateY(5px);

  padding: 6px 9px;

  border:
    1px solid rgba(168, 85, 247, 0.35);

  border-radius: 7px;

  background: #111118;

  color: #ddd;

  font-size: 10px;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition: 0.2s ease;

  z-index: 10;
}

.links a:hover::after {
  opacity: 1;

  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  width: 100%;

  margin-top: 40px;

  padding: 30px 20px;

  text-align: center;

  border-top:
    1px solid rgba(255, 255, 255, 0.06);

  background:
    rgba(0, 0, 0, 0.18);
}

.footer p {
  color: #777;

  font-size: 12px;
}

.footer a {
  color: #a855f7;

  text-decoration: none;

  transition: 0.3s ease;
}

.footer a:hover {
  color: #c084fc;
}

/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes fadeIn {

  from {
    opacity: 0;

    transform:
      translateY(10px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

  body::before {
    background:
      radial-gradient(
        circle at 20% 10%,
        rgba(168, 85, 247, 0.16),
        transparent 35%
      ),
      radial-gradient(
        circle at 80% 90%,
        rgba(0, 251, 255, 0.08),
        transparent 35%
      ),
      linear-gradient(
        180deg,
        #0b0712 0%,
        #120b1f 50%,
        #0b0712 100%
      );
  }

  body::after {
    background:
      radial-gradient(
        circle at center,
        transparent 20%,
        rgba(0, 0, 0, 0.35) 100%
      );
  }

  .header {
    padding: 11px 14px;
  }

  .header-container {
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 38px;
    height: 38px;

    border-radius: 10px;
  }

  .about-header-btn {
    padding: 9px 12px;

    font-size: 13px;
  }

  .main {
    padding:
      35px 14px 15px;
  }

  .page-title {
    margin-bottom: 25px;
  }

  .title-icon {
    width: 58px;
    height: 58px;

    border-radius: 16px;
  }

  .title-icon i {
    font-size: 26px;
  }

  .page-title h1 {
    font-size: 27px;
  }

  .page-title p {
    font-size: 12px;
  }

  .generator-card {
    padding: 20px;

    border-radius: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
  }

  .version-group input {
    width: 75px;
  }

  textarea {
    min-height: 280px;
  }

  .about-content {
    max-height: 90vh;

    padding:
      24px 18px;

    border-radius: 18px;
  }

  .about-header h2 {
    font-size: 21px;
  }

  .links a {
    width: 43px;
    height: 43px;
  }

}

/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

  .brand span {
    display: none;
  }

  .about-header-btn span {
    display: none;
  }

  .about-header-btn {
    width: 40px;
    height: 40px;

    padding: 0;

    justify-content: center;
  }

  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .generator-card {
    padding: 16px;
  }

  .page-title h1 {
    font-size: 24px;
  }

  .inputBox input,
  select {
    font-size: 13px;
  }

  .version-group {
    gap: 5px;
  }

  .version-group input {
    width: 65px;

    padding: 10px 5px;
  }

  textarea {
    min-height: 250px;

    font-size: 12px;
  }

}

/* =========================================================
   REDUCIR ANIMACIONES
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }

}

.clear-btn {
  flex: 1;
  min-width: 180px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.clear-btn {
  background: rgba(255, 60, 100, 0.12);
  color: #ff4f7b;
  border: 1px solid rgba(255, 60, 100, 0.5);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.clear-btn:hover {
  background: #ff4f7b;
  color: white;
  border-color: #ff4f7b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 60, 100, 0.25);
}

.clear-btn i {
  margin-right: 6px;
}