/* Variables y Reset */
:root {
    --fondo-app: url('https://hostpannel.com/assets/img/fondo-app.png');
    --color-primario: #4f46e5;
    --color-primario-oscuro: #4338ca;
    --color-primario-claro: #818cf8;
    --texto-claro: #ffffff;
    --texto-oscuro: #f3f4f6;
    --texto-secundario: #e5e7eb;
    --fondo-claro: #ffffff;
    --fondo-oscuro: #1f2937;
    --tarjeta-claro: #f3f4f6;
    --tarjeta-oscuro: #374151;
    --borde-claro: #e5e7eb;
    --borde-oscuro: #4b5563;
    --exito: #10b981;
    --error: #ef4444;
    --advertencia: #f59e0b;
    --sombra: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.light-theme {
    --texto: var(--texto-claro);
    --texto-suave: var(--texto-secundario);
    --fondo: transparent;
    --fondo-tarjeta: rgba(31, 41, 55, 0.7);
    --fondo-tarjeta-hover: rgba(31, 41, 55, 0.9);
    --borde: rgba(255, 255, 255, 0.1);
    --fondo-header: rgba(0, 0, 0, 0.8);
    --overlay: rgba(0, 0, 0, 0.5);
}

.dark-theme {
    --texto: var(--texto-claro);
    --texto-suave: var(--texto-secundario);
    --fondo: transparent;
    --fondo-tarjeta: rgba(0, 0, 0, 0.7);
    --fondo-tarjeta-hover: rgba(0, 0, 0, 0.9);
    --borde: rgba(255, 255, 255, 0.1);
    --fondo-header: rgba(0, 0, 0, 0.9);
    --overlay: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--fondo-app) no-repeat center center fixed;
    background-size: cover;
    color: var(--texto);
    line-height: 1.6;
    min-height: 100vh;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--overlay);
    backdrop-filter: blur(2px);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.hder {
    background-color: var(--fondo-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--borde);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hder__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 56px;
    width: auto;
    filter: none;
}

/* MENÚ CON BOTONES MODERNOS */
.menu-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.menu-list li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--texto-claro);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.menu-list li a:hover {
    background: var(--color-primario);
    border-color: var(--color-primario-claro);
    transform: translateY(-2px);
}

.menu-list li a i {
    font-size: 0.9rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--texto-claro);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--color-primario);
    transform: translateY(-2px);
    border-color: var(--color-primario-claro);
}

.menu-list li a[href*="favoritos"] {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.menu-list li a[href*="favoritos"]:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.favoritos-count {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--color-primario);
}

.close-menu {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--texto-claro);
    border-radius: 1rem;
    margin-top: 1rem;
}

.hero__content {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--texto-claro);
}

.hero p {
    color: var(--texto-secundario);
    font-size: 1.1rem;
}

.hero-search {
    display: flex;
    max-width: 400px;
    margin: 2rem auto 0;
}

.hero-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.hero-search input::placeholder {
    color: #6b7280;
}

.hero-search button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primario);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero-search button:hover {
    background-color: var(--color-primario-oscuro);
}

/* Títulos de sección */
section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--texto-claro);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* Grid de Radios - ESTILOS BASE (sin !important) */
.grid-radios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.radio-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--fondo-tarjeta);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--borde);
    backdrop-filter: blur(5px);
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: var(--fondo-tarjeta-hover);
    border-color: var(--color-primario-claro);
}

.radio-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.radio-card:hover img {
    transform: scale(1.05);
}

.radio-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 0.75rem 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--texto-claro);
}

.radio-card p {
    font-size: 0.75rem;
    padding: 0 0.75rem 0.75rem;
    color: var(--texto-suave);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-plays {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-fav-card {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.btn-fav-card:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.radio-metadata {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    color: var(--texto-suave);
    border-top: 1px solid var(--borde);
    margin-top: 0.25rem;
}

/* Swiper */
.swiper {
    padding: 1rem 0 2rem;
    overflow: visible;
}

.swiper-slide {
    height: auto;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--texto-claro);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background: var(--texto-claro);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-primario-claro);
    opacity: 1;
}

/* Footer */
.fter {
    background-color: var(--fondo-header);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--borde);
    padding: 2rem 0;
    margin-top: 3rem;
}

.fter__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fter p {
    color: var(--texto-suave);
}

.fter__nav a {
    color: var(--texto-suave);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.fter__nav a:hover {
    color: var(--texto-claro);
}

/* Responsive - MÓVIL */
@media (max-width: 768px) {
    .hder__container {
        flex-wrap: wrap;
    }
    
    .main-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--fondo-header);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 200;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .menu-list {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .menu-list li a {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .close-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .seccion-header h2 {
        font-size: 1.5rem;
    }
    
    .fter__container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .fter__nav a {
        margin: 0 0.75rem;
    }
}
</style>