/* ============================================================
   CHERUBOX - ESTILO RETRO FRUTIGER AERO (｡♥‿♥｡)
   ============================================================ */

/* ===== 1. FONDOS Y COLORES ===== */
body {
    background: url('https://mikcarrasco.laboratoriodiseno.cl/3s-et/wp-content/uploads/2026/07/fondo.jpg') center/cover no-repeat fixed;
    font-family: Verdana, 'Comic Sans MS', cursive, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ===== 2. TÍTULOS ===== */
.titulo-retro,
h1, h2, h3, h4, h5, h6,
.titulo-pixel {
    font-family: 'Press Start 2P', 'VT323', cursive;
    font-weight: 400;
    letter-spacing: 1px;
    color: #0a2a3a;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.titulo-retro {
    font-size: 38px;
    margin: 0;
}

.subtitulo-retro {
    font-family: Verdana, 'Comic Sans MS', cursive, sans-serif;
    font-size: 18px;
    color: #1a4a5a;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    margin: 5px 0 0 0;
}

/* ===== 3. BOTONES ===== */
.btn-retro {
    font-family: Verdana, 'Comic Sans MS', cursive, sans-serif;
    font-weight: 600;
    background: linear-gradient(180deg, #e8f4fd, #c0d9e8);
    border: 1px solid #8ab3cf;
    border-radius: 8px;
    color: #1a3a4a;
    padding: 8px 20px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-retro:hover {
    background: linear-gradient(180deg, #f0f8ff, #cce0ed);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-retro:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== 4. TARJETAS ===== */
.cancion-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cancion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.cancion-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.cancion-card.active-card {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.cancion-sin-imagen {
    width: 100%;
    height: 180px;
    background: linear-gradient(145deg, #4a8a9a, #2a5a6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aad4e4;
    font-size: 48px;
}

.cancion-info {
    padding: 16px;
}

.cancion-titulo {
    font-size: 15px;
    margin: 0 0 4px 0;
    color: #0a2a3a;
    font-weight: 600;
}

.cancion-detalles {
    color: #1a4a5a;
    font-size: 12px;
    margin: 0 0 10px 0;
}

/* ===== 5. SECCIONES ===== */
.section-canciones {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-canciones h2 {
    font-family: 'Press Start 2P', 'VT323', cursive;
    font-size: 22px;
    color: #0a2a3a;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
}

/* ===== 6. SCROLL HORIZONTAL ===== */
.scroll-horizontal {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px 12px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4a7a8a rgba(0, 0, 0, 0.2);
}

.scroll-item {
    min-width: 170px;
    max-width: 170px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.scroll-item:hover {
    transform: translateY(-4px);
}

.scroll-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.scroll-item-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, #4a8a9a, #2a5a6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aad4e4;
    font-size: 32px;
}

.scroll-item-info {
    padding: 10px;
}

.scroll-item-info h4 {
    font-size: 12px;
    margin: 0 0 2px 0;
    color: #0a2a3a;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scroll-item-info p {
    font-size: 10px;
    color: #1a4a5a;
    margin: 0 0 6px 0;
}

.scroll-item-info .btn-retro {
    font-size: 9px;
    padding: 3px 8px;
    width: 100%;
}

.scroll-horizontal::-webkit-scrollbar {
    height: 8px;
}
.scroll-horizontal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.scroll-horizontal::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #4a7a8a, #6a9aaa);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.scroll-horizontal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #6a9aaa, #8ac4d4);
}

/* ===== 7. BARRA LATERAL FRUTIGER ===== */
.frutiger-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px 14px;
    font-family: 'VT323', 'Courier New', monospace;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    max-height: 80vh;
}

.frutiger-nav::-webkit-scrollbar {
    width: 6px;
}
.frutiger-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.frutiger-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7ec8e3, #4db8d9);
    border-radius: 4px;
}

.frutiger-nav-title {
    background: linear-gradient(180deg, #0054a8, #003d7a);
    color: #ffffff;
    font-family: 'Press Start 2P', 'VT323', cursive;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    margin: -16px -14px 14px -14px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.frutiger-nav-section-title {
    color: #2a5a6a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.frutiger-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.frutiger-nav ul li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.frutiger-nav ul li a {
    color: #0a2a3a;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.frutiger-nav ul li a:hover {
    color: #2a7a8a;
    padding-left: 4px;
}

.frutiger-nav ul li a .count {
    color: #4a7a8a;
    font-size: 10px;
}

.frutiger-nav-empty {
    color: #4a7a8a;
    font-size: 12px;
    margin: 0;
}

.frutiger-nav-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    margin-top: 6px;
}

.frutiger-nav-footer a {
    color: #4a7a8a;
    text-decoration: none;
    font-size: 11px;
    display: block;
    text-align: center;
    transition: all 0.2s;
}

.frutiger-nav-footer a:hover {
    color: #2a7a8a;
}

/* ===== 8. REPRODUCTOR ===== */
.cherubox-player-container {
    background: rgba(10, 20, 30, 0.92);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.cherubox-player-banner {
    background: url('https://i.pinimg.com/originals/89/9f/18/899f184f503ca486f5bec57acc7f4b50.gif') center/cover no-repeat;
    width: 100%;
    height: 140px;
    position: relative;
}

.cherubox-player-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.cherubox-player-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    flex-direction: column;
}

.cherubox-player-banner-content i {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.cherubox-player-banner-title {
    color: #fff;
    font-family: 'Press Start 2P', 'VT323', cursive;
    font-size: 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.cherubox-player-body {
    padding: 16px 18px 18px 18px;
    background: rgba(10, 20, 30, 0.92);
    backdrop-filter: blur(4px);
}

.cherubox-player-now-playing {
    color: #8ac4d4;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 2px 0;
}

.cherubox-player-title {
    color: #e0f4ff;
    font-family: 'Press Start 2P', 'VT323', cursive;
    font-size: 13px;
    margin: 0 0 2px 0;
}

.cherubox-player-artist {
    color: #6a9aaa;
    font-size: 12px;
    margin: 0 0 10px 0;
    font-family: Verdana, 'Comic Sans MS', cursive;
}

.cherubox-player-progress {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 3px;
}

.cherubox-player-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4db8d9, #7ec8e3);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(100, 200, 255, 0.2);
}

.cherubox-player-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.cherubox-player-time {
    display: flex;
    justify-content: space-between;
    font-family: 'VT323', monospace;
    font-size: 10px;
    color: #6a9aaa;
    margin-bottom: 10px;
    opacity: 0.7;
}

.cherubox-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cherubox-player-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8ac4d4;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cherubox-player-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 200, 255, 0.3);
    color: #e0f4ff;
}

.cherubox-player-btn-play {
    background: linear-gradient(145deg, #4db8d9, #2a8aaa);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(50, 150, 200, 0.25);
}

.cherubox-player-btn-play:hover {
    background: linear-gradient(145deg, #5ac8e9, #3a9aba);
    box-shadow: 0 4px 24px rgba(50, 150, 200, 0.4);
}

.cherubox-player-btn-play i {
    font-size: 18px;
    margin-left: 2px;
}

.cherubox-player-lyrics {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 35px;
    max-height: 120px;
    overflow-y: auto;
    resize: vertical;
}

.cherubox-player-lyrics-text {
    color: #8ac4d4;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== 9. WIDGETS ===== */
.cherubox-widget {
    padding: 15px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(74, 122, 138, 0.15);
    transition: transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.cherubox-widget:last-child {
    margin-bottom: 0;
}

.cherubox-widget:hover {
    transform: translateY(-2px);
}

.cherubox-widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a2a3a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(74, 122, 138, 0.2);
    font-family: 'Inter', sans-serif;
}

.cherubox-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cherubox-widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(74, 122, 138, 0.08);
}

.cherubox-widget ul li:last-child {
    border-bottom: none;
}

.cherubox-widget ul li a {
    color: #2a5a6a;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.cherubox-widget ul li a:hover {
    color: #0a2a3a;
}

.cherubox-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ===== 10. STICKY WRAPPER ===== */
.sticky-wrapper {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 11. WIDGET BUSCADOR ===== */
.widget-buscador {
    text-align: center;
}

.widget-buscador .buscador-imagen {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.widget-buscador .buscador-input {
    width: 100%;
    padding: 8px 14px;
    border: 2px solid rgba(74, 122, 138, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    color: #0a2a3a;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.widget-buscador .buscador-input::placeholder {
    color: #8ab4c4;
}

.widget-buscador .buscador-input:focus {
    border-color: #4a7a8a;
    box-shadow: 0 0 0 3px rgba(74, 122, 138, 0.15);
}

.widget-buscador .buscador-btn {
    margin-top: 8px;
    padding: 6px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(145deg, #4a8a9a, #2a5a6a);
    color: white;
    font-size: 12px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-buscador .buscador-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 122, 138, 0.3);
}

/* ===== 12. EXTRAS ===== */
.badge-retro {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 40px;
    font-size: 14px;
    color: #1a4a5a;
}

.mensaje-vacio {
    color: #1a4a5a;
    font-size: 18px;
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* ===== 13. RESPONSIVE ===== */
@media (max-width: 992px) {
    .sticky-wrapper {
        position: relative;
        top: 0;
    }
    .cherubox-widget {
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .titulo-retro { font-size: 28px; }
    .glass-card { padding: 16px !important; border-radius: 16px; }
    .section-canciones { padding: 16px; }
    .cancion-card img,
    .cancion-sin-imagen { height: 140px; }
    .cancion-sin-imagen { font-size: 36px; }
    .cherubox-player-banner { height: 100px; }
    .cherubox-player-banner-title { font-size: 13px; }
    .cherubox-player-title { font-size: 14px; }
    .cherubox-player-body { padding: 12px 14px 14px 14px; }
    .cherubox-player-btn { width: 28px; height: 28px; font-size: 12px; }
    .cherubox-player-btn-play { width: 36px; height: 36px; }
    .scroll-item { min-width: 140px; max-width: 140px; }
    .frutiger-nav { max-height: 60vh; }
}

@media (max-width: 480px) {
    .titulo-retro { font-size: 22px; }
    .scroll-item { min-width: 120px; max-width: 120px; }
}