* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 70px;
    background-color: #fff;
    position: relative;
}

/* LOGO */
.logo img {
    height: 50px;
}

/* MENÚ */
.menu {
    list-style: none;
    display: flex;
    gap: 80px;
}
.menu li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: hsl(320, 100%, 55%);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.menu li a:hover {
    color: hsl(320, 100%, 55%);
}

.menu li a:hover::after {
    width: 100%;
}

/* ICONOS PERFIL Y REDES */
.profile-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: hsl(320, 100%, 55%);
}

.profile-container {
    position: relative;
}

.profile img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.profile img:hover {
    border: 2px solid hsl(320, 100%, 55%);
} 

.login-button {
    padding: 10px 20px;
    background-color: hsl(320, 100%, 55%);
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color:rgb(255, 255, 255);
    color: hsl(320, 100%, 55%);;
}

.register-button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.register-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: hsl(320, 100%, 55%);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.register-button:hover {
    color: hsl(320, 100%, 55%);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-menu.show {
    display: block;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.social-icons-mobile {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
        grid-column: 1 / 2;
        justify-self: start;
    }

    .logo {
        grid-column: 2 / 3;
        justify-self: center;
    }

    .profile-icons {
        grid-column: 3 / 4;
        justify-self: end;
    }

    .profile img {
        height: 40px;
        width: 40px;
    }
    .menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .menu.show {
        display: flex;
    }

    .menu li {
        margin: 10px 0;
    }

    /* Redes sociales visibles solo en mobile dentro del menú */

    .social-icons-mobile {
        display: flex;
        gap: 15px;
    }

    .social-icons-mobile a {
        color: #333;
        font-size: 24px;
        transition: color 0.3s;
    }

    .social-icons-mobile a:hover {
        color: hsl(320, 100%, 55%);
    }

    /* Ocultar las sociales originales en mobile */
    .social-icons {
        display: none;
    }
}