/* ============================================================
   KEKO FILMS - CSS FRAMEWORK
   Cinematic Dark Theme | Gold Accents | Android-Ready
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;900&family=Orbitron:wght@400;700;900&display=swap");

/* ---------- CSS TOKENS ---------- */
:root {
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-dark: #8b6914;
  --red: #c0392b;
  --red-bright: #e74c3c;
  --bg-black: #0a0a0a;
  --bg-dark: #111111;
  --bg-card: #181818;
  --bg-card2: #1e1e1e;
  --text-white: #f5f5f5;
  --text-muted: #888888;
  --text-gray: #aaaaaa;
  --border: rgba(201, 168, 76, 0.25);
  --border2: rgba(201, 168, 76, 0.08);
  --glow-gold: 0 0 20px rgba(201, 168, 76, 0.4);
  --glow-red: 0 0 20px rgba(192, 57, 43, 0.5);
  --nav-h: 64px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg-black);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
ul {
  list-style: none;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#splash .logo-splash {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: splashPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.6));
}
#splash .tagline {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.5s both;
}
#splash .loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  animation: fadeInUp 1s ease 0.7s both;
}
#splash .loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  animation: loadBar 2.5s ease forwards;
}

@keyframes loadBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes splashPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(201, 168, 76, 0.9));
  }
}

/* ============================================================
   BOTTOM NAV (Android style)
   ============================================================ */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 0 0 2px 2px;
  transition: width var(--transition);
}
.nav-item.active::before {
  width: 60%;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}
.nav-item span {
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-item svg,
.nav-item span {
  color: var(--text-muted);
  fill: var(--text-muted);
  stroke: var(--text-muted);
}
.nav-item.active svg,
.nav-item.active span {
  color: var(--gold-light);
  fill: var(--gold-light);
  stroke: var(--gold-light);
}
.nav-item:active {
  transform: scale(0.92);
}

/* ============================================================
   PAGES (sections)
   ============================================================ */
.page {
  display: none;
  min-height: calc(100vh - var(--nav-h));
}
.page.active {
  display: block;
  animation: pageIn 0.4s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ═══════════ PAGE: HOME (MUSIC) ═══════════
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("img/referencia.jpeg") center/cover no-repeat;
  opacity: 0.12;
  filter: grayscale(60%);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.15);
  }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(10, 10, 10, 0.2) 30%,
    rgba(10, 10, 10, 0.7) 70%,
    rgba(10, 10, 10, 1) 100%
  );
}

/* TOP LOGO BAR */
.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.top-bar .logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.top-bar .station-info {
  text-align: left;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
#conn-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
#conn-status.offline {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.2);
}
.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 6px #27ae60;
  transition: all 0.3s ease;
}
#conn-status.offline .conn-dot {
  background: #c0392b;
  box-shadow: 0 0 6px #c0392b;
  animation: blink 1s ease-in-out infinite;
}
.conn-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #27ae60;
  transition: all 0.3s ease;
}
#conn-status.offline .conn-label {
  color: #c0392b;
}
.btn-icon-top {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--gold-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.btn-icon-top:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  color: var(--text-white);
  transform: scale(1.05);
}
.btn-icon-top:active {
  transform: scale(0.95);
}
.top-bar .station-name {
  font-family: "Orbitron", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.top-bar .on-air {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.on-air-dot {
  width: 7px;
  height: 7px;
  background: var(--red-bright);
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* PLAYER CARD */
.player-section {
  position: relative;
  z-index: 10;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: start;
}

.now-playing-label {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ALBUM ART */
.album-art-wrap {
  width: 180px;
  position: relative;
  margin-bottom: 28px;
  aspect-ratio: 1;
}
.album-art-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--gold-dark),
    var(--gold-light),
    var(--gold-dark)
  );
  animation: spinRing 8s linear infinite;
  opacity: 0.6;
}
.album-art-ring-inner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--bg-black);
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.album-art {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.8),
    var(--glow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
}
.album-art-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.15),
    transparent 70%
  );
  animation: artPulse 2s ease-in-out infinite;
}
@keyframes artPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* TRACK INFO */
.track-info {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 12px;
}
.track-artist {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.track-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-top: 4px;
  letter-spacing: 1px;
}
.track-genre {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

/* PROGRESS BAR */
.progress-wrap {
  width: 100%;
  max-width: 360px;
  margin-bottom: 8px;
}
.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s linear;
  position: relative;
}
.progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}
.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding: 0 2px;
}

/* CONTROLS */
.player-controls {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-gray);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.ctrl-btn:active {
  transform: scale(0.88);
}
.ctrl-btn svg {
  width: 22px;
  height: 22px;
}
.ctrl-btn:not(.ctrl-play):hover {
  color: var(--gold);
}

.ctrl-play {
  width: 68px;
  height: 68px;
  background: linear-gradient(
    135deg,
    var(--gold-dark),
    var(--gold-light),
    var(--gold)
  );
  border-radius: 50%;
  box-shadow:
    0 4px 24px rgba(201, 168, 76, 0.5),
    0 0 0 1px rgba(201, 168, 76, 0.2);
  color: var(--bg-black) !important;
  position: relative;
  overflow: hidden;
}
.ctrl-play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}
.ctrl-play:active::after {
  background: rgba(255, 255, 255, 0.2);
}

/* VOLUME */
.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}
.volume-icon {
  color: var(--text-muted);
}
.volume-icon svg {
  width: 18px;
  height: 18px;
}
.volume-slider {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    90deg,
    var(--gold) var(--pct, 70%),
    rgba(255, 255, 255, 0.1) var(--pct, 70%)
  );
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.7);
  cursor: pointer;
}

/* MODE BUTTONS */
.mode-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.mode-btn svg {
  width: 16px;
  height: 16px;
}
.mode-btn.active {
  color: var(--gold);
  border-color: var(--border);
  background: rgba(201, 168, 76, 0.06);
}
.mode-btn:active {
  transform: scale(0.93);
}

/* SPECTRUM VISUALIZER */
.visualizer {
  width: 100%;
  max-width: 360px;
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-bottom: 20px;
  opacity: 0.7;
}
.vis-bar {
  flex: 1;
  background: linear-gradient(to top, var(--gold-dark), var(--gold-light));
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.1s ease;
}

/* ============================================================
   PLAYLIST
   ============================================================ */
.playlist-section {
  padding: 0 16px 16px;
  position: relative;
  z-index: 10;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.playlist-section.hidden {
  display: none;
}
.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.playlist-header .section-title {
  margin-bottom: 0;
  flex: 1;
}
.btn-playlist-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 12px;
}
.btn-playlist-close:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.pl-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.pl-item:hover::before,
.pl-item.active::before {
  opacity: 1;
}
.pl-item.active {
  border-color: var(--border);
}

.pl-num {
  width: 24px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}
.pl-item.active .pl-num {
  color: var(--gold-light);
}

.pl-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border2);
}
.pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.pl-thumb.playing {
  animation: thumbPulse 2s ease-in-out infinite;
}
@keyframes thumbPulse {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
  }
}

.pl-info {
  flex: 1;
  min-width: 0;
}
.pl-artist {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-item.active .pl-artist {
  color: var(--gold-light);
}
.pl-genre {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.pl-dur {
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pl-eq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: none;
  align-items: flex-end;
  gap: 2px;
}
.pl-item.active .pl-eq-icon {
  display: flex;
}
.pl-eq-icon span {
  display: block;
  width: 3px;
  background: var(--gold-light);
  border-radius: 1px;
  animation: eqAnim 0.8s ease-in-out infinite alternate;
}
.pl-eq-icon span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}
.pl-eq-icon span:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}
.pl-eq-icon span:nth-child(3) {
  height: 6px;
  animation-delay: 0.3s;
}
@keyframes eqAnim {
  to {
    transform: scaleY(0.3);
  }
}

/* ============================================================
   ═══════════ PAGE: PUBLICIDAD & VIDEOS ═══════════
   ============================================================ */
.pub-page,
.videos-page {
  padding: 24px 16px;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 8px;
}
.page-header .logo-small {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.5));
}
.page-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 3px;
  color: var(--text-white);
  line-height: 1;
}
.page-subtitle {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover::before,
.service-card:active::before {
  opacity: 1;
}
.service-card:active {
  transform: scale(0.97);
  border-color: var(--border);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  filter: grayscale(0.2);
}
.service-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-white);
  line-height: 1.3;
}
.service-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* VIDEO PORTFOLIO */
.video-section {
  margin-bottom: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: var(--transition);
}
.video-card:active {
  transform: scale(0.99);
}

.video-thumb {
  position: relative;
  width: 100%;
  background: var(--bg-card2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* YouTube / Vimeo: 16:9 fijo */
.video-thumb.yt-thumb {
  aspect-ratio: 16 / 9;
  padding-top: 56.25%;
}

.video-thumb.yt-thumb iframe,
.video-thumb.yt-thumb .video-cover-img,
.video-thumb.yt-thumb .iframe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* MP4: Adaptable automáticamente a video vertical u horizontal */
.video-thumb.mp4-thumb {
  padding-top: 0;
  aspect-ratio: auto;
  max-height: 75vh;
  background: #000;
}

.video-thumb.mp4-thumb video {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}
.video-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition);
  z-index: 2;
  pointer-events: auto;
}
.video-thumb:hover .play-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.play-btn-big {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.9),
    rgba(240, 208, 128, 0.9)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(201, 168, 76, 0.3);
}
.play-btn-big svg {
  width: 20px;
  height: 20px;
  color: var(--bg-black);
  margin-left: 3px;
}

.video-info {
  padding: 14px;
}
.video-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}
.video-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid var(--border);
}

/* ============================================================
   ═══════════ PAGE: SOBRE MI ═══════════
   ============================================================ */
.about-page {
  padding: 24px 16px;
}

.about-hero {
  text-align: center;
  margin-bottom: 28px;
}
.about-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.6));
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.about-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 4px;
  color: var(--text-white);
  line-height: 1;
}
.about-brand span {
  color: var(--red);
}
.about-sub {
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--gold);
  margin-top: 4px;
}

.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}

.about-bio {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.about-bio p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.about-bio p:last-child {
  margin-bottom: 0;
}
.about-bio strong {
  color: var(--gold-light);
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
}
.stat-num {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* SKILLS */
.skills-section {
  margin-bottom: 20px;
}
.skill-row {
  margin-bottom: 14px;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.skill-pct {
  color: var(--gold);
}
.skill-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   ═══════════ PAGE: CONTACTO ═══════════
   ============================================================ */
.contact-page {
  padding: 24px 16px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.contact-card:active {
  transform: scale(0.97);
  border-color: var(--border);
}
.contact-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.contact-icon.ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}
.contact-icon.yt {
  background: #ff0000;
}
.contact-icon.wa {
  background: #25d366;
}
.contact-icon.em {
  background: var(--bg-card2);
  border: 1px solid var(--border);
}
.contact-icon.tw {
  background: #1da1f2;
}
.contact-icon.tk {
  background: linear-gradient(135deg, #010101, #69c9d0);
}

.contact-info {
  flex: 1;
}
.contact-platform {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.contact-handle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2px;
}

.contact-arrow {
  color: var(--gold);
  opacity: 0.6;
}
.contact-arrow svg {
  width: 16px;
  height: 16px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.form-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--gold-light);
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea {
  resize: none;
  min-height: 100px;
}

.btn-gold {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-sm);
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg-black);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-gold:active::after {
  opacity: 1;
}
.btn-gold:active {
  transform: scale(0.98);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  backdrop-filter: blur(10px);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.fadeInUp {
  animation: fadeInUp 0.6s ease both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gold-text {
  color: var(--gold-light);
}
.text-center {
  text-align: center;
}

/* PARTICLES (background) */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFall linear infinite;
}
@keyframes particleFall {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh);
  }
}

/* ============================================================
   STREAMING MODE
   ============================================================ */
.stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-bright);
}
.stream-dot {
  width: 8px;
  height: 8px;
  background: var(--red-bright);
  border-radius: 50%;
  animation: blink 0.8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red-bright);
}

/* Streaming mode: hide progress & playlist, next/prev */
body.mode-streaming #progress-wrap {
  display: none;
}
body.mode-streaming #playlist-section {
  display: none;
}
body.mode-streaming #mode-btns {
  display: none;
}
body.mode-streaming #btn-prev,
body.mode-streaming #btn-next {
  opacity: 0.2;
  pointer-events: none;
}
body.mode-streaming .album-art-ring {
  animation-duration: 4s;
}

/* Streaming: show live label instead of progress */
body.mode-streaming .track-genre::before {
  content: "📡 ";
}

/* BUFFERING PULSE on album art */
body.mode-streaming.buffering .album-art-pulse {
  animation: artPulse 0.5s ease-in-out infinite;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.3), transparent 70%);
}
