/* =================================================== */
/* ================== 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 ================== */
/* =================================================== */
body, html {
    font-family: 'Eastman Grotesque Alt Bold', Arial, Helvetica, sans-serif !important;
    margin: 0;
    padding: 0;
    padding-left: 280px; /* Espacio para la barra lateral */
    box-sizing: border-box;
}

/* Fondo del área principal */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background-image: url('../imagenes/fondoverde.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* =================================================== */
/* =============== 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;
    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 - MODIFICADO */
.menu-mobile {
    display: none;
    flex-direction: column;
    background: #f4f4f4;
    padding: 15px;
    gap: 10px;
    width: 100%;
    align-items: center; /* NUEVA LÍNEA: Centra todos los elementos */
    animation: slideDown 0.3s ease forwards;
}

.menu-mobile.active {
    display: flex;
}
/* Estilos para el contenedor de usuario */
.user-menu-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    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);
    }
}

/* Media query para mostrar el header en móvil (si no existe) */
@media (max-width: 768px) {
    .header-mobile {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}
/* =================================================== */
/* ============= CATÁLOGO DE PRODUCTOS ============== */
/* =================================================== */
.catalogo-container {
    padding: 40px;
    margin: 40px;
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
}

/* Ajuste solo en escritorio */
@media (min-width: 993px) {
    .catalogo-container {
        transform: translateX(-100px); /* mueve a la izquierda solo en escritorio */
    }
}


.catalogo-titulo {
    text-align: center;
    color: #f8f9fa;
    margin-bottom: 30px;
    font-size: 3.2rem;
    position: relative;
    padding-bottom: 15px;
}

.catalogo-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #7e7e7e;
}

/* Menú de categorías */
.categorias-menu {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.categoria-btn {
    padding: 12px 25px;
    background-color: #f8f9fa;
    border: 2px solid #7e7e7e;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #7e7e7e;
}

.categoria-header{
    color: #f8f9fa;
}

.categoria-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
}

.categoria-btn.active {
    background-color: #7e7e7e;
    color: white;
    border-color: #7e7e7e;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.producto-card {
    background: none; /* sin fondo */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* sombra solo en hover */
}
.producto-imagen {
    position: relative;
    height: 310px;
    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.producto-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra todo horizontalmente */
    text-align: center;  /* centra el texto */
}

.producto-info h3 {
    margin: 0 0 10px;
    color: #fff3f3;
    font-size: 1.2rem;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.producto-info button {
    color: #fff3f3;
}

.producto-info a{
    color: #fff3f3;
}

.descargar-pdf {
    color: #fff3f3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.descargar-pdf:hover {
    color: #d3d3d3;
}

.descargar-pdf:visited {
    color: #fff3f3;
}

.descargar-pdf:active {
    color: #d3d3d3;
}

.modal-imagen {
    display: none; 
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-contenido-imagen {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.cerrar:hover {
    color: #ff4444;
}

.btn-ver-ficha {
    background-color: rgba(255, 255, 255, 0.2); /* transparente con un poco de blanco */
    color: #000000; /* texto blanco */
    font-weight: 600; /* más grueso */
    font-size: 14px; /* tamaño de fuente */
    padding: 10px 20px; /* espacio interno */
    border: 1px solid #877878; /* borde blanco */
    border-radius: 25px; /* bordes redondeados */
    cursor: pointer; /* puntero al pasar encima */
    transition: all 0.3s ease; /* animación suave */
    text-transform: uppercase; /* opcional: letras mayúsculas */
}

.btn-ver-ficha:hover {
    background-color: rgba(255, 255, 255, 0.4); /* un poco más visible al pasar el mouse */
    color: #000000; /* opcional: cambiar texto al pasar mouse */
}
/* =================================================== */
/* =============== RESPONSIVIDAD ==================== */
/* =================================================== */
@media (max-width: 992px) {
    body, html { 
        padding-left: 0; /* Espacio para el header móvil */
    }
    
    .sidebar {
        display: none;
    }
    
    .header-mobile {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    body::before { 
        left: 0;
    }
    
    .nav-btn { 
        padding: 12px 18px; 
        font-size: 0.9rem; 
    }
    
    .catalogo-container {
        margin: 15px;
        padding: 20px;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* 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;
    }
    
    .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: 220px;
    }
    
    .categorias-menu {
        flex-wrap: wrap;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .mini-carousel .carousel-control-prev,
    .mini-carousel .carousel-control-next {
        width: 25px; 
        height: 25px;
    }
}

@media (max-width: 576px) {
    .catalogo-container {
        margin: 10px;
        padding: 15px;
    }
    
    .catalogo-titulo {
        font-size: 1.8rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 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;
    }
}

/* Estilos para el botón de agregar al carrito */
/* Botón de agregar al carrito */
.btn-agregar-carrito {
    background-color: #7e7e7e; /* gris elegante */
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 30px; /* redondeado tipo pill */
    cursor: pointer;
    font-size: 15px;
    margin-top: 12px;
    transition: all 0.3s ease;
    width: 75px;           /* ancho automático según contenido */
    min-width: 75px;      /* tamaño mínimo opcional */
    display: flex;         /* para alinear ícono y texto */
    align-items: center;
    justify-content: center;
    gap: 10px;             /* espacio entre ícono y texto */
    font-weight: bold;
    align-self: center;    /* centra el botón dentro del card */
}


/* Ícono dentro del botón */
.btn-agregar-carrito .icono-carrito {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* convierte el ícono blanco en hover */
    transition: transform 0.3s ease;
}

/* Hover del botón */
.btn-agregar-carrito:hover {
    background-color: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hover sobre el ícono */
.btn-agregar-carrito:hover .icono-carrito {
    transform: scale(1.1);
}

/* Contador de carrito */
.contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.cart-icon {
    position: relative;
}
/* MODAL PARA PRESENTACION DE PRODUCTOS */
.modal-presentacion {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
        }
        
        .modal-contenido {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        .opciones-presentacion {
            margin: 15px 0;
        }
        
        .opcion-presentacion {
            display: block;
            padding: 10px;
            margin: 8px 0;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .opcion-presentacion:hover {
            background-color: #f5f5f5;
        }
        
        .opcion-presentacion.seleccionada {
            background-color: #e3f2fd;
            border-color: #2196F3;
        }
        
        .botones-modal .btn {
        background-color: #5a5a5a !important;  
        color: #fff !important;
        border: none;
        border-radius: 8px;                    
        padding: 10px 20px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
         box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); 
        }
/* Efecto al pasar el cursor */
.botones-modal .btn:hover {
    background-color: #464646 !important;
    transform: scale(1.05);
}

        /* Modal para imagen diferente */
.modal-imagen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-contenido-imagen {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-contenido-imagen img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cerrar-modal {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1101;
}

.cerrar-modal:hover {
    color: #ccc;
}

/* Efecto al pasar el cursor sobre las imágenes de productos */
.producto-imagen {
    position: relative;
    overflow: hidden;
}

.producto-imagen img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.producto-imagen:hover img {
    transform: scale(1.05);
}
.producto-imagen:hover::after {
    opacity: 1;
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .modal-contenido-imagen {
        max-width: 95%;
    }
    
    .cerrar-modal {
        top: -35px;
        right: 0;
        font-size: 35px;
    }
    
    .producto-imagen::after {
        font-size: 10px;
        padding: 3px;
    }
}