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

    /* Colores */
    --primary-color: #B02535;
    
    /* Tamaños de fuente */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-md: 18px;
    --font-lg: 20px;
    --font-xl: 24px;
    --font-2xl: 30px;
    
    /* Pesos de fuente */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

body{
    background-color: #f0f0f0;
    width: 100vw;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-size: var(--font-base);
    font-weight: var(--font-regular);
}


/*Estilos para el header*/
#header-mobile{
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para el menú hamburguesa */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    right: 30px;
    z-index: 1001;
}

.cart-info-mobile {
    display: flex;
    align-items: center;
    position: absolute;
    top: 100px;
    right: 30px;
    z-index: 1;
    margin-bottom: 0;
    margin-top: 0;
}

.cart-info-mobile i {
    margin-right: 5px;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

/* Clase para cuando el menú está abierto */
.hamburger-open span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger-open span:nth-child(2) {
    opacity: 0;
}

.hamburger-open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Estilos para el menú móvil */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 80px;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav.open ~ .cart-info-mobile {
    display: none;
}

.mobile-nav ul {
    padding: 70px 0 0;
    list-style: none;
}

.mobile-nav ul li {
    padding: 10px 30px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: var(--font-md);
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}

#user-info-container{
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: var(--font-md);
    font-weight: var(--font-bold);
}

.mobile-nav p{
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    font-size: var(--font-md);
    font-weight: var(--font-bold);
}

#logout-container{
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    position: relative;
    bottom: 0;
}

#logout-container a{
    text-align: center;
    width: 80%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
}

/*Estilos para el breadcrumb*/
#breadcrumb-container{
    background-color: var(--primary-color);
    width: 100%;
    color: white;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: var(--font-md);
    text-align: center;
}

#breadcrumb-container a{
    color: white;
}

/* Estilos para ocultar/mostrar menús según el dispositivo */
#header-desktop {
    display: none; /* Oculto por defecto */
}

/* Estilos del menú de escritorio */
.desktop-header-container {
    width: 100%;
    padding: 15px 20px;
    background-color: white;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.logo-desktop img {
    height: 60px;
    margin: 0 30px;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: var(--font-base);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.user-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-left: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.user-info p {
    font-weight: var(--font-bold);
    font-size: var(--font-sm);
    margin: 0;
    text-align: center;
}

.cart-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-info i {
    margin-right: 5px;
}

.logout-button-desktop {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: var(--font-sm);
    transition: background-color 0.3s ease;
}

.logout-button-desktop:hover {
    background-color: #8e1e2a;
}

/* Media queries para controlar la visualización en diferentes dispositivos */
@media screen and (min-width: 1181px) {
    #header-mobile {
        display: none; /* Ocultar menú móvil en pantallas grandes (desktop) */
    }
    
    #header-desktop {
        display: flex;
        justify-content: center;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

/* Media query específico para tablets */
@media screen and (min-width: 768px) and (max-width: 1180px) {
    #header-mobile {
        padding-top: 5px;
        padding-bottom: 5px;
        max-height: 100px;
        position: relative;
    }
    
    .hamburger-menu {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .cart-info-mobile {
        top: 50%;
        transform: translateY(-50%);
        right: 80px;
    }
}

@media screen and (max-width: 1180px) {
    #header-mobile {
        display: flex; /* Mostrar menú móvil en tablets (vertical y horizontal) y móviles */
    }
    
    #header-desktop {
        display: none; /* Ocultar menú desktop en tablets y móviles */
    }
}


/*Estilos para el footer*/
footer{
    background-color: var(--primary-color);
    width: 100%;
    color: white;
    display: flex;
    flex-direction: row;
    padding: 40px 40px;
    justify-content: center;
}


.cart-info i,
.cart-info span,
.cart-info-mobile i,
.cart-info-mobile span {
    color: #B02535; /* Aplica el color rojo */
}

.cart-info a,
.cart-info-mobile a {
    text-decoration: none;
}
