/* VARIABLES DE DISEÑO PREMIUM */
:root {
  --color-primary: #ff0055;
  --color-secondary: #00f0ff;
  --color-bg-base: #050505;
  --color-glass: rgba(25, 25, 30, 0.5);
  --color-glass-hover: rgba(40, 40, 48, 0.7);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-border: rgba(255, 255, 255, 0.08);

  --font-family-base: 'Outfit', system-ui, sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;

  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 30px;
  --border-radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* BACKGROUND DEGRADADO Y DESENFOCADO */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-image: url('Logo3D.png');
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.4) saturate(1.2);
  transform: scale(1.1);
}
.bg-mesh__blob { display: none; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

/* GLOBAL LAYOUT */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--spacing-lg);
  align-items: start;
}

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

/* TOP BAR (PWA) */
.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-sm);
}

/* GLASS PANEL COMPONENT */
.glass-panel {
  background: var(--color-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  border-radius: var(--border-radius-md);
  position: relative;
}

/* MAIN LOGO */
.main-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: -20px; /* Reduced to pull player closer */
  width: 100%;
  position: relative;
}

/* Efecto de niebla removido por problemas de rendimiento en móviles */

.main-logo-img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
  transition: transform var(--transition-normal);
}

.main-logo-img:hover {
  transform: scale(1.15) rotate(2deg);
}

/* INSTALL BUTTON */
.btn-install {
  background: linear-gradient(135deg, var(--color-primary), #ff3377);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-full);
  font-family: var(--font-family-base);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 0, 85, 0.4);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}
.btn-install:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 0, 85, 0.6);
}

/* CUSTOM AUDIO PLAYER */
.player-card {
  padding: 2px;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}
.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,85,0.5), rgba(0,240,255,0.5));
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}
.player-card:hover::before {
  opacity: 0.15;
}

.player-card__inner {
  background: var(--color-glass);
  border-radius: calc(var(--border-radius-lg) - 2px);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .player-card__inner {
    flex-direction: column;
    text-align: center;
  }
}

.player-card__artwork {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(45deg, #1a1a24, #2a2a35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid var(--color-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.player-card__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.2);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* VISUALIZER */
.visualizer {
  display: flex;
  gap: 4px;
  height: 30px;
  align-items: center;
}
.visualizer__bar {
  width: 6px;
  background: var(--color-secondary);
  border-radius: 3px;
  height: 4px;
  transition: height 0.2s;
}
.visualizer.active .visualizer__bar {
  animation: equalize 1s infinite ease-in-out alternate;
  box-shadow: 0 0 10px var(--color-secondary);
}
.visualizer.active .visualizer__bar:nth-child(1) { animation-delay: -0.2s; }
.visualizer.active .visualizer__bar:nth-child(2) { animation-delay: -0.5s; }
.visualizer.active .visualizer__bar:nth-child(3) { animation-delay: -0.1s; }
.visualizer.active .visualizer__bar:nth-child(4) { animation-delay: -0.8s; }
.visualizer.active .visualizer__bar:nth-child(5) { animation-delay: -0.4s; }

@keyframes equalize {
  0% { height: 4px; }
  100% { height: 100%; }
}

.player-card__info {
  flex: 1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 85, 0.1);
  color: #ff0055;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 0, 85, 0.3);
}

.live-badge__dot {
  width: 8px;
  height: 8px;
  background: #ff0055;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 0, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

.player-card__title {
  margin: 0 0 4px 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.player-card__subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.player-card__btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: var(--color-text-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}
}
.player-card__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(255,255,255,0.4);
}

/* SLIDER DE VOLUMEN NATIVO */
.volume-slider {
  -webkit-appearance: none;
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
  margin-left: 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0055;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,0,85,0.5);
  transition: transform 0.1s, box-shadow 0.1s;
}
.volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255,0,85,0.8);
}
.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0055;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,0,85,0.5);
  border: none;
}

/* NEWS SECTION */
.news__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
.news__title {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 800;
}

.news__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  opacity: 0.5;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.news-card {
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  animation: slideUp 0.5s ease backwards;
}

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

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* IN-APP NEWS READER */
.card-news-reader {
  display: flex; flex-direction: column;
  background: var(--color-glass);
  margin: 30px auto;
  width: 90%;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
}
.reader-header {
  padding: 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.back-btn {
  background: rgba(255,255,255,0.1); color: var(--color-primary); border: none; padding: 10px 20px; border-radius: 10px;
  font-size: 1rem; cursor: pointer; transition: background 0.3s;
}
.back-btn:hover { background: var(--color-primary); color: #000; }
.reader-body {
  padding: 30px; flex: 1; overflow-y: auto;
}
.reader-body img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 20px; margin-bottom: 20px; }
.reader-body h2 { font-size: 2.5rem; color: #fff; margin-top: 0; }
.reader-body div { font-size: 1.2rem; line-height: 1.8; color: #ccc; }

.news-card__img-container {
  position: relative;
  height: 110px;
  overflow: hidden;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.news-card:hover .news-card__image {
  transform: scale(1.08);
}

.news-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-card:hover .news-card__overlay {
  opacity: 1;
}

.news-card__content {
  padding: var(--spacing-sm);
}

.news-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SIDEBAR WIDGETS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.sidebar__widget {
  padding: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.sidebar__iframe {
  border-radius: var(--border-radius-sm);
  background: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.contact-widget {
  padding: var(--spacing-md);
}
.contact-widget__title {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: var(--color-text-primary);
}
.contact-widget__desc {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.social {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social__link {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  display: grid;
  place-items: center;
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}
.social__link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(255,0,85,0.4);
}

.contact-widget__info p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.contact-widget__info strong {
  color: var(--color-secondary);
}

/* HIDE VOLUME ON MOBILE */
@media (max-width: 768px) {
  .volume-wrapper,
  .volume-slider,
  #volume-label,
  .volume-control,
  .vol-controls,
  [id="vol-slider"] {
    display: none !important;
  }
}
