/* Estilos Generales y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* VIDEO DE FONDO GENERAL (Detrás del box tipo celular) */
.global-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.global-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Animación de Bordes Tricolor (Amarillo, Azul, Rojo) */
@keyframes tricolorBorder {
    0% {
        border-color: #FFCC00; /* Amarillo */
        box-shadow: 0 0 25px rgba(255, 204, 0, 0.4), inset 0 0 10px rgba(255, 204, 0, 0.2);
    }
    33% {
        border-color: #0033CC; /* Azul */
        box-shadow: 0 0 25px rgba(0, 51, 204, 0.4), inset 0 0 10px rgba(0, 51, 204, 0.2);
    }
    66% {
        border-color: #FF0000; /* Rojo */
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.2);
    }
    100% {
        border-color: #FFCC00; /* Amarillo */
        box-shadow: 0 0 25px rgba(255, 204, 0, 0.4), inset 0 0 10px rgba(255, 204, 0, 0.2);
    }
}

/* Contenedor Estilo APK / Móvil con Borde Tricolor Automático */
.mobile-app-container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    max-height: 880px;
    background-color: rgba(0, 0, 0, 0.85);
    position: relative;
    border-radius: 35px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 5px solid #FFCC00;
    animation: tricolorBorder 6s infinite;
    z-index: 1;
}

/* Scrollbar personalizado */
.mobile-app-container::-webkit-scrollbar {
    width: 6px;
}
.mobile-app-container::-webkit-scrollbar-thumb {
    background: #FFCC00;
    border-radius: 10px;
}

/* HEADER FLOTANTE */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 2px solid #FFCC00;
    animation: tricolorBorder 6s infinite;
}

.logo-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FF0000;
}

.header-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.hamburger-btn {
    background: none;
    border: none;
    color: #FFCC00;
    font-size: 1.5rem;
    cursor: pointer;
}

/* MENÚ DESPLEGABLE */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #000);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.8);
    transition: right 0.4s ease;
    padding: 20px;
    border-left: 3px solid #FF0000;
}

.nav-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    color: #FFCC00;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-links {
    list-style: none;
    margin-top: 30px;
}

.menu-links li {
    margin-bottom: 20px;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.menu-links a:hover, .menu-links a.active {
    background: #FF0000;
    color: #FFCC00;
}

/* SECCIÓN RADIO Y VIDEO */
.radio-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

/* Vinilos Giratorios */
.vinyl-container {
    position: relative;
    width: 180px;
    height: 180px;
    z-index: 3;
    margin-bottom: 20px;
}

.vinyl {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotateVinyl 6s linear infinite;
}

.top-vinyl {
    animation: rotateVinyl 4s linear infinite reverse;
    opacity: 0.9;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Indicador EN VIVO Dinámico */
.live-indicator {
    z-index: 3;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    transition: color 0.5s ease;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Reproductor con Borde Tricolor */
.player-container {
    z-index: 3;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #FFCC00;
    animation: tricolorBorder 6s infinite;
}

/* Botón de WhatsApp con Borde Tricolor */
.whatsapp-btn {
    z-index: 3;
    background-color: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    border: 2px solid #FFCC00;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
    animation: tricolorBorder 6s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* FOOTER CON IMAGEN DE FONDO */
.app-footer {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../img/bg-footer.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 25px 15px 15px 15px;
    border-top: 3px solid #FF0000;
    z-index: 3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-left {
    flex: 1;
}

.footer-left h4 {
    font-size: 0.95rem;
    color: #FFCC00;
    margin-bottom: 10px;
}

.footer-vinyl-container {
    width: 60px;
    height: 60px;
}

.footer-vinyl {
    width: 33%;
    height: 33%;
    animation: rotateVinyl 8s linear infinite;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-right h4 {
    font-size: 0.9rem;
    color: #FFCC00;
    margin-bottom: 8px;
    text-align: right;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 140px;
    justify-content: flex-end;
}

.social-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
}

/* Colores de Redes Sociales */
.social-btn.facebook { background-color: #1877f2; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.tiktok { background-color: #000000; border: 1px solid #333; }
.social-btn.youtube { background-color: #ff0000; }
.social-btn.web { background-color: #FFCC00; color: #000; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
    font-size: 0.75rem;
    color: #aaa;
}

.footer-bottom a {
    color: #FFCC00;
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom a:hover {
    text-decoration: underline;
}