/* NUBE — Notas de oyentes: pestaña flotante para dejar una nota + muro de
   notas publicadas, estilo "stickers" sobre la página. */

.notes-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 780;
}

.notes-fab__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 60px;
  padding: 14px 6px;
  border: 1px solid var(--panel-border);
  border-right: none;
  border-radius: 14px 0 0 14px;
  background: rgba(6, 10, 18, 0.86);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: -8px 8px 28px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  text-align: center;
}

.notes-fab__icon {
  font-size: 1rem;
  line-height: 1;
}

.notes-fab__label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: normal;
}

.notes-fab__panel {
  position: absolute;
  top: 50%;
  right: 100%;
  width: min(300px, 88vw);
  padding: 18px;
  border-radius: 18px;
  background: rgba(6, 10, 18, 0.94);
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-50%) translateX(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notes-fab.is-open .notes-fab__panel {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.notes-fab__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.notes-fab__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.notes-fab__eyebrow {
  margin: 0 0 6px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.notes-fab__lead {
  margin: 0 0 14px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.notes-fab__panel form {
  display: grid;
  gap: 8px;
}

.notes-fab__panel input,
.notes-fab__panel textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  resize: none;
  box-sizing: border-box;
}

.notes-fab__panel input::placeholder,
.notes-fab__panel textarea::placeholder {
  color: var(--text-muted);
}

.notes-fab__panel input:focus,
.notes-fab__panel textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.notes-fab__counter {
  margin: -2px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: right;
}

.notes-fab__counter[data-low="1"] {
  color: #e6c46e;
}

.notes-fab__counter[data-empty="1"] {
  color: #e28a8a;
}

.notes-fab__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notes-fab__submit {
  margin-top: 4px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.notes-fab__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.notes-fab__status {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  min-height: 1em;
  color: var(--text-dim);
}

.notes-fab__status[data-status="ok"] { color: var(--accent); }
.notes-fab__status[data-status="error"] { color: #e28a8a; }

body:not(.home-page) .notes-fab {
  display: none !important;
}

@media (max-width: 900px) {
  .notes-fab {
    top: auto;
    bottom: 104px;
    transform: none;
  }
  .notes-fab__panel {
    top: auto;
    bottom: 0;
  }
}

/* —— Muro de notas —— */
.notes-wall__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 18px;
  padding: 22px 0 12px;
}

.notes-wall__empty {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.notes-wall__card {
  position: relative;
  width: clamp(168px, 21vw, 218px);
  padding: 18px 16px 20px;
  background: var(--sticker-bg, #f6ecd8);
  color: #2a2416;
  border-radius: 3px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  font-family: "Sora", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notes-wall__card:hover {
  transform: rotate(0deg) translateY(-4px) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.notes-wall__card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 54px;
  height: 20px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.notes-wall__card--1 { --sticker-bg: #f6ecd8; }
.notes-wall__card--2 { --sticker-bg: #ecd8de; }
.notes-wall__card--3 { --sticker-bg: #dbe6da; }
.notes-wall__card--4 { --sticker-bg: #d9e2ec; }
.notes-wall__card--5 { --sticker-bg: #f1e6c8; }
.notes-wall__card--6 { --sticker-bg: #e3dcec; }

.notes-wall__meta {
  margin: 0 0 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.notes-wall__thought {
  margin: 0;
  font-family: "Marcellus", "Cormorant Garamond", serif;
  font-size: 0.96rem;
  line-height: 1.35;
}

.notes-wall__author {
  margin: 10px 0 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.6;
  text-align: right;
}

@media (max-width: 460px) {
  .notes-wall__grid {
    justify-content: center;
  }
}
