/* ===================================================
STYLE FINAL - CALI RADIO SALSA
Versión limpia Fase 9
=================================================== */

/* ===================================================
VARIABLES
=================================================== */

:root {
--color-bg-1: #0f172a;
--color-bg-2: #111827;
--color-bg-3: #020617;

```
--color-primary: #2ecc71;
--color-primary-dark: #27ae60;
--color-spotify: #1DB954;

--color-white: #ffffff;
--color-text-soft: rgba(255, 255, 255, 0.76);
--color-border: rgba(255, 255, 255, 0.12);
--color-card: rgba(255, 255, 255, 0.05);
--color-card-strong: rgba(255, 255, 255, 0.08);

--radius-lg: 30px;
--radius-md: 22px;
--radius-sm: 16px;

--shadow-card: 0 15px 40px rgba(0, 0, 0, 0.45);
--shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
```

}

/* ===================================================
RESET
=================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: 'Poppins', sans-serif;
min-height: 100vh;
color: var(--color-white);
background:
linear-gradient(
180deg,
var(--color-bg-1) 0%,
var(--color-bg-2) 50%,
var(--color-bg-3) 100%
);
transition: background 3s ease, color 0.3s ease;
}

img,
canvas,
video,
iframe {
max-width: 100%;
}

/* ===================================================
LAYOUT GENERAL
=================================================== */

.app-layout {
width: 100%;
max-width: 1500px;
margin: auto;
padding: 20px;
display: flex;
gap: 25px;
align-items: flex-start;
}

.contenido-principal {
flex: 1;
min-width: 0;
}

/* ===================================================
SIDEBAR
=================================================== */

.sidebar {
width: 250px;
position: sticky;
top: 20px;
min-height: calc(100vh - 40px);
padding: 30px;
border-radius: var(--radius-lg);
background: var(--color-card);
border: 1px solid var(--color-border);
backdrop-filter: blur(20px);
box-shadow: var(--shadow-soft);
}

/* ===================================================
BOTÓN TEMA
=================================================== */

#themeButton,
.theme-switch-container,
.topbar-actions {
display: none !important;
}

.sidebar-theme-toggle {
position: absolute;
top: 18px;
right: 18px;
width: 46px !important;
height: 46px !important;
min-width: 46px !important;
padding: 0 !important;
border: none;
border-radius: 50%;
display: inline-flex !important;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.12);
color: var(--color-white);
font-size: 18px;
cursor: pointer;
z-index: 5;
transition: 0.3s ease;
}

.sidebar-theme-toggle:hover {
background: rgba(46, 204, 113, 0.25);
transform: translateY(-2px);
}

/* ===================================================
LOGO SIDEBAR
=================================================== */

.logo-app,
.logo-app-vertical {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
text-align: center;
margin-bottom: 42px;
}

.logo-app img,
.logo-app-vertical img,
.logo-app-img,
.logo-app.logo-app-vertical img {
width: 145px;
height: 145px;
object-fit: contain;
border-radius: 26px;
padding: 10px;
background: rgba(255, 255, 255, 0.08);
}

.logo-app h2,
.logo-app-text h2,
.logo-app-vertical h2 {
margin: 0;
font-size: 30px;
line-height: 1.15;
letter-spacing: 0.5px;
font-weight: 800;
}

.logo-app span,
.logo-app-text span,
.logo-app-vertical span {
display: block;
margin-top: 8px;
color: var(--color-primary);
font-size: 18px;
font-weight: 700;
letter-spacing: 1px;
}

/* ===================================================
MENÚ
=================================================== */

.menu-app {
display: flex;
flex-direction: column;
gap: 18px;
}

.menu-item {
display: flex;
align-items: center;
gap: 15px;
padding: 18px;
border-radius: 20px;
color: var(--color-white);
text-decoration: none;
cursor: pointer;
transition: 0.3s ease;
}

.menu-item i {
width: 25px;
}

.menu-item.active {
background: rgba(46, 204, 113, 0.16);
color: var(--color-primary);
}

.menu-item:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--color-primary);
transform: translateX(5px);
}

/* ===================================================
TOPBAR / BUSCADOR
=================================================== */

.topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}

.search-box {
flex: 1;
max-width: 500px;
min-height: 58px;
padding: 15px 25px;
display: flex;
align-items: center;
gap: 15px;
border-radius: 50px;
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.28);
box-shadow: var(--shadow-soft);
transition: 0.3s ease;
}

.search-box i {
color: var(--color-white);
font-size: 18px;
}

.search-box input {
width: 100%;
background: none;
border: none;
outline: none;
color: var(--color-white);
font-size: 16px;
font-weight: 500;
}

.search-box input::placeholder {
color: rgba(255, 255, 255, 0.78);
}

.search-box:focus-within {
border-color: var(--color-primary);
box-shadow:
0 0 0 4px rgba(46, 204, 113, 0.18),
0 12px 32px rgba(0, 0, 0, 0.22);
}

/* ===================================================
REPRODUCTOR
=================================================== */

.reproductor-salsa {
position: relative;
overflow: hidden;
border-radius: var(--radius-lg);
background: var(--color-card);
border: 1px solid var(--color-border);
backdrop-filter: blur(25px);
box-shadow: var(--shadow-card);
}

.card-content {
padding: 35px;
}

.logo-box {
display: flex;
justify-content: center;
margin-bottom: 25px;
}

.logo-radio {
width: 180px;
}

.ahora-sonando,
.now-playing {
text-align: center;
margin-bottom: 15px;
}

.mini-title,
.playing-label {
display: inline-block;
padding: 7px 14px;
border-radius: 999px;
color: var(--color-white) !important;
background: rgba(0, 0, 0, 0.38);
font-size: 13px;
letter-spacing: 3px;
font-weight: 700;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.track-box {
margin-bottom: 30px;
}

#trackInfo {
text-align: center;
font-size: 28px;
font-weight: 700;
line-height: 1.4;
}

.contenedor-caratula {
display: flex;
justify-content: center;
}

#caratula-img {
width: 300px;
height: 300px;
object-fit: cover;
border-radius: 35px;
border: 1px solid var(--color-border);
box-shadow:
0 0 60px rgba(46, 204, 113, 0.35),
0 15px 50px rgba(0, 0, 0, 0.45);
animation: respirar 4s ease infinite;
}

@keyframes respirar {
0% {
transform: scale(1);
}

```
50% {
    transform: scale(1.03);
}

100% {
    transform: scale(1);
}
```

}

.song-extra {
text-align: center;
margin-top: 20px;
}

.song-extra span,
.mensaje-logo {
display: inline-block;
padding: 10px 16px;
border-radius: 999px;
color: var(--color-white) !important;
background: rgba(0, 0, 0, 0.42);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.mensaje-logo {
text-align: center;
margin-top: 20px;
font-size: 14px;
}

/* ===================================================
CONTROLES PLAYER
=================================================== */

.controles-layout {
display: flex;
flex-direction: column;
align-items: center;
gap: 25px;
margin-top: 30px;
}

#btnPlayPausa {
width: 90px;
height: 90px;
border: none;
border-radius: 50%;
background:
linear-gradient(
45deg,
var(--color-primary),
var(--color-primary-dark)
);
color: var(--color-white);
font-size: 30px;
cursor: pointer;
transition: 0.3s ease;
}

#btnPlayPausa:hover {
transform: translateY(-2px);
}

.volumen-box {
width: 100%;
display: flex;
align-items: center;
gap: 15px;
}

#iconoVolumen {
font-size: 20px;
}

#volumenControl {
width: 100%;
}

#estadoEmision {
margin-top: 25px;
text-align: center;
color: var(--color-primary);
font-size: 18px;
}

#estadoEmision i {
margin-right: 8px;
}

/* ===================================================
BOTONES COMPARTIR
=================================================== */

.redes-compartir-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-top: 30px;
}

.redes-compartir-grid button {
height: 60px;
border: none;
border-radius: 18px;
cursor: pointer;
font-size: 24px;
transition: 0.3s ease;
}

#btnCompartirWhatsapp {
background: #25D366;
color: var(--color-white);
}

#btnCompartirFacebook {
background: #1877F2;
color: var(--color-white);
}

#btnCompartirInstagram {
background:
linear-gradient(
45deg,
#833AB4,
#E1306C,
#FCAF45
);
color: var(--color-white);
}

#btnCopiarEnlace {
background: #374151;
color: var(--color-white);
}

.redes-compartir-grid button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.redes-compartir-grid button:active {
transform: scale(0.95);
}

/* ===================================================
ESPECTRO
=================================================== */

.spectrum-container {
height: 100px;
padding: 20px;
}

#miniSpectrum {
width: 100%;
height: 100%;
}

/* ===================================================
OVERLAY PLAY
=================================================== */

#overlayPlayButton {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.85);
display: flex;
justify-content: center;
align-items: center;
z-index: 999;
cursor: pointer;
}

.overlay-content {
text-align: center;
}

.overlay-content i {
font-size: 40px;
color: var(--color-white);
margin-bottom: 20px;
}

.overlay-content span {
display: block;
font-size: 18px;
}

/* ===================================================
SECCIONES / TARJETAS
=================================================== */

.card-section {
margin-top: 30px;
padding: 30px;
border-radius: var(--radius-lg);
background: var(--color-card);
border: 1px solid var(--color-border);
backdrop-filter: blur(20px);
transition: 0.3s ease;
}

.card-section:hover {
transform: translateY(-4px);
}

.card-section h2 {
margin-top: 0;
margin-bottom: 25px;
display: flex;
align-items: center;
gap: 15px;
color: var(--color-white);
font-size: 22px;
font-weight: 800;
}

.card-section h2 i {
color: var(--color-primary);
}

.card-section p {
line-height: 1.8;
color: #d9d9d9;
}

/* ===================================================
SPOTIFY
=================================================== */

#spotifySection {
scroll-margin-top: 24px;
}

.spotify-section-featured {
margin-top: 28px;
}

.spotify-section-featured h2 i {
color: var(--color-spotify);
}

.spotify-card {
padding: 20px;
border-radius: 20px;
background: rgba(29, 185, 84, 0.08);
border: 1px solid rgba(29, 185, 84, 0.18);
}

.spotify-header {
display: flex;
align-items: center;
gap: 10px;
color: var(--color-spotify);
font-size: 20px;
margin-bottom: 20px;
}

.spotify-body {
display: flex;
gap: 20px;
align-items: center;
}

.spotify-img,
.spotify-cover {
width: 140px;
height: 140px;
border-radius: 20px;
object-fit: cover;
}

.spotify-info h3 {
margin-bottom: 10px;
}

.spotify-info p {
color: #bfbfbf;
line-height: 1.6;
}

.spotify-link {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 15px;
padding: 12px 22px;
background: #121212;
color: var(--color-spotify);
text-decoration: none;
font-weight: 600;
border: 1px solid var(--color-border);
border-radius: 50px;
transition: 0.3s ease;
}

.spotify-link:hover {
background: var(--color-spotify);
color: var(--color-white);
transform: translateY(-3px);
}

/* ===================================================
GRID DE SECCIONES
=================================================== */

.grid-secciones {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 25px;
margin-top: 30px;
}

.grid-secciones.layout-fase7 {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
grid-template-areas:
"history lyrics"
"social app";
gap: 25px;
align-items: stretch;
}

.layout-fase7 .history-section {
grid-area: history;
}

.layout-fase7 .lyrics-section {
grid-area: lyrics;
position: relative;
top: auto;
height: 100%;
}

.layout-fase7 .social-section {
grid-area: social;
}

.layout-fase7 .app-section {
grid-area: app;
}

.layout-fase7 #lyricsContainer {
max-height: 520px;
}

/* ===================================================
LETRA EN VIVO
=================================================== */

#lyricsContainer {
max-height: 460px;
overflow-y: auto;
padding: 10px 12px 10px 0;
}

#lyricsContainer::-webkit-scrollbar {
width: 8px;
}

#lyricsContainer::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 20px;
}

.lyrics-loading {
text-align: center;
color: rgba(255, 255, 255, 0.7);
padding: 20px;
}

.lyrics-line {
padding: 8px 0;
margin-bottom: 6px;
font-size: 17px;
line-height: 1.9;
font-weight: 500;
color: rgba(255, 255, 255, 0.82);
animation: fadeLyrics 0.5s ease;
}

.lyrics-line.active {
color: var(--color-white);
font-size: 22px;
font-weight: 700;
text-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

@keyframes fadeLyrics {
from {
opacity: 0;
transform: translateY(10px);
}

```
to {
    opacity: 1;
    transform: translateY(0);
}
```

}

/* ===================================================
HISTORIAL
=================================================== */

.historial-item {
display: flex;
align-items: center;
gap: 15px;
padding: 14px;
margin-bottom: 12px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--color-border);
transition: 0.3s ease;
animation: aparecerCancion 0.5s ease;
}

.historial-item:hover {
transform: translateX(8px);
background: rgba(255, 255, 255, 0.08);
}

.historial-cover {
width: 58px;
height: 58px;
border-radius: 15px;
object-fit: cover;
flex-shrink: 0;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.historial-info {
flex: 1;
min-width: 0;
}

.historial-song {
font-size: 16px;
font-weight: 700;
color: var(--color-white);
line-height: 1.4;
}

.historial-artist {
margin-top: 5px;
color: #9ca3af;
font-size: 14px;
}

.historial-album {
margin-top: 5px;
color: #6b7280;
font-size: 13px;
}

.historial-vacio {
text-align: center;
color: #888;
padding: 20px;
}

@keyframes aparecerCancion {
from {
opacity: 0;
transform: translateY(-15px);
}

```
to {
    opacity: 1;
    transform: translateY(0);
}
```

}

/* ===================================================
REDES SOCIALES
=================================================== */

.social-section {
min-height: 190px;
}

.social-grid {
height: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
align-items: center;
}

.social-grid a,
.social-card {
min-height: 70px;
height: 70px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 20px;
font-size: 28px;
text-decoration: none;
color: var(--color-white) !important;
transition: 0.3s ease;
}

.social-grid a:nth-child(1),
.whatsapp {
background: #25D366;
}

.social-grid a:nth-child(2),
.facebook {
background: #1877F2;
}

.social-grid a:nth-child(3),
.instagram {
background:
linear-gradient(
45deg,
#833AB4,
#E1306C,
#FCAF45
);
}

.social-grid a:nth-child(4),
.tiktok {
background: #111111;
}

.social-grid a:hover,
.social-card:hover {
filter: brightness(1.08);
transform: translateY(-5px);
}

/* ===================================================
APP / INSTALAR
=================================================== */

.app-section {
display: flex;
flex-direction: column;
}

.app-section h2 {
margin-bottom: 24px;
}

.btn-app,
.app-section .btn-app,
#btnInstallApp,
#btnDescargarApp,
[data-install-app] {
width: 100%;
height: 65px;
margin: auto auto 0 auto;
padding: 0 22px !important;
border: none;
border-radius: 20px;
background: var(--color-primary);
color: var(--color-white);
font-size: 18px;
font-weight: 700;
cursor: pointer;
display: flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
line-height: 1 !important;
white-space: nowrap;
transition: 0.3s ease;
}

.btn-app:hover,
.app-section .btn-app:hover {
background: var(--color-primary-dark);
transform: translateY(-2px);
}

/* ===================================================
EXPLORA CALI RADIO
Se deja oculto porque fue removido del diseño final
=================================================== */

.recent-section {
display: none !important;
}

/* ===================================================
FOOTER
=================================================== */

footer,
.footer,
.site-footer {
width: 100%;
padding: 26px 12px 12px;
display: flex;
justify-content: center;
align-items: center;
text-align: center !important;
}

footer p,
.footer p,
.site-footer p,
.copyright,
.footer-copy {
width: 100%;
margin: 0 auto;
text-align: center !important;
color: var(--color-text-soft);
}

/* ===================================================
MODO CLARO
=================================================== */

body.light-theme {
background:
linear-gradient(
180deg,
#e58645 0%,
#d97b3c 28%,
#f2dfcb 28%,
#f7eadc 100%
);
color: #1f2937;
}

body.light-theme .sidebar,
body.light-theme .card-section,
body.light-theme .reproductor-salsa,
body.light-theme .spotify-card,
body.light-theme .historial-item {
background: rgba(255, 246, 235, 0.92);
border: 1px solid rgba(112, 72, 44, 0.18);
color: #1f2937;
box-shadow: 0 18px 40px rgba(80, 45, 20, 0.10);
}

body.light-theme .sidebar-theme-toggle {
background: rgba(255, 246, 235, 0.95);
color: #111827;
box-shadow: 0 8px 24px rgba(80, 45, 20, 0.16);
}

body.light-theme .card-section h2,
body.light-theme .logo-app h2,
body.light-theme #trackInfo {
color: #111827;
}

body.light-theme .card-section h2 i {
color: #111827;
}

body.light-theme .menu-item {
color: #1f2937;
}

body.light-theme .menu-item.active,
body.light-theme .menu-item:hover {
background: rgba(46, 204, 113, 0.16);
color: #15803d;
}

body.light-theme .search-box {
background: rgba(255, 246, 235, 0.92);
border: 1px solid rgba(112, 72, 44, 0.24);
}

body.light-theme .search-box input {
color: #111827;
}

body.light-theme .search-box input::placeholder {
color: rgba(31, 41, 55, 0.66);
}

body.light-theme .search-box i {
color: #111827;
}

body.light-theme .mini-title,
body.light-theme .playing-label,
body.light-theme .mensaje-logo,
body.light-theme .song-extra span {
color: var(--color-white) !important;
background: rgba(17, 24, 39, 0.72);
}

body.light-theme .spotify-info p,
body.light-theme .historial-song,
body.light-theme .historial-artist {
color: #1f2937;
}

body.light-theme .historial-album {
color: #6b7280;
}

body.light-theme .lyrics-section #lyricsContainer {
background: rgba(255, 255, 255, 0.28);
border-radius: 18px;
padding: 14px;
}

body.light-theme .lyrics-line {
color: #374151;
font-weight: 600;
}

body.light-theme .lyrics-loading {
color: #4b5563;
}

body.light-theme #lyricsContainer::-webkit-scrollbar-thumb {
background: rgba(17, 24, 39, 0.24);
}

body.light-theme .btn-app {
background: #16a34a;
color: var(--color-white);
}

body.light-theme .btn-app:hover {
background: #15803d;
}

body.light-theme .spotify-link {
background: #111827;
color: #22c55e;
}

body.light-theme .spotify-link:hover {
background: #22c55e;
color: var(--color-white);
}

body.light-theme .redes-compartir-grid button {
color: var(--color-white);
}

body.light-theme #btnCompartirWhatsapp {
background: #25D366;
box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

body.light-theme #btnCompartirFacebook {
background: #1877F2;
box-shadow: 0 5px 20px rgba(24, 119, 242, 0.3);
}

body.light-theme #btnCompartirInstagram {
background:
linear-gradient(
45deg,
#833AB4,
#E1306C,
#FCAF45
);
box-shadow: 0 5px 20px rgba(225, 48, 108, 0.25);
}

body.light-theme #btnCopiarEnlace {
background: #6b7280;
}

body.light-theme footer p,
body.light-theme .site-footer p {
color: #374151;
}
/* ===================================================
   AJUSTE PC - BOTÓN TEMA EN TOPBAR Y REDES
=================================================== */

@media (min-width: 769px) {

    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .search-box {
        max-width: 500px;
    }

    .topbar-theme-toggle {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        padding: 0 !important;
        border: none;
        border-radius: 50%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transition: 0.3s ease;
    }

    .topbar-theme-toggle:hover {
        background: rgba(46, 204, 113, 0.22);
        transform: translateY(-2px);
    }

    .sidebar-theme-toggle {
        display: none !important;
    }

    .social-section {
        padding-bottom: 36px;
    }

    .social-grid {
        padding-bottom: 10px;
    }

    body.light-theme .topbar-theme-toggle {
        background: rgba(255, 246, 235, 0.92);
        color: #111827;
        box-shadow: 0 8px 24px rgba(80, 45, 20, 0.16);
    }

}