/* RadioNet.tv - Estilos CSS - Reconstruido */

/* ============================================
   RESET BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   HEADER - BASE (ESCRITORIO Y MÓVIL)
   ============================================ */
header {
    background: #1a1a1a;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffb700;
    text-decoration: none;
}

/* ============================================
   MENÚ HAMBURGUESA (BASE - OCULTO)
   ============================================ */
.menu-toggle {
    display: none;
}

/* ============================================
   NAVEGACIÓN - ESCRITORIO
   ============================================ */
nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-btn {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    border-radius: 5px;
}

.nav-btn:hover,
.nav-btn.active {
    background: #ffb700;
    color: #0a0a0a;
}

nav a.nav-btn {
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #2a2a2a;
    min-width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1001;
    border-radius: 5px;
    top: 100%;
    left: 0;
    margin-top: 2px;
    padding: 8px 0;
}

.dropdown-content a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background: #ffb700;
    color: #0a0a0a;
    border-left-color: #fff;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.lang-selector {
    background: #ffb700;
    color: #0a0a0a;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    margin-left: 10px;
}

.radio-player-placeholder {
    background: #2a2a2a;
    padding: 8px 15px;
    border-radius: 5px;
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

/* ============================================
   MENÚ MÓVIL - OCULTO EN ESCRITORIO
   ============================================ */
.mobile-nav-container {
    display: none;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ============================================
   SOCIAL SIDEBAR - ESCRITORIO
   ============================================ */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb700;
    text-decoration: none;
    font-size: 1.5em;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #ffb700;
    color: #0a0a0a;
    border-color: #ffb700;
    transform: scale(1.1);
}

/* ============================================
   TARJETAS NETFLIX
   ============================================ */
.netflix-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
    padding: 0 80px;
}

.netflix-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #2a2a2a;
    aspect-ratio: 2/3;
    text-decoration: none;
}

.netflix-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 183, 0, 0.3);
}

.netflix-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-players {
    text-align: center;
    margin: 40px 0;
}

.more-players a {
    color: #ffb700;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.more-players a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* ============================================
   VIDEO PLAYER
   ============================================ */
.video-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    margin: 60px 0;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
}

.playlist-container {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.playlist-container::-webkit-scrollbar {
    width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #ffb700;
    border-radius: 10px;
}

.playlist-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background: #3a3a3a;
    border-color: #ffb700;
}

.playlist-item.active {
    border-color: #ffb700;
    background: #3a3a3a;
}

.playlist-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.playlist-item-info h4 {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #fff;
}

.playlist-item-info p {
    font-size: 0.8em;
    color: #999;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 5px;
}

.autoplay-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: #ffb700;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch.active .toggle-slider {
    left: 33px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   CARRUSEL
   ============================================ */
.carousel-section {
    margin: 60px 0;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background: #ffb700;
    color: #0a0a0a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: #2a2a2a;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #ffb700;
    transform: scale(1.3);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.footer-links a {
    color: #ffb700;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid #ffb700;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: #ffb700;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-content h2 {
    color: #ffb700;
    margin-bottom: 10px;
}

.contact-email {
    color: #999;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffb700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #fff;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset {
    background: #2a2a2a;
    color: #fff;
}

.btn-reset:hover {
    background: #3a3a3a;
}

.btn-submit {
    background: #ffb700;
    color: #0a0a0a;
    font-weight: bold;
}

.btn-submit:hover {
    background: #fff;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #2d5016;
    color: #90ee90;
    display: block;
}

.form-message.error {
    background: #5d1616;
    color: #ff6b6b;
    display: block;
}

.under-construction {
    text-align: center;
    padding: 100px 20px;
}

.under-construction h1 {
    color: #ffb700;
    font-size: 3em;
    margin-bottom: 20px;
}

.under-construction p {
    font-size: 1.2em;
    color: #999;
}

/* ============================================
   TABLETS - 1024px
   ============================================ */
@media screen and (max-width: 1024px) {
    .netflix-cards {
        padding: 0 20px;
        gap: 20px;
    }

    .video-section {
        grid-template-columns: 1fr;
    }

    .social-sidebar {
        position: fixed;
        left: 50%;
        top: 70px;
        transform: translateX(-50%);
        flex-direction: row;
        z-index: 98;
        background: rgba(26, 26, 26, 0.95);
        padding: 10px 20px;
        border-radius: 25px;
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

/* ============================================
   MÓVILES - 768px
   ============================================ */
/* ============================================
   MENÚ MÓVIL HORIZONTAL - Estilo botones sociales
   Reemplaza la sección @media (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Header más compacto */
    header {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.2em;
    }
    
    /* Ocultar navegación del header en móvil */
    header nav {
        display: none !important;
    }
    
    /* Botón hamburguesa en header */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: #ffb700;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Menú móvil flotante - estilo botones sociales */
    .mobile-nav-container {
        display: block;
        position: fixed;
        left: 50%;
        top: 110px;
        transform: translateX(-50%) scale(0);
        width: 90%;
        max-width: 350px;
        background: rgba(26, 26, 26, 0.98);
        border-radius: 15px;
        padding: 10px;
        z-index: 1500;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-container.active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    
    /* Botones del menú móvil */
    .mobile-nav-container .nav-btn {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        margin: 3px 0;
        background: #2a2a2a;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 0.95em;
        cursor: pointer;
        transition: all 0.2s;
        display: block;
        text-decoration: none;
    }
    
    .mobile-nav-container .nav-btn:hover,
    .mobile-nav-container .nav-btn.active {
        background: #ffb700;
        color: #0a0a0a;
        transform: translateX(3px);
    }
    
    /* Dropdowns en menú móvil */
    .mobile-nav-container .dropdown {
        width: 100%;
    }
    
    .mobile-nav-container .dropdown > .nav-btn::after {
        content: ' ▼';
        float: right;
        font-size: 0.8em;
    }
    
    .mobile-nav-container .dropdown.active > .nav-btn::after {
        content: ' ▲';
    }
    
    .mobile-nav-container .dropdown-content {
        display: none;
        padding: 5px 0 5px 10px;
    }
    
    .mobile-nav-container .dropdown.active .dropdown-content {
        display: block;
    }
    
    .mobile-nav-container .dropdown-content a {
        display: block;
        padding: 10px 15px;
        margin: 3px 0;
        background: #1a1a1a;
        color: #999;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.85em;
        border-left: 3px solid #ffb700;
    }
    
    .mobile-nav-container .dropdown-content a:hover {
        background: #ffb700;
        color: #0a0a0a;
        padding-left: 18px;
    }
    
    /* Selector de idioma y radio en menú móvil */
    .mobile-nav-container .lang-selector {
        width: 100%;
        margin: 5px 0;
        padding: 12px;
        background: #ffb700;
        color: #0a0a0a;
        border: none;
        border-radius: 8px;
        font-weight: bold;
    }
    
    .mobile-nav-container .radio-player-placeholder {
        width: 100%;
        margin: 5px 0;
        padding: 12px;
        background: #2a2a2a;
        color: #666;
        text-align: center;
        border-radius: 8px;
        font-size: 0.85em;
    }
    
    /* Botones sociales */
    .social-sidebar {
        position: fixed;
        left: 50%;
        top: 60px;
        transform: translateX(-50%);
        flex-direction: row;
        z-index: 1000;
        background: rgba(26, 26, 26, 0.95);
        padding: 8px 15px;
        border-radius: 20px;
        gap: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    /* Main content */
    main {
        margin-top: 115px;
        padding-bottom: 200px !important;
    }
    
    /* Contenido */
    .netflix-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .video-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mobile-nav-container {
        width: 95%;
        top: 100px;
    }
    
    .logo {
        font-size: 1.1em;
    }
    
    .netflix-cards {
        grid-template-columns: 1fr;
    }
    
    .social-sidebar {
        gap: 6px;
        padding: 6px 12px;
        top: 55px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
    }
}



/* ========== JUEGOS ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #2a2a4e;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 183, 0, 0.3);
    border-color: #ffb700;
}

.game-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.game-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #2a2a4e;
}

.game-card-image {
    height: 200px;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon {
    font-size: 80px;
}

.game-card-info {
    padding: 25px;
}

.game-card-info h3 {
    color: #ffb700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.game-card-info p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.play-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffb700, #ff8c00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 183, 0, 0.4);
}

/* Modal del Juego */
.game-modal .game-modal-content {
    background: transparent;
    width: 95%;
    height: 95%;
    max-width: none;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: none;
}

.game-modal .close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: #ffb700;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    z-index: 10;
}

.game-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-modal .game-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .game-modal iframe {
        border-radius: 0;
    }
}