/* =================================================== */
/* ================== FUENTES ======================= */
/* =================================================== */
@font-face {
    font-family: 'Eastman Grotesque Alt Bold';
    src: url('../fuentes/Eastman-Grotesque-Alt-Bold-trial.otf') format('opentype');
}

/* =================================================== */
/* ================== ESTILOS BASE ================== */
/* =================================================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Eastman Grotesque Alt Bold', Arial, sans-serif;
}

/* Fondo del área principal */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background-image: url('../imagenes/fondo-de-la-habitacion-con-decoracion-interior-y-paredes-blancas.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: 10px;
}

.cart-icon img, .login-icon img {
    width: 35px;
    height: 35px;
    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;
    flex-direction: column;
    width: 80%;
    gap: 10px;
    margin-top: 10px;
}

.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);
}

/*Contacto */
.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;
}

.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;
}

/* Menú móvil */
.menu-mobile {
    display: none;
    flex-direction: column;
    background: #f4f4f4;
    padding: 15px;
    gap: 10px;
    width: 100%;
    align-items: center;
    animation: slideDown 0.3s ease forwards;
}

.menu-mobile.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================== */
/* ============= CONTENIDO PRINCIPAL ================ */
/* =================================================== */
.contenido-principal {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Estilos para el título de la paleta */
.titulo-paleta {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.titulo-paleta h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ajusta el contenedor de categorías */
.color-section {
    width: 100%;
    position: relative;
}

.color-categories-container {
    margin-top: 20px;
}

/* =================================================== */
/* ============= ADVERTENCIA DE COLORES ============= */
/* =================================================== */
.color-disclaimer {
    text-align: center;
    margin: 15px 0 30px;
    padding: 0 20px;
}

.color-disclaimer p {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* =================================================== */
/* =============== SECCIÓN DE COLORES =============== */
/* =================================================== */
.color-section {
    width: 100%;
    max-width: 1200px;
    background: transparent;
    padding: 40px;
    border-radius: 15px;
    box-shadow: none;
}

/* Contenedor de categorías de colores */
.color-categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.color-category {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botones de categoría de colores */
.color-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #6b6b6b, #8a8a8a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Colores específicos para cada categoría */
.color-btn[data-category="turquesa"] {
    background: linear-gradient(145deg, #1abc9c, #16a085);
}

.color-btn[data-category="verdes"] {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.color-btn[data-category="cítricos"],
.color-btn[data-category="citricos"] {
    background: linear-gradient(145deg, #f1c40f, #f39c12);
}

.color-btn[data-category="amarillos"] {
    background: linear-gradient(145deg, #f9e79f, #f4d03f);
}

.color-btn[data-category="naranjas"] {
    background: linear-gradient(145deg, #e67e22, #d35400);
}

.color-btn[data-category="rojos"] {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.color-btn[data-category="rosas"] {
    background: linear-gradient(145deg, #ff80ab, #e75480);
}

.color-btn[data-category="violetas"] {
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
}

.color-btn[data-category="morados"] {
    background: linear-gradient(145deg, #6c3483, #512e5f);
}

.color-btn[data-category="azules"] {
    background: linear-gradient(145deg, #3498db, #2980b9);
}

.color-btn[data-category="neutros"] {
    background: linear-gradient(145deg, #bdc3c7, #95a5a6);
}

.color-btn:hover {
    background: linear-gradient(145deg, #5a5a5a, #797979);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Paleta de colores */
.color-palette {
    display: none;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.color-palette.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Imágenes de la paleta */
.palette-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-image {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    cursor: pointer;
}

.color-image:hover {
    transform: scale(1.05);
    border-color: #7e7e7e;
}

/* Estilo especial para la categoría de Neutros */
#neutros-palette .palette-images {
    grid-template-columns: repeat(3, 1fr);
}

/* =================================================== */
/* =============== MODAL DE IMÁGENES ================ */
/* =================================================== */
.modal-image {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
    width: auto;
    height: auto;
    border-radius: 8px;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.3s ease;
    cursor: grab;
}

.modal-content:active {
    cursor: grabbing;
}

.modal-content.zoomed {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-modal:hover {
    color: #ccc;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
}

/* =================================================== */
/* =============== CONTROLES DE ZOOM ================ */
/* =================================================== */
.zoom-controls {
    position: absolute;
    bottom: 70px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 2002;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* =================================================== */
/* ============= BOTÓN DE WHATSAPP ================== */
/* =================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
}

/* =================================================== */
/* =============== RESPONSIVIDAD ==================== */
/* =================================================== */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .header-mobile {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .contenido-principal {
        margin-left: 0 !important;
        padding: 20px 15px;
        background-attachment: scroll;
        justify-content: flex-start;
        align-items: flex-start;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* CORREGIR EL FONDO EN MÓVIL */
    body::before {
        left: 0 !important;
        width: 100%;
    }
    
    /* ESTILOS ESPECÍFICOS PARA PÁGINA DE COLORES EN MÓVIL */
    .titulo-paleta {
        position: static;
        text-align: center;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .titulo-paleta h1 {
        font-size: 1.8rem;
        text-align: center;
        width: 100%;
    }
    
    .color-section {
        padding: 15px 0;
        width: 100%;
        margin-top: 0;
    }
    
    .color-categories-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 0;
        width: 100%;
    }
    
    .color-section h1 {
        font-size: 2rem;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .palette-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #neutros-palette .palette-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10% auto;
    }
    
    /* 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: 3px;
        display: flex;
        justify-content: center;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .user-name {
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    .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;
    }
    
    /* Ajustes para controles de zoom en móviles */
    .zoom-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .contenido-principal {
        padding: 15px 10px;
        margin-top: 60px;
        margin-left: 0 !important;
    }
    
    /* Asegurar que el fondo ocupe toda la pantalla */
    body::before {
        left: 0 !important;
        width: 100vw;
    }
    
    .titulo-paleta h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .color-section {
        padding: 15px 5px;
    }
    
    .color-categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .color-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .palette-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #neutros-palette .palette-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 98%;
        margin: 15% auto;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 576px) {
    .contenido-principal {
        padding: 10px 5px;
        margin-top: 50px;
        margin-left: 0 !important;
    }
    
    body::before {
        left: 0 !important;
    }
    
    .titulo-paleta h1 {
        font-size: 1.3rem;
    }
    
    .color-categories-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .palette-images {
        grid-template-columns: 1fr;
    }
    
    #neutros-palette .palette-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 100%;
        margin: 20% auto;
    }
    
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-caption {
        font-size: 16px;
        bottom: 10px;
    }
    
    /* Ajustes para controles de zoom en móviles pequeños */
    .zoom-controls {
        bottom: 5px;
        right: 5px;
        flex-direction: column;
    }
    
    .zoom-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .contenido-principal {
        padding: 8px 3px;
        margin-left: 0 !important;
    }
    
    body::before {
        left: 0 !important;
    }
    
    .color-categories-container {
        grid-template-columns: 1fr;
    }
    
    #neutros-palette .palette-images {
        grid-template-columns: 1fr;
    }
    
    .color-btn {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .palette-images {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .color-palette {
        padding: 10px;
    }
}

/* Responsividad para controles de zoom */
@media (max-width: 992px) {
    .zoom-controls {
        bottom: 60px;
        right: 20px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .zoom-controls {
        bottom: 50px;
        right: 10px;
        flex-direction: column;
    }
    
    .zoom-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}