:root {
  --bg: #09111f;
  --bg-2: #111b31;
  --card: rgba(10, 18, 34, 0.74);
  --card-strong: rgba(13, 22, 40, 0.9);
  --card-border: rgba(255, 255, 255, 0.12);
  --accent: #ff3b30;
  --accent-2: #9b0f16;
  --accent-soft: rgba(255, 59, 48, 0.18);
  --text: #ffffff;
  --muted: rgba(226, 232, 240, 0.76);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #050912;
  color: var(--text);
  min-height: 100vh;
}

.binary-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header {
  padding: 42px 24px 22px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 0.03em;
}

.hero-header {
  position: relative;
  padding-top: 56px;
}

.hero-header__content {
  position: relative;
  z-index: 1;
}

.home-hero {
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffe3e3;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metal {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: clamp(2rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow:
    0 0 2px rgba(247, 5, 5, 0.733),
    0 0 10px rgb(0, 0, 0),
    0 8px 12px rgb(0, 0, 0);
  background: linear-gradient(110deg, rgb(0, 0, 0), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
}

.metal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0), transparent 45%);
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}

header p {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

main {
  flex: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 56px;
  padding: 0 18px;
}

.boton--ghost {
  display: inline-flex;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.menu-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.menu-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0 16px;
  backdrop-filter: blur(8px);
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.menu-item:hover,
.menu-item:focus-within,
.menu-item--link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.menu-item--link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.menu-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.menu-summary::-webkit-details-marker {
  display: none;
}

.menu-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.16);
  color: #ffb5ae;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.menu-title {
  flex: 1;
  text-align: left;
}

.menu-icon {
  font-size: 1.15rem;
  color: #ffb5ae;
  transition: transform 0.2s ease;
}

.menu-item[open] .menu-icon {
  transform: rotate(45deg);
}

.menu-content {
  padding: 0 0 16px calc(44px + 14px);
  display: grid;
  gap: 12px;
}

.menu-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-block {
  display: grid;
  gap: 10px;
}

.guide-block h3 {
  margin: 0;
  font-size: 1.07rem;
  color: #ffffff;
}

.guide-block img {
  width: 100%;
  border-radius: 16px;
  margin-top: 6px;
  display: block;
}

.guide-block a {
  color: #ffd9d2;
  text-decoration: underline;
  text-decoration-color: rgba(255, 217, 210, 0.35);
}

code {
  color: #ffd6d2;
  font-family: Consolas, monospace;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 500px;
  margin-bottom: 0;
}

.hero-panel,
.home-panel {
  overflow: hidden;
  position: relative;
}

.hero-panel__content {
  position: relative;
  z-index: 1;
}

.quick-links,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-grid {
  position: relative;
  z-index: 1;
}

.download-option {
  display: block;
  cursor: pointer;
}

.download-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.download-option input:checked + .download-card {
  border-color: rgba(255, 59, 48, 0.9);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.22);
}

.download-option input:checked + .download-card .download-btn {
  background: linear-gradient(135deg, #ffffff, #ffd0d0);
  color: #2b0000;
}

.download-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.nav-card {
  position: relative;
  overflow: hidden;
}

.nav-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 70%);
}

.nav-card__tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffe0df;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-btn,
.boton,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.download-btn:hover,
.boton:hover,
button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: none;
}

.botones-principales {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 20px;
}

.notes-editor,
.notes-list-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  box-shadow: none;
}

.notes-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.notes-input,
.notes-textarea,
input,
textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(6, 8, 17, 0.78);
  color: var(--text);
  outline: none;
}

.notes-input:focus,
.notes-textarea:focus,
input:focus,
textarea:focus {
  border-color: rgba(255, 59, 48, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.16);
}

.notes-textarea {
  min-height: 260px;
  resize: vertical;
}

.notes-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.notes-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.15);
  color: #ffe8e8;
  font-weight: 700;
}

.notes-list {
  display: grid;
  gap: 14px;
}

.note-card,
.post {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(9, 12, 24, 0.82);
  padding: 18px;
}

.note-card h3 {
  margin: 0 0 12px;
}

.note-card p {
  margin: 0 0 16px;
}

.note-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-notes {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.selection-feedback {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 700;
  color: #ffd6d6;
}

.hidden {
  display: none !important;
}

footer {
  text-align: center;
  padding: 18px 16px 32px;
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.92rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 59, 48, 0.5);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-content {
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  header {
    padding: 32px 18px 16px;
  }

  header h1 {
    font-size: 1.9rem;
  }

  .card,
  .info-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .download-card {
    min-height: auto;
  }

  .menu-summary {
    padding: 14px 0;
  }

  .menu-content {
    padding-left: 0;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-dropdown__content {
    left: 0;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body::before,
  body::after {
    animation: none !important;
  }
}

@keyframes binary-fall {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(55%);
  }
}
