/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fb; /* Fondo claro para mejor contraste */
    color: #333333;
}

header {
    background-color: #005b99; /* Color amigable con buen contraste */
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo .logo-text {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-size: 1.2em;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffc107; /* Amarillo brillante para buen contraste en hover */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
}

.welcome-section {
    background-color: #b3b3b3; /* Color azul con buen contraste */
    color: #ffffff; /* Texto claro */
    padding: 40px 20px;
    text-align: center;
}

.welcome-section .banner-text h1 {
    font-size: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-section .banner-text p {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-section .banner-text i {
    margin-right: 10px;
}

#nick-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#nick-form input {
    padding: 10px;
    font-size: 1em;
    border: 2px solid #005b99; /* Mejor contraste */
    border-radius: 5px;
    margin-bottom: 10px;
    width: 200px;
}

.chat-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007acc; /* Azul con buen contraste */
    color: #ffffff; /* Texto blanco para buen contraste */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.chat-button:hover {
    background-color: #005b99; /* Azul más oscuro para mejor contraste en hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section.intro {
    text-align: center;
    margin-bottom: 40px;
}

section.intro h2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

section.intro h2 i {
    margin-right: 10px;
}

section.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

section.features .feature {
    width: 30%;
    text-align: center;
    margin-bottom: 20px;
}

section.features .feature img,
section.features .feature i {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    color: #007acc;
}

section.suggested-rooms {
    text-align: center;
    margin-bottom: 40px;
}

section.suggested-rooms .rooms {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

section.suggested-rooms .room {
    width: 30%;
    margin-bottom: 20px;
    text-align: center;
}

section.suggested-rooms .room img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

section.suggested-rooms .room h3 {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.suggested-rooms .room h3 i {
    margin-right: 10px;
}

section.suggested-rooms .room p {
    min-height: 80px;
}

section.suggested-rooms .room-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007acc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

section.suggested-rooms .room-link:hover {
    background-color: #005b99;
}

section.suggested-rooms .room-link i {
    margin-right: 5px;
}

section.community {
    text-align: center;
    padding: 20px;
    background-color: #007acc;
    color: #ffffff;
    margin-bottom: 40px;
}

section.community .community-text {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.community .community-text p {
    font-size: 1.2em;
    line-height: 1.5;
    margin: 0;
}

section.community .community-text i {
    margin-right: 10px;
}

footer {
    background-color: #005b99;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

footer .footer-content.pc-only {
    display: flex;
}

footer .footer-content.mobile-only {
    display: none;
}

footer .footer-content .footer-section {
    flex: 1;
    padding: 10px;
    min-width: 200px;
}

footer .footer-content .footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

footer .footer-content .footer-section ul {
    list-style: none;
    padding: 0;
}

footer .footer-content .footer-section ul li {
    margin-bottom: 10px;
}

footer .footer-content .footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-content .footer-section ul li a:hover {
    color: #ffc107;
}

footer .footer-content.mobile-only {
    display: flex;
}

footer .footer-content.mobile-only p {
    margin: 0 auto;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 10px;
        border-bottom: 1px solid #ffffff;
    }

    .menu.active {
        display: flex;
    }

    .banner-text h1 {
        font-size: 2em;
    }

    .banner-text p {
        font-size: 1.2em;
    }

    .chat-button {
        width: 100%;
        text-align: center;
    }

    footer .footer-content {
        display: none;
    }

    footer .footer-content.pc-only {
        display: none;
    }

    footer .footer-content.mobile-only {
        display: flex;
        justify-content: center;
    }

    footer .footer-content .footer-section {
        padding: 0;
        text-align: center;
    }
}
