@font-face {
    font-family: "FuturaCondensed";
    src: url("../fuente/futura-condensed.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0; /* Elimina márgenes predeterminados */
    padding: 0; /* Elimina rellenos predeterminados */
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.header {
    position: fixed; /* Para que se quede fijo al desplazarse */
    top: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
}
.top-bar {
    background-color: #ed1c24;
    color: white;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 160px;

}

.contact-info {
    display: flex;
    margin-left: 300px; 
    gap: 100px; 
}

.contact-info span {
    display: flex;
    align-items: center;
    font-size: 25px;
    font-family: "FuturaCondensed", sans-serif; 
}

.contact-info .phone::before,
.contact-info .email::before,
.contact-info-menu .phone::before,
.contact-info-menu .email::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: white;
}

.contact-info .phone::before,
.contact-info-menu .phone::before {
    content: "\f095";
}

.contact-info .email::before,
.contact-info-menu .email::before {
    content: "\f0e0";
}


.contact-info .phone::before,
.contact-info .email::before,
.user-actions .login::before {
    font-size: 15px; 
}

.user-actions {
    display: flex;
    align-items: center; 
    gap: 100px; 
}

.user-actions a {
    display: flex;
    align-items: center;
    font-size: 21px;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
    font-family: "FuturaCondensed", sans-serif; 
}



.user-actions .cart::before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    margin-right: 8px; 
}


.user-actions .cart::before {
    content: "\f07a"; 
}


.user-actions .cart:hover {
    color: #4d0216;
}

.user-actions a:nth-child(1) {
    gap: 10px;
    margin-right: -25px; 
    color: white;
    text-decoration: none;
}

.user-actions a:nth-child(2) {
    margin-right: -57px; 
    color: white;
    text-decoration: none;
}

.main-bar {
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 160px;
    margin-left: 5px; 
    
}
.user-actions a:hover {
    color: #4d0216;
}

.logo img{
  width: 120;
  height: 120px;
}


.navigation {
    display: flex;
    white-space: nowrap;
    gap: 45px;
    position: relative;
    margin-left: 40px;
    text-decoration: none; /* Esto evita el subrayado al hacer hover */
}

.navigation a {
    font-family: "FuturaCondensed", sans-serif;
    color: #5b5b5b;
    text-decoration: none;
    font-size: 24px;
}

.navigation a:hover {
    color: #ed1c24;
    text-decoration: none; 
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 200px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    color: #5b5b5b;
    text-decoration: none;
    font-family: "FuturaCondensed", sans-serif;
}

.dropdown-menu a:hover {
    background-color: #ed1c24;
    color: white;
}


.dropdown:hover .dropdown-menu {
    display: block;
}


.social-icons {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 5px; 
}

.social-icons a {
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background-color: #787878;
    color: white;
    font-size: 15px;
    text-decoration: none;
    margin-right:20px;
    transition: background-color 0.3s ease;
    line-height: 0; 
}


.social-icons a:hover {
    background-color: #ed1c24;
}

.social-icons a i {
    font-size: 15px;
}


.search-bar {
    display: flex;
    align-items: center;
    position: relative; 
    left: 45px; 
}


.search-bar input {
    border: 1px solid #787878;
    padding: 12px;
    font-size: 20px;
    font-family: "FuturaCondensed", sans-serif;
    letter-spacing: 1px;
    height: 44px;
    width: 200px;
}

.search-bar button {
    background-color: #5b5b5b;
    color: white;
    border: none;
    padding: 14.5px 14.5px;
    cursor: pointer;
}

/* Estilos para el usuario */
.user-dropdown {
    position: relative;
    display: inline-block;
    font-family: "FuturaCondensed", sans-serif;
    font-size: 21px;
    color: white;
    cursor: pointer;
}

.user-name {
    margin-right: -45px;
    display: flex;
    align-items: center;
    gap: 10px; /* Espaciado entre el ícono y el nombre */
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.user-name:hover {
    color: #4d0216;
}

.user-name i {
    font-size: 20px; 
}


.logout-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    background-color: white;
    color: #000000;
    font-size: 16px;
    font-family: "FuturaCondensed", sans-serif;
    padding: 10px 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 4px;
    min-width: 150px;
    text-align: left; 
}

.logout-tooltip a {
    text-decoration: none;
    color: #787878 !important;
    display: flex; 
    padding: 3px 0;
    text-align: justify; 
}

.logout-tooltip a:hover {
    color: #ed1c24 !important;
}


.user-dropdown:hover .logout-tooltip {
    display: block;
}
.cart-container {
    display: flex; /* Alinea el ícono y el contador en una fila */
    align-items: center; /* Centra verticalmente el contenido */
    position: relative; /* Necesario para posicionar el contador */
}

.cart-count {
    background-color: #ed1c24; /* Color de fondo del contador */
    color: white; /* Color del texto */
    font-size: 10px; /* Tamaño del texto */
    font-weight: bold; /* Texto en negrita */
    border-radius: 50%; /* Hace el contador circular */
    padding: 2px 6px; /* Espaciado interno */
    position: absolute; /* Permite moverlo sobre el carrito */
    top: -5px; /* Ajusta la posición vertical */
    right: -5px; /* Ajusta la posición horizontal */
}
.navigation a.active {
    color: #ed1c24; /* Resalta el color del enlace activo */
    font-weight: bold; /* Resalta con negrita */
}

.contact-info-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%; /* Hace que el fondo abarque el ancho */
    padding: 15px 0; /* Espaciado arriba y abajo */
    background-color: rgb(120, 120, 120);
    color: white;
}

.contact-info-menu span {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-family: "FuturaCondensed", sans-serif;
}

/* Estilos para las redes sociales dentro del menú */
.contact-info-menu .social-icons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding: 20px 0;
    margin-right: 30px;
    width: 100%;
}

.contact-info-menu .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #787878;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin: 0;
}

.contact-info-menu .social-icons a:hover {
    background-color: #ed1c24;
}
.menu-toggle {
    display: none;
    position: absolute;
    top: 1px;
    left: 20px; /* Mueve el botón a la izquierda */
    font-size: 30px;
    cursor: pointer;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    z-index: 1001;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .contact-info-menu {
        display: flex;
 
    }
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        text-align: center;
        gap: 5px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        gap: 5px;
        display: none;
    }

    .contact-info span {
        font-size: 18px;
    }

    .user-actions {
        gap: 140px;
        justify-content: center;
        margin-right: -70px;
    }

    /* Ajustes en la barra principal */
    .main-bar {
        display: flex;
        flex-direction: row; /* Elementos en una sola línea */
        align-items: center;
        justify-content: space-between; /* Espaciado entre logo y buscador */
        height: auto;
        padding: 10px;
    }

    /* Ajuste del logo */
    .logo img {
        width: 70px; /* Tamaño más pequeño del logo */
        height: auto;
        margin-left: 10px; /* Alineado a la izquierda */
    }

    /* Ajustes del buscador */
    .search-bar {
        display: flex;
        align-items: center;
        justify-content: flex-end; /* Alineado a la derecha */
        width: 70%;
        margin-right: 90px;
        margin-left: -20px;
    }

    .search-bar input {
        width: 170px; /* Tamaño más pequeño */
        font-size: 12px;
        height: 34px;
    }

    .search-bar button {
        padding: 10px;
        font-size: 12px;
    }

    .menu-toggle {
        display: block;
    }

   
.navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 200px; /* Ancho del menú */
    height: 100vh; /* Ocupa toda la altura */
    position: fixed;
    top: 47px;
    margin-left: -5px;
    left: -300px; /* Escondido por defecto */
    gap: 35px;
    padding: 20px 0;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: left 0.3s ease-in-out; /* Animación suave */
}

.navigation.active {
    left: 0; /* Cuando está activo, se despliega */
}

.navigation a {
    font-size: 18px;
    display: block;
    padding: 12px;
    text-align: center;
}

/* Asegurar que el contenido no se desplace con el menú */
body.menu-open {
    overflow: hidden;
}

    .social-icons {

        display: none;
    }

    .cart-container {
        margin-top: 5px;
    }

    .cart-count {
        font-size: 10px;
        top: -3px;
        right: -5px;
    }
}