/* ============ TOKENS ============ */
:root {
  --bg-void: #03100b;
  --bg-deep: #0a2419;
  --bg-panel: #0e2f20;
  --bg-panel-2: #123826;
  --line: rgba(246, 250, 247, 0.1);
  --line-strong: rgba(246, 250, 247, 0.18);
  --white: #f6faf7;
  --white-dim: rgba(246, 250, 247, 0.68);
  --white-faint: rgba(246, 250, 247, 0.42);
  --mint: #3fe089;
  --mint-dim: #2a9d63;
  --eq-red: #ff3b3b;
  --eq-orange: #ff9d2e;
  --eq-yellow: #ffd83d;
  --eq-green: #4ee08a;
  --font-display: "Anton", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "Space Mono", monospace;
  --radius: 14px;
  --container: 1180px;
  --header-h: 76px;
  --text-halo:
    0 1px 0 rgba(3, 16, 11, 2), 0 2px 6px rgba(3, 16, 11, 2),
    0 0 26px rgba(3, 16, 11, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: radial-gradient(
      120% 100% at 28% 15%,
      #103a26 0%,
      #0a2419 45%,
      #03100b 100%
    )
    fixed;
  color: var(--white-dim);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--mint);
  color: var(--bg-void);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(3, 16, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: var(--text-halo);
}
.brand-radio {
  color: var(--white);
}
.brand-ambiente {
  color: var(--mint);
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white-dim);
  transition: color 0.15s;
}
.main-nav a:hover {
  color: var(--mint);
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    transform 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--bg-panel-2);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.play-btn {
  background: var(--mint);
  color: var(--bg-void);
  border-color: transparent;
}
.play-btn:hover {
  background: var(--mint);
  filter: brightness(1.08);
}

.mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.mini-eq .eq-bar {
  width: 3px;
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    var(--eq-red),
    var(--eq-orange) 40%,
    var(--eq-yellow) 70%,
    var(--eq-green)
  );
  transform-origin: bottom;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eq-red);
  animation: pulseDot 1.6s ease-in-out infinite;
}

#volSlider {
  width: 80px;
  accent-color: var(--mint);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--white);
  align-items: center;
  justify-content: center;
}
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  padding: 1rem 24px 1.5rem;
  flex-direction: column;
  gap: 0.9rem;
}
.mobile-nav-panel.open {
  display: flex;
}
.mobile-nav-panel a {
  font-weight: 600;
  color: var(--white-dim);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mini-eq,
  #volSlider,
  .live-badge span {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    position: relative;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 90px;
  text-align: center;
}
.hero-eq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 0 4px;
}
.hero-eq-bg .eq-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(
    to bottom,
    var(--eq-red),
    var(--eq-orange) 40%,
    var(--eq-yellow) 70%,
    var(--eq-green)
  );
  transform-origin: bottom;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--mint-dim);
  margin-bottom: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  line-height: 0.92;
  text-shadow: var(--text-halo);
}
.wordmark-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.w-radio {
  color: var(--white);
  font-size: clamp(3rem, 12vw, 7.5rem);
}
.w-ambiente {
  color: var(--mint);
  font-size: clamp(3rem, 12vw, 7.5rem);
  display: block;
}
.wordmark-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: clamp(2.2rem, 6vw, 4rem);
}
.wordmark-eq .eq-bar {
  width: clamp(6px, 1vw, 10px);
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--eq-red),
    var(--eq-orange) 40%,
    var(--eq-yellow) 70%,
    var(--eq-green)
  );
  transform-origin: bottom;
}
@media (max-width: 640px) {
  .wordmark-eq {
    display: none;
  }
}

.tagline {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white-dim);
  max-width: 560px;
  margin-inline: auto;
}

.player-core {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.play-core {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--bg-void);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(63, 224, 137, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.play-core:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(63, 224, 137, 0.5);
}
.play-core svg {
  width: 34px;
  height: 34px;
}

.now-playing {
  text-align: center;
}
.np-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mint-dim);
  text-transform: uppercase;
}
.np-track {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--white-dim);
  max-width: min(80vw, 420px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-solid {
  background: var(--mint);
  color: var(--bg-void);
  font-weight: 700;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.btn-solid:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--mint);
  border: 1px solid var(--mint-dim);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn-outline:hover {
  background: rgba(63, 224, 137, 0.1);
  transform: translateY(-1px);
}

/* ============ ABOUT ============ */
.about {
  padding: 100px 24px;
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.about h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  text-shadow: var(--text-halo);
}
.section-lead {
  margin-top: 1.1rem;
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--white-dim);
}

.pillars {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.pillar {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.pillar-bar {
  display: block;
  width: 40px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.bar-yellow {
  background: linear-gradient(to right, var(--eq-yellow), var(--eq-orange));
}
.bar-green {
  background: var(--eq-green);
}
.bar-red {
  background: var(--eq-red);
}
.pillar h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.55rem;
  text-shadow: var(--text-halo);
}
.pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--white-dim);
}

/* ============ NOTES ============ */
.notes {
  padding: 100px 24px;
  background: var(--bg-void);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.notes-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.notes-header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 0.3rem;
  text-shadow: var(--text-halo);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
.note-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.note-card:hover {
  transform: translateY(-4px);
  border-color: var(--mint-dim);
}
.note-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  background: var(--bg-panel-2);
}
.note-thumb.placeholder {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 1rem;
}
.note-thumb.placeholder .eq-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
}
.note-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.note-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-bottom: 0.8rem;
}
.note-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: var(--text-halo);
}
.note-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-faint);
  margin-bottom: 0.7rem;
}
.note-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--white-dim);
  flex: 1;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: auto;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-buttons {
  display: flex;
  gap: 0.5rem;
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-panel-2);
  color: var(--white-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
}
.share-btn svg {
  width: 15px;
  height: 15px;
}
.share-btn.fb:hover {
  background: #1877f2;
  color: #fff;
}
.share-btn.x:hover {
  background: #fff;
  color: #000;
}
.share-btn.wa:hover {
  background: #25d366;
  color: #06301b;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
}
.admin-actions .icon-btn {
  width: 32px;
  height: 32px;
}
.admin-actions .icon-btn svg {
  width: 14px;
  height: 14px;
}

.notes-empty {
  color: var(--white-faint);
  font-size: 0.95rem;
  padding: 2rem 0;
  text-align: center;
  grid-column: 1/-1;
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 60px 24px 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-brand .brand {
  display: block;
  margin-bottom: 0.6rem;
}
.footer-brand p {
  max-width: 280px;
  font-size: 0.88rem;
  color: var(--white-faint);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--white-faint);
  margin-bottom: 0.9rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  font-size: 0.92rem;
  color: var(--white-dim);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--mint);
}
.footer-social {
  display: flex;
  gap: 0.7rem;
}
.footer-bottom {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-faint);
}
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white-faint);
  transition: color 0.15s;
}
.admin-link:hover {
  color: var(--mint);
}
.admin-link svg {
  width: 13px;
  height: 13px;
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 16, 11, 0.78);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-box.wide {
  max-width: 580px;
}
.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
}
.modal-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  padding-right: 2rem;
  text-shadow: var(--text-halo);
}
.modal-sub {
  font-size: 0.88rem;
  color: var(--white-faint);
  margin-bottom: 1.6rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-field label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--white-faint);
}
.form-field input[type="text"],
.form-field input[type="password"],
.form-field select,
.form-field textarea {
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-field input[type="file"] {
  color: var(--white-faint);
  font-size: 0.85rem;
}
.image-preview {
  margin-top: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 160px;
}
.image-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.form-error {
  color: var(--eq-red);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1.1em;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white-dim);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-ghost:hover {
  border-color: var(--white-faint);
}
.btn-danger-confirm {
  background: transparent;
  border: 1px solid var(--eq-red);
  color: var(--eq-red);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--bg-panel);
  border: 1px solid var(--mint-dim);
  color: var(--white);
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
}
.toast[hidden] {
  display: none;
}
.toast.warn {
  border-color: var(--eq-red);
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .eq-bar,
  .live-dot {
    animation: none !important;
    transition: none !important;
  }
  .note-card,
  .icon-btn,
  .play-core,
  .btn-solid,
  .btn-outline {
    transition: none !important;
  }
}

/* ============ VISTA DE LECTURA (NOTA) ============ */
.article-layout {
  max-width: 800px;
  margin: 60px auto 100px;
  padding: 0 24px;
}
.article-header {
  text-align: center;
  margin-bottom: 40px;
}
.article-category {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-bottom: 1.5rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: var(--text-halo);
}
.article-date {
  font-family: var(--font-mono);
  color: var(--white-faint);
}
.article-image { 
  width: 100%; 
  height: auto; 
  max-height: 700px; 
  object-fit: contain; 
  background-color: rgba(0,0,0,0.2);
  border-radius: 12px; 
  margin-bottom: 40px; 
  border: 1px solid var(--line); 
}
.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--white-dim);
}
.article-body h1,
.article-body h2,
.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.article-body p {
  margin-bottom: 1.5rem;
}
.article-body img {
  border-radius: 8px;
  margin: 20px 0;
  max-width: 100%;
}
.share-section {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.share-section h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-faint);
  margin: 0;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-weight: 600;
  margin-bottom: 30px;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  padding: 0;
}
.btn-back:hover {
  color: var(--white);
}
