/* NUBE — player, cards, menu, forms, editorial modules */

/* —— Menu —— */
.menu-wrap {
  position: relative;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 46px;
  border-radius: 100px;
  background: var(--button-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  font-family: "Marcellus", serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.menu-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.02);
}

.menu-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(35, 24, 58, 0.96) 0%,
    rgba(13, 10, 25, 0.98) 100%
  );
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.menu-panel.open {
  opacity: 1;
  visibility: visible;
}

.menu-orb {
  position: absolute;
  width: min(60vw, 700px);
  height: min(60vw, 700px);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

.menu-panel-inner {
  width: min(900px, 90vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  margin: 20px 0;
  overflow: hidden;
}

.menu-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  font-family: "Marcellus", serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s, opacity 0.6s;
}

.menu-panel.open .menu-list a {
  transform: translateY(0);
  opacity: 1;
}

.menu-panel.open li:nth-child(1) a { transition-delay: 0.12s; }
.menu-panel.open li:nth-child(2) a { transition-delay: 0.2s; }
.menu-panel.open li:nth-child(3) a { transition-delay: 0.28s; }

.menu-list a:hover {
  color: var(--accent);
}

.menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--color-glass);
  color: var(--text-main);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.25s ease;
}

.menu-close:hover {
  transform: rotate(90deg);
  background: var(--accent-soft);
}

.menu-close svg {
  width: 24px;
  height: 24px;
}

.menu-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.5s;
}

.menu-panel.open .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.menu-socials {
  display: flex;
  gap: 28px;
}

.menu-socials a svg {
  width: 22px;
  height: 22px;
  fill: var(--text-muted);
  transition: fill 0.25s, transform 0.25s;
}

.menu-socials a:hover svg {
  fill: var(--accent);
  transform: translateY(-3px);
}

body.menu-open main,
body.menu-open footer,
body.menu-open .site-footer,
body.menu-open .menu-btn {
  filter: brightness(0.55);
  opacity: 0.92;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 100;
  pointer-events: none;
}

/* —— Player —— */
.player-container {
  width: 100%;
  min-height: min(88vh, 900px);
  margin: 0 auto;
  padding: 24px 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1080px;
}

.cover-wrap {
  position: relative;
  justify-self: end;
}

.coverflow-container {
  position: relative;
  display: inline-block;
}

.cover-item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.cover-item img {
  width: var(--cover-size);
  height: var(--cover-size);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 60px var(--glow);
  transition: box-shadow var(--transition-theme), border-color var(--transition-theme);
}

.cover-item.active {
  transform: translateX(0) scale(1);
  filter: none;
  z-index: 3;
}

.cover-item.prev-1,
.cover-item.prev-2,
.cover-item.prev-3 {
  display: none;
}

.player-ctrl {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translate(50%, 50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 28px var(--glow);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.player-ctrl:hover {
  transform: translate(50%, 50%) scale(1.04);
}

.player-ctrl.paused {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 32px var(--glow);
}

.player-ctrl svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

#volume-arc {
  position: absolute;
  left: 99%;
  top: 100%;
  transform: translate(-50%, 16px) scale(1.8) scale(0.6);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  overflow: visible;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

#loading-msg {
  display: none;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
  margin-top: 14px;
  letter-spacing: 0.08em;
}

.meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  position: relative;
  padding-left: 8px;
}

.meta::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.meta small {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  letter-spacing: 0.35em;
  font-size: 0.68rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.meta small::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.artist {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-family: "Marcellus", serif;
}

.title {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  font-family: "Marcellus", serif;
  color: var(--text-dim);
  font-style: italic;
}

/* —— Modo del día —— */
.modo-card {
  background: linear-gradient(
    145deg,
    var(--accent-soft) 0%,
    var(--panel-bg) 55%,
    transparent 100%
  );
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.modo-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.modo-card__mood {
  font-family: "Marcellus", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  color: var(--text-main);
}

.modo-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

/* —— Cards editoriales —— */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color var(--transition-theme), box-shadow 0.25s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.card--featured {
  background: linear-gradient(
    160deg,
    var(--accent-soft) 0%,
    var(--panel-bg) 48%,
    transparent 100%
  );
}

.editorial-card__tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.editorial-card__title {
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.editorial-card__body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Nueva hora destacada */
.hour-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.hour-feature__cover {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 24px var(--glow);
}

.hour-feature__artist {
  margin: 0 0 4px;
  font-family: "Marcellus", serif;
  font-size: 1.4rem;
}

.hour-feature__song {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--text-dim);
}

.hour-feature__desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Votos */
.vote-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vote-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.vote-option:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.vote-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
}

.vote-option__radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--panel-border);
  flex-shrink: 0;
  position: relative;
}

.vote-option[aria-pressed="true"] .vote-option__radio {
  border-color: var(--accent);
}

.vote-option[aria-pressed="true"] .vote-option__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.vote-thanks {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  background: var(--button-bg);
  color: var(--button-text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: var(--primary-dark);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
}

/* Formulario contacto */
#mensajes .card {
  background: linear-gradient(
    180deg,
    var(--accent-soft) 0%,
    var(--panel-bg) 100%
  ) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent) !important;
  padding: 18px !important;
}

#mensajes .card,
#mensajes .card * {
  font-size: 13px !important;
}

.form-field {
  display: grid;
  gap: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(6, 10, 18, 0.55);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-section {
  margin-top: 28px;
}

.contact-logo img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.contact-info p {
  margin: 8px 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.contact-info a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
}

.contact-info a:hover {
  color: var(--accent);
}

.social-icons-contact {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icons-contact a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: transform 0.2s, border-color 0.2s;
}

.social-icons-contact a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.social-icons-contact svg {
  width: 17px;
  height: 17px;
  fill: var(--text-main);
}

/* Song grid (nueva hora lista) */
.song-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 8px;
}

.song-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition: border-color 0.25s;
}

.song-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.song-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

.song-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.song-artist {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.song-description {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
  flex-grow: 1;
}

.song-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  margin-top: auto;
}

.song-play-btn {
  min-width: 88px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--button-bg);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.song-play-btn.playing {
  background: var(--accent);
  color: var(--primary-dark);
}

.song-play-btn.loading {
  opacity: 0.75;
  cursor: wait;
}

.song-progress {
  width: 100%;
  accent-color: var(--accent);
  height: 5px;
}

.song-player-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Grid editorial 2 cols desktop */
.editorial-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}


/* Etapa 1 — integración editorial, hero y bloque comercial */
.hero-copy {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: clamp(.92rem, 1.4vw, 1.06rem);
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(0,0,0,.18);
  color: var(--text-muted);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-commercial {
  margin-top: 8px;
}

.commercial-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--panel-border);
  padding: clamp(26px, 5vw, 44px);
  background:
    radial-gradient(circle at 14% 10%, var(--accent-soft), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(0,0,0,.20)),
    var(--panel-bg);
  box-shadow: var(--shadow), 0 0 60px rgba(0,0,0,.12);
}

.commercial-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 340px;
  height: 340px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: .32;
  pointer-events: none;
}

.commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.card,
.modo-card,
.song-card,
.vote-option,
.commercial-panel,
#mensajes .card {
  backdrop-filter: none;
}

.atmosphere-picker,
#modo-dia,
#nuevas-canciones,
#votos-nube,
.editorial-grid > section,
#mensajes {
  scroll-margin-top: 120px;
}
