/* Estilos para paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.paginacion-btn {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.paginacion-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.paginacion-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Overlay para zoom en imágenes */
.producto-img-container {
    position: relative;
    overflow: hidden;
}

.producto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-img-container:hover .producto-overlay {
    opacity: 1;
}

.btn-zoom {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #333;
}

.btn-zoom:hover {
    transform: scale(1.1);
    background: #007bff;
    color: white;
}

/* Modal mejorado */
.modal-producto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.modal-imagenes {
    position: relative;
}

.modal-imagen-principal img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
}

/* Botón ver catálogo completo */
.ver-catalogo-completo {
    text-align: center;
    margin: 30px 0;
}

.btn-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-catalogo:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-producto-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .paginacion-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Estilos para el catálogo */
.catalogo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.producto-categoria {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
}

/* Controles del catálogo */
.catalogo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.busqueda-catalogo {
    display: flex;
    gap: 10px;
}

.busqueda-catalogo input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 250px;
}

.ordenar-catalogo select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-producto-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalogo-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .busqueda-catalogo input {
        width: 100%;
    }
    
    .paginacion-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Estilos para paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.paginacion-btn {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.paginacion-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.paginacion-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.paginacion-puntos {
    padding: 10px 5px;
    color: #666;
}

/* Estilos para el catálogo completo */
.catalogo-completo {
    padding: 60px 0;
    background: #f8f9fa;
}

.catalogo-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalogo-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.catalogo-header p {
    color: #666;
    font-size: 1.1rem;
}

.catalogo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filtros-catalogo {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.busqueda-catalogo {
    display: flex;
    gap: 10px;
}

.busqueda-catalogo input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 250px;
}

.ordenar-catalogo select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.catalogo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.producto-categoria {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.producto-descripcion {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paginacion-catalogo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.no-productos {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-productos i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-productos h3 {
    color: #666;
    margin-bottom: 10px;
}

.ver-catalogo-completo {
    text-align: center;
    margin: 30px 0;
}

.btn-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-catalogo:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Mejoras para el modal con zoom */
.producto-modal-content {
    max-width: 900px;
    width: 95%;
}

.modal-imagenes {
    display: flex;
    gap: 20px;
}

.modal-imagen-principal {
    flex: 1;
    position: relative;
}

.modal-imagen-principal img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
}

.modal-imagenes-miniaturas {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.miniatura {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.miniatura.active {
    border-color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .catalogo-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .busqueda-catalogo input {
        width: 100%;
    }
    
    .catalogo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .paginacion-btn {
        padding: 8px 12px;
        min-width: 40px;
    }
    
    .modal-imagenes {
        flex-direction: column;
    }
    
    .modal-imagenes-miniaturas {
        width: 100%;
        flex-direction: row;
        order: 2;
    }
}
/* Estilos para paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.paginacion-btn {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.paginacion-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.paginacion-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Overlay para zoom en imágenes */
.producto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-img-container:hover .producto-overlay {
    opacity: 1;
}

.btn-zoom {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-zoom:hover {
    transform: scale(1.1);
}

/* Modal mejorado para zoom */
.modal-producto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.modal-imagenes {
    position: relative;
}

.modal-imagen-principal img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
}

/* Estilos para el catálogo */
.catalogo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.producto-categoria {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
}

/* Controles del catálogo */
.catalogo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.busqueda-catalogo {
    display: flex;
    gap: 10px;
}

.busqueda-catalogo input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 250px;
}

.ordenar-catalogo select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-producto-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalogo-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .busqueda-catalogo input {
        width: 100%;
    }
    
    .paginacion-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}