:root {
    --background: #0A0A0A;
    --text-color: #ffffff;
    --primary-color: #4703A6;
    --border-color: rgba(71, 3, 166, 0.25);
}

html, body {
    margin: 0; /* Elimina el margen por defecto */
    padding: 0; /* Elimina el padding por defecto */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    background: url('./img/Loading\ 1.png') no-repeat center center fixed;
    background-size: cover;
}

/* Navbar Styles */
.navbar {
    background: #0A0A0A;
    padding: 1rem 2rem;
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
}

/* Centro los elementos de navegación */
#navbarNav {
    display: flex;
    justify-content: center;
}

.navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;    
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    opacity: 0.8;
}


.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.3em;
}

/* Estilos para el contenedor derecho */

.right-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

 .language-selector {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

 .login-btn {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}
/* Main Content Styles */

.chat-frame {
    width: 100%;
    min-height: 560px;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Footer Styles */

p.conectado {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem;
}

ul.social_media {
    width: auto;
    margin: 0;
    padding: 0;
}

ul.social_media li {
    list-style: none;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .container {
        width: 95%;
    }
}

@media (min-width: 576px) {
    html{
        font-size: 14px;
    }
    .container {
        width: 95%;
    }
}

@media (min-width: 768px) {
    html{
        font-size: 14px;
    }
    .container {
        width: 95%;
    }
    .container-fluid{
        width: calc(95%);
        height: 100%;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        border: none;
        padding: 0;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1000;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    }

    .navbar-nav {
        text-align: center;
        margin: 2rem 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 0 !important;
    }

    .right-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .language-selector, .login-btn {
        font-size: 1.2rem;
    }

    /* Botón de cierre personalizado */
    .navbar-toggler[aria-expanded="true"] {
        position: fixed;
        right: 2rem;
        z-index: 1001;
    }
}

@media (min-width: 992px) {
    html{
        font-size: 14px;
    }
    .container-fluid{
        width: calc(100% - 70px);
    }
    .container {
        width: calc(100% - 70px);
    }
}

@media (min-width: 1200px) {
    html{
        font-size: 14px;
    }
    .container-fluid{
        width: calc(100% - 140px);
        /* max-width: calc(1060px + 1.5rem); */
    }
    .container {
        width: calc(100% - 140px);
        max-width: calc(1060px + 1.5rem);
    }
}

@media (min-width: 1400px) {
    .container {
        width: calc(100% - 140px);
        max-width: calc(1400px + 1.5rem);
    }
    .container-fluid{
        width: calc(100% - 140px);
        max-width: calc(1400px + 1.5rem);
    }
}

@media (min-width: 1921px) {
    .container {
        width: calc(100% - 140px);
        max-width: calc(1900px + 1.5rem);
    }
    .container-fluid {
        width: calc(100% - 140px);
        max-width: calc(1900px + 1.5rem);
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 991px) {
    .navbar .btn {
        margin: 0.5rem 0;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .chat-frame {
        min-height: 400px;
    }
}