/* Radio Libre - Modern Cyberpunk/Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #FF2E00;
    --primary-orange: #FF6600;
    --primary-yellow: #FFD700;
    --accent-glow: #FF4D00;

    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.7);
    --bg-input: rgba(255, 255, 255, 0.05);

    --text-main: #ffffff;
    --text-muted: #aaaaaa;

    --gradient-brand: linear-gradient(135deg, var(--primary-red), var(--primary-orange), var(--primary-yellow));
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Marca de agua fija e impactante que cubre toda la web */
.main-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vh;
    height: 85vh;
    background: url('../logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.25;
    /* Aumentado para mayor presencia */
    pointer-events: none;
    z-index: -1;
}

body::before {
    display: none;
}

/* Removiendo el anterior para usar el div dedicado */

/* Gradiente de profundidad en el fondo */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.03) 0%, transparent 80%);
    pointer-events: none;
    z-index: -2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(15px);
    background: rgba(5, 5, 5, 0.85);
    border-bottom: var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    filter: drop-shadow(0 0 10px var(--primary-orange));
}

.social-header {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.6);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: transparent;
    /* TRANSPARENTE para que se vea el logo del body */
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    top: 10%;
    left: -5%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-yellow);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, 40px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Player */
.player-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    text-align: center;
}

.player-circle-container {
    position: relative;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 60px rgba(255, 102, 0, 0.15), inset 0 0 50px rgba(0, 0, 0, 0.6);
}

canvas#visualizer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.control-btn-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-brand);
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(255, 102, 0, 0.4);
    z-index: 10;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5px;
}

.control-btn-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 60px var(--primary-orange);
}

.track-info-circle .radio-status {
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff00;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.track-title-scrolling {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#trackArtist {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Volume */
.volume-control-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 25px;
    border-radius: 40px;
    border: var(--glass-border);
}

.volume-slider-container {
    width: 180px;
    position: relative;
    display: flex;
    align-items: center;
}

input[type=range] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-orange);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-orange);
}

.volume-value {
    min-width: 45px;
    font-weight: 700;
    color: var(--primary-yellow);
}

/* Download Button */
.app-download {
    margin-top: 10px;
}

.download-btn-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 30px;
    border-radius: 60px;
    border: var(--glass-border);
    transition: var(--transition-smooth);
}

.download-btn-modern i {
    font-size: 1.8rem;
    color: var(--primary-yellow);
}

.download-btn-modern .btn-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.download-btn-modern strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.download-btn-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

/* Chat Container */
.chat-container {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    border: var(--glass-border);
    border-radius: 20px;
    height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    position: relative;
    animation: chatFadeIn 1s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.chat-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    /* Fondo sutil para mejor legibilidad */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) transparent;
}

.chat-messages-wrapper::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 15px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    position: relative;
    transition: all 0.3s ease;
    animation: messageSlideIn 0.5s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.message.current-user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(255, 46, 0, 0.12), rgba(255, 102, 0, 0.12));
    border-color: rgba(255, 102, 0, 0.3);
    animation: messageSlideInRight 0.5s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes messageSlideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-username {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--primary-yellow);
}

.current-user-msg .message-username {
    color: var(--primary-orange);
    text-align: right;
}

.message-text {
    display: block;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #ffffff;
    word-break: break-word;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    text-align: right;
}

/* Chat Controls Area */
.chat-input-logged,
.chat-login-area,
.login-form-inline {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.5);
    border-top: var(--glass-border);
}

.user-info-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

#currentUsername {
    font-weight: 800;
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

#logoutBtn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

#logoutBtn:hover {
    color: var(--primary-red);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

#messageInput,
#usernameInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

#messageInput:focus,
#usernameInput:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.1);
}

#sendBtn,
#loginBtn,
#showLoginBtn {
    background: var(--gradient-brand);
    border: none;
    color: white;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

#sendBtn:hover,
#loginBtn:hover,
#showLoginBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 46, 0, 0.3);
}

#emojiPickerBtn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

#emojiPickerBtn:hover {
    color: var(--primary-yellow);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4), rgba(10, 10, 10, 0.6));
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(to right, #fff, var(--primary-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 30px;
    border: var(--glass-border);
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.04);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    color: var(--primary-orange);
    font-size: 2.222rem;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-card p,
.contact-card a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: 0.3s;
}

.contact-card a:hover {
    color: var(--primary-yellow);
}

.footer {
    padding: 80px 0 40px;
    border-top: var(--glass-border);
    background: rgba(0, 0, 0, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Branding Aermultinet en Footer */
.footer-aermultinet {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.aermultinet-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.aermultinet-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.aermultinet-info img {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: var(--transition-smooth);
}

.aermultinet-info img:hover {
    transform: scale(1.05);
}

.aermultinet-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.aermultinet-cta a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
    transition: 0.3s;
}

.aermultinet-cta a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Utils */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Emoji Picker Custom */
#emojiPicker {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: #0a0a0a;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 1.6rem;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    transition: 0.2s;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 80px;
    }

    .player-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .player-circle-container {
        width: 300px;
        height: 300px;
    }

    .track-title-scrolling {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}