/* =================================================== */
/* ================== FUENTES ======================= */
/* =================================================== */
@font-face {
    font-family: 'Eastman Grotesque Alt Bold';
    src: url('../fuentes/Eastman-Grotesque-Alt-Bold-trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* =================================================== */
/* ================== ESTILOS BASE ================== */
/* =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Eastman Grotesque Alt Bold', Arial, Helvetica, sans-serif !important;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Fondo del área principal */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background-image: url('../imagenes/sofa-gris-en-el-interior-de-la-sala-de-estar-blanca-con-espacio-de-copia-3d-rendering.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.7;
}

/* =================================================== */
/* =============== BARRA LATERAL ==================== */
/* =================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

/* Logo */
.logo-container {
    width: 60%;
    margin-bottom: 30px;
    text-align: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Botones de navegación */
.nav-central {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    display: block;
    width: 80%;
    padding: 14px 20px;
    text-align: center;
    background-color: #7e7e7e;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.nav-btn:hover {
    background-color: #5a5a5a;
}

/* Área de usuario */
.user-menu-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.cart-icon, .login-icon {
    margin-bottom: 15px;
}

.cart-icon img, .login-icon img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cart-icon img:hover, .login-icon img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.user-name {
    font-weight: bold;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-size: 18px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
    width: 80%;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.user-name:hover {
    background-color: #e9ecef;
        color: #7e7e7e;
}

.dropdown-menu {
    display: flex !important;
    flex-direction: column;
    width: 80%;
    gap: 10px;
    margin-top: 10px;
    position: static !important;
    transform: none !important;
}


.logout-btn {
    color: #333;
    text-decoration: none;
    padding: 12px 15px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.logout-btn:hover {
    background-color: #7e7e7e;
    color: white;
    transform: translateX(5px);
}

.contact-container {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.contact-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-item {
    margin: 4px 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* =================================================== */
/* =============== HEADER MOBILE ==================== */
/* =================================================== */
.header-mobile {
    display: none;
    background: #f4f4f4;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Menú móvil - MODIFICADO */
.menu-mobile {
    display: none;
    flex-direction: column;
    background: #f4f4f4;
    padding: 15px;
    gap: 10px;
    width: 100%;
    align-items: center;
    animation: slideDown 0.3s ease forwards;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-mobile.active {
    display: flex;
}
/* Estilos para el contenedor de usuario */
.user-menu-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    
}

/* Estilos para el estado de usuario logueado */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.user-name {
    margin: 10px 0;
    text-align: center;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logout-btn {
    text-align: center;
    width: 100%;
    max-width: 250px;
    padding: 10px 15px;
    margin: 5px 0;
    background-color: #fff;
    border-radius: 5px;
}

.cart-icon, .login-icon {
    display: flex;
    justify-content: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================== */
/* =============== MINI CARRUSEL ==================== */
/* =================================================== */
.mini-carousel-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 1050px;
    height: 400px;
    z-index: 900;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.mini-carousel {
    width: 100%;
    height: auto;
}

.mini-carousel .carousel-inner {
    border-radius: 10px;
    height: 100%;
}

.mini-carousel .carousel-item {
    height: 100%;
    transition: transform 0.6s ease;
}

.mini-carousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.mini-carousel .carousel-control-prev,
.mini-carousel .carousel-control-next {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.mini-carousel .carousel-control-prev { 
    left: 10px; 
}

.mini-carousel .carousel-control-next { 
    right: 10px; 
}

.mini-carousel .carousel-control-prev:hover,
.mini-carousel .carousel-control-next:hover {
    opacity: 0.9;
}

.mini-carousel .carousel-indicators {
    margin-bottom: 5px;
}

.mini-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 3px;
}

/* =================================================== */
/* =============== RESPONSIVIDAD ==================== */
/* =================================================== */
@media (max-width: 992px) {
    .mini-carousel-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        top: 0;
        right: 0;
        left: 0;
        margin: 70px auto 20px;
        border-radius: 0;
        border: none;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    body, html { 
        padding-top: 60px;
    }
    
    .sidebar {
        display: none;
    }
    
    .header-mobile {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    body::before { 
        left: 0;
    }
    
    /* CARRUSEL EN MÓVIL - POSICIÓN CENTRADA Y ANCHO COMPLETO */
    .mini-carousel-container {
        margin-top: 70px;
        height: auto;
        max-height: 250px;
    }
    
    .mini-carousel {
        width: 100%;
        height: 100%;
    }
    
    .mini-carousel .carousel-inner,
    .mini-carousel .carousel-item img {
        border-radius: 0;
    }
    
    /* Estilos para el menú móvil compacto */
    .menu-mobile {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .menu-mobile .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 20px;
        text-align: center;
    }
    
    .user-menu-container {
        margin-top: 5px;
        display: flex;
        justify-content: center;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .cart-icon, .login-icon {
        width: 28px;
        height: 28px;
    }
    
    .cart-icon img, .login-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .user-name {
        font-size: 0.9rem;
        margin: 5px 0;
        font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
    }
    
    .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        max-width: 200px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        text-align: center;
        background-color: #7e7e7e;
        color: white;
        border-radius: 15px;
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    .mini-carousel-container {
        height: auto;
        max-height: 220px;
        margin-top: 60px;
    }

    .mini-carousel .carousel-control-prev,
    .mini-carousel .carousel-control-next {
        width: 25px; 
        height: 25px;
    }
    
    .header-mobile {
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .mini-carousel-container {
        height: auto;
        max-height: 180px;
        margin-top: 55px;
    }

    .mini-carousel .carousel-indicators { 
        display: none; 
    }
    
    /* Estilo ultra compacto para pantallas muy pequeñas */
    .menu-mobile .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .logout-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .header-mobile {
        padding: 5px 10px;
    }
}